Static Typing for Ruby: Adopting Sorbet at Scale
shopify.engineering
Static Typing for Ruby: Adopting Sorbet at Scale
1–10 of 72 posts
Re: Static Typing for Ruby: Adopting Sorbet at Scale
#2Re: Static Typing for Ruby: Adopting Sorbet at Scale
#3The second part of this two-part blogpost is here: https://shopify.engineering/adopting-sorbet
Re: Static Typing for Ruby: Adopting Sorbet at Scale
#4I think Ruby was an excellent replacement for Lua to do ML, once Torch ran out of steam due to LuaJIT memory limitations. However, historically, MRI Ruby was slow and problematic.
Personally, I prefer Ruby to Python. Ruby is very close to Smalltalk, with some ideas from Perl and Lisp.
Re: Static Typing for Ruby: Adopting Sorbet at Scale
#5Re: Static Typing for Ruby: Adopting Sorbet at Scale
#6I wish this had been available years ago! I think Ruby was an excellent replacement for Lua to do ML, once Torch ran out of steam due to LuaJIT memory limitations. However, historically, MRI Ruby was slow and problematic. Personally, I prefer Ruby to Python. Ruby is very close to Smalltalk, with some ideas from Perl and Lisp.
Why problematic?
On the slowness, I would agree that Ruby is slower than many languages, but as an interpreted language this is -up to a certain point- by design, or at least an accepted part of the trade-off one accepts when he takes a programming language. Moreover, Ruby's natural competitor is Python, not -say- Clojure; and I wouldn't that Ruby is significantly slower than Python.
Re: Static Typing for Ruby: Adopting Sorbet at Scale
#7Isn't crystal lang trying to do the same thing? Why not join forces?
Re: Static Typing for Ruby: Adopting Sorbet at Scale
#8Isn't crystal lang trying to do the same thing? Why not join forces?
Re: Static Typing for Ruby: Adopting Sorbet at Scale
#9The second part of this two-part blogpost is here: https://shopify.engineering/adopting-sorbet
Happy to answer any questions here about our process, results or tools!
Also, maybe I missed it, but Sorbet has a very fleshed out plugin for VSCode but that's about it. How was the experience getting people who don't use VSCode to integrate it into their workflow?
Re: Static Typing for Ruby: Adopting Sorbet at Scale
#10I wish this had been available years ago! I think Ruby was an excellent replacement for Lua to do ML, once Torch ran out of steam due to LuaJIT memory limitations. However, historically, MRI Ruby was slow and problematic. Personally, I prefer Ruby to Python. Ruby is very close to Smalltalk, with some ideas from Perl and Lisp.
> MRI Ruby was slow and problematic. Why problematic? On the slowness, I would agree that Ruby is slower than many languages, but as an interpreted language this is -up to a certain point- by design, or at least an accepted part of the trade-off one accepts when he takes a programming language. Moreover, Ruby's natural competitor is Python, not -say- Clojure; and I wouldn't that Ruby is significantly slower than Pyth…