# Standard library inventory

**URL:** <https://www.ruby-forum.com/t/standard-library-inventory/137369>\
**Category:** IronRuby\
**Created:** [May 12, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/standard-library-inventory/137369 "2008-05-12T14:26:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayne\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Post date:** [May 12, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/standard-library-inventory/137369/1 "2008-05-12T14:26:57Z")

</div>

Hi,

I’d like to request a quick implementation status update on the Ruby  
standard libraries that contain native code …

If you are working on any of the following or know any additional  
information about any of the following, could you please post a followup  
email?

The following standard libraries are implemented at least to some degree  
in the IronRuby.Libraries assembly (not sure which are totally  
complete):  
digest.so -\> IronRuby.Libraries\Digest\Digest.cs  
digest\md5.so -\> IronRuby.Libraries\Digest\Digest.cs  
openssl.so -\> IronRuby.Libraries\OpenSSL\OpenSSL.cs  
socket.so -\> IronRuby.Libraries\Builtin\Socket.cs  
strscan.so -\> IronRuby.Libraries\Builtin\StringScanner.cs  
zlib.so -\> IronRuby.Libraries\Zlib\zlib.cs

The following libraries are used by the simple gem and rails use cases  
that I’ve been investigating, but don’t yet have a checked  
implementation:  
digest/sha1.so  
bigdecimal.so  
enumerator.so  
etc.so  
fcntl.so  
nkf.so -\> Andrew P.?  
racc/cparse.so  
stringio.so -\> Eduardo?  
syck.so -\> John M.?  
thread.so -\> can be replaced by original thread.rb?  
Win32API.so -\> can be just deleted?

The following libraries are not used in any of the simple gems and rails  
use cases that I’ve been considering. (please let us know if there are  
any in here that you think should be made a priority):  
curses.so  
dbm.so -\> used by YAML?  
dl.so -\> used by sqlite3 driver?  
gdbm.so  
iconv.so -\> used by actionmailer?  
io.so  
pty.so  
readline -\> used by debug.rb  
sdbm.so  
syslog.so  
tk.so  
win32ole.so

Cheers, Wayne.

---

<div class="post-metadata">

**Author:** ![Wayne\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Post date:** [May 12, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/standard-library-inventory/137369/2 "2008-05-12T14:59:22Z")

</div>

I have been working on the Socket library. John L., recently posted a  
code-review of a patch that I had submitted to RubyForge. I expect the  
modified patch to get pushed through the process soon. This patch hits  
most  
of the Socket classes but not Socket itself.

Meanwhile, I have implemented the rest of the Socket class and started  
working on RSpecs for it.

Once these changes are submitted and accepted into the fold then all the  
methods picked up by Wayne as being required for the specified Rails  
cases  
will be implemented.

Pete

---

<div class="post-metadata">

**Author:** ![Wayne\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Post date:** [May 12, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/standard-library-inventory/137369/3 "2008-05-12T18:51:00Z")

</div>

Just so you are aware, when we switch to the new spec suite (this week  
after the DLR tuple fix) we will have a location for those specs in  
/specs/ruby/1.8/core/library/socket. There are existing files in my  
shelveset, but not many of them have more than the requires.

JD

---

<div class="post-metadata">

**Author:** ![Wayne\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Post date:** [May 13, 2008, 4:18am UTC](https://www.ruby-forum.com/t/standard-library-inventory/137369/4 "2008-05-13T04:18:43Z")

</div>

Hi all,

I can confirm that the ability to run some simple  
activerecord/activesupport use cases is currently blocked only by the  
absence of implementations of the libraries listed in Wayne’s post, plus  
some major bugs like #19805 and #19971. If anyone is interested, I have  
also attached an implementation of enumerator in pure Ruby as a  
replacement for enumerator.so.

Once I can get activerecord up and running I should be able to do some  
meaningful testing of the SQLite3 and MySQL drivers that I have been  
working on…

Regards,  
Brian

On Mon, 12 May 2008 22:24:50 +1000, “Wayne K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
said:

---

<div class="post-metadata">

**Author:** ![Wayne\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Post date:** [May 12, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/standard-library-inventory/137369/5 "2008-05-12T23:30:10Z")

</div>

I’m working on NKF which was the first blocker I encountered after I  
started  
looking at sqlite3-ruby. Is anyone else working on sqlite?

Andrew.

---

<div class="post-metadata">

**Author:** ![Wayne\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Post date:** [May 13, 2008, 5:48am UTC](https://www.ruby-forum.com/t/standard-library-inventory/137369/6 "2008-05-13T05:48:32Z")

</div>

Michael L.:

> I can confirm that the ability to run some simple  
> activerecord/activesupport use cases is currently blocked only by the  
> absence of implementations of the libraries listed in Wayne’s post,  
> plus some major bugs like #19805 and #19971. If anyone is interested, I  
> have also attached an implementation of enumerator in pure Ruby as a  
> replacement for enumerator.so.

We have a fix for #19971 coming by Wednesday at the latest. #19805 is  
already fixed and will show up in the next release.

Thanks,  
-John
