4 ms·
Counterpoint: Rust. Seems to be taking off (difficult to predict the long-term, of course), but Rust is excellent at functional paradigms and Brings many advan
by TwentyPosts 2y ago
Counterpoint: Rust.
Seems to be taking off (difficult to predict the long-term, of course), but Rust is excellent at functional paradigms and Brings many advancements of functional languages to the people.
- ldjkfkdsjnv 2y agoRust is still extremely niche, large scale mission critical software that runs big tech is not written in Rust
- rcxdude 2y agoit's getting built into some pretty widepread applications: firefox is a big one, it also runs a lot of the super-low-level parts of dropbox. I'd say it's overtaken haskell for adoption at least.
- SoftTalker 2y agoBecause it's really better, or because it's trendy?
- chuckadams 2y agoIt's more practical. I love me some Haskell, but you're never going to write Servo in it.
- TwentyPosts 2y agoLinux Kernel, Firefox, Dropbox, Discord, Cloudflare, Windows, AWS. Idk, looking pretty good to me, unless you think none of these count. Considering everyone seems to hate C++ nowadays, and Rust looks like the only existing alternative. Hard to imagine the trend won't continue.
- akira2501 2y agoRust? Why not just JavaScript? It's far more functional than Rust and is much more widely used and deployed.
- ovyerus 2y agoJS is really good at FP, but it doesn't have any real concept of function purity and isolating side effects. Rust has constant functions, for one: https://doc.rust-lang.org/reference/const_eval.html https://doc.rust-lang.org/reference/const_eval.html
- akira2501 2y agoDoes rust actually have pure functions? Also, I'm suspicious of the claim that compile time evaluation makes the language functional.
- TwentyPosts 2y agoCalling them 'pure' may be incorrect depending on how high your standards are. Rust functions (which don't take mutable references) are incapable of modifying anything you pass into them, and any sort of global state is heavily discouraged. This is pretty good as far as "pure" goes, but of course, they can perform I/O. (Then again, without any side effects a program would do nothing at all behind heating up your CPU, so this seems like a fair trade-off.) What makes Rust functional are the patterns you can use in the language, though. A lot ot of maps, a lot of filters, a lot of iterators and algebgaic data types and pattern matching.