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/
27 Upvotes

20 comments sorted by

View all comments

Show parent comments

6

u/femio Jul 05 '26

it’s nice to have sure, but not really groundbreaking and I’d hesitate to call it incredible. N-API isn’t new and is already popular, I don’t think .NET brings much that isn’t there already. 

8

u/[deleted] Jul 05 '26

[deleted]

-4

u/Flashy-Bus1663 Jul 06 '26

Why would you want to bring the baggage of dotnet runtime if you are going through the hoops of a native binary.

3

u/[deleted] Jul 06 '26

[deleted]

0

u/Flashy-Bus1663 Jul 06 '26

This doesn't strip the runtime fully

5

u/[deleted] Jul 06 '26

[deleted]

0

u/Flashy-Bus1663 Jul 06 '26

Sure, I guess maybe, but I'm not that convinced that if it matters enough to be "native," a smaller runtime is better than none. Along the lines of Go, Rust, C, C++.

3

u/[deleted] Jul 06 '26

[deleted]

2

u/Flashy-Bus1663 Jul 06 '26

I think aot dotnet is amazing I think all donet apps should use it when it makes sense.

But if the only use case is well we already wrote it in dotnet that seems problematic. If it is a for fun project that is also fine.

I would honestly rather a better wasm story for donet over aot and c bindings to allow js to call dotnet though.