The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Ruby Fried Rice (or, Why Not C++?)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Berger

Posts: 1383
Nickname: djberg96
Registered: Sep, 2004

Daniel Berger is a Ruby Programmer who also dabbles in C and Perl
Ruby Fried Rice (or, Why Not C++?) Posted: Jan 27, 2008 9:38 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Daniel Berger.
Original Post: Ruby Fried Rice (or, Why Not C++?)
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Daniel Berger
Latest Posts From Testing 1,2,3...

Advertisement
I stumbled onto Rice the other day. I like it. A lot.

It's funny I came across this because I've been considering a rewrite of Ruby in C++. Not that I know C++ very well. I just think there are a lot of advantages to using C++. Functors, try/catch, the STL. Who knows what else?

I think the main argument against implementing a language in C++ has always been that it's too complex and that its type system would get in the way. Complex, sure, but very powerful in the hands of a master. Just look at BeOS. Best desktop OS ever written from an architectural point of view IMHO, and it was all C++. Obviously that's more design than language, but then language tends to shape design. I suspect there would be overall design improvements in a theoretical Ruby++ just by virtue of using C++.

As for the type system getting in the way, well, I think JRuby and Jython have put that notion to rest quite handily.

Another argument in the past may have been that not everyone had a C++ compiler, but that's no longer true. On Linux and BSD you've got g++, on Windows there's the free C++ compiler, and on Solaris you can use either g++ or the C++ compiler that comes with their free Sun Studio Compiler suite.

Read: Ruby Fried Rice (or, Why Not C++?)

Topic: Drag and drop file upload on a Mac Previous Topic   Next Topic Topic: Trouble purchasing iPod Touch January update

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use