3 ms·
Another way can be to try to lower the bar to write performant code. For example, the work in languages like Rust, Nim, Hare and Roc might also unlock capabilit
by myaccountonhn 3y ago
Another way can be to try to lower the bar to write performant code. For example, the work in languages like Rust, Nim, Hare and Roc might also unlock capabilities to write low-level performant code with the same productivity as high-level languages.
I def. agree though tat a carbon tax to force companies to be more frugal would help too.
I've heard too many times to not think about optimization and just throw more hardware at problems, I think that's a mentality we really need to start questioning.
- trealira 3y agoI agree Rust lowers the bar to write low-level performant code (especially considering that it was always harder to write correct C than, say, correct Ada) but I don't think it's always necessary to write code in non-garbage-collected for decent performance. We just need to use garbage collected programming languages that are statically typed, don't rely on a runtime on the host computer (e.g. the JVM), are memory safe and have predictable performance characteristics. All I can think of are Swift, OCaml, and Standard ML. In Go, your program causes a segmentation violation if it dereferences a null pointer, so I won't call it completely memory-safe, but it's still an improvement in abstraction compared to C while still providing performance.