[jruby-dev] [jira] Created: (JRUBY-5314) Classloader-sourced load will attempt to read a dir as a Ruby file

2011-01-06 Thread Charles Oliver Nutter (JIRA)
Components: Core Classes/Modules Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter Fix For: JRuby 1.6 This is pretty wacky. We must not be checking if a resource in classloader is a directory when doing a 'load'. Not sure why this wouldn't affect 'require

[jruby-dev] [jira] Created: (JRUBY-5311) Named capture-based local variables do not scope correctly

2011-01-05 Thread Charles Oliver Nutter (JIRA)
Classes/Modules, Parser, Ruby 1.9 Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Fix For: JRuby 1.6 Not sure if this is a gap in RubySpec, but the named capture support in JRuby is not scoping its variables correctly

[jruby-dev] [jira] Created: (JRUBY-5300) Heredocs do not appear to propagate file encoding

2011-01-04 Thread Charles Oliver Nutter (JIRA)
Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.6 Recent parser work exposed this problem. Heredocs within an encoded file do not appear to propagate the encoding. File: {noformat} # encoding: utf-8 x = EOD él piDió Un bUen café EOD {noformat

[jruby-dev] [jira] Created: (JRUBY-5301) [1.9] Unicode characters in regexp in unicode-encoded file do not parse

2011-01-04 Thread Charles Oliver Nutter (JIRA)
Components: Parser, Ruby 1.9 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Fix For: JRuby 1.6 File: {noformat} # encoding: utf-8 /#12371;/u {noformat} Error: {noformat} ~/projects/rails/activesupport #10132; jruby --1.9 -c

[jruby-dev] [jira] Created: (JRUBY-5302) [1.9] Rails Object#to_param appears to lose values for a Hash

2011-01-04 Thread Charles Oliver Nutter (JIRA)
: Core Classes/Modules, Ruby 1.9 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.6 Example (this should produce 10=20): {noformat} ~/projects/rails/activesupport #10132; jruby --1.9 -w -Ilib:test -ractive_support/core_ext/object

[jruby-dev] JRuby's stdlib fork

2011-01-03 Thread Charles Oliver Nutter
I realized today I never described how JRuby has been maintaining its copy of the Ruby stdlib. This email will do that. JRuby uses MRI's stdlib almost completely intact, but there are some differences. For example: * timeout.rb is replaced with a native version that uses timed executor pools

[jruby-dev] [jira] Created: (JRUBY-5284) Create full Exception hierarchy in Java types

2010-12-30 Thread Charles Oliver Nutter (JIRA)
Create full Exception hierarchy in Java types - Key: JRUBY-5284 URL: http://jira.codehaus.org/browse/JRUBY-5284 Project: JRuby Issue Type: Bug Reporter: Charles Oliver Nutter

[jruby-dev] [jira] Created: (JRUBY-5280) [1.9] Invalid unicode sequences should not be allowed in literal unicode regexp

2010-12-28 Thread Charles Oliver Nutter (JIRA)
Issue Type: Bug Components: Parser, Ruby 1.9 Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo This does not produce an error under JRuby: {noformat} $ ruby1.9 -v -S irb ruby 1.9.3dev (2010-10-09 trunk 29431) [x86_64

[jruby-dev] [jira] Created: (JRUBY-5273) [1.9] The . dir should not be in load path, but we also put it in CLASSPATH

2010-12-22 Thread Charles Oliver Nutter (JIRA)
Type: Bug Components: Ruby 1.9 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Fix For: JRuby 1.6 Ruby 1.9 no longer includes the . dir in the default load path. We can make this change, and JRUBY-5251 tracks the progress of that fix

[jruby-dev] [jira] Created: (JRUBY-5268) The 'singleton' library may have race conditions on init

2010-12-21 Thread Charles Oliver Nutter (JIRA)
Library Affects Versions: JRuby 1.5.6 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Fix For: JRuby 1.6 The 'singleton' library lazily initializes a single object instance once included into a given class. However, it's possible

[jruby-dev] [jira] Created: (JRUBY-5250) [RubySpec] [1.9] Parser appears to treat not() with incorrect precedence

2010-12-09 Thread Charles Oliver Nutter (JIRA)
: Bug Components: Parser Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Affects not specs in RubySpec. {noformat} 1) not() returns false if the argument is true FAILED Expected true to equal false /Users/headius/projects

[jruby-dev] [jira] Created: (JRUBY-5251) [RubySpec][1.9] Removing '.' from default load path causes specs not to run

2010-12-09 Thread Charles Oliver Nutter (JIRA)
Type: Bug Components: Ruby 1.9, RubySpec Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Fix For: JRuby 1.6 This is a peculiar one. If I fix the RubySpec language/predefined which checks that '.' is not part of the default load path, a simple

[jruby-dev] [jira] Created: (JRUBY-5242) [RubySpec] Numeric#step failures related to +-infinity

2010-12-07 Thread Charles Oliver Nutter (JIRA)
/Modules, RubySpec Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter {noformat} 2) Numeric#step with [stop, +infinity] does not yield when self stop FAILED Expected [100.0, 42.0] to equal [] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:175

[jruby-dev] [jira] Created: (JRUBY-5243) [RubySpec][1.9] Random#rand with Range considers Integers as Floats if one end point is a float

2010-12-07 Thread Charles Oliver Nutter (JIRA)
Project: JRuby Issue Type: Bug Components: Core Classes/Modules, RubySpec Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter {noformat} Random#rand with Range considers Integers as Floats if one end point is a float FAILED Expected 1 (Fixnum

[jruby-dev] [jira] Created: (JRUBY-5244) [RubySpec][1.9] Kernel#require_relative raises a TypeError if argument does not respond to #to_str

2010-12-07 Thread Charles Oliver Nutter (JIRA)
Project: JRuby Issue Type: Bug Components: Core Classes/Modules, RubySpec Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter {noformat} Kernel#require_relative raises a TypeError if argument does not respond to #to_str FAILED Expected

[jruby-dev] [jira] Created: (JRUBY-5233) Marshal format has changed in 1.9

2010-12-03 Thread Charles Oliver Nutter (JIRA)
: Charles Oliver Nutter Fix For: JRuby 1.6 There are several Marshal specs that show Ruby 1.9 has altered marshal format incompatibly with 1.8. In order to support Ruby 1.9, we'll probably need to implement the new format. Failing specs: fails:Marshal.dump dumps an object having ivar

[jruby-dev] [jira] Created: (JRUBY-5229) Interpreter is slower for microbenchmarks after backtrace merge

2010-12-02 Thread Charles Oliver Nutter (JIRA)
Components: Interpreter Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter Priority: Critical Fix For: JRuby 1.6 The new backtrace branch executes compiled code faster, but has a bit more overhead for interpreted method calls due to the extra Backtrace

[jruby-dev] [jira] Created: (JRUBY-5225) New method-name-mangling may not be JVM specification compliant

2010-12-01 Thread Charles Oliver Nutter (JIRA)
Components: Compiler Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Priority: Blocker Fix For: JRuby 1.6 For the new backtrace logic, I formalized the mangling of Ruby method names to JVM method identifiers

Re: [jruby-dev] Getting the wiki off Kenai: converting MediaWiki markup

2010-11-30 Thread Charles Oliver Nutter
doug...@theros.info wrote: Do we have some kenai dump available? On Tue, Nov 23, 2010 at 11:27 AM, Mike Dalessio mike.dales...@gmail.com wrote: Hello, On Tue, Nov 23, 2010 at 4:08 AM, Charles Oliver Nutter head...@headius.com wrote: We need to move the wiki off Kenai...not because there's

Re: [jruby-dev] Getting the wiki off Kenai: converting MediaWiki markup

2010-11-30 Thread Charles Oliver Nutter
On Tue, Nov 23, 2010 at 7:27 AM, Mike Dalessio mike.dales...@gmail.com wrote: I recently did something similar to help move the debian-ruby wiki, which used creole wiki markup. I extended mcbean (https://github.com/flavorjones/mcbean), which might be a flexible-enough option for you to build a

[jruby-dev] [jira] Created: (JRUBY-5213) --profile needs to dump even on ^C, other means of getting info, multi-thread

2010-11-25 Thread Charles Oliver Nutter (JIRA)
Type: Improvement Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Fix For: JRuby 1.6 --profile support was added in 1.5.5, but there are many improvements needed: * If the JVM exits with ^C, profile information

[jruby-dev] Autoclosing IO objects and JRUBY-5114

2010-11-24 Thread Charles Oliver Nutter
I committed an update to my fix for JRUBY-5114. Originally I had hoped we could get away with never autoclosing streams, since users SHOULD be closing them manually and not leaving them for GC to clean up. However, that behavior is expected by so many Ruby users, I backed off on that change.

[jruby-dev] Getting the wiki off Kenai: converting MediaWiki markup

2010-11-23 Thread Charles Oliver Nutter
We need to move the wiki off Kenai...not because there's anything wrong with Kenai itself, but it's sort of in limbo right now and new users can't add accounts. So I've started on a small project to help convert the MediaWiki formatting to something else, focusing on Markdown for now:

[jruby-dev] [jira] Created: (JRUBY-5205) Make hashy arguments faster

2010-11-22 Thread Charles Oliver Nutter (JIRA)
Reporter: Charles Oliver Nutter I started an attempt to make hash args faster by forcing them into a single-bucket hash (linear searching instead of hashing) and cutting out resize/rehash checks. The result is here: https://gist.github.com/711005 Unfortunately, this does slow down access

[jruby-dev] [jira] Created: (JRUBY-5207) RubyGems Maven support does not handle missing/bad poms/versions/artifacts gracefully

2010-11-22 Thread Charles Oliver Nutter (JIRA)
: JRuby Issue Type: Bug Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Fix For: JRuby 1.6 Pretty ugly error output when gemify can't get a list of artifact versions: https://gist.github.com/708640 In this case

[jruby-dev] [jira] Created: (JRUBY-5197) jruby.sh does not process quoted arguments properly

2010-11-19 Thread Charles Oliver Nutter (JIRA)
Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo We recently added bin/jruby.sh for folks on platforms where bash is unavailable or hard to get. Unfortunately, the script does not properly preserve quoted arguments. {noformat} ~/projects/jruby #10132; bin/jruby.sh -e

[jruby-dev] [jira] Created: (JRUBY-5198) jruby.sh is missing -Xprop.erty=value support

2010-11-19 Thread Charles Oliver Nutter (JIRA)
: Charles Oliver Nutter Assignee: Thomas E Enebo The jruby-launcher (binary 'jruby' executable) and jruby.bash both support using -Xprop.erty=value rather than -J-Djruby.prop.erty=value, but because of JRUBY-5197 I was unable to add it to jruby.sh. This needs to be done

[jruby-dev] [jira] Created: (JRUBY-5176) New backtrace logic does not generate (strange) caller() backtrace for eval'ed cases

2010-11-06 Thread Charles Oliver Nutter (JIRA)
Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter In MRI 1.8 and JRuby prior to the new backtrace logic, caller(0) from within an eval shows as its 2nd element (index 1) the *caller's* caller

[jruby-dev] [jira] Created: (JRUBY-5173) Maven RubyGems improvements

2010-11-02 Thread Charles Oliver Nutter (JIRA)
Maven RubyGems improvements --- Key: JRUBY-5173 URL: http://jira.codehaus.org/browse/JRUBY-5173 Project: JRuby Issue Type: Improvement Components: Extensions Reporter: Charles Oliver Nutter

[jruby-dev] [jira] Created: (JRUBY-5150) Escape hatch for JRUBY-5105: scripting java: unable to access non static final variables

2010-10-20 Thread Charles Oliver Nutter (JIRA)
: JRuby Issue Type: Bug Environment: jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-06-06 f3a3480) (Java HotSpot(TM) Client VM 1.6.0_18) [x86-java] Reporter: Roger Pack Assignee: Charles Oliver Nutter Fix For: JRuby 1.6 re: http://www.ruby

[jruby-dev] [jira] Created: (JRUBY-5104) Gem.path does not allow non-existent paths under JRuby

2010-09-27 Thread Charles Oliver Nutter (JIRA)
Affects Versions: JRuby 1.5.2 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.6 We monkey-path Gem.set_paths in defaults/jruby.rb to strip out non-existent paths. This was done to clean up the badly-split URL pieces

[jruby-dev] [jira] Created: (JRUBY-5092) Deadlock when using ConditionVariable

2010-09-16 Thread Charles Oliver Nutter (JIRA)
: JRuby 1.5.2 Reporter: Charles Oliver Nutter Fix For: JRuby 1.6 Scala ships some classes that have $ in their names (and perhaps inner-class class attributes) that are not inner classes and do not have inner classes. This breaks java.lang.Class.getDeclaredClasses, and causes

[jruby-dev] [jira] Created: (JRUBY-5093) ConditionVariable use causes thread deadlocks

2010-09-16 Thread Charles Oliver Nutter (JIRA)
Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.5.3, JRuby 1.6 Recently our builds started deadlocking because receiveMail (triggered from outside the thread) would lock first on the RubyThread instance and then try to interrupt the thread

[jruby-dev] [jira] Created: (JRUBY-5021) imap-over-ssl connections left to GC do not clean up completely

2010-08-18 Thread Charles Oliver Nutter (JIRA)
Components: Core Classes/Modules Affects Versions: JRuby 1.5.1 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.5.2 This script leaks badly: {noformat} require 'net/imap' 1.times.each do |i| puts connection #{i} imap = Net

[jruby-dev] [jira] Created: (JRUBY-5009) Constructors are not setAccessible'd like methods are

2010-08-12 Thread Charles Oliver Nutter (JIRA)
Integration Affects Versions: JRuby 1.5.1 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.6 We setAccessible methods when security policies allow it and they might need to be accessible (such as when dealing with protected or package

Re: [jruby-dev] Buildr build

2010-08-12 Thread Charles Oliver Nutter
Here's my concerns: * We've already started moving our build into Rake a bit by bit, and the bootstrapping question becomes apparent very quickly. In other words, we need JRuby (or Ruby) to run Buildr/Rake, but need Buildr/Rake to build JRuby. * Our Ant build has been a bitch to maintain, but now

[jruby-dev] [jira] Created: (JRUBY-4985) LOADED_FEATURES check should do .rb files and .so files separately

2010-08-02 Thread Charles Oliver Nutter (JIRA)
Components: Core Classes/Modules Affects Versions: JRuby 1.5.1 Reporter: Charles Oliver Nutter Fix For: JRuby 1.6 In working on the C ext support for JRuby, Tim Felgentreff discovered that we now fail a set of RubySpecs of the following form: {noformat} it loads

[jruby-dev] [jira] Created: (JRUBY-4926) FFI fails to load under GF V3 in some environments

2010-07-08 Thread Charles Oliver Nutter (JIRA)
Affects Versions: JRuby 1.5.1, JRuby 1.6 Reporter: Charles Oliver Nutter Tony Arcieri got his app to boot under GF V3's directory deployment, but when it tries to load Nokogiri it presents an FFI error: http://gist.github.com/raw/467442/9b8e9cce1e256ad86b6e855283014e156da93188/gistfile1

[jruby-dev] [jira] Created: (JRUBY-4917) Failures against Ruby 1.8 branch's test_bigdecimal

2010-07-01 Thread Charles Oliver Nutter (JIRA)
Affects Versions: JRuby 1.5.1 Reporter: Charles Oliver Nutter Priority: Minor There are several failures against test/bigdecimal/test_bigdecimal.rb from Ruby's ruby_1_8 branch. One of them (test_exception_overflow) runs forever (also needs to be fixed), so I applied

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-15 Thread Charles Oliver Nutter
: Charles Oliver Nutter [mailto:head...@headius.com] Sent: Sunday, June 13, 2010 6:28 PM To: dev@jruby.codehaus.org Subject: Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons On Sun, Jun 13, 2010 at 11:19 PM, Charles Oliver Nutter head...@headius.com wrote

[jruby-dev] Fwd: hg: mlvm/mlvm/jdk: added tests and CoroutineLocals

2010-06-14 Thread Charles Oliver Nutter
, so that if you run on an MLVM build with coroutine support, it will go the fast route instead. Let me know what you think and if you have any questions. -- Forwarded message -- From: Charles Oliver Nutter head...@headius.com Date: Mon, Jun 14, 2010 at 2:38 PM Subject: Re: hg

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-13 Thread Charles Oliver Nutter
On Sat, Jun 12, 2010 at 3:53 PM, Ola Bini ola.b...@gmail.com wrote: I do see the need to make these kind of changes, based on their performance impact. But I still have reservations (maybe because I'm one of the people who write code that usually sets instance variables on Java objects, and

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-13 Thread Charles Oliver Nutter
On Sun, Jun 13, 2010 at 2:54 AM, Wayne Meissner wmeiss...@gmail.com wrote: Could the weak ref wiring be done lazily, so the overhead is only incurred when someone sets an ivar on a java object? e.g. when a java object enters jruby, it gets a new lightweight wrapper, but when someone does an

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-13 Thread Charles Oliver Nutter
On Sun, Jun 13, 2010 at 11:19 PM, Charles Oliver Nutter head...@headius.com wrote: On Sun, Jun 13, 2010 at 2:54 AM, Wayne Meissner wmeiss...@gmail.com wrote: Could the weak ref wiring be done lazily, so the overhead is only incurred when someone sets an ivar on a java object? e.g. when a java

[jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-12 Thread Charles Oliver Nutter
One of the primary remaining perf challenges for JRuby is the cost of bringing Java objects into the Ruby environment. Currently, all objects get wrapped with a small wrapper object that implements IRubyObject. This is primarily because all our call logic requires receivers and arguments to all be

[jruby-dev] [jira] Created: (JRUBY-4849) Provide or update links to source/project, attribution, and license info for *all* libraries ship with JRuby

2010-06-05 Thread Charles Oliver Nutter (JIRA)
://jira.codehaus.org/browse/JRUBY-4849 Project: JRuby Issue Type: Improvement Components: Miscellaneous Affects Versions: JRuby 1.5.1 Reporter: Charles Oliver Nutter Fix For: JRuby 1.6 There's been various times people have gotten confused about where

Re: [jruby-dev] JRuby distributing GPL code ?

2010-06-05 Thread Charles Oliver Nutter
Thanks for the footwork on this Ketan :) Licensing is the suckiest, scariest, most annoying aspect of OSS, but hopefully we're trending toward clarity and away from confusion. If you ask me, I can't imagine there's a project in the world without some questionable content, and I wish we could all

Re: [jruby-dev] Re: New procedure for updating stdlib

2010-06-05 Thread Charles Oliver Nutter
sync_ruby in tools dir providing what you want to sync (tests|stdlib|all), the version that you want to do checkout (1_8_7|1_9_2) and the locations of the fork and the JRuby's directory. On Wed, May 12, 2010 at 11:29 AM, Charles Oliver Nutter head...@headius.com wrote: Ruby 1.9.2 has been

[jruby-dev] [jira] Created: (JRUBY-4841) CLONE -Memory Leak when extending Java class with additional Ruby instance variable

2010-06-02 Thread Charles Oliver Nutter (JIRA)
patchlevel 249) (2010-05-12 676) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_20) [x86_64-java] Reporter: Tobias Vogele Assignee: Charles Oliver Nutter Priority: Critical Fix For: JRuby 1.5.1 When a Ruby class extends a Java class and has additional

[jruby-dev] [jira] Created: (JRUBY-4818) RubySpec: net/http failures

2010-05-23 Thread Charles Oliver Nutter (JIRA)
: Charles Oliver Nutter {noformat} 1) Net::HTTPHeader#canonical_each when passed no block returns an Enumerator ERROR LocalJumpError: yield called out of block /Users/headius/projects/jruby/lib/ruby/1.8/net/http.rb:1267:in `each_capitalized' /Users/headius/projects/jruby/lib/ruby/1.8/net/http.rb:1266

[jruby-dev] [jira] Created: (JRUBY-4819) RubySpec: socket failures

2010-05-23 Thread Charles Oliver Nutter (JIRA)
Oliver Nutter {noformat} 10) Socket.for_fd given a file descriptor adopts that descriptor into a new Socket object ERROR IOError: Socket is not connected /Users/headius/projects/jruby/spec/ruby/library/socket/socket/for_fd_spec.rb:21 /Users/headius/projects/jruby/spec/ruby/library/socket/socket

[jruby-dev] [jira] Created: (JRUBY-4809) RubySpec: Float#to_s outputs the minimal, unique form necessary to recreate the value

2010-05-22 Thread Charles Oliver Nutter (JIRA)
: JRuby Issue Type: Bug Components: RubySpec Affects Versions: JRuby 1.5 Reporter: Charles Oliver Nutter {noformat} [java] 1) [java] Float#to_s outputs the minimal, unique form necessary to recreate the value FAILED [java] Expected 0.216115646363885 [java] to equal

[jruby-dev] [jira] Created: (JRUBY-4810) RubySpec: Kernel.load sets the enclosing scope to an anonymous module if passed true for 'wrap'

2010-05-22 Thread Charles Oliver Nutter (JIRA)
Project: JRuby Issue Type: Bug Components: RubySpec Affects Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Priority: Minor {noformat} [java] 2) [java] Kernel.load sets the enclosing scope to an anonymous module if passed true for 'wrap

[jruby-dev] [jira] Created: (JRUBY-4811) RubySpec: Kernel.srand accepts a Bignum as a seed

2010-05-22 Thread Charles Oliver Nutter (JIRA)
Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Priority: Minor {noformat} [java] Kernel.srand accepts a Bignum as a seed ERROR [java] RangeError: bignum too big to convert into `long' [java] /Users/headius/projects/jruby/spec/ruby/core/kernel/srand_spec.rb:37 [java

[jruby-dev] [jira] Created: (JRUBY-4812) RubySpec: Module#remove_class_variable failures

2010-05-22 Thread Charles Oliver Nutter (JIRA)
Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Priority: Minor {noformat} [java] 4) [java] Module#remove_class_variable removes class variable ERROR [java] NameError: class variable @@mvar not defined for #Module:01x19f21412 [java] /Users/headius/projects/jruby/spec/ruby

[jruby-dev] [jira] Created: (JRUBY-4805) Array#find can return the wrong value if it's mutated during iteration

2010-05-20 Thread Charles Oliver Nutter (JIRA)
Components: Core Classes/Modules Affects Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Priority: Critical This is a regression that caused problems for Buildr: {noformat} ~/projects/buildr #10132; jruby -e a = [1,2,3,4]; p a.find {|x| foo = x 2; a.delete

[jruby-dev] [jira] Created: (JRUBY-4791) IRB with readline leaks streams, leaving GC to clean them up

2010-05-13 Thread Charles Oliver Nutter (JIRA)
: Extensions Affects Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.6 This was reported in JRUBY-4767 in this comment: http://jira.codehaus.org/browse/JRUBY-4767?focusedCommentId=221014page

Re: [jruby-dev] Java compiled class in to loader

2010-05-13 Thread Charles Oliver Nutter
Take a look at JRubyClassLoader and consumers of it. Basically if you want to load raw bytecode, either from disk or in-memory, you need your own ClassLoader subclass that exposes the defineClass(byte[] ...) methods. From there, you can get Class instances and then construct objects, etc, etc. On

[jruby-dev] Re: New procedure for updating stdlib

2010-05-12 Thread Charles Oliver Nutter
copy of 1.9.2 stdlibs, so the ones that copied should be up to date with 1.9.2 head. On Fri, May 7, 2010 at 10:19 PM, Charles Oliver Nutter head...@headius.com wrote: FYI, a week or so ago I pushed a new technique for updating stdlib. The jruby account on github now has a fork of github.com/ruby

Re: [jruby-dev] jibernate

2010-05-12 Thread Charles Oliver Nutter
There's actually going to be a Ruby Summer of Code project to do datamapper + hibernate in some form. Perhaps you'd be interested in helping to mentor it? We will essentially get a SOC student to work on the implementation and we can help advise on the design. I saw you've sent a pull request to

[jruby-dev] [jira] Created: (JRUBY-4777) Missing LOG_NDELAY constant in syslog

2010-05-05 Thread Charles Oliver Nutter (JIRA)
Reporter: Charles Oliver Nutter Priority: Minor It's just not in syslog.rb.ffi: {noformat} diff --git a/lib/ruby/site_ruby/shared/ffi/platform/syslog.rb.ffi b/lib/ruby/site_ruby/shared/ffi/platform/syslog.rb.ffi index 57ce384..b49a432 100644 --- a/lib/ruby/site_ruby/shared

[jruby-dev] [jira] Created: (JRUBY-4778) Support the Oniguruma gem using Joni features

2010-05-05 Thread Charles Oliver Nutter (JIRA)
Reporter: Charles Oliver Nutter The Oniguruma gem basically provides a set of Ruby-land methods and classes to make it possible to use the Oniguruma regular expression engine in Ruby 1.8 (it's standard in 1.9). I have started a port of it in pure Ruby here: http://github.com/headius

[jruby-dev] [jira] Created: (JRUBY-4756) Interface that has abstract methods final in Ruby hierarchy break real class implementation

2010-04-26 Thread Charles Oliver Nutter (JIRA)
Project: JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.6 This is a problem with earlier versions of jruby-rack, which has

[jruby-dev] Threadpool test errors...

2010-04-23 Thread Charles Oliver Nutter
Looks like the improvements I committed last night to eliminate RubyThread leakage have caused the threadpool mode to break: http://ci.jruby.org/job/jruby-test-all/126/console I'll look at fixing that today, but I have to ask: is anyone using or interested in using threadpooled mode? I added it

[jruby-dev] [jira] Created: (JRUBY-4746) activerecord-jdbcpostgresql-adapter depends on nonexistent jdbc-postgres 8.4.701 gem

2010-04-23 Thread Charles Oliver Nutter (JIRA)
Issue Type: Bug Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo {noformat} ~/projects/jruby #10132; gem install activerecord-jdbcpostgresql-adapter ERROR: Error installing activerecord-jdbcpostgresql-adapter: activerecord-jdbcpostgresql-adapter

[jruby-dev] [jira] Created: (JRUBY-4743) Get a working test-indy target for testing against invokdynamic

2010-04-22 Thread Charles Oliver Nutter (JIRA)
Components: Compiler, Miscellaneous Affects Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Fix For: JRuby 1.6 JRuby has very basic invokedynamic support, and as a result the MLVM folks have been using it as a testbed for invokedynamic features. However we don't

Re: [jruby-dev] Re: [duby-dev] JRuby 1.5RC2 TODOs

2010-04-21 Thread Charles Oliver Nutter
for solaris, and the ppc-aix one. I also need to integrate the powerpc-darwin build using lipo or some other method. On 22 April 2010 09:56, Charles Oliver Nutter head...@headius.com wrote: I have just committed fixes for JRUBY-4724 and 4725. There's 13 remaining open issues. Who's working

[jruby-dev] [jira] Created: (JRUBY-4740) Slower than 1.9 for a specific deep copy marshalling benchmark

2010-04-20 Thread Charles Oliver Nutter (JIRA)
Components: Performance Affects Versions: JRuby 1.5.0.RC1 Reporter: Charles Oliver Nutter The benchmark is here: http://www.dorkalev.com/2010/04/about-deep-copy-performance-and-another.html The numbers in the post are almost certainly not using -server and they only iterate

[jruby-dev] [jira] Created: (JRUBY-4736) JI stores and searches superclasses' methods that are overridden by children

2010-04-19 Thread Charles Oliver Nutter (JIRA)
Type: Improvement Components: Java Integration Affects Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Priority: Minor Fix For: JRuby 1.6 For JRUBY-4734, we discovered that our JI subsystem is storing

[jruby-dev] [jira] Created: (JRUBY-4732) Clean up anything that calls dataGetStruct on a wrapped Java object to get the object

2010-04-18 Thread Charles Oliver Nutter (JIRA)
: JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.5 In 1.5, we made a lot of progress toward eliminating the double-wrapping

Re: [jruby-dev] please comment on gem-maven-plugin

2010-04-14 Thread Charles Oliver Nutter
often, especially in the current state and these releases I can use from some of my other projects. so there is no hurry here. with regards Kristian On Tue, Feb 2, 2010 at 7:22 PM, Charles Oliver Nutter head...@headius.com wrote: Wow! More inline! On Mon, Feb 1, 2010 at 11:11 PM, kristian

Re: [jruby-dev] please comment on gem-maven-plugin

2010-04-14 Thread Charles Oliver Nutter
Another oddity...most of the plugins can't be run without a pom.xml present? What can we do to change that? Many of them seem like you'd want them to work anywhere, like IRB... On Wed, Apr 14, 2010 at 1:03 PM, Charles Oliver Nutter head...@headius.com wrote: I'm playing with this a bit today

Re: [jruby-dev] Need eyes on a few bugs with tricky fixes

2010-04-09 Thread Charles Oliver Nutter
On Thu, Apr 8, 2010 at 11:37 AM, Joseph Athman jjath...@gmail.com wrote: Can I be a devil's advocate for not fixing the JRUBY-4677.  Wouldn't this just be fixing a symptom and not the real problem?  Isn't the real problem that the ActiveRecord JDBC adapter is throwing native Java exceptions

[jruby-dev] Need eyes on a few bugs with tricky fixes

2010-04-08 Thread Charles Oliver Nutter
I've fixed a couple really tricky bugs the past week and I'd like more eyes on the changes: threadContextMap leaks RubyThread on death of adopted thread http://jira.codehaus.org/browse/JRUBY-4264 Fixed in 364c41a on branch jruby-4264

[jruby-dev] [jira] Created: (JRUBY-4710) Problems importing classes in default package

2010-04-08 Thread Charles Oliver Nutter (JIRA)
: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.5 A regression probably introduced by my cleanup of java_import: {noformat} ~/projects/jruby #10132; jruby -J-cp . -rjava -e java_import Java::IntegerThing /Users/headius/projects/jruby/lib/ruby

[jruby-dev] Need eyes on the Exception rescues Java exceptions fix

2010-04-07 Thread Charles Oliver Nutter
I committed (and merged a fix for JRUBY-4677 in 323ba1e. For those of you who don't have all ~5000 JRuby bugs memorized, this is the issue where rescue Exception did not rescue non-Ruby Java exceptions. The fix works like it should, capturing Java exceptions for any rescue Exception, but it

[jruby-dev] [jira] Created: (JRUBY-4677) Java exceptions can't be rescued with rescue Exception

2010-03-26 Thread Charles Oliver Nutter (JIRA)
Integration Affects Versions: JRuby 1.4 Reporter: Charles Oliver Nutter Fix For: JRuby 1.5 You can rescue Java exceptions like you would Ruby exceptions: {noformat} ~/projects/jruby #10132; jruby -rjava -e begin; raise java.lang.NullPointerException.new; rescue

[jruby-dev] [jira] Created: (JRUBY-4669) Non-reified Ruby classes can't be to_java :object

2010-03-21 Thread Charles Oliver Nutter (JIRA)
Affects Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.5 I added the ability recently to to_java/toJava a RubyClass and get the actual native backing store's class (or in JI classes, to get the real

[jruby-dev] [jira] Created: (JRUBY-4671) jrubyc --java fails to java_require when class and script are named the same

2010-03-21 Thread Charles Oliver Nutter (JIRA)
Type: Bug Components: Java Integration Affects Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Assignee: Charles Oliver Nutter Fix For: JRuby 1.5 This doesn't work: foo.rb {noformat} require 'java' java_require 'foo' class Foo; end {noformat

Re: [jruby-dev] JRUBY-2518 seems to have returned

2010-03-19 Thread Charles Oliver Nutter
On Fri, Mar 19, 2010 at 12:43 PM, James Britt ja...@neurogami.com wrote: FWIW the spec example Logan posted for JRUBY-2518 does not add any directory entries, and the tests does not verify that they can be found. Perhaps there's a test or spec gap here we could fill? - Charlie

Re: [jruby-dev] null object returned by Ruby.getClass method

2010-03-18 Thread Charles Oliver Nutter
On Thu, Mar 18, 2010 at 10:56 AM, Ahmed Ragab Nabhan anab...@uvm.edu wrote: Hi Charlie, The main method defined in a ruby class is not generated properly by the jrubyc utility. I mean the function has different signature than expected by the JVM: public static Object main(Object args)

[jruby-dev] [jira] Created: (JRUBY-4658) delegate.rb is incredibly slow

2010-03-17 Thread Charles Oliver Nutter (JIRA)
delegate.rb is incredibly slow -- Key: JRUBY-4658 URL: http://jira.codehaus.org/browse/JRUBY-4658 Project: JRuby Issue Type: Bug Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo

[jruby-dev] [jira] Created: (JRUBY-4660) Removed masking causes failures on JRockit

2010-03-17 Thread Charles Oliver Nutter (JIRA)
: JRuby 1.5 Reporter: Charles Oliver Nutter Priority: Blocker Fix For: JRuby 1.5 With this commit: 1312e2915c5f0fcce07fa844acd11d3398d93faa we started seeing failures on JRockit: {noformat} [java] 1) [java] 'MemoryPointer argument Pointer passed correctly

[jruby-dev] [jira] Created: (JRUBY-4661) RubyArray.remove should not remove all occurrences

2010-03-17 Thread Charles Oliver Nutter (JIRA)
Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Priority: Minor Currently, RubyArray implements List.remove(Object) by searching for all occurrences of the object and removing all of them. However, the contract of List.remove is that it should remove the *first

Re: [jruby-dev] java.lang.NullPointerException at Ruby.getClass method

2010-03-17 Thread Charles Oliver Nutter
Up until a commit yesterday, a java_require line was *required* in the file so it would know what .rb file to load to prepare your MyRubyClass on the Ruby side of things. But I committed a change yesterday so that if there's no java_require, it will actually produce a free-standing .class. Can

Re: [jruby-dev] null object returned by Ruby.getClass method

2010-03-17 Thread Charles Oliver Nutter
On Tue, Mar 16, 2010 at 10:39 AM, Ahmed Ragab Nabhan anab...@uvm.edu wrote: I have used the simple utility jrubyc that compiles a .rb file into .java. When I try to run the resulting .class file, I got got an exception: $ jrubyc --java myruby.rb javac -d /Users/anabhan/Work/Workspace/JavaRuby

Re: [jruby-dev] Wrapping up 1.5

2010-03-15 Thread Charles Oliver Nutter
Hi Alistair, thanks for posting! Comments below... On Thu, Mar 11, 2010 at 12:34 AM, Alistair Bush ali_b...@gentoo.org wrote: May I suggest that the sweet spot for linux binaries is to have them packaged by there respective distro.  Linux users really should be using their package manager for

Re: [jruby-dev] Wrapping up 1.5

2010-03-11 Thread Charles Oliver Nutter
On Tue, Mar 9, 2010 at 10:19 AM, Thomas E Enebo tom.en...@gmail.com wrote: How big would the launcher be if we statically linked libc?  That is the only dynamic load library we have right?  A little extra size with zero dyn-linking issues may be worth it libc seems like one of those things

[jruby-dev] Formalizing compiled class names using SHA1 stuff

2010-03-08 Thread Charles Oliver Nutter
If you're interested in compiled Ruby code, please read :) One of the biggest problems in compiling Ruby code to Java classes has been deciding on a class name. Java is very strict about not allowing two pieces of code to load from the same classloader with the same package and class name. So in

Re: [jruby-dev] Wrapping up 1.5

2010-03-08 Thread Charles Oliver Nutter
On Mon, Mar 8, 2010 at 4:54 PM, David Calavera david.calav...@gmail.com wrote: I just did some modification to the Mac installer and I think now it could be ready for a first version. Here is the repo: http://github.com/calavera/jruby-mac-installer Basically, now it creates this directories

Re: [jruby-dev] Wrapping up 1.5

2010-03-08 Thread Charles Oliver Nutter
On Mon, Mar 8, 2010 at 10:26 AM, Nick Sieger nicksie...@gmail.com wrote: On Sun, Mar 7, 2010 at 2:50 PM, Charles Oliver Nutter head...@headius.com wrote: Ok, we want to go to RC real soon now. Here's a few things I think are still left unresolved that we need to deal with: * Native launcher

[jruby-dev] Eliminating weak references to descriptors (for fileno)

2010-03-07 Thread Charles Oliver Nutter
I'm pretty well convinced now that there's no reason we should be maintaining a weak map from fileno numbers (our pseudo-file descriptors) to ChannelDescriptor objects (or file-descriptor-like wrapper around a NIO Channel). Here's why: * If you open a file in C and never close it, it will never

[jruby-dev] Fwd: [Jruby-extras-devel] [ jruby-extras-Bugs-18604 ] activerecord-jdbc does not handle schemaname.tablename naming construct with mysql

2010-03-07 Thread Charles Oliver Nutter
Someone provided a patch for a two-year old bug that apparently still affects AR-JDBC 0.9.3... -- Forwarded message -- From: nore...@rubyforge.org Date: Sun, Mar 7, 2010 at 4:29 AM Subject: [Jruby-extras-devel] [ jruby-extras-Bugs-18604 ] activerecord-jdbc does not handle

Re: [jruby-dev] Eliminating weak references to descriptors (for fileno)

2010-03-07 Thread Charles Oliver Nutter
you opened IO in weird ways like using fileno to IO constructor? something like (not tested just remembered): a = File.new(foo) b = IO.new(a.fileno) I thought these were both supposed to have the same underlying IO crud? -Tom On Sun, Mar 7, 2010 at 7:58 AM, Charles Oliver Nutter head

[jruby-dev] Wrapping up 1.5

2010-03-07 Thread Charles Oliver Nutter
Ok, we want to go to RC real soon now. Here's a few things I think are still left unresolved that we need to deal with: * Bugs marked for 1.5 (44 of them). Obviously we're not going to get them all in, so we need to start whittling that list away, starting with the most-critical items. * jruby

[jruby-dev] [jira] Created: (JRUBY-4629) [1.9] prelude and gem_prelude should not be loaded as normal libraries

2010-03-07 Thread Charles Oliver Nutter (JIRA)
Components: Ruby 1.9 Affects Versions: JRuby 1.5 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Priority: Trivial Ruby 1.9 (and JRuby's 1.9 mode) loads two scripts on startup: prelude.rb and gem_prelude.rb (_prelude_internal_.rb

Re: [jruby-dev] Guidance on adding to JRuby

2010-03-05 Thread Charles Oliver Nutter
On Wed, Mar 3, 2010 at 7:36 PM, Brian McDevitt brian.p.mcdev...@gmail.com wrote: I went with the Jacob-based solution because it seems like the easiest route and the Jacob project is quite mature.  I suspect that once the method_missing is working for the Win32OLE class 90% of the integration

Re: [jruby-dev] Guidance on adding to JRuby

2010-03-05 Thread Charles Oliver Nutter
and fleshing out the rest of the impl. Feel free to pitch in. Brian On Mar 5, 2010, at 11:33 AM, Charles Oliver Nutter head...@headius.com wrote: On Fri, Mar 5, 2010 at 10:44 AM, Joseph Athman jjath...@gmail.com wrote: As far as the FFI version goes, I must say that I don't really know where

Re: [jruby-dev] Guidance on adding to JRuby

2010-03-05 Thread Charles Oliver Nutter
On Fri, Mar 5, 2010 at 3:54 PM, Brandon Hauff brandon.ha...@buckle.com wrote: Hi, I tested this out and found at least one issue.  I posted it on the issues page at github: http://github.com/bpmcd/win32ole/issues The logging appears to just be a System.out and probably wouldn't be the cause

Re: [jruby-dev] Maven-rubygems

2010-03-03 Thread Charles Oliver Nutter
On Tue, Mar 2, 2010 at 2:36 PM, kristian m.krist...@web.de wrote: Chalres best to contact me is via email or via github http://github.com/mkristian/jruby-maven-plugins just keep in mind I live in UTC+5:30 which is kind of a half day to the US. sometimes I hang around on irc as well . . .

<    1   2   3   4   5   6   7   8   9   10   >