5 ms·
You are using java but want access to Javascript for various reasons. (Maybe you want to add scripting? Maybe you want to use a JS lib? Really sort of depends o
by cogman10 6y ago
You are using java but want access to Javascript for various reasons. (Maybe you want to add scripting? Maybe you want to use a JS lib? Really sort of depends on the circumstance).
Using node/v8 requires another distributable and starting up a new process.
- theandrewbailey 6y ago> (Maybe you want to add scripting? Maybe you want to use a JS lib? Really sort of depends on the circumstance) I used it to add Markdown to a Java app, because JS-based Markdown libraries were better than Java-based ones.
- KajMagnus 6y agoI use it to add React.js server side rendering to a Scala app (more details in this comment: https://news.ycombinator.com/item?id=25248748 https://news.ycombinator.com/item?id=25248748 ) @cogman10 > > Using node/v8 requires another distributable and starting up a new process Precisely