4 ms·
i find that ruby combines the best features of perl and python in that respect. makes shell-like scripts really convenient and easy while still providing the me
by zem 6y ago
i find that ruby combines the best features of perl and python in that respect. makes shell-like scripts really convenient and easy while still providing the means to add structure.
- pmoriarty 6y agoBoth Ruby and Python are too slow for me, and neither is Lispy enough.
- TylerE 6y agonim! It has full macros, even! and it's super, super, fast
- pmoriarty 6y agoNim's not Lispy either, and macros alone are not enough. To make macro use feel natural because they're not much different than using the core language, the language needs to be homoiconic, which to my knowledge Nim is not. In any case, macros are not what draw me to Lisp, but its unparalleled combination of ease of use, readability, and power... along with 70 years of development and tooling. So I could just use a Lisp or Scheme, which I do. They can be plenty fast too (see Chicken, for instance, which -- like Nim -- compiles down to C).
- TylerE 6y agoIt's lispy in what it can do, not in having a rat's nest of parens, true. I'd love a concrete example of a macro you could express in lisp and not in nim. But it's macros absolutely operate on a syntax tree - refer to https://nim-lang.org/docs/tut3.html#introduction-the-syntax-tree https://nim-lang.org/docs/tut3.html#introduction-the-syntax-...
- mplewis 6y agoSlow in what regard, for what use case?
- mixmastamyk 6y agoPerformance is not a factor in shell scripts where the majority of the work is done by C-programs and the script merely shuttles parameters to the desired places. It's not as if bash were fast, mind you. Lisps already exist.