3 ms·
You don't need to stay in C. You can pop through to Rust or Golang or what have you.
by vorpalhex 4y ago
You don't need to stay in C. You can pop through to Rust or Golang or what have you.
- pjmlp 4y agoWhich begs the point why use Ruby at all, plenty of AOT/JIT languages with great IDE tooling to chose from.
- bin_bash 4y agoYou think Shopify should've written their backend in Rust? I really wonder if people saying this have ever used Rust. Ruby is great for developers of all skill to learn and be productive. Rust is fast as the devil but you have to be a damn good coder to learn it. Even then I doubt you can be as productive managing memory all the damn time. It's a low-level language great at low-level things. Ruby is a great option for Shopify. Rust is a great option for Firefox's Servo (though that project failed so maybe not).
- brodock 4y agocost of improving the language vs cost of hiring new people in different language, keep things stagnating for 10 years while rewrite is in progress, having to deal with talent exodus etc.
- kaba0 4y agoWhy do you put a high level managed language into the same category as one with a runtime and a GC? Like, why would you want 2 runtimes at the same time? Makes 0 sense.
- vorpalhex 4y agoWhich of those do you think is a high level managed language with a runtime aside from Ruby? Both of those are comparable to C and compiled. Rust is a bit lower level, Golang a bit closer to C++.
- kaba0 4y agoC and Rust is obviously a low level language, as well as C++. Go is the odd one in the list, you might as well say that one should write an external function in Java and call that from Ruby (which would be fair if Ruby would already run on the JVM, e.g. in case of TruffleRuby). Go has nothing at all to do with C++, C++ is a low level language, and an expressive one at that. Go is neither of those, it is managed and not good at expressiveness (by design).
- Lio 4y agoFYI Ruby does already run on the JVM since 2001 via JRuby. There's no need to wait for TruffleRuby (unless you want to). https://www.jruby.org/ https://www.jruby.org/
- kaba0 4y agoYeah, I’m aware, it was more just a tongue-in-cheek comment.
- vorpalhex 4y agoGolang is a perfectly fine choice here for performance sensitive code in place of C when paired with a less performant language like Python.
- kaba0 4y agoThen add JS, C#, Java, Haskell etc to the list as well, they all perform roughly in the same ballpark.