# IO, File Implementations

**URL:** <https://www.ruby-forum.com/t/io-file-implementations/115961>\
**Category:** IronRuby\
**Created:** [October 1, 2007, 1:15am UTC](https://www.ruby-forum.com/t/io-file-implementations/115961 "2007-10-01T01:15:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [October 1, 2007, 1:15am UTC](https://www.ruby-forum.com/t/io-file-implementations/115961/1 "2007-10-01T01:15:25Z")

</div>

What’s the status on the IO and File classes? Is that something you  
would  
take contributions on?

I would rate that as a pretty high barrier to entry. Having File would  
make  
lots of useful scripts possible.

-Eric

---

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [October 1, 2007, 9:26am UTC](https://www.ruby-forum.com/t/io-file-implementations/115961/2 "2007-10-01T09:26:54Z")

</div>

Hi Eric,

John M. has been looking at IO and File, however he’s swamped with  
other work at the moment. We would love some help in implementing IO and  
File, so feel free to start work on it.

John - if you have any code, feel free to share with Eric!

Thanks,  
-John

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Eric N.  
Sent: Sunday, September 30, 2007 4:15 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] IO, File Implementations

What’s the status on the IO and File classes? Is that something you  
would take contributions on?

I would rate that as a pretty high barrier to entry. Having File would  
make lots of useful scripts possible.

-Eric

---

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [October 1, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/io-file-implementations/115961/3 "2007-10-01T16:49:31Z")

</div>

I looked at this briefly, and it looks like “RegisterClass” and  
“Load…”  
entries for IO and File are needed in  
“Builtins\Initializer.Generated.cs”.  
I’m guessing from the name that this file is generated dynamically, but  
how?

Is there some rake option to create this file? Or can I just modify it  
by  
hand?

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [October 1, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/io-file-implementations/115961/4 "2007-10-01T17:05:40Z")

</div>

2007/10/1, Eric N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I looked at this briefly, and it looks like “RegisterClass” and “Load…”  
> entries for IO and File are needed in  
> “Builtins\Initializer.Generated.cs”. I’m guessing from the  
> name that this file is generated dynamically, but how?

By compiling and running the program under  
utils/ironruby.classinitgenerator.

> Is there some rake option to create this file? Or can I just modify it by  
> hand?

I agree that this should be in the rakefile. Together with a target to  
run gppg parser generator.

---

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [October 1, 2007, 6:03pm UTC](https://www.ruby-forum.com/t/io-file-implementations/115961/5 "2007-10-01T18:03:45Z")

</div>

That worked! Of course now I have some other issues, but I’ll work my  
through them.

Thanks!  
Eric

---

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [October 4, 2007, 5:09am UTC](https://www.ruby-forum.com/t/io-file-implementations/115961/6 "2007-10-04T05:09:10Z")

</div>

Ok, so I should have asked this sooner, but…

Do core classes (specifically IO, File) go into Ruby.Builtins or  
IronRuby.Libraries?

-Eric

---

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [October 4, 2007, 9:31am UTC](https://www.ruby-forum.com/t/io-file-implementations/115961/7 "2007-10-04T09:31:05Z")

</div>

All classes that the compiler directly doesn’t depend on belong to  
IR.Libraries (currently, many of them are in Builtins though - we are  
going to take them out soon). As IO and File are not compiler  
dependencies they belong to Libraries.

Tomas

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Eric N.  
Sent: Wednesday, October 03, 2007 7:43 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] IO, File Implementations

Ok, so I should have asked this sooner, but…

Do core classes (specifically IO, File) go into Ruby.Builtins or  
IronRuby.Libraries?

-Eric  
On 10/1/07, Eric N.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
That worked! Of course now I have some other issues, but I’ll work my  
through them.

Thanks!  
Eric

On 10/1/07, Sanghyeon S. \< removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
wrote:  
2007/10/1, Eric N. \<  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>:

> I looked at this briefly, and it looks like “RegisterClass” and “Load…”  
> entries for IO and File are needed in  
> “Builtins\Initializer.Generated.cs”. I’m guessing from the  
> name that this file is generated dynamically, but how?

By compiling and running the program under  
utils/ironruby.classinitgenerator.

> Is there some rake option to create this file? Or can I just modify it by  
> hand?

I agree that this should be in the rakefile. Together with a target to  
run gppg parser generator.

–  
Seo S.
