Skip to content
This repository was archived by the owner on Feb 21, 2018. It is now read-only.
This repository was archived by the owner on Feb 21, 2018. It is now read-only.

Add Features: C++ interface #29

@yuej-jin

Description

@yuej-jin

I see that ianwjhalliday/node.git is doing the work for C API.
we are also working on the project to add a C++ vm independent interface for v8 native api.

We may want to add these feature to native api:

  1. C++ interface.
    the interface is like C but wraps the data and methods together. It may be looks like v8 api but more clear and easy to use, and will be vm independent.
  2. independent of vm to develop and compile (Maybe not the new feature?)
    We plan to use env pointer to wrap the API function pointer and separate the interface and internal implementation.
  3. Native module load mechanism, independent of node-addons.
    Since this interface will be vm-neutral, I think it may be better to use a load mechanism different from node-addon.

We have done some work now: https://github.com/alibaba/node (branch jsni-v1.0).
There are a few of test cases under node/deps/jsni/.
The work is not all completed yet, there may be some deficiencies。But we want to do something to promote the project of the vm-neutral native API.

Any ideas and suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions