On 7/12/06, Evan Buswell <[EMAIL PROTECTED]> wrote:
That's good to hear. I know the code is in there, but I haven't ever tried to exercise it lately. I'm glad it's working so well.
As mentioned earlier, I have an idea to solve preparsing. It will require modifying/extending the AST though, so it would break some peoples' stuff. Parsing is a one-time not-so-huge hit, so it's not a high priority.
I totally agree. I think it's tres goofy that it does this manual search in IRB. I really, really want IRB to run inside a jar. That said, I don't have any other specific instances of this...so there's a slim chance we're lucky and that's the only one. I wouldn't count on it though.
At any rate it's worth raising it to ruby-core, probably with an alternative way to do it. If anyone wants details about where the code is (and would like to come up with a better way) I can point you toward it.
-- I have been running my bsf-called script and a bunch of includes in a
jar for quite some time, so at least for specific applications this
seems to work fine.
That's good to hear. I know the code is in there, but I haven't ever tried to exercise it lately. I'm glad it's working so well.
bsf calls init.rb, which adds "./lib" to the include path. I throw all
library files my application uses (found via some recursive grep
magic...) into "lib" dir under the jar root, and Jruby finds them just
fine, preparsed or not (currently not, as there are issues with it).
As mentioned earlier, I have an idea to solve preparsing. It will require modifying/extending the AST though, so it would break some peoples' stuff. Parsing is a one-time not-so-huge hit, so it's not a high priority.
However, I'm of course only running a subset of the standard libs, and
like Charles mentioned, there may be others which go nuts.
If its not too many libraries and the fix looks easy, it might be worth
filing bugs with Ruby. Finding an include through manual file lookup
stuff seems like its pretty bad programming practice anyway.
I totally agree. I think it's tres goofy that it does this manual search in IRB. I really, really want IRB to run inside a jar. That said, I don't have any other specific instances of this...so there's a slim chance we're lucky and that's the only one. I wouldn't count on it though.
At any rate it's worth raising it to ruby-core, probably with an alternative way to do it. If anyone wants details about where the code is (and would like to come up with a better way) I can point you toward it.
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ www.jruby.org
Application Architect @ www.ventera.com
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel