Nodejs extension in D using N-API

James Lu jamtlu at gmail.com
Thu Mar 18 19:03:44 UTC 2021


On Wednesday, 17 March 2021 at 00:25:08 UTC, Amin wrote:
> Is it also possible to use D with 
> [`N-API`](https://github.com/nodejs/node-addon-api/), the newer 
> interface Node-js recommends writing native addons in?
>
> https://forum.dlang.org/post/tkblbdujrmzrpxjbzorb@forum.dlang.org
>
> On Friday, 5 January 2018 at 11:47:07 UTC, Ervin Bosenbacher 
> wrote:
>> Hi
>>
>> Just wanted to share how I have managed to interface node.js 
>> with D using C++ bridge and NAN. So far I have been using C++ 
>> and rust for this but for obvious reasons (that would be a 
>> long story to explain) I wanted to go with D. One of the show 
>> stoppers was the lack of well established (or I don't know if 
>> that exists) library of framework to help with that.
>>
>> [...]

I'm also interested in this. Perhaps use the "fastcall" library.

Anyone have experience with Node<->D?


More information about the Digitalmars-d mailing list