Ruby .NET, RubyCLR, and Assemblies

G

Gavin Kistner

(Resending again as plain-text (hopefully) to ensure it makes it through
the google groups gateway.)=20

My company is working on a piece of software right now that is using
NET. One of the features is a scripting console similar to IRB: the
user may type in one-off commands and see the effect in the application.

I want the scripting language to be Ruby. Right now, it's IronPython.
I've been told that the reason is that with using Ruby under this
scenario, a new Assembly is created for each command that the user
enters. This is a Bad Thing, as it's been described to me, for
performance and memory. IronPython doesn't suffer this problem. (I was
also told that there is some nasty way to get around the problem that
involves tying objects together and marshalling data back and forth. Or
something. Hopefully I got the description right; I'm a Ruby scripter,
not a .NET programmer.)

1) Does this sound correct to people who know Ruby/.NET or RubyCLR?

2) If it's not correct, could you elaborate on how one might achieve the
functionality I describe above?

3) If it is correct, how can it be fixed? If Python managed a solution,
I assume Ruby could as well.

I'd really like our software to use Ruby, and I could probably convince
the engineers to use it if we could overcome this hurdle. More Ruby
everywhere is better for the world. ;)

=20
 
S

Sam Smoot

Gavin said:
I want the scripting language to be Ruby. Right now, it's IronPython.
I've been told that the reason is that with using Ruby under this
scenario, a new Assembly is created for each command that the user
enters. This is a Bad Thing, as it's been described to me, for
performance and memory.

The short answer is no. RubyClr uses .NET's DynamicMethod.
I'd really like our software to use Ruby, and I could probably convince
the engineers to use it if we could overcome this hurdle. More Ruby
everywhere is better for the world. ;)

I don't know that RubyClr is necessarily ready to be depended on. Don't
get me wrong, it does some things well, but last I looked it still had
object-identity issues and that's a major problem for writing anything
reliable.

It's fun for short-lived scripts with low object counts though.
 
D

devdev

Can you provide some examples of object-identity issues? Or perhaps
an URL ?

I am interested in using RubyCLR in production code.

thanks,

devdev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,076
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top