News for hackers. Stuff that matters.
Re:Is Rust Stack-Efficient Yet? by pjmlp on Thursday November 17, 2022 @02:23PM (#33644206)
Using structs, stack allocations (safe since C# 7.x) and native heap go a long way.

Many of the post C# 7 features have been used to improve .NET performance in techpower benchmarks, and rewrite runtime code from C++ into C#.

Re:Is Rust Stack-Efficient Yet? by int_19h on Thursday November 17, 2022 @03:56PM (#33645558)
You can also use generic functions that take struct arguments instead of delegates to get something like STL. I wish there was some syntactic sugar in the language for that, too - basically, struct lambdas.
Re:Is Rust Stack-Efficient Yet? by pjmlp on Friday November 18, 2022 @07:36AM (#33653724)
There is a bit of that with static lambdas, function pointers (unsafe), but still isn't quite what you want.
Re:Is Rust Stack-Efficient Yet? by int_19h on Saturday November 19, 2022 @04:38AM (#33668611)
Well, until relatively recently, they wouldn't be able to desugar what I really want into underlying bits. But now that we have verifiable ref structs with ref fields in them in C# 11, it's a straightforward transformation. Might be worth a proposal, actually...