tag:blogger.com,1999:blog-4704664917418794835.post6277985328313660080..comments2023-07-01T05:41:30.469-07:00Comments on Headius: Busy Week: JRuby with Android, Maven, Rake, C exts, and More!headiushttp://www.blogger.com/profile/15717357218364947795noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-4704664917418794835.post-64211848375640063712010-01-08T17:12:47.154-08:002010-01-08T17:12:47.154-08:00As I'm looking into Android dev, this is prett...As I'm looking into Android dev, this is pretty interesting. I'd heard reports that while precompiled Clojure works (as long as you don't use eval), the boot times were lousy, making it an iffy choice for Android. This actually had me curious about the use of Duby instead, since presumably JRuby would have the same boot time issues, though if that's not true I'd be thrilled. Have you tried Duby on dalvik yet?Philhttp://www.blogger.com/profile/17329476802397229445noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-90357469557580408362010-01-08T17:18:35.072-08:002010-01-08T17:18:35.072-08:00Wow, impressive work Charles! Great to see JRuby i...Wow, impressive work Charles! Great to see JRuby improving its integration with the Java world.broadyhttp://chrisbroadfoot.id.au/noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-70803834585991674732010-01-11T09:37:33.597-08:002010-01-11T09:37:33.597-08:00I haven't had time to explore jruby more than ...I haven't had time to explore jruby more than in IRB...to take an explicit example: Will it be posible to run - say - HornetsEye ruby gem on jruby + android in the near future?grimenhttp://www.blogger.com/profile/18170503252509408174noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-80450543417432510642010-01-11T23:04:48.842-08:002010-01-11T23:04:48.842-08:00@Charles: OK, fascinating. The reason I ask is tha...@Charles: OK, fascinating. The reason I ask is that I might do my master thesis this spring on augmented reality, and I elaborated with the idea of using jruby on android. =) Follow-up question: Is there any roadmap for getting jruby + android rock 100%? With that I mean "stable enough for development at least".grimenhttp://www.blogger.com/profile/18170503252509408174noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-27067135121805736222010-01-12T17:55:48.069-08:002010-01-12T17:55:48.069-08:00grimen: In my head, there's a roadmap...but fi...grimen: In my head, there's a roadmap...but finding time and resources to work on it is rather tricky. There's a lot of stuff happening with JRuby right now, and Android is one of many projects. I really need more help to flesh it out and get it ready for prime time. Maybe you can help? :)Charles Oliver Nutterhttp://www.blogger.com/profile/06400331959739924670noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-64936969358512978082010-01-13T04:15:11.178-08:002010-01-13T04:15:11.178-08:00@Charles: More specifically...what would you want ...@Charles: More specifically...what would you want help with? I'm experienced in Ruby (and Java programming...well haven't touched in 2 years now), but if we talking c coding my passion is sort of non-existing. =)<br><br>P.S. I'm busy now with Rails, but when it's time for master thesis (in Mars at earliest) I need to do some research on android/jruby so maybe I ould help out somehow by then.grimenhttp://www.blogger.com/profile/18170503252509408174noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-17325630443183039912010-01-13T21:39:25.775-08:002010-01-13T21:39:25.775-08:00grimen: I think it would be useful to start playin...grimen: I think it would be useful to start playing with JRuby's current compiler and try to precompile Ruby code and get it to load on Android. There are some challenges, like the extra code it generates for method bindings, but I don't think there's anything we can't overcome. If you started playing with it and hit specific roadblocks, it would help me prioritize some of the heavy lifting on the JRuby side.Charles Oliver Nutterhttp://www.blogger.com/profile/06400331959739924670noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-52560414361019398352010-01-14T10:04:34.436-08:002010-01-14T10:04:34.436-08:00@grimen: HornetsEye makes full use of the Ruby C-e...@grimen: HornetsEye makes full use of the Ruby C-extension API (including memory allocations with 'xmalloc'). Furthermore it makes use of libJIT and Video4Linux. I'm quite sure that the current version of HornetsEye will <b>not</b> run on Android without modifications.Jan Wedekindhttp://www.blogger.com/profile/00554109214750252562noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-77233368519955070702010-01-14T23:34:23.213-08:002010-01-14T23:34:23.213-08:00Jan: That is unfortunate. When will they learn!Jan: That is unfortunate. When will they learn!Charles Oliver Nutterhttp://www.blogger.com/profile/06400331959739924670noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-21465057277154338612010-01-15T02:55:21.091-08:002010-01-15T02:55:21.091-08:00@Jan: OK, thanks for the heads up. Will have to us...@Jan: OK, thanks for the heads up. Will have to use some java library I guess.grimenhttp://www.blogger.com/profile/18170503252509408174noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-91553253862711688392010-01-16T08:40:26.188-08:002010-01-16T08:40:26.188-08:00..and yea, thanks for the Marvin link, it might be.....and yea, thanks for the Marvin link, it might become very useful.grimenhttp://www.blogger.com/profile/18170503252509408174noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-89473276930350242342010-01-16T11:23:09.843-08:002010-01-16T11:23:09.843-08:00Jan: Perhaps you would be interested in helping us...Jan: Perhaps you would be interested in helping us with the C extension shim for JRuby?<br><br>Phoet: Yes, we know of buildr, and it's a great tool if you want to (and are able to) follow the maven conventions. But it does not provide full two-way integration between ant and rake, which we would like to have out of the box for JRuby. I could see buildr being reworked to run atop JRuby's rake/ant integration in the future, or JRuby integrating maven logic more directly, but our current intention is to provide the lowest levels of integration without imposing project structure on users.Charles Oliver Nutterhttp://www.blogger.com/profile/06400331959739924670noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-45248583588634222112010-01-16T14:59:56.055-08:002010-01-16T14:59:56.055-08:00@charles I was afraid someone would say that ;)I w...@charles I was afraid someone would say that ;)<br>I would be interested in getting HornetsEye running with JRuby. I'll put it on my TODO list. At the moment however I want to implement lazy computation in order to get sufficient performance for doing real-time feature matching and hopefully 3D object recognition in the end.Jan Wedekindhttp://www.blogger.com/profile/00554109214750252562noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-38341692123294776122010-01-19T08:44:35.892-08:002010-01-19T08:44:35.892-08:00Could you expand on this: "JRuby is just abou...Could you expand on this: "JRuby is just about the only mainstream JVM languge that can create *new* code while running on the device"<br><br>Is jruby doing something different to jython and groovy here?comment_bothttps://me.yahoo.com/comment_botnoreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-42624811222728714482010-01-19T09:01:00.482-08:002010-01-19T09:01:00.482-08:00Nice work, I managed to get Ruboto IRB working per...Nice work, I managed to get Ruboto IRB working perfectly on the emulator.<br><br>Sorry if I'm missing something obvious, but is it possible to execute ruby scripts with the application or are we limited to running in interactive mode?Pascal Chatterjeehttp://www.blogger.com/profile/17751205415094899461noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-41536710183920709362010-01-19T13:13:17.900-08:002010-01-19T13:13:17.900-08:00comment_bot: Neither Jython nor Groovy nor Clojure...comment_bot: Neither Jython nor Groovy nor Clojure nor Scala have an interpreted mode, which means all code they execute has to be compiled to JVM bytecode. Since the Dalvik VM on the device does not run JVM bytecode (it precompiles to Dalvik bytecode when installing) none of those languages can create new code while on the device.<br><br>Rhino (JavaScript) does have an interpreter, but I'm not sure anyone's using it for Android stuff.Charles Oliver Nutterhttp://www.blogger.com/profile/01770148973571270871noreply@blogger.comtag:blogger.com,1999:blog-4704664917418794835.post-39209230915536562952010-01-23T14:46:52.863-08:002010-01-23T14:46:52.863-08:00Rake/Ant integration and Maven gem can simplify se...Rake/Ant integration and Maven gem can simplify several hybrid Ruby/Scala/Java tools I work on. Definitely worth having around. Many thanks!Michaelnoreply@blogger.com