4 ms·
> I would hazard that Rust does the best job, due to its explicitness / very nature I might say the same about c, except even more so. As for 'the performant
by earenndil 7y ago
> I would hazard that Rust does the best job, due to its explicitness / very nature
I might say the same about c, except even more so.
As for 'the performant path', something to watch for there is jai, probably coming out later this year. It has clever things there, like dynamically switching between SOA and AOS, or doing small dynamic allocations on the stack.
- totalperspectiv 7y agoI haven't looked at Jai. I'll have to check it out. I have looked at Zig, which seems to inhabit a similar space. They both seem a little too early days for me at the moment (I at least want a chance at using it $work), but I like the general idea of better C.
- vips7L 7y agoD has a betterC flag [0]. Though at that point I'm not sure why you wouldn't just write c++17. [0] https://dlang.org/blog/2017/08/23/d-as-a-better-c/ https://dlang.org/blog/2017/08/23/d-as-a-better-c/
- WalterBright 7y agoD's betterC includes the metaprogramming facilities.
- vips7L 7y agoAnd at the very least it has dub right? I've thought about it alot.
- skocznymroczny 7y agoI'd love to use betterC more if it had dynamic arrays and assoc arrays. BetterC opens up opportunities such as WebAssembly too.
- earenndil 7y agoWebassembly is slowly (but carefully) deciding on a garbage collection spec of its own; once that's available, you should see a whole new slew of languages targeting it, including full-fledged d.
- nicoburns 7y agoC does, until you start making things multithreaded, at which point you either start defensively copying things, or dev times slows massively due to having to maintain complex locking invariants in your head.