Comments (9)
This seems logical. Could you go into more detail about:
There are alternative solutions (including the one we use with jxcore native interface).
from api.
If you'd like, make the file native/data_types.md
and write out how you think this should be implemented. Then throw it up in a PR.
For now we'll be pretty loose with merging stuff in. Then once there are more opinions, discussions can be had about the existing docs and what changes should be made.
from api.
Or if you'd like just throw it in a gist and I'll land it for you.
from api.
@cjihrig @trevnorris Okay. I'm working on it.
from api.
Looking at the initial types in https://github.com/nodejs/api/blob/master/native/data_types.md and in particular:
struct JSValue { void* env_; void* data_; uintptr_t flags_; };
We may find that we need to bundle the env_ into more than just the JSValue and possibly extend beyond a single pointer, so pulling out its definition into its own struct might make sense.
I also think making the structures opaque, and limiting access through helper methods would leave as more flexibility to change under the covers.
from api.
pulling out its definition into its own struct might make sense.
Have an idea what would go into that struct, or should there simply be a placeholder?
from api.
I think for now it would just be void* _env.
As to what might go there later some things that come to mind
1) the original description of _env sounds like it would point to java script engine (ex v8) structures. We might also need something at the Node or libuv level
2) It might be the place to add function pointers for the API (less sure on this front)
from api.
- the original description of _env sounds like it would point to java script engine (ex v8) structures. We might also need something at the Node or libuv level
@mhdawson Why JSValue is related to other parts of the Node?
from api.
@obastemur I think this work is going to be pulled into the work that @stefanmb and @ianwjhalliday are pushing forward. Do you think we still need this issue.
from api.
Related Issues (20)
- Native modules API: the FFI approach HOT 8
- Node.js API WG Meeting 2015-11-19 HOT 8
- API WG Meeting 2016-02-xx HOT 2
- Invitation: Face-to-face to discuss multiple VMs in Node HOT 18
- What is the progress of the Native API? HOT 10
- Next API WG Meeting HOT 15
- About JS API abstract HOT 6
- Is this the Addon API working group? HOT 6
- Looking for good example native modules for performance testing HOT 5
- Next API WG meeting (held Jul 14 2016) HOT 19
- ABI Stable API - milestones HOT 13
- leveldown performance analysis HOT 1
- Stable AIB PoC - Level down performance analysis for linux HOT 5
- Landing node-eps for ABI stable module and location for PoC code HOT 5
- Add Features: C++ interface HOT 1
- ABI stable module ports HOT 1
- Native Modules API: ABI Stable work - where to find information
- Platform-agnostic API example HOT 4
- Establish a meeting HOT 31
- API WG Meeting 2015-10-23 HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.