3 ms·
So this means we have benefits of Rust but in a nicer, functional syntax?
by galaxyLogic 3y ago
So this means we have benefits of Rust but in a nicer, functional syntax?
- whitim 3y agoYes, essentially. Theoretically it could outperform Rust since it has aggressive local reuse of to-be-freed memory. Several papers have shown that it gets close to or outperforms C in some benchmarks. Whether this holds in practice is up for debate, but if you don't have to annotate lifetimes and don't have to manually manage memory, are you really going to care if you are 5% slower than C? There is a lot of performance optimizations still available for Koka to target as well. So far they've just taken the lowest hanging fruit (memory management).