tag:blogger.com,1999:blog-4704664917418794835.post232537241269547586..comments2023-07-01T05:41:30.469-07:00Comments on Headius: JRuby Nailgun Support in 1.3.0headiushttp://www.blogger.com/profile/15717357218364947795noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-4704664917418794835.post-22945253195779992392009-05-13T14:01:00.000-07:002009-05-13T14:01:00.000-07:00For comparison when not using NG:$ time jruby -e &...For comparison when not using NG:<br><i>$ time jruby -e "puts 1"<br>1<br><br>real 0m5.357s<br>user 0m0.504s<br>sys 0m0.191s<br></i>That's a huge difference, and it should make JRuby web app deployments much better.<br><br>Thanks guys!<br><br>- MattMatt Aimonettihttp://merbist.comnoreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-79960178259961124652009-05-13T14:19:00.000-07:002009-05-13T14:19:00.000-07:00I'm still dreaming of someone to build a compr...I'm still dreaming of someone to build a comprehensive Java command line toolkit.<br><br>Nailgun, a fixed version of JLine, a reasonable command line options parser (all the ones out there are unmaintained and/or crap...).Martin Probsthttp://www.blogger.com/profile/03891982431110561954noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-46564676010085607682009-05-13T14:25:00.000-07:002009-05-13T14:25:00.000-07:00Martin: I'm an admin on Jline now, so if there...Martin: I'm an admin on Jline now, so if there's fixes you think need to get in jump on the ML and say so. We can put out a release.Charles Oliver Nutterhttp://www.blogger.com/profile/06400331959739924670noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-58752887812957771642009-05-13T23:28:00.000-07:002009-05-13T23:28:00.000-07:00Are there any known input/stdin problems? I can...Are there any known input/stdin problems? I can't get irb to run appropriately.mernenhttp://mernen.com/noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-77946911337267592792009-05-14T00:10:00.000-07:002009-05-14T00:10:00.000-07:00Mernen: Yes, it appears that jirb does not work at...Mernen: Yes, it appears that jirb does not work at the moment. We'll have to track down exactly what's wrong with it. When I try it, I see it launching stty (part of JRuby startup I think) and never getting any further...<br><br>Can you file a bug for it please?Charles Oliver Nutterhttp://www.blogger.com/profile/06400331959739924670noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-77797879015639673562009-05-14T01:22:00.000-07:002009-05-14T01:22:00.000-07:00Charles: that is very good news that JLine is main...Charles: that is very good news that JLine is maintained again. I'll file some bugs with SourceForge if you don't mind.<br><br>Charles/Mernen: <br>About the blocking stty call: I guess I ran into that bug here, too. The issue (at least the one I had) is that JLine is calling stty when initializing a terminal.<br><br>Now the issue is that in your nailgun setup, or in the case where you pipe input to a command ("cat foo | jruby --ng"), the input stream is not really terminal, and stty thus blocks. I can't quite find the correct man pages etc now, but I think that was the issue. On some UNICes (Linux in particular if I remember correctly), it is possible to give stty a parameter telling it not to block, but I can't quite find the reference.Martin Probsthttp://www.blogger.com/profile/03891982431110561954noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-21928050166927838902009-05-14T09:59:00.000-07:002009-05-14T09:59:00.000-07:00On sourceforge? Really?On sourceforge? Really?Robhttp://www.blogger.com/profile/12506070418261774838noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-88178274812281058202010-07-02T16:16:51.700-07:002010-07-02T16:16:51.700-07:00Hi Charles,I tried your suggestion. This time it i...Hi Charles,<br>I tried your suggestion. This time it is a different PC (Earlier I tried work PC, this time it is my dell laptop at home) I created a blank rails app through netbeans. Then got back to command line and repeated the experiment but this time I timed the complete wall time as you have suggested<br><br>But in the end there is still a huge difference in performance. Plain jruby seem to run circles around nailgun. <br><br>Jruby starts it in 10 seconds. And nailgun takes about a minute. After running ng ten times ng there is no big difference in the time taken.<br><br>with ng after about 10 runs....<br><br>C:\ngtest\RailsApplication1>jruby --ng -e 'puts Time.now; require "config/environment";puts Time.now'<br>Sat Jul 03 00:07:40 +0100 2010<br>Sat Jul 03 00:08:33 +0100 2010<br><br>Now without ng we get..<br><br>C:\ngtest\RailsApplication1>jruby -e 'puts Time.now; require "config/environment";puts Time.now'<br>Sat Jul 03 00:09:29 +0100 2010<br>Sat Jul 03 00:09:38 +0100 2010<br><br>So looks like I have hit a bug. Can you post the url for filing bugs please?sumuhannoreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-41760999836146295822010-07-03T14:23:49.108-07:002010-07-03T14:23:49.108-07:00Thanks for your help Charles. Just filed a bug!Thanks for your help Charles. Just filed a bug!sumuhannoreply@blogger.com