[#35446] [Ruby 1.9 - Bug #4477][Open] Kernel:exec and backtick (`) don't work for certain system commands — Joachim Wuttke <j.wuttke@...>

10 messages 2011/03/07

[#35476] [Ruby 1.9 - Bug #4489][Open] [PATCH] Encodings with /-(unix|dos|mac)\Z/ — "James M. Lawrence" <quixoticsycophant@...>

20 messages 2011/03/10

[#35552] [Ruby 1.9 - Feature #4523][Open] Kernel#require to return the path of the loaded file — Alex Young <alex@...>

14 messages 2011/03/24

[#35565] [Ruby 1.9 - Feature #4531][Open] [PATCH 0/7] use poll() instead of select() in certain cases — Eric Wong <normalperson@...>

33 messages 2011/03/28

[#35566] [Ruby 1.9 - Feature #4532][Open] [PATCH] add IO#pread and IO#pwrite methods — Eric Wong <normalperson@...>

12 messages 2011/03/28

[#35586] [Ruby 1.9 - Feature #4538][Open] [PATCH (cleanup)] avoid unnecessary select() calls before doing I/O — Eric Wong <normalperson@...>

9 messages 2011/03/29

[ruby-core:35488] Re: Source for 1.8 syck gram.y and token.re?

From: Charles Oliver Nutter <headius@...>
Date: 2011-03-11 19:06:12 UTC
List: ruby-core #35488
On Fri, Mar 11, 2011 at 11:39 AM, Aaron Patterson
<aaron@tenderlovemaking.com> wrote:
> Ya. I could do that.  I need to do a little work to make sure it will
> work on 1.8 and 1.9.
>
> Also, I'm not sure what to do about JRuby.  I don't want to maintain the Java
> code for the JRuby version of Psych, but I want to make sure gem
> installs on JRuby work OK.  Do you have any suggestions?

There's two options.

1. The psych ext for JRuby is essentially five .java files that are
free-standing, other than needing SnakeYAML and JRuby present to
compile. They wouldn't be hard to dump into the gem, and we'd only
need to rebuild them once in a great while if they change (I can
maintain them for you).
2. We could just have psych available in JRuby's 1.8 mode (since it's
already shipped) and just make a dummy -java gem for the psych gem
that knows how to activate it through super-secret ways. That would
avoid conflicts between the gem and JRuby's shipped psych version.

I actually thought about doing the second option when this discussion
first came up. We'll have to fiddle with how the gem replaces syck in
1.8 mode so that it works right for both MRI and JRuby, but that
shouldn't be too tricky. And it would be trivial if users were
required to require 'psych-yaml', so the stdlib files don't step on
the gem files.

- Charlie

In This Thread

Prev Next