Better HN
topnewbestaskshowjobs
Log inSign up

SparksAndQuarks

10 karma · joined Sep 22, 2020 (6y ago) · 3 submissions

Submissions

comment 6y ago · link · parent

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...

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

Shame 'with' will not apply to structs - all the ingredients are already there. Through it might be in the plan for some future release.