4 ms·
Why is it many of the Ruby Communities have decided to argument Ruby with Rust, rather then something much more similar to Ruby like Swift or Crystal?
by ksec 10y ago
Why is it many of the Ruby Communities have decided to argument Ruby with Rust, rather then something much more similar to Ruby like Swift or Crystal?
- kibwen 10y agoLikely because people in the Ruby community tend to favor solutions that allow them to continue writing Ruby. In the context of the OP, Rust is being used only to augment Ruby, to complement it, not to outright replace it. Adopting Swift or Crystal would involve rewriting much more code from Ruby into the new language. Look at it this way: for these programmers, the choice isn't between Rust and Crystal, it's between Rust and C. And for people who've never written systems code before, Rust is enormously friendlier.
- ksec 10y agoSorry I wasn't being clear in the first post. I meant argument Ruby with Rust. Yes the Choice is pretty much something to replace / use instead of C. Which Swift as well as Crystal can be used in here too.
- kibwen 10y ago> Swift as well as Crystal can be used in here too Can you elaborate? I don't know of any way to compile Swift or Crystal code into a library that exposes a C-compatible ABI, and I can find no documentation as such.
- 15155 10y agoCross-platform support, lack of GC, direct C ABI interop.
- actsasbuffoon 10y agoThere is a proof of concept that attempts to allow Crystal extensions for Ruby: https://github.com/manastech/crystal_ruby https://github.com/manastech/crystal_ruby That said, it's just a proof of concept. It'll probably be a while before it becomes robust enough for regular users.