napajs
napajs copied to clipboard
Allow to use Buffer nodejs api inside napa workers
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.
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.
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.