Giter Club home page Giter Club logo

go-napi-sys's People

Contributors

nicknaso avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

go-napi-sys's Issues

Autogenerate N-API stub

The Go backend compiler needs the N-API stub to compile the add-on otherwise it arise a linker error. In this case on the folder napi-stub there is a stub used in experimentation phase, but now the stub needs to be generated in a dynamic way.
The following are the necessary tasks:

Enable disable experimental features

Find a simple method to enable or disable experimental features on building N-API stub. On the binding side check if the feature is enabled because it's included int he N-API version or if tis enabled like experimental.

NapiWrap function

Find what is the best option for the input parameters for this function.

Create first raw wrapper

Create the first low level wrapper starting from the work done in the experimentation phase.
I report the conditions from which start coding:

  • N-API version 4
  • Node.js v10.11.0 / v12.2.0
  • Go version 1.12.6
  • macOS 10.14.5

GOPATH

Developers could meet some problems it depends on GOPATH. In general go-napi-sys does not depend from any other library except the STL so it could be a good idea change the GOPATH to point to the folder of the project.

  • Unix export GOPATH=$(pwd)

  • Windows setx GOPATH %cd%\go

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.