News for hackers. Stuff that matters.
Re:Unity plan pricing and packaging updates by kroltan on Tuesday September 12, 2023 @12:33PM (#37483804)
The new versions of C# can compile ahead-of-time, and have expanding support for value types and pointer-like semantics, so you're not stuck with the Java-y OOP For Everything paradigm if it doesn't fit your requirements.

The standard libraries are still an allocation party, of course, but that can be supplemented in an engine context.

Re:Unity plan pricing and packaging updates by Thaxll on Tuesday September 12, 2023 @01:26PM (#37484548)
Famous last words, even with the optimization in the latests net core clr, it's nowhere close to C++.
Re:Unity plan pricing and packaging updates by sha90 on Tuesday September 12, 2023 @02:22PM (#37485278)
Citation needed? Raw speed is likely similar; the cost overhead comes from GC cycles and the general approach to managing memory primarily in the heap vs stack, although C# can stackalloc if you're really diligent. Note that this is the same problem that blazing fast alternatives like Go have at competing with C/C++. These languages are mostly equivalent to C/C++ in speed, but lose the benchmark shootouts because of GC.
Re:Unity plan pricing and packaging updates by neonsunset on Tuesday September 12, 2023 @07:38PM (#37490183)
Calling Go blazing fast would be a stretch at best...the path to performance in C# is same as in Rust or C++: struct generics (aka templates), as short hot paths as possible, static partitioning of the work, sometimes hands on memory management and minimization of locking.
Re:Unity plan pricing and packaging updates by kevingadd on Tuesday September 12, 2023 @03:54PM (#37487126)
This is a pretty wild generalization to make. It's not hard to contrive scenarios where C++ with its notoriously slow stdlib (despised by game developers) is going to be slower than C# with its JIT doing runtime optimizations like guarded devirtualization.
Re:Unity plan pricing and packaging updates by dagw on Wednesday September 13, 2023 @07:40AM (#37495397)
C++ written by people who really good at writing fast C++ is faster than C#. Naive and readable C++ written by average programmers wanting to solve a problem in the obvious way on the whole isn't faster than C#