yosuke-furukawa / node-jsonnet

jsonnet wrapper for Node.js
MIT License
77 stars 14 forks source link

Document and automate libjsonnet.js regeneration #2

Open mbrukman opened 9 years ago

mbrukman commented 9 years ago

It appears that libjsonnet.js is either fully auto-generated from Emscripten from Jsonnet C++ source or possibly with some manual modifications of auto-generated code.

It would be nice to document how this is done so that it's easy to upgrade this module as Jsonnet changes, and also to automate it as much as possible so that it's easy for anyone to update it in the future.

mbrukman commented 9 years ago

/cc: @sparkprime

loretoparisi commented 8 years ago

@mbrukman The auto generation is done as explained in jsonnet javascript implementation page:

Javascript Implementation

sparkprime commented 8 years ago

That's right. Long term, it would be interesting to explore using gopherjs to build a js implementation from the native Go port, which is still a work-in-progress. The reason being that Go has a garbage collector so Jsonnet does not need its own. The go implementation will also use native stacks instead of a manually-managed Jsonnet stack within the interpreter. However it'll be interesting to see how well the go unbounded stacks transfer to Javascript's hard limited stacks.

Rush commented 6 years ago

Any progress on this one?

buremba commented 4 years ago

Any plans for the js implementation from the native Go port? @sparkprime