4 ms·
We're on the same page here, especially re #2. And I think it's high time I give JRuby a real shot. As for #4, I'm all for those mentioned, low-level (and fasc
by whistlerbrk 12y ago
We're on the same page here, especially re #2. And I think it's high time I give JRuby a real shot.
As for #4, I'm all for those mentioned, low-level (and fascinating) projects. And for projects surrounding programming paradigms e.g. Celluloid, EM... I was really referring to libraries, but on second thought #4 isn't that a big of an issue in Ruby-land, it's mostly a JS world problem.
I suppose my particular fear is that instead of re-organizing code within Rails as an example, the community will opt to make another new framework instead, increasing fragmentation.
- cheald 12y agoThis is somewhat off topic, but since you mention wanting to try JRuby, I'll give you my spiel. :) I'm a recent JRuby convert (I've only started using it heavily in the last year), but I can't say enough good about it. It's mature, reliable, and really easy to work with. The Java code is extremely easy to read (especially compared to MRI), and integrating Java libraries with your Ruby code is trivial - you don't even have to write bindings, you just require a jar and then start referencing constants. This really shines in places where CRuby has lagged behind - places like numeric computing and natural language processing. The library support is iffy at best, and usually the answer is "use python", but when you can just drop in a Java library and call it a day, stuff gets really fun. Profiling a live JRuby app with JMX and jvisualvm is amazing - I can attach to a live, remote production instance and perform heap dumps, start sample profiling, or even execute Ruby code! Going to back to fix our MRI apps has left me very discontent with the state equivalent tooling :) My primary complaint with Java is that it's verbose and lends itself to overcomplex design, but I absolutely love that I can write high-performance code in Java and then write all my business logic in Ruby - it's the best of both worlds. To illustrate, I wrote Manticore (https://github.com/cheald/manticore https://github.com/cheald/manticore) to solve my persistent discontent with the state of HTTP clients in Ruby; the Apache Commons HTTP components are extremely comprehensive, fast, powerful, etc, but the API is horrific. I spent a bit of time wrapping them up in a nice idiomatic Ruby interface, and ended up with an HTTP client that destroys the pure Ruby clients for features and performance, and even beats out even Typhoeus (which is really just a set of libcurl bindings) - and all in only 700 lines of code! Finally, the JRuby community is so welcoming and inclusive. #jruby on Freenode is populated with all the project core members, and they are very willing to answer questions and help out. headius (Charles Nutter) has turned around bugfixes for issues in minutes (in addition to being extremely friendly and helpful), and they as a group have made it very easy for me to contribute to the project. I've gotten a few dozen pull requests accepted into master in the last few months, and thoroughly enjoy working on it. It has easily been one of my best experiences in open source.