News for hackers. Stuff that matters.
Re:Embed Node.js on any website by LukeB_UK on Thursday October 01, 2015 @01:02PM (#10312644)
So does this exactly replicate behavior of node and V8 even in non-V8 engines?
Re:Embed Node.js on any website by tolmasky on Thursday October 01, 2015 @01:08PM (#10312679)
It is a v8 engine, every embed is backed by node running in a container, so you're getting the real deal, not an emulation environment.

That means your embeds can write to the filesystem, use any npm package, (even spin up child processes if that's what you want to show off!).

Re:Embed Node.js on any website by LukeB_UK on Thursday October 01, 2015 @01:10PM (#10312699)
So it's not embedding node, it's embedding an interface that connects to a remote node instance
Re:Embed Node.js on any website by tolmasky on Thursday October 01, 2015 @01:15PM (#10312742)
Sorry for the confusion, not sure what a "true embed of node" on a webpage would be. "Replicating node" certainly wouldn't be either, I suppose the only thing that would be truly embedding node is compiling the node binary with emscripten or NaCL? If that's what you were thinking then no, we are allowing you to embed "node source code examples" into a webpage that users can run.
Re:Embed Node.js on any website by k__ on Thursday October 01, 2015 @02:07PM (#10313224)
My first thought was that it compiles node (+native modules) with emscripten to asm.js and lets me run everything in the browser
Re:Embed Node.js on any website by findjashua on Thursday October 01, 2015 @02:03PM (#10313166)
a "true embed" would be something like Electron, that's running a node instance on the client, and can work independently without any interaction with a server.
Re:Embed Node.js on any website by ericfrederich on Thursday October 01, 2015 @02:15PM (#10313307)
Yes, it is confusing. Title should have been "interface with remote node.js from any website"
Re:Embed Node.js on any website by chc on Thursday October 01, 2015 @06:43PM (#10315306)
That's less clear. That sounds like it's just an API rather than allowing you to put Node code on your page and have it run.
Re:Embed Node.js on any website by delinka on Thursday October 01, 2015 @01:57PM (#10313105)
To me, "embedded" would not rely on a remote backend.
Re:Embed Node.js on any website by boucher on Thursday October 01, 2015 @02:20PM (#10313350)
We're using the word "embed" in what I feel like is a pretty generically understood web term of "take this external thing and embed it in your page".

The actual thing you are embedding is a version of our app, Tonic, which yes interfaces remotely with Node.js. I think this title is the best way of getting the idea across in a few words though.

Re:Embed Node.js on any website by LoSboccacc on Thursday October 01, 2015 @03:08PM (#10313781)
something is amiss here: don't you already get a javascript runtime free with every browser already?
Re:Embed Node.js on any website by boucher on Thursday October 01, 2015 @01:07PM (#10312676)
It doesn't replicate anything, it's actually running the code in node and sending the result back.
Re:Embed Node.js on any website by deckar01 on Thursday October 01, 2015 @01:09PM (#10312685)
It doesn't seem to be running in the client's JavaScript engine. It sounds like they are sending the source to an API, evaluating, and returning the result.