[nodejs] Running NodeJs inside JVM

2012-12-07 Thread prashant pandey
Hi All, I want to know has anyone tried to run NodeJs inside JVM? Or is there any specific approach we need to employ to get this done? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message becaus

Re: [nodejs] Running NodeJs inside JVM

2012-12-07 Thread Forrest L Norvell
On Fri, Dec 7, 2012 at 11:03 AM, prashant pandey wrote: > I want to know has anyone tried to run NodeJs inside JVM? Or is there any > specific approach we need to employ to get this done? > Since Node is only partly the JavaScript code of the standard library and predominantly the compiled native

Re: [nodejs] Running NodeJs inside JVM

2012-12-07 Thread Ilya Dmitrichenko
Yeah, you should also checkout vert.x (http://vertx.io/) On 7 December 2012 21:57, Forrest L Norvell wrote: > On Fri, Dec 7, 2012 at 11:03 AM, prashant pandey < > prashant.pra...@gmail.com> wrote: > >> I want to know has anyone tried to run NodeJs inside JVM? Or is there any >> specific approac

Re: [nodejs] Running NodeJs inside JVM

2012-12-07 Thread Rick Waldron
I believe Nashorn purports to be a Node compatible JS engine on the JVM https://oracleus.activeevents.com/connect/sessionDetail.ww?SESSION_ID=6661&tclass=popup http://www.theregister.co.uk/2012/11/27/project_nashorn_server_javascript/ http://www.oracle.com/javaone/lad-en/session-presentations/clie

Re: [nodejs] Running NodeJs inside JVM

2012-12-08 Thread Alan Gutierrez
Excellent guidance from everyone. I wanted to add... Just run node as a child process of your JVM application. The node executable is small and easy to redistribute. Node now runs in as many places as the JVM. I find that the promise of write once, run everywhere is easier to realize with Node

Re: [nodejs] Running NodeJs inside JVM

2012-12-09 Thread Simon
In response to Why use Nashorn instead of Node, I thought it was funny that one commenter mentioned: "Node.js uses Google's V8 Javascript engine which is too fast for some applications. Also, it doesn't use enough memory, a problem the JVM is likely to correct..." Source: http://developers.sla

Re: [nodejs] Running NodeJs inside JVM

2012-12-10 Thread prashant pandey
Hi Alan, thanks for your time. Let me tell bit more about the use-case. I want to run the nodeJs program inside OSGi (equinox). For that matter I would need a plugin bundle of NodeJs library to be loaded inside OSGi. Is there a way to that? Thanks, Prashant On Sunday, December 9, 2012 2:31:30

Re: [nodejs] Running NodeJs inside JVM

2012-12-10 Thread Mark Hahn
Lua is the king of embedded languages. Give it a try. On Mon, Dec 10, 2012 at 10:36 AM, prashant pandey wrote: > Hi Alan, > > thanks for your time. > Let me tell bit more about the use-case. I want to run the nodeJs program > inside OSGi (equinox). For that matter I would need a plugin bundle of

Re: [nodejs] Running NodeJs inside JVM

2012-12-10 Thread prashant pandey
What's Lua? On Tuesday, December 11, 2012 12:09:05 AM UTC+5:30, Mark Hahn wrote: > > Lua is the king of embedded languages. Give it a try. > > On Mon, Dec 10, 2012 at 10:36 AM, prashant pandey > > wrote: > > Hi Alan, > > > > thanks for your time. > > Let me tell bit more about the use-case.

Re: [nodejs] Running NodeJs inside JVM

2012-12-10 Thread Mark Hahn
A programming language similar to JS. Google it. Home page is here: http://www.lua.org/ List of tutorials is here: http://lua-users.org/wiki/TutorialDirectory A framework that duplicates node in lua is here: https://github.com/ignacio/luanode It was designed for embedding. The interpreter is

Re: [nodejs] Running NodeJs inside JVM

2012-12-10 Thread Evangelos Pappas
IMHO, your architectural design should be revisited. the short answer is that Yes you can do it and I'll explain how. The long answer is that OSGi is a system that treats its parts as a module and communicate with them through native busses, so it may wrap them and handle any state of their runtim