Is there an advantage to running JRuby if you don't know any Java?

后端 未结 5 642
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 00:46

I\'ve heard great things about JRuby and I know you can run it without knowing any Java. My development skills are strong, Java is just not one of the tools I know. It\'s a mass

5条回答
  •  醉酒成梦
    2021-02-04 01:13

    JRuby is one of the few implementations that uses native threads. So if you care to do some multithreading, go for it.

    As far as hosting is concerned, you have to put your app in some sort of java container, which I personally find to be far less straightforward than using something like passenger (for Rack apps)

    I use JRuby for an app as we communicate over JMS and it works fine, but if I wasn't using any Java I would certainly stick to CRuby. My biggest beef is that in testing, running tests takes forever with JRuby as you have to spin up a VM each time you run them. This makes it a lot harder to TDD as it's a significant hit on your testing time.

提交回复
热议问题