4 ms·
Taking the worst aspect of statically typed languages and mixing it with the worst part of dynamic schemes. I'll keep my Ruby, thanks.
by vinceguidry 2y ago
Taking the worst aspect of statically typed languages and mixing it with the worst part of dynamic schemes. I'll keep my Ruby, thanks.
- smac__ 2y agoMight be helpful to expand on what you mean specifically by the worst parts in your view and how Ruby's decisions provide better trade offs.
- vinceguidry 2y agoWorst part of static compiled languages is the ugly syntax. Worst part of dynamic systems is they aren't machine-understandable. It's a direct tradeoff that results from formal language theory. Ruby isn't an answer to this, in fact it lies so far on the dynamic side of the fence that the one IDE targeted at it is more of an impediment than a help. There is no answer to the tradeoff, though there are a few current attempts, like Zest. I personally don't need or want a computer to help me to understand the code I work on. It would be nice but not worth the need for a compile step. Pike looks like a compiled language, but doesn't even try to give you any of the advantages of machine understandability. It's purely cosmetic, why in the world would anyone want Python to look like C? If you want a dynamic language and don't want to deal with Ruby's... eccentricities, just use Python like everyone else. https://github.com/jamii/zest https://github.com/jamii/zest
- johnisgood 2y agoWhy not Crystal?
- vinceguidry 2y agoRuby has static type system if I ever want to use it.
- johnisgood 2y agoCrystal has static type-checking though. It is built into the language, unlike Ruby. Ruby is a dynamically typed language unlike Crystal. What am I misunderstanding here?
- vinceguidry 2y agoRuby's static type checker is built into the language, since 3.0. https://github.com/ruby/rbs https://github.com/ruby/rbs You can use others if you like. I have used Crystal before, pretty quickly realized that it was never going to catch up with Ruby and the compile step isn't really all that much of an advantage. The few scripts that I want speed for, I just use mruby. Embed Ruby in C, runs super fast. Don't get all the cool Ruby libs or runtime reflection. But a way better tradeoff. https://mruby.org/ https://mruby.org/
- johnisgood 2y agoOh, thank you!
- deleted 2y ago[deleted]