News for hackers. Stuff that matters.
Re:From Rails to Clojure, Then to Java, Then Back to Rails by kureikain on Thursday March 22, 2018 @02:29AM (#16646259)
What's wrong with this? What is your expecation?
Re:From Rails to Clojure, Then to Java, Then Back to Rails by pimeys on Thursday March 22, 2018 @05:57AM (#16647230)
Depends of course what kind of systems you're building. Just the footprint of an integer is too large in Ruby to do anything fast. I'd expect features such as `days` to be a part of Date library that holds an interface accepting certain kind of objects giving dates back. If I don't need these features, I don't want to hold the functionality at all inside an integer.
Re:From Rails to Clojure, Then to Java, Then Back to Rails by blackmagevivi9 on Friday March 23, 2018 @02:06AM (#16655505)
Exactly. Right tool for the job. Ruby doesn't give you fast. That's part of its trade-off. Want web apps and scripts? Go Ruby. Want fast? Control over everything? Go native: C/C++. But also become trench into the swamp of memory leaks, stomps, corruption. Fun times.
Re:From Rails to Clojure, Then to Java, Then Back to Rails by pimeys on Friday March 23, 2018 @03:06PM (#16661545)
Or use Rust/Haskell/OCaml/Clojure.