[ANN] JRuby 1.6.0.RC1 released

T

Thomas E Enebo

The JRuby community is pleased to announce the release of JRuby 1.6.0.RC1.

- Homepage: http://www.jruby.org/
- Download: http://www.jruby.org/download

JRuby 1.6.0.RC1 is the first release candidate of JRuby 1.6.0.

JRuby 1.6.0 is the largest release of JRuby to date. This release
fixes hundreds
of user issues and brings compatibility with Ruby 1.9.2 to a very high
level. We
have made Windows a primary supported platform by adding it as a continuous
integration platform, and JRuby 1.6 will provide Windows-based Ruby users w=
ith
the best experience yet. This release integrates experimental support for C
extensions based on Ruby's C API. And as with all major releases, we have
improved stability and performance across the board in response to real-wor=
ld
user input.

We encourage Ruby and JRuby users alike to test out 1.6.0.RC1 to help us sh=
ake
out remaining issues. It would be especially helpful if users would test o=
ut
1.9 mode (by passing --1.9 flag) to help us round out our 1.9.2 compatibili=
ty
before the final 1.6.0 release.

Major Features:

* Ruby 1.9.2 language and API compatibility
** Not implemented: Encoding::Converter, non-ASCII identifiers, ripper, fid=
dle
* Improved Ruby call performance
* Built-in profiler (--profile, --profile.graph)
* RubyGems 1.4.2
* RSpec no longer bundled
* Ruby-debug gem unbundled, since it installs correctly now
* C Extension support (experimental)
* RubyGems Maven support (preview)
* Improved compatibility and user experience on Windows
* jruby-complete.jar now includes 1.9 standard library
* Embedding API refinements
* Over 2000 commits and 265 issues resolved.


--=20
blog: http://blog.enebo.com=A0 =A0 =A0=A0 twitter: tom_enebo
mail: (e-mail address removed)
 
T

Thomas E Enebo

I should also mention due to a dependent project forgetting to push
their maven poms, we are unable to push RC1 until they do...So maven
users will have to wait a short amount of time until we get things
straightened out.

-Tom
 
T

Thomas E Enebo

Great! =A0Thanks a lot!

My first attempt at trying 1.9 mode failed miserably:

16:56:30 jruby.org$ vi /c/Temp/test.rb
16:56:42 jruby.org$ cat /c/Temp/test.rb

puts RUBY_VERSION

16:56:49 jruby.org$ jruby /c/Temp/test.rb
1.8.7
16:56:59 jruby.org$ jruby --1.9 /c/Temp/test.rb
Error opening script file: C:/Archives/jruby.org/c/Temp/test.rb (The
system cannot find the path specified)
16:57:06 jruby.org$

16:57:06 jruby.org$ uname -a
CYGWIN_NT-5.1 padrklemme2 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin

Somehow option --1.9 prevents recognition of the file although it
works without. =A0Any ideas?

Opened as an issue:
http://jira.codehaus.org/browse/JRUBY-5329

Looks like we are passing --1.9 through to point in our bash script
where we think the arg is a file...which it isn't...

You can work around this by setting the environment variable
JRUBY_OPTS=3D"--1.9" (e.g. JRUBY_OPTS=3D"--1.9" jruby /c/heh.rb).

We plan on fixing this for RC2.

-Tom
Kind regards

robert



--=20
blog: http://blog.enebo.com=A0 =A0 =A0=A0 twitter: tom_enebo
mail: (e-mail address removed)
 
R

Robert Klemme


Thanks for checking!
Looks like we are passing --1.9 through to point in our bash script
where we think the arg is a file...which it isn't...

You can work around this by setting the environment variable
JRUBY_OPTS=3D"--1.9" =A0(e.g. JRUBY_OPTS=3D"--1.9" jruby /c/heh.rb).

We plan on fixing this for RC2.

Nice! I have attached a script to the issue I am frequently using to
execute windows programs from cygwin prompts. Maybe you can -steal-
copy some ideas from it. :)

Kind regards

robert

--=20
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
 
T

Thomas E Enebo

RC1.

Thanks for checking!


Nice! =A0I have attached a script to the issue I am frequently using to
execute windows programs from cygwin prompts. =A0Maybe you can -steal-
copy some ideas from it. :)

Cool! Thanks Robert....hopefully we can steal-copy...I sort of wish
there was just some infrastructure for sh/bash launchers somewhere...

-Tom

--=20
blog: http://blog.enebo.com=A0 =A0 =A0=A0 twitter: tom_enebo
mail: (e-mail address removed)
 
T

Thomas E Enebo

Maven artifacts have now been pushed for Maven users. Sorry it took
this long to clear this up.

-Tom

I should also mention due to a dependent project forgetting to push
their maven poms, we are unable to push RC1 until they do...So maven
users will have to wait a short amount of time until we get things
straightened out.

-Tom




--=20
blog: http://blog.enebo.com=A0 =A0 =A0=A0 twitter: tom_enebo
mail: (e-mail address removed)
 
S

Stu

Hey support #!/usr/bin/env bash vs the non portable /bin/bash. not all
OSes put bash there.

Maven artifacts have now been pushed for Maven users. =A0Sorry it took
this long to clear this up.

-Tom

I should also mention due to a dependent project forgetting to push
their maven poms, we are unable to push RC1 until they do...So maven
users will have to wait a short amount of time until we get things
straightened out.

-Tom
 
O

Oliver Schad

Stu said:
Hey support #!/usr/bin/env bash vs the non portable /bin/bash. not all
OSes put bash there.

Not all OS have a bash. /bin/sh is existent per definition and portable.

Regards
Oli
 
S

Stu

I agree! I didn't look at the script to see if it had any bashisms.
/bin/sh would definitely be welcome and by all means the most
portable.

btw. /bin/bash definitely screws up rvm installed jruby in freebsd.

example:

% uname -a
FreeBSD hal9000.rubyprogrammer.net 8.1-RELEASE FreeBSD 8.1-RELEASE #2:
Thu Aug 12 17:55:19 CDT 2010
(e-mail address removed):/usr/obj/usr/src/sys/HAL9000 amd64

% rvm list

rvm rubies

ruby-1.8.7-head [ x86_64 ]
=> ruby-1.9.2-head [ x86_64 ]
rbx-head [ ]
ree-head [ x86_64 ]
ree-1.8.7-2010.02 [ x86_64 ]/home/stu/.rvm/scripts/list:
/home/stu/.rvm/rubies/jruby-1.5.5/bin/ruby: /bin/bash: bad
interpreter: No such file or directory

jruby-1.5.5 [ ]

This is a bug. It should be fixed.

~Stu
 
O

Oliver Schad

Stu said:
I agree! I didn't look at the script to see if it had any bashisms.

If there were bashisms it would be a bug because bash is not a portable
dependency.

Regards
Oli
 
C

Charles Oliver Nutter

I could see making the 'env' change, but so far we have been unable to
get a fully-functional sh-based 'jruby' executable. There's enough
bashisms we depend on that it's hard to make a conversion...and sadly
we're not sh experts, so we don't know the right way to make it
happen.

If there are sh experts out there, we would appreciate help coming up
with a portable sh-based 'jruby' script. We have a start, in jruby.sh
(may or may not be in the distributions), but it's missing things from
the bash version: cygwinisms, proper quoting of arguments, and so on.
I attempted to fix the quoting, but it seems sh is simply crippled
here, lacking the bash arrays we use for processing arguments. Help is
needed.

https://github.com/jruby/jruby/blob/master/bin/jruby.sh

The alternative which may help many of you would be to install the
'jruby-launcher' gem. This is a native executable that downloads,
installs, and replaces the 'jruby' command with a real binary. It
should route around any issues with bash, env, or sh.

- Charlie

I agree! I didn't look at the script to see if it had any bashisms.
/bin/sh would definitely be welcome and by all means the most
portable.

btw. /bin/bash definitely screws up rvm installed jruby in freebsd.

example:

% =C2=A0uname -a
FreeBSD hal9000.rubyprogrammer.net 8.1-RELEASE FreeBSD 8.1-RELEASE #2:
Thu Aug 12 17:55:19 CDT 2010
(e-mail address removed):/usr/obj/usr/src/sys/HAL9000 =C2=A0amd64

% =C2=A0rvm list

rvm rubies

=C2=A0 ruby-1.8.7-head [ x86_64 ]
=3D> ruby-1.9.2-head [ x86_64 ]
=C2=A0 rbx-head [ ]
=C2=A0 ree-head [ x86_64 ]
=C2=A0 ree-1.8.7-2010.02 [ x86_64 ]/home/stu/.rvm/scripts/list:
/home/stu/.rvm/rubies/jruby-1.5.5/bin/ruby: /bin/bash: bad
interpreter: No such file or directory

=C2=A0 jruby-1.5.5 [ =C2=A0]

This is a bug. It should be fixed.

~Stu
 
O

Oliver Schad

Charles said:
I could see making the 'env' change, but so far we have been unable to
get a fully-functional sh-based 'jruby' executable. There's enough
bashisms we depend on that it's hard to make a conversion...and sadly
we're not sh experts, so we don't know the right way to make it
happen.

If there are sh experts out there, we would appreciate help coming up
with a portable sh-based 'jruby' script.

I will take a look.

Regards
Oli
 
C

Charles Oliver Nutter

I will take a look.

Great, keep us posted. Feel free to open a bug to track it at
http://bugs.jruby.org. We can't move to just using the sh version
unless it can do everything the bash version does, and so far nobody's
been able to make that happen.

- Charlie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,787
Messages
2,569,630
Members
45,335
Latest member
Tommiesal

Latest Threads

Top