coding-in-the-wild/admesh-parser

RFC: Real nodejs <-> admesh integration

Closed this issue · 6 comments

Hi,
what can I do to make real nodejs <-> admesh integration possible? Amdesh currently has Python bindings, and adding more would be awesome.

I'm not familiar with c/c++ so my understanding is limited. The Node.JS API seems to summarize it like this:

#include <node.h>
#include <v8.h>
using namespace v8;
void my_func(Handle<Object> exports) {
    // do things
}
NODE_MODULE(module_name, my_func)

Which would be used inside Node.JS like this:

var my_module = require('/path/to/built/file')
console.log(my_module.module_name())

Maybe @TehShrike or @ArtskydJ know more about this sort of thing, or would even like to collaborate on it? It'd be pretty cool to have the bindings in it, instead of wrapping the CLI and regexing the values out.

So @TehShrike or @ArtskydJ, any interest?

You are correct. Unfortunately it is a very primitive start.

I added all those dependency files before I saw this: https://github.com/rvagg/nan. (nan = Native Abstractions for Node.js, in this case.) I think nan will make the learning curve a little less steep.

If you want to be involved in the opening stages, I could add you as a Collaborator.

Well, I'll just watch it and once usable, I would like to move it to the admesh organisation here on Github if possible.

I have no Node.js experience what so ever, so I don't think I would be very helpful.

It would be nice trough, if it does not bundle admesh source, but instead uses the system installed dynamic library (-ladmesh linker option). However, we can solve that later.

That's a good point. I created an issue over in node-admesh, I'll close the discussion in this repo for now.