[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Is the Ruby executable written in C?

Steve Litt

12/30/2005 3:40:00 PM

Hi all,

Is the Ruby executable written in C?

Thanks

SteveT

Steve Litt
http://www.troublesh...
slitt@troubleshooters.com


7 Answers

James Gray

12/30/2005 3:51:00 PM

0

On Dec 30, 2005, at 9:39 AM, Steve Litt wrote:

> Hi all,
>
> Is the Ruby executable written in C?

In a word: Yes.

James Edward Gray II


Tim Hunter

12/30/2005 3:52:00 PM

0

Steve Litt wrote:
> Hi all,
>
> Is the Ruby executable written in C?
>

yes.

Rich Morin

12/30/2005 5:51:00 PM

0

At 12:50 AM +0900 12/31/05, James Edward Gray II wrote:
> On Dec 30, 2005, at 9:39 AM, Steve Litt wrote:
>
>> Hi all,
>>
>> Is the Ruby executable written in C?
>
> In a word: Yes.

modulo JRuby
--
email: rdm@cfcl.com; phone: +1 650-873-7841
http://ww... - Canta Forda Computer Laboratory
http://ww.../Meta - The FreeBSD Browser, Meta Project, etc.


Jeff Schwab

12/31/2005 2:51:00 AM

0

Steve Litt wrote:

> Is the Ruby executable written in C?

It seems to be written in a version of C that I found a little difficult
to read. It uses old K&R style function declarations, and uses macros
in places I'm not used to seeing them. Honestly, I'd love to spend some
time hacking the VM, but it looks prohibitively difficult. Maybe
someone will enlighten me. :)

Christian Neukirchen

12/31/2005 1:34:00 PM

0

Jeffrey Schwab <jeff@schwabcenter.com> writes:

> Steve Litt wrote:
>
>> Is the Ruby executable written in C?
>
> It seems to be written in a version of C that I found a little
> difficult to read. It uses old K&R style function declarations, and
> uses macros in places I'm not used to seeing them. Honestly, I'd love
> to spend some time hacking the VM, but it looks prohibitively
> difficult. Maybe someone will enlighten me. :)

The Perl source is worse.

*scnr*,
--
Christian Neukirchen <chneukirchen@gmail.com> http://chneuk...


Chad Perrin

12/31/2005 1:50:00 PM

0

On Sat, Dec 31, 2005 at 10:34:19PM +0900, Christian Neukirchen wrote:
> Jeffrey Schwab <jeff@schwabcenter.com> writes:
>
> > Steve Litt wrote:
> >
> >> Is the Ruby executable written in C?
> >
> > It seems to be written in a version of C that I found a little
> > difficult to read. It uses old K&R style function declarations, and
> > uses macros in places I'm not used to seeing them. Honestly, I'd love
> > to spend some time hacking the VM, but it looks prohibitively
> > difficult. Maybe someone will enlighten me. :)
>
> The Perl source is worse.

According to Nat Torkington, the Perl source is "an interconnected mass
of livers and pancreas and lungs and little sharp pointy things and the
occasional exploding kidney."

--
Chad Perrin [ CCD CopyWrite | http://ccd.ap... ]

"A script is what you give the actors. A program
is what you give the audience." - Larry Wall


james_b

12/31/2005 3:46:00 PM

0

Jeffrey Schwab wrote:
> Steve Litt wrote:
>
>> Is the Ruby executable written in C?
>
>
> It seems to be written in a version of C that I found a little difficult
> to read. It uses old K&R style function declarations, and uses macros
> in places I'm not used to seeing them. Honestly, I'd love to spend some
> time hacking the VM, but it looks prohibitively difficult. Maybe
> someone will enlighten me. :)

Might be an acquired taste. I've not done any regular C coding in many
years, (which may have helped here) but when crawling through the Ruby
source some years back, in preparation for a book, I found it fairly
easy to get used to the naming and coding conventions and figure things
out. It was a great help when trying to determine if some class or
method had any potentially unexpected behavior that was not documented,
or not documented correctly.

(I realize it may seem pretty obvious to say that the source code is a
good place to look for this information, the point being that it is
quite readable.)


James


--

http://www.ru... - Ruby Help & Documentation
http://www.artima.c... - Ruby Code & Style: Writers wanted
http://www.rub... - The Ruby Store for Ruby Stuff
http://www.jame... - Playing with Better Toys
http://www.30seco... - Building Better Tools