News for hackers. Stuff that matters.
Re:Shopify invests in research for Ruby at scale by vorpalhex on Monday May 16, 2022 @03:44PM (#31402335)
You don't need to stay in C. You can pop through to Rust or Golang or what have you.
Re:Shopify invests in research for Ruby at scale by kaba0 on Tuesday May 17, 2022 @05:35AM (#31407999)
Why 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.
Re:Shopify invests in research for Ruby at scale by vorpalhex on Tuesday May 17, 2022 @03:06PM (#31415071)
Which 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++.

Re:Shopify invests in research for Ruby at scale by kaba0 on Tuesday May 17, 2022 @03:42PM (#31415433)
C 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).

Re:Shopify invests in research for Ruby at scale by Lio on Wednesday May 18, 2022 @10:54AM (#31423557)
FYI 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/

Re:Shopify invests in research for Ruby at scale by kaba0 on Wednesday May 18, 2022 @11:52AM (#31424266)
Yeah, I’m aware, it was more just a tongue-in-cheek comment.
Re:Shopify invests in research for Ruby at scale by vorpalhex on Wednesday May 18, 2022 @11:30AM (#31424012)
Golang is a perfectly fine choice here for performance sensitive code in place of C when paired with a less performant language like Python.
Re:Shopify invests in research for Ruby at scale by kaba0 on Wednesday May 18, 2022 @11:49AM (#31424229)
Then add JS, C#, Java, Haskell etc to the list as well, they all perform roughly in the same ballpark.
Re:Shopify invests in research for Ruby at scale by pjmlp on Monday May 16, 2022 @04:02PM (#31402544)
Which begs the point why use Ruby at all, plenty of AOT/JIT languages with great IDE tooling to chose from.
Re:Shopify invests in research for Ruby at scale by bin_bash on Monday May 16, 2022 @04:31PM (#31402810)
You 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).

Re:Shopify invests in research for Ruby at scale by pjmlp on Tuesday May 17, 2022 @02:13AM (#31406619)
Where does "Plenty of AOT/JIT languages" imply Rust?
Re:Shopify invests in research for Ruby at scale by bin_bash on Tuesday May 17, 2022 @05:08AM (#31407770)
reading my comment from yesterday I don't know what I was thinking, apologies
Re:Shopify invests in research for Ruby at scale by brodock on Tuesday May 17, 2022 @11:48PM (#31419048)
cost 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.