HNHacker News
TopNewBestAskShowJobs

SparksAndQuarks

10 karma · joined September 22, 2020

submissionscomments
SparksAndQuarks··on The Era of Visual Studio Code
Seems like everybody mentions GitLens as an example of a good VSCode extension, but I really wish more people knew about Git Graph [0]. It feels like having an embedded mini git kraken into vscode, beautiful graphs and all, and without any noticeable overhead.

[0] - https://marketplace.visualstudio.com/items?itemName=mhutchie...

SparksAndQuarks··on .NET 5.0 – New APIs
I'm excited about new native interop api (function pointers, UnmanagedCallersOnlyAttribute, etc.). It removes "managed code tax" for calling into dynamically loaded OpenGL/Vulkan methods from c#.

I'm playing around with GLFW via PInvoke, which meant marshalling openGL function pointers into managed delegates. In net5.0 preview, I can simply cast IntPtr into a function pointer, and boy, a call to your average openGL method is literally an order of magnitude faster.

Similar optimizations might have been technically possible before, but it required some icky bytecode tinkering.

SparksAndQuarks··on .NET 5.0 – New APIs
Shame 'with' will not apply to structs - all the ingredients are already there. Through it might be in the plan for some future release.