[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby into a .dll?

aidy

8/23/2007 12:59:00 PM

Hi,

Is it possible to 'compile' ruby into a dll?

Regards

Aidy

4 Answers

Thomas Worm

8/23/2007 1:20:00 PM

0

It seems so: When I look into the bin-directory of my ruby-distribution
for windows I see (among others) the following:

ruby.exe which only has 20kB
and
msvcrt-ruby18.dll which has almost 900kB

So I guess that msvcrt-ruby18.dll is ruby in a dll while ruby.exe is just
the command-line-interface to thiss dll.

Thomas

On Thu, 23 Aug 2007 05:59:15 -0700, aidy.lewis@googlemail.com wrote:

> Hi,
>
> Is it possible to 'compile' ruby into a dll?
>
> Regards
>
> Aidy

aidy

8/23/2007 6:46:00 PM

0

Hi Thomas

On 23 Aug, 14:20, Thomas Worm <use...@s4r.de> wrote:
> It seems so: When I look into the bin-directory of my ruby-distribution
> for windows I see (among others) the following:
>
> ruby.exe which only has 20kB
> and
> msvcrt-ruby18.dll which has almost 900kB

I thought the above were written in C.

Aidy



John Miller

8/23/2007 9:30:00 PM

0

aidy.lewis@googlemail.com wrote:
> Hi,
>
> Is it possible to 'compile' ruby into a dll?
>
> Regards
>
> Aidy

The Ruby interpreter: Yes
Ruby Code: Not yet

Ruby 2.0 could be out by New Years at the soonest (probably will be out
by sometime in 2008) It will be able to compile and byte code, but as I
understand it will still need an interpreter. I have heard speculation
of the ability to do stand alone compilation, but not from anybody who
might actually write the code to make that happen so I would not hold
your breath. For the foreseeable future the answer is no.

--
Posted via http://www.ruby-....

aidy

8/24/2007 8:32:00 AM

0

On 23 Aug, 22:30, John Miller <jfmille...@yahoo.com> wrote:
>
> Ruby 2.0 could be out by New Years at the soonest (probably will be out
> by sometime in 2008) It will be able to compile and byte code, but as I
> understand it will still need an interpreter. I have heard speculation
> of the ability to do stand alone compilation, but not from anybody who
> might actually write the code to make that happen so I would not hold
> your breath. For the foreseeable future the answer is no.
>

I was thinking I might be able to use IronRuby and create a .net dll?

Aidy