Re: [Jruby-devel] Java 1.6 Scripting Framework hooks

2006-04-25 Thread Thomas E Enebo
On Tue, 25 Apr 2006, Zach Moazeni defenestrated me: > Hello everyone, > > I was curious after reading a TSS article http:// > www.theserverside.com/news/thread.tss?thread_id=40096 if there were > any plans to incorporating jruby with the scripting hooks 1.6 provides? This project has s

[Jruby-devel] Java 1.6 Scripting Framework hooks

2006-04-25 Thread Zach Moazeni
Hello everyone, I was curious after reading a TSS article http:// www.theserverside.com/news/thread.tss?thread_id=40096 if there were any plans to incorporating jruby with the scripting hooks 1.6 provides? Just curious. Thanks, -Zach --

[Jruby-devel] Begging for scraps again

2006-04-25 Thread Charles O Nutter
Hey, I've got two days left on this install of Windows XP before I need to activate it. I'm looking for a legitimate copy, and I haven't got the $X required to go buy a retail copy of XP Pro. Anyone out there with access to a LEGITIMATE copy they want to donate or sell to me, or know of a place I c

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Thomas E Enebo
On Tue, 25 Apr 2006, Mirko Stocker defenestrated me: > On Tuesday 25 April 2006 19:44, Thomas E Enebo wrote: > > We don't and neither does C Ruby. ?Our parser is based on theirs and > > we both eat comments in the lexing process. > > Ok, would it be much work? Could you give me some ideas on how t

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Charles O Nutter
Thanks, and good luck! On 4/25/06, Mirko Stocker <[EMAIL PROTECTED]> wrote: > On Tuesday 25 April 2006 18:11, Charles O Nutter wrote: > > I hope you will consider contributing some or all of this back to RDT > > and JRuby; > > Of course we'll do that! > > > I would especially be interested in your

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Mirko Stocker
On Tuesday 25 April 2006 19:44, Thomas E Enebo wrote: > We don't and neither does C Ruby.  Our parser is based on theirs and > we both eat comments in the lexing process. Ok, would it be much work? Could you give me some ideas on how to do it? Unfortunately, I don't have much experience on these

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Mirko Stocker
On Tuesday 25 April 2006 18:11, Charles O Nutter wrote: > I hope you will consider contributing some or all of this back to RDT > and JRuby; Of course we'll do that! > I would especially be interested in your code that > reconstructs the source file from the AST since it would allow us to > cre

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Mirko Stocker
On Tuesday 25 April 2006 18:27, Werner Schuster (murphee) wrote: > I'm wondering: why don't you just generate TextEdits for the original > TextBuffer (file, or whatever) > instead of generating the code from the AST? > > Ie. calculate a bunch of replace operations (use the Eclipse TextEdit > APIs s

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Thomas E Enebo
On Tue, 25 Apr 2006, Charles O Nutter defenestrated me: > > I'd think this is as simple as creating a node to contain comments and > sticking them in there rather than skipping them, no? Perhaps we could > even hook into RI/Rubydoc subsystem to create DocNodes too... Yep. We create a new Comme

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Werner Schuster (murphee)
Charles O Nutter wrote: This shouldn't be difficult to do, and would give RDT another, cooler potential feature: RI/RubyDoc documentation on hover like Javadocs are with Java :) There's actually support for that in RDT already; if your mouse is over a symbol you'll get a Documentation Hover,

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Charles O Nutter
This shouldn't be difficult to do, and would give RDT another, cooler potential feature: RI/RubyDoc documentation on hover like Javadocs are with Java :) I'd think this is as simple as creating a node to contain comments and sticking them in there rather than skipping them, no? Perhaps we could ev

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Thomas E Enebo
On Tue, 25 Apr 2006, Mirko Stocker defenestrated me: > On Tuesday 25 April 2006 16:46, Thomas E Enebo wrote: > > > ? The positions are as follows: > > 1. index of first character for node > > 2. index of last character for node > > 3. start line for node > > 4. end line for node > > > > ? Just gu

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Charles O Nutter
I hope you will consider contributing some or all of this back to RDT and JRuby; I would especially be interested in your code that reconstructs the source file from the AST since it would allow us to create a sort of "uneval" feature that spits out code given already-parsed nodes. An obvious next

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Werner Schuster (murphee)
Mirko Stocker wrote: That's what I expected, too. For our project we have to rely on correct positions (or have to create a workaround for the wrong ones), because we'd like to reconstruct the sourcefile from the AST. I'm wondering: why don't you just generate TextEdits for the original Text

Re: [Jruby-devel] Backup anoncvs on headius.com

2006-04-25 Thread Marc Hadley
Works great, thanks ! Marc. On Apr 22, 2006, at 1:42 AM, Charles O Nutter wrote: I've set up a backup anonymous CVS site on headius.com that will update nightly with the repository dumps from sf.net. :pserver:[EMAIL PROTECTED]:/var/cvs/jruby Please let me know if you have any issues access

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Mirko Stocker
On Tuesday 25 April 2006 16:46, Thomas E Enebo wrote: >   This is probably an error in our positioning.  I got several important > positions working properly, but not all of them.  If you look at > test/testPositions.rb in our sourcecode, you can see the nodes I last > concentrated on.  If you unde

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Thomas E Enebo
On Tue, 25 Apr 2006, Mirko Stocker defenestrated me: > > Hi! > > I'm currently analyzing the JRuby AST to create refactorings for the RDT. To > analyze the AST, im just stepping through it with the Debugger, and i'm > wondering if the SourcePositions in the AST are correct. with this Class: > >

Re: [Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Charles O Nutter
The position holds both character indices and line indices. In your class Test, the InstAsgn starts at or around the 37th character, which is reflected in the position data. If you check the starting line in the position data, you should get the numbers you're expecting. On 4/25/06, Mirko Stocker

[Jruby-devel] SourcePosition in the AST

2006-04-25 Thread Mirko Stocker
Hi! I'm currently analyzing the JRuby AST to create refactorings for the RDT. To analyze the AST, im just stepping through it with the Debugger, and i'm wondering if the SourcePositions in the AST are correct. with this Class: class Test def initialize @field = "test" end end the InstA

RE: [Jruby-devel] JRuby and GigaSpaces

2006-04-25 Thread Guy Korland
Hi Charles, I'm glade to hear that you find GigaSpaces very interesting and we are also exciting from the vast amount of options it opens. We also think that the connection between the two platforms is so natural. I think (if you're interesting) that we should push more in this direction and even