Forum: Ruby MacRuby 0.4

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dc32e0513d1a0b086d2afa9311e9e472?d=identicon&s=25 Laurent Sansonetti (Guest)
on 2009-03-09 07:53
(Received via mailing list)
Hi,

After several months of development and some slight delays, MacRuby
0.4 is now available. Get it here while it's still hot!

MacRuby is a version of Ruby 1.9, ported to run directly on top of Mac
OS X core technologies such as the Objective-C common runtime and
garbage collector, and the CoreFoundation framework. While still a
work in progress, it is the goal of MacRuby to enable the creation of
full-fledged Mac OS X applications which do not sacrifice performance
in order to enjoy the benefits of using Ruby.

You can learn more about MacRuby, and download a binary installer,
from the website:

http://ruby.macosforge.org

Or about this release more specifically, on our blog:

http://www.macruby.org/post/macruby-04

Enjoy,

Laurent
A0c079a7c3c9b2cf0bffebd84dc578b0?d=identicon&s=25 Chuck Remes (cremes)
on 2009-03-09 12:52
(Received via mailing list)
On Mar 9, 2009, at 1:51 AM, Laurent Sansonetti wrote:

> http://ruby.macosforge.org
Awesome news! Thanks for your hard work.

cr
Aae5c9f81fe990a48daf2bb91ac82759?d=identicon&s=25 unknown (Guest)
on 2009-03-09 13:36
(Received via mailing list)
Hi,
great news! Thanks a lot.

Any idea when MacRuby 0.5 should be out? Do you think its performance
will be approx as the official Ruby or is that still a long way away?

Apologies if this sounds "ungrateful". I think what you are doing is
really great, it's just that as soon as it's comparable to the
official Ruby, I am planning to move to it for my own projects. :)

Thank you

Diego
D2bff075522befb15313dab85f3a671b?d=identicon&s=25 Kevin Walzer (Guest)
on 2009-03-09 16:01
(Received via mailing list)
Laurent,

Laurent Sansonetti wrote:

>
> MacRuby is a version of Ruby 1.9, ported to run directly on top of Mac
> OS X core technologies such as the Objective-C common runtime and
> garbage collector, and the CoreFoundation framework. While still a
> work in progress, it is the goal of MacRuby to enable the creation of
> full-fledged Mac OS X applications which do not sacrifice performance
> in order to enjoy the benefits of using Ruby.


MacRuby is an interesting project. I see that it is installable as a
framework in /Library/Frameworks. I am curious about one thing: have you
thought about contributing the build/configure bits that allow MacRuby
to be built as a framework back to the main Ruby developers, so that
mainline Ruby itself can be built as a framework? Apple's system build
of Ruby builds in this fashion as well. However, as far as I can tell,
these kinds of builds are not supported by mainline Ruby on OS X.

It would be great if one could download the current stable version of
Ruby, and run "./configure --enable-framework" and have everything build
and install in /Library/Frameworks, perhaps with symlinks in
/usr/local/bin for the executables. Python and Tcl on the Mac already
have this capability, and since it appears the work to get Ruby set up
as a (non-system) framework has already been done, it should just be a
matter of getting it fed upstream and committed.

The benefits of this for developers are numerous. It would build Ruby in
a Mac-standard fashion, and it would make deploying standalone
applications that rely on Ruby a simpler process.

Thoughts or suggestions about this are appreciated.

Regards,
Kevin
32b703cdb0ea03c3939b97a93205414f?d=identicon&s=25 John T. (johnt519)
on 2009-03-10 06:37
Laurent Sansonetti wrote:
> Hi,
>
> After several months of development and some slight delays, MacRuby
> 0.4 is now available. Get it here while it's still hot!
>


Hm. I guess I missed the bit where it says that 0.4 is Intel only. Ran
the installer on a Powerbook G4 then tried using the 'macirb' command
only to get:

-bash: /usr/local/bin/macirb:
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/bin/macruby: bad
interpreter: Bad CPU type in executable


Guess I have to see if I can get it built for non-intel.
2f55791ab9018b4d01fb741fab21843d?d=identicon&s=25 Tony Arcieri (Guest)
on 2009-03-10 06:53
(Received via mailing list)
Hi, one thing I've been particularly curious about in regard to
MacRuby...

I've noticed the "autozone" garbage collector for Objective C has been
released as open source:

http://www.opensource.apple.com/darwinsource/10.5....

How difficult would it to be to use this as the garbage collector for
MacRuby?  I'm particularly interested in MacRuby on the iPhone... does
open
source autozone actually help, or do you need it as a cohesive part of
the
Objective C runtime?

On Mon, Mar 9, 2009 at 12:51 AM, Laurent Sansonetti <
8f6f95c4bd64d5f10dfddfdcd03c19d6?d=identicon&s=25 Rick Denatale (rdenatale)
on 2009-03-10 12:53
(Received via mailing list)
On Tue, Mar 10, 2009 at 1:51 AM, Tony Arcieri <tony@medioh.com> wrote:
>
> Hi, one thing I've been particularly curious about in regard to MacRuby...
>
> I've noticed the "autozone" garbage collector for Objective C has been
> released as open source:
>
> http://www.opensource.apple.com/darwinsource/10.5....
>
> How difficult would it to be to use this as the garbage collector for
> MacRuby?


If you read the readme.txt I think you'll find that it IS being used by
MacRuby.  In fact as I understand it autozone is a spin-off from the
MacRuby
project which Laurent factored out for more general use.

--
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2009-03-10 13:53
> MacRuby is an interesting project. I see that it is installable as a
> framework in /Library/Frameworks. I am curious about one thing: have you
> thought about contributing the build/configure bits that allow MacRuby
> to be built as a framework back to the main Ruby developers, so that
> mainline Ruby itself can be built as a framework? Apple's system build
> of Ruby builds in this fashion as well. However, as far as I can tell,
> these kinds of builds are not supported by mainline Ruby on OS X.

It would be interesting if there were a port of macruby to vanilla Linux
so the rest of us could try it and see if the GC is indeed faster :)
Anyway thanks for the hard work.

-=r
5a837592409354297424994e8d62f722?d=identicon&s=25 Ryan Davis (Guest)
on 2009-03-10 18:42
(Received via mailing list)
On Mar 10, 2009, at 05:51 , Roger Pack wrote:

> It would be interesting if there were a port of macruby to vanilla
> Linux
> so the rest of us could try it and see if the GC is indeed faster :)
> Anyway thanks for the hard work.

I'm sure patches are welcome...
2f55791ab9018b4d01fb741fab21843d?d=identicon&s=25 Tony Arcieri (Guest)
on 2009-03-10 18:44
(Received via mailing list)
On Tue, Mar 10, 2009 at 5:50 AM, Rick DeNatale
<rick.denatale@gmail.com>wrote:

> If you read the readme.txt I think you'll find that it IS being used by
> MacRuby.  In fact as I understand it autozone is a spin-off from the
> MacRuby
> project which Laurent factored out for more general use.
>

I see, my apologies.

Does this mean MacRuby could potentially work on iPhones now?
Ef3aa7f7e577ea8cd620462724ddf73b?d=identicon&s=25 Rob Biedenharn (Guest)
on 2009-03-10 19:08
(Received via mailing list)
On Mar 10, 2009, at 1:42 PM, Tony Arcieri wrote:
> Does this mean MacRuby could potentially work on iPhones now?
>
> --
> Tony Arcieri
> medioh.com


At RubyConf2008, Laurent's response to that kind of inquiry was: "Next
question."

-Rob

Rob Biedenharn    http://agileconsultingllc.com
Rob@AgileConsultingLLC.com
2f55791ab9018b4d01fb741fab21843d?d=identicon&s=25 Tony Arcieri (Guest)
on 2009-03-10 21:45
(Received via mailing list)
On Tue, Mar 10, 2009 at 12:05 PM, Rob Biedenharn
<Rob@agileconsultingllc.com
> wrote:

> At RubyConf2008, Laurent's response to that kind of inquiry was: "Next
> question."
>

Unfortunate.  What is the problem if not the garbage collector?
Ef3aa7f7e577ea8cd620462724ddf73b?d=identicon&s=25 Rob Biedenharn (Guest)
on 2009-03-10 22:04
(Received via mailing list)
On Mar 10, 2009, at 4:42 PM, Tony Arcieri wrote:

> --
> Tony Arcieri
> medioh.com


I've always assumed it was more of a legal problem than a technical
one. ;-)

-Rob

Rob Biedenharn    http://agileconsultingllc.com
Rob@AgileConsultingLLC.com
D1f1c20467562fc1d8c8aa0d328def62?d=identicon&s=25 Florian Gilcher (skade)
on 2009-03-10 22:06
(Received via mailing list)
On Mar 10, 2009, at 9:42 PM, Tony Arcieri wrote:

> --
> Tony Arcieri
> medioh.com

Memory consumption, waste of processing power, basically: the question
whether it is not a waste of time.

Regards,
Florian

--
Florian Gilcher

smtp:   flo@andersground.net
jabber: Skade@jabber.ccc.de
gpg:    533148E2
Dc32e0513d1a0b086d2afa9311e9e472?d=identicon&s=25 Laurent Sansonetti (Guest)
on 2009-03-11 00:10
(Received via mailing list)
Hi Diego,

On Mon, Mar 9, 2009 at 5:33 AM,  <Diego.Virasoro@gmail.com> wrote:
> Hi,
> great news! Thanks a lot.
>
> Any idea when MacRuby 0.5 should be out? Do you think its performance
> will be approx as the official Ruby or is that still a long way away?
>
> Apologies if this sounds "ungrateful". I think what you are doing is
> really great, it's just that as soon as it's comparable to the
> official Ruby, I am planning to move to it for my own projects. :)
>

I recommend to subscribe to the macruby-devel [1] mailing list if you
want to track the project's progress. We do not provide any release
date yet, it will be released "when it will be done" :-)

Laurent

[1] http://lists.macosforge.org/mailman/listinfo.cgi/m...
Dc32e0513d1a0b086d2afa9311e9e472?d=identicon&s=25 Laurent Sansonetti (Guest)
on 2009-03-11 00:15
(Received via mailing list)
Hi Kevin,

On Mon, Mar 9, 2009 at 7:58 AM, Kevin Walzer <kw@codebykevin.com> wrote:
>> in order to enjoy the benefits of using Ruby.
> It would be great if one could download the current stable version of Ruby,
> and run "./configure --enable-framework" and have everything build and
> install in /Library/Frameworks, perhaps with symlinks in /usr/local/bin for
> the executables. Python and Tcl on the Mac already have this capability, and
> since it appears the work to get Ruby set up as a (non-system) framework has
> already been done, it should just be a matter of getting it fed upstream and
> committed.
>
> The benefits of this for developers are numerous. It would build Ruby in a
> Mac-standard fashion, and it would make deploying standalone applications
> that rely on Ruby a simpler process.

I wanted to contribute a "--enable-framework" option but I did not
find the time yet to do it. If someone is interested, you can find how
we build Ruby as a framework on Mac OS X here:

  http://www.opensource.apple.com/darwinsource/10.5....

(It is not very beautiful but it works.)

Laurent
Dc32e0513d1a0b086d2afa9311e9e472?d=identicon&s=25 Laurent Sansonetti (Guest)
on 2009-03-11 00:16
(Received via mailing list)
Hi John,

On Mon, Mar 9, 2009 at 10:35 PM, John T. <johnts@charter.net> wrote:
> only to get:
>
> -bash: /usr/local/bin/macirb:
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/bin/macruby: bad
> interpreter: Bad CPU type in executable
>

I forgot to mention that the installer does not support PPC machines.
It is still possible to build the sources for PPC, though.

The following page has some information:

  http://www.macruby.org/trac/wiki/InstallingMacRuby

HTH,

Laurent
This topic is locked and can not be replied to.