# Questions around load order of rb files in Libs and StdLib

**URL:** <https://www.ruby-forum.com/t/questions-around-load-order-of-rb-files-in-libs-and-stdlib/198805>\
**Category:** IronRuby\
**Created:** [November 8, 2010, 11:35am UTC](https://www.ruby-forum.com/t/questions-around-load-order-of-rb-files-in-libs-and-stdlib/198805 "2010-11-08T11:35:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 8, 2010, 11:35am UTC](https://www.ruby-forum.com/t/questions-around-load-order-of-rb-files-in-libs-and-stdlib/198805/1 "2010-11-08T11:35:23Z")

</div>

More questions.

Im assuming that Lib is loaded before StdLib and can therefore override  
any  
implementations in StdLib right?

Also the Readme file states

"complex18.rb and rational18.rb are taken from MRI 1.8.6  
- this should be replaced by IronRuby’s own implementation of  
Complex  
and Rational builtins in future

```
gem_prelude.rb taked from Ruby 1.9.2 source distribution and adapted
  - should be replaced by an implementation in 

```

IronRuby.Libraries.dll"

Im kinda assuming that the first question is correct here. but would we  
be able  
to have the complex/rational and gem\_prelude files located in the Lib  
directory. I would like it if the StdLib is as vanilla as possible  
(preferrably 100% minus any \*.so if that makes you happy).

The reason I ask is because I plan on not using the StdLib dir from your  
tree  
at all when I package IronRuby. but will instead point it to ruby19’s.  
This  
will save hd space/maintainance effort and mean we can fix stdlib bugs  
without  
waiting for ironruby upstream releases.

- Alistair.

---

<div class="post-metadata">

**Author:** ![Alistair\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@Alistair\_B](https://www.ruby-forum.com/u/Alistair_B)\
**Post date:** [November 8, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/questions-around-load-order-of-rb-files-in-libs-and-stdlib/198805/2 "2010-11-08T20:23:14Z")

</div>

There are currently some small changes in the StdLib to work around  
IronRuby bugs. So those need to be fixed first.

Will your IronRuby package require CRuby to be installed first?

Tomas

---

<div class="post-metadata">

**Author:** ![Alistair\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@Alistair\_B](https://www.ruby-forum.com/u/Alistair_B)\
**Post date:** [November 9, 2010, 9:36am UTC](https://www.ruby-forum.com/t/questions-around-load-order-of-rb-files-in-libs-and-stdlib/198805/3 "2010-11-09T09:36:21Z")

</div>

> There are currently some small changes in the StdLib to work around  
> IronRuby bugs. So those need to be fixed first.
> 
> Will your IronRuby package require CRuby to be installed first?

Initially probably yes.

---

<div class="post-metadata">

**Author:** ![Alistair\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@Alistair\_B](https://www.ruby-forum.com/u/Alistair_B)\
**Post date:** [November 9, 2010, 7:29pm UTC](https://www.ruby-forum.com/t/questions-around-load-order-of-rb-files-in-libs-and-stdlib/198805/4 "2010-11-09T19:29:03Z")

</div>

I don’t think it’s good idea to introduce such a dependency. Why would I  
need to install CRuby if I just wanted to program in Ruby on Mono/.NET?  
CRuby would not be useful for me and it’s additional 12MB to download  
and 30MB on disk.

Besides JRuby also ships with the standard library. In fact both 1.8 and  
1.9 std libs are included.

Tomas
