[jruby-dev] Bug cleanup in progress

2007-10-19 Thread Charles Oliver Nutter
I went through about a 120 bugs this evening, fixing a bunch, applying patches for a bunch, closing a bunch that were already working, backporting a few fixes, assigning some to specific versions or committers, and adding various comments. Those of you on the JIRA mailing list will have gotten

[jruby-dev] [jira] Created: (JRUBY-1456) AnnotationFormatError when running trunk jruby-complete --command irb

2007-10-19 Thread Charles Oliver Nutter (JIRA)
AnnotationFormatError when running trunk jruby-complete --command irb - Key: JRUBY-1456 URL: http://jira.codehaus.org/browse/JRUBY-1456 Project: JRuby Issue Type: Bug

RE: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread Peter K Chan
It isn't so simple. You can rename all the .rbj to .class, and JET may compile them successfully, but how do they get loaded up? The JRuby classloader will still be expecting .rbj and doing it's own defineClass() on bytecode, and not native code. Before we make any decision on this, I just want to

Re: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread John Wells
- "Charles Oliver Nutter" <[EMAIL PROTECTED]> wrote: > I appreciate your concerns, really. It's unfortunate that so many > tools and libraries expect .class, but that's the way it is. > > I'm still on the fence. You know...thinking about this a little more...I feel sort of silly for worryin

[jruby-dev] [jira] Created: (JRUBY-1455) Cloning ARGF in IRB results in a java.lang.ClassCastException

2007-10-19 Thread Alexey Verkhovsky (JIRA)
Cloning ARGF in IRB results in a java.lang.ClassCastException - Key: JRUBY-1455 URL: http://jira.codehaus.org/browse/JRUBY-1455 Project: JRuby Issue Type: Bug Environment:

Re: [jruby-dev] jruby-debug with Rails not stepping

2007-10-19 Thread Peter Brant
I've committed a fix for this in r311. When there were multiple threads, we were effectively always removing the current thread from the thread table with the result that the DebugContext was being recreated every time. (Looking at the original C code around the line I removed, I think it probabl

RE: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread Peter K Chan
The last time I used JET was 18 months ago, so this is not definitive. However, this is how it roughly works: The tool takes in a set of JARs (or classpaths), and attempt to compile all class files into some kind of native version. On deployment run, the JET virtual machine loads the native versio

Re: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread Charles Oliver Nutter
Peter K Chan wrote: Well, you could, couldn't you? The output is a legal Java class files, so you are free to load it up and use it safely in your Java class. You may need to initialize some JRuby constructs before you call the method on that class, but how is this different from any other API?

Re: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread Dudley Flanders
On Oct 19, 2007, at 4:45 PM, Peter K Chan wrote: Well, you could, couldn't you? The output is a legal Java class files, so you are free to load it up and use it safely in your Java class. You may need to initialize some JRuby constructs before you call the method on that class, but how is this

RE: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread Peter K Chan
Well, you could, couldn't you? The output is a legal Java class files, so you are free to load it up and use it safely in your Java class. You may need to initialize some JRuby constructs before you call the method on that class, but how is this different from any other API? Would you go around an

Re: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread Dudley Flanders
On Oct 19, 2007, at 4:06 PM, Peter K Chan wrote: Let me turn the table around: if the JRuby compiler/classloader can deal with any extension, why does it need a custom extension? :) Because if I see a .class file, that means I can load it up and use it safely in my Java class. The problem'

RE: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread Peter K Chan
Semantically, the extension shouldn't matter to those tools, but practically, I don't see how the existing tools would pick up a Java class file that doesn't end in .class (unless someone were to write an adapter for every such tool to treat a .rbj as a .class). Let me turn the table around: if th

Re: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread Charles Oliver Nutter
Peter K Chan wrote: Charlie, So, I see the semantic mismatch, but what is the technical reason for having a separate extension? I see some benefits of using the standard .class extension, such as being able to compile JRuby compiled bytecode into native code (e.g. using the JET c

Re: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread John Wells
- "Peter K Chan" <[EMAIL PROTECTED]> wrote: > Charlie, > So, I see the semantic mismatch, but what is the technical reason > for having a separate extension? > > I see some benefits of using the standard .class extension, such as > being able to compile JRuby compiled bytecode into native cod

[jruby-dev] jruby-debug with Rails not stepping

2007-10-19 Thread Chris Nelson
Guys, Well, I've spent a good amount time the past day or two trying to understand why stepping through code in a Rails controller doesn't work. It stops on my breakpoint ok, but when I try to step to the next line it just continues without stopping on the next line. I think I've finally isolate

Re: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread Dudley Flanders
On Oct 19, 2007, at 8:57 AM, pat eyler wrote: On 10/18/07, Evan Weaver <[EMAIL PROTECTED]> wrote: Python uses .pyc, for what it's worth. Rubinius is already using .rbc, I'd rather see .rbj for JRuby. Agreed. If actual looks-like-a-java-class-from-java .class files might be the output of a

Re: [jruby-dev] Compile to .rbj instead of .class?

2007-10-19 Thread pat eyler
On 10/18/07, Evan Weaver <[EMAIL PROTECTED]> wrote: > Python uses .pyc, for what it's worth. Rubinius is already using .rbc, I'd rather see .rbj for JRuby. > > Evan > > On 10/18/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: > > So yeah, the compiler's done, it can compile ahead-of-time to

[jruby-dev] [jira] Created: (JRUBY-1454) String#unpack("Ux") does not handle multi-bytes correctly

2007-10-19 Thread Tom Quellenberg (JIRA)
String#unpack("Ux") does not handle multi-bytes correctly - Key: JRUBY-1454 URL: http://jira.codehaus.org/browse/JRUBY-1454 Project: JRuby Issue Type: Bug Components: Core Cla

[jruby-dev] [jira] Created: (JRUBY-1453) All IO operations in JRuby need to mirror MRI's heavy use of select for all operations

2007-10-19 Thread Charles Oliver Nutter (JIRA)
All IO operations in JRuby need to mirror MRI's heavy use of select for all operations -- Key: JRUBY-1453 URL: http://jira.codehaus.org/browse/JRUBY-1453 Project: JRu

[jruby-dev] [jira] Created: (JRUBY-1451) jruby does not warn about uninitialized instance variables even when warnings are enabled

2007-10-19 Thread Evan Weaver (JIRA)
jruby does not warn about uninitialized instance variables even when warnings are enabled - Key: JRUBY-1451 URL: http://jira.codehaus.org/browse/JRUBY-1451 Projec

[jruby-dev] [jira] Created: (JRUBY-1452) TCPServer in the midst of accept should still be usable after being Thread.raise interrupted

2007-10-19 Thread Charles Oliver Nutter (JIRA)
TCPServer in the midst of accept should still be usable after being Thread.raise interrupted Key: JRUBY-1452 URL: http://jira.codehaus.org/browse/JRUBY-1452

[jruby-dev] [jira] Created: (JRUBY-1450) Builtin scripts don't establish a new frame and class when loaded

2007-10-19 Thread Nick Sieger (JIRA)
Builtin scripts don't establish a new frame and class when loaded - Key: JRUBY-1450 URL: http://jira.codehaus.org/browse/JRUBY-1450 Project: JRuby Issue Type: Bug Comp

[jruby-dev] [jira] Created: (JRUBY-1449) rake-based build system for JRuby

2007-10-19 Thread Travis Tilley (JIRA)
rake-based build system for JRuby - Key: JRUBY-1449 URL: http://jira.codehaus.org/browse/JRUBY-1449 Project: JRuby Issue Type: New Feature Components: Miscellaneous Affects Versions: JRuby 1.x