logoalt Hacker News

Pannoniae • today at 5:31 PM • 0 replies • view on HN

This thread feels like a bit of the old Dropbox thread ;)

"what is this useful for" - You want to write native code without a runtime or GC but you also don't want to deal with C++ with its arcane rules, edge cases, an awful dependency management story and complexity in general.

Rust is a good candidate for this as well, although it has quite a learning curve.

"you can already do this in standard C#" - Yes but the ecosystem assumes GC so you need to write everything yourself. There are some low allocation APIs but definitely not for everything. The concept of "C# but even lower level" is something which has a place, IMO. Just like how you can technically add assembly to C#, either by linking it with nativeAOT or emitting at runtime but it's not built-in support for inline assembly, you know.