napajs icon indicating copy to clipboard operation
napajs copied to clipboard

Allow to use Buffer nodejs api inside napa workers

Open darky opened this issue 6 years ago • 2 comments

In this list Buffer api not exists https://github.com/Microsoft/napajs/blob/master/docs/api/node-api.md

But would be cool to have it.

darky avatar Mar 09 '18 13:03 darky

Improving node API compatibility (such as to support Buffer) is what we are currently working on.

Some features are just simple to support in Napa - those are implemented in pure javascript, or wrappers of independent native modules. Some others are not that easy to support - such as setImmediate/setTimeout. We usually need to make some updates to Napa core modules. Buffer may be one of those most difficult to support. In order to handle those ones, a lot of things need to be updated - memory management, module loader, event loop and so on.

So, we will support Buffer, but this is not likely to happen soon. We are still on the way.

fs-eire avatar Mar 09 '18 18:03 fs-eire

can we use node zone to support functionalities of buffer? If so how? BTW, kudos to you guys, this runtime is like dream come true.

nveenjain avatar Mar 20 '18 10:03 nveenjain