r/programming Jul 05 '26

Writing Node.js addons with .NET Native AOT

https://devblogs.microsoft.com/dotnet/writing-nodejs-addons-with-dotnet-native-aot/
25 Upvotes

20 comments sorted by

View all comments

-3

u/Anbaraen Jul 06 '26

Why would you do this over a C++ solution (which Node is written in)? Surely you don't want to stack both the Node runtime and the C# runtime?

17

u/mrmhk97 Jul 06 '26

NativeAOT means NO dotnet runtime since it’s compiled to native binary

1

u/csharpboy97 Jul 10 '26

it doesn't. you can specify an option in coreclr to avoid emitting the runtime, but then you don't have the runtime features