4 ms·
> It's still mind-boggling to me that it's possible to get (a constrained subset of) C# to beat hand-optimized C++. To me the interesting question is -- what c
by jstimpfle 6y ago
> It's still mind-boggling to me that it's possible to get (a constrained subset of) C# to beat hand-optimized C++.
To me the interesting question is -- what can you do within this constrained subset?
- camjw 6y agoThe restrictions are: no reference types, manually manage your memory. My previous job was basically writing loads of burst code and it was so ergonomic and fun to write, and (as the GP says) you basically get 200x speed up for free.
- ratww 6y agoThese manual pages have an exhaustive list of supported types and language constructs: https://docs.unity3d.com/Packages/com.unity.burst@1.5/manual/docs/CSharpLanguageSupport_Types.html https://docs.unity3d.com/Packages/com.unity.burst@1.5/manual... https://docs.unity3d.com/Packages/com.unity.burst@1.5/manual/docs/CSharpLanguageSupport_Lang.html#language-support https://docs.unity3d.com/Packages/com.unity.burst@1.5/manual...