[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

[ANN] PRuby 1.0

Gregory Brown

4/1/2007 9:52:00 PM

== Background ==

Most of my life has been eaten by Ruport lately, I haven't even had a
chance to play around with any of the alternative implementations of
Ruby out there!

I did some looking around and it seems like most people are interested
in 1.8 compatibility, and performance, and fancy things like that.
So little innovation, so little fun!

So I'm proud to announce something you'll be sure to find convenient
on talk like a pirate day, PRuby.

== What is it? ==

A bunch of wonderful ideas from Greg, Aaron, Paul, James, and Mike.

Why use irb when you can use iargghb?

[sandal@metta pruby]$ ./iaarghb
>> a = "pirate ship"
=> "pirate ship"
>> a.hail(:length) if a.savvy? :length
=> 11
>> a.hail(:lengthe) if a.savvy? :lengthe
=> nil
>> a.hail(:ye_stinkin_length)
=> 11
>> port = AARGHray.ahoy
=> []
>> port << Aye
=> [true]
>> port << Aye
=> [true, true]
>> port << Aye
=> [true, true, true]
>> blow_me_down if port.empty?
=> nil
>> port.plunder
=> []
>> blow_me_down if port.empty?
AarghYeSunkMeShip: Yarr! Ye Stinkin' Lubber!!!
from ./libpruby.rb:33:in `blow_me_down'
from (irb):11
from :0
>> avast!
[sandal@metta pruby]$

Ruby is supposed to be about expressiveness, and about making the
programmer comfortable expressing their thoughts. Now, we are no
longer shackled by Matz's obvious oppression of the would be pirate
Rubyist!

== Coolest Features ==

PRuby gives you the same syntactic diabetes RSpec users crave:

>> Object.ahoy.gimme_yer_stinkin_object_id
=> 23793950882680
>> Object.ahoy.avast_with_yer_cursed_class
=> Object

With convenient aliases to help you think clearly, and not wrestle
with Ruby's cumbersome lubber syntax.

>> AARGHray.ahoy.me_matey?(Array)
=> true
>> AARGHray.ahoy.me_matey?(String)
=> false

It even ends the eigenclass/singleton debate with the most intuitive
naming ever.

>> Object.me_onsies
=> #<Class:Object>

If you're not already sold on PRuby, well to hell with you. We don't
want to hear your FUD.

== Get it ==

http://code.stonecode....

PRuby is copyrighted tree software under LotFOT (see license at the URL)
Pirates do not believe in complex package management, so see the pkg/
directory for zip/tarball and src/ for the actual code.

There is also a README.txt and some small examples.

3 Answers

Robert Dober

4/1/2007 10:25:00 PM

0

On 4/1/07, Gregory Brown <gregory.t.brown@gmail.com> wrote:
<snip>

Cool stuff
will you release a major version every April 1st?

Robert


--
You see things; and you say Why?
But I dream things that never were; and I say Why not?
-- George Bernard Shaw

Phillip Gawlowski

4/1/2007 10:36:00 PM

0

Robert Dober wrote:
> On 4/1/07, Gregory Brown <gregory.t.brown@gmail.com> wrote:
> <snip>
>
> Cool stuff
> will you release a major version every April 1st?

I guess, the next version will be released September 19th, 2007.

--
Phillip "CynicalRyan" Gawlowski
http://cynicalryan....

Rule of Open-Source Programming #34:

Every successful project will eventually spawn a sub-project

Gregory Brown

4/2/2007 12:48:00 AM

0

On 4/1/07, Phillip Gawlowski <cmdjackryan@googlemail.com> wrote:
> Robert Dober wrote:
> > On 4/1/07, Gregory Brown <gregory.t.brown@gmail.com> wrote:
> > <snip>
> >
> > Cool stuff
> > will you release a major version every April 1st?
>
> I guess, the next version will be released September 19th, 2007.

I will need to talk to the PRuby core team, as we have our work cut
out for ourselves, but there is a chance you'll see PRuby 2 by then.

Of course, that depends on the start of Yaaaarv!