denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
98.14k stars 5.4k forks source link

deno-gyp #1654

Closed dsseng closed 5 years ago

dsseng commented 5 years ago

Idea: add something like node-gyp for native modules.

kyranet commented 5 years ago

You mean GN, right? We don't use GYP here.

There was a discussion about native modules during September-November or so but turned out unconclusive, but I definitely would like this support, the question is: how?

benjamingr commented 5 years ago

I personally think a big selling point is message-passing FFI like Ryan talked about in JSConf rather than having deno deal with the whole toolchain like Node has to

ry commented 5 years ago

I'm open to suggestions. Native extensions are difficult and insecure. Maybe we can do something with WASM.

For the time being we have our arms full just making the basic modules work.

kitsonk commented 5 years ago

WASM would be ideal for some use cases, it certainly would be secure. Additional external bindings though would be a problem, but that is the security problem with native extensions.

benjamingr commented 5 years ago

wasm sounds like an excellent extension point except for where additional system APIs are required.

dsseng commented 5 years ago

@benjamingr ye, but my issue was especially for system apis such as OpenCL, CUDA, TensorFlow etc

dsseng commented 5 years ago

@ry how soon #1325 will be done?

bartlomieju commented 5 years ago

With #2385 in progress can we close this issue? It seems to be a duplicate of #296.

CC @ry

ry commented 5 years ago

indeed - let's move the discussion to #296

wenjoy commented 4 years ago

654 is also related. Just want to link them together.