loading standard library for Python and Ruby

Dec 30, 2010 at 8:15 AM

Hello, where do I find these files mentioned in tutorials for gestalt applications, python-stdlib.zip ruby-stdlib.zip so that I will be able to load them in a gestalt application?

Dec 30, 2010 at 3:46 PM

OK, I think I found how it is done.

For instance for ruby:

First you install ruby, e.g. using rubyinstaller.exe, then you locate the folder with the standard library, not compiled, just the folder with the .rb files. You copy the folder into the Silverlight\bin folder of your ironruby installation. Now, if your folder is e.g. 1.9.1 then you type

Chiron.exe /d:1.9.1 /x:1.9.1.zip

That way you will have the ruby standard library in a zip file. Then you can load it and use it in your code and require what you need e.g. erb.
So you will have something like this:

<script src="http://gestalt.ironruby.net/dlr-latest.js"

<script type="application/x-zip-compressed" src="1.9.1.zip">


<script type="text/ruby">

$: << "1.9.1"; require 'erb';




Problem is, it's a bit slow to load it.