JRuby

3 views
Skip to first unread message

Tony Arcieri

unread,
Jul 29, 2009, 7:48:24 PM7/29/09
to Johnson
So the TODO for Johnson has kind of been freaking me out a little:

* Support more than just Mac OS X / Ruby 1.8.6.
* Stop freaking segfaulting.

We're using it successfully on Linux FWIW, although my day-to-day use
is on OS X.

Our production target is JRuby. Presently we only use the parser in
production and only use JavaScript evaluation for testing, although we
are thinking about enabling server-side JavaScript.

So, if I want to use Johnson with JRuby, am I going to be the
unofficial test monkey for that combination? With FFI it seems it
should be possible.

Do you think Johnson is ready for use in production for server side
JavaScript or should I be trying to abstract across Johnson/Rhino
instead?

Andrea Fazzi

unread,
Aug 4, 2009, 6:00:00 PM8/4/09
to johnson-talk
Excerpts from Tony Arcieri's message of gio lug 30 01:48:24 +0200 2009:

>
> So, if I want to use Johnson with JRuby, am I going to be the
> unofficial test monkey for that combination? With FFI it seems it
> should be possible.

Hi Tony,

I don't know if you are aware of it but I'm attempting a port of
Johnson/Spidermonkey to FFI[1]. The work is a bit freezed now mainly due to
the lack of time (and motivation?) but I got 100% of specs passing using
JRuby. It suffers of instability and heisenbugs though :) Ah, and the
parser is not yet implemented.

[1] - http://github.com/jbarnette/johnson/tree/ffi
--
Andrea Fazzi @ alca.le.it
Follow me on http://twitter.com/remogatto

Tony

unread,
Oct 27, 2009, 10:50:00 PM10/27/09
to johnso...@googlegroups.com
On Tue, Aug 4, 2009 at 4:00 PM, Andrea Fazzi <andrea...@alcacoop.it> wrote:

Hi Tony,

I don't know if you are aware of it but I'm attempting a port of
Johnson/Spidermonkey to FFI[1]. The work is a bit freezed now mainly due to
the lack of time (and motivation?) but I got 100% of specs passing using
JRuby. It suffers of instability and heisenbugs though :) Ah, and the
parser is not yet implemented.

[1] - http://github.com/jbarnette/johnson/tree/ffi

I tried building the FFI branch of Johnson on JRuby, and...

Building native extensions.  This could take a while...
/Users/tony/.rvm/jruby-1.3.1/lib/ruby/1.8/mkmf.rb:7: JRuby does not support native extensions. Check wiki.jruby.org for alternatives. (NotImplementedError)

I'm not really sure what to do here.  We kind of need to get up-and-running on JRuby ASAP, but we are still trying to support MRI.

What's our best bet here?  Do you think it'd be possible to get the FFI branch working on JRuby in relatively short order, or should be looking at other solutions, such as trying to build an abstraction across Johnson and Rhino?

--
Tony Arcieri
Medioh/Nagravision
Reply all
Reply to author
Forward
0 new messages