On 8/17/07, John Wells <[EMAIL PROTECTED]> wrote: > > Hi guys, > [...] > > - Could you design a Swing application in, say, Matisse, and then use > JRuby for implementing the business logic that drives that application? > i.e. instead of using something like Cheri to write a Swing app entirely > in Ruby...we would seek a hybrid approach (some Java, some Ruby).
No problem. Get some JRuby Runtime from java and launch it on some ruby script with some bound content More details here: http://www.headius.com/jrubywiki/index.php/Java_Integration - Will 1.1, which appears to be the targeted release for the compiler to be > finished, allow us to compile our entire application to bytecode? I'm coming > at this this morning from an intellectual property perspective. If we can go > all the way to bytecode and not distribute any *.rb files in our app, then > we should be able to obfuscate that bytecode or use something like Excelsior > Jet to compile to native. We have a few applications that we may distribute > outside of our company, and IP protection will be important. I took a look > at what ThoughtWorks did with Mingle...it appears they've encrypted the *.rb > files and modified JRuby to decrypt them. However, seems like it would be > relatively easy to get access to the point where the code is decrypted and > then stream it off, so I'm not overly confident in this approach. After the core team, JRuby classes would be VERY VERY tricky to un-obfuscate so JRuby could be a very good way to achieve Ruby obfuscation even if nobody should do closed source anymore (well at least that would be cool). - What can't you do with Java integration and JRuby today? No big limit as far as I know. I think if you extend a Java class in Ruby, then that class won't look extended from Java. Only Ruby will see those extensions. Of course changing an object from JRuby also changes it in Java, I was really talking about the classes here. I'm not really sure this limit remain true with the new compiler advances. Core team devs will reply you better here. - Why would you use Groovy over JRuby? Charity action. Well, no seriously, if your devs really fear new language constructs (but IMHO Ruby basics are easy to pick up) or if you really want to use mainly J2EE frameworks and you aren't really interested in Rails nor in other ruby frameworks. - Why would you use JRuby over Groovy? If you need to do efficient web dev and think Rails is great for that, if you like Ruby as a language to use, if you don't want to take too much risk with a language who has a very small community (Groovy vs Ruby communities). If you want to get rich and save the world from the bloatware attacks :) Cheers, Raphaël Valyi. Thanks for all your help guys. > > John > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > >
