Ask HN: Recommendations for JRuby and MRI development
Im in the process of upgrading our rails application right now to rails4, and while Im working on all the gems, etc. I was hoping to be able go ahead and make it JRuby compatible - on the bet that it could be useful sometime down the road.
Well, I was hoping some of you Java/Ruby/JRuby expert hackers could give me some recommendations, links, really just any help would be really appreciated.
Heres some of the concrete problems Im having
1. How to deal with C-Ext Gems, If no alternative exists, this means I've gotta completely build a new one for JRuby, or is there a way to check RUBY_PLATFORM in the C-Ext Gem and require different files accordingly, whats the usual "best practice" here?
2. How to make Gems JRuby and MRI compatible. (should it be done in one Gem or should they be split into 2 gems?)
3. Best Practice for creating a JRuby & MRI supported Gemfile in the Rails app.
4. Dealing with Background Jobs / Concurrency. (big subject I know, but basically, are people using Resque with JRuby or just doing it with the threads provided by the JVM)
Also anything else you might have had problems with would interest me too.
Thanks in advance!