Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pradn
· 8y ago · 0 comments
Has anyone used Nashorn? For what use-cases did it make sense to run JS inside of a JVM process?
Comments
[–]
adrianpike
8y ago
JS in the JVM is used heavily in Mirth (
https://www.nextgen.com/products-and-services/integration-en...
) for scripting of channels and data transformations. It's kinda janky but runs a lot of healthcare systems. It's using Rhino, not Nashorn, FWIW.
[–]
lmm
8y ago
User-defined scripting of a system written in Java. Everyone knows Javascript and it's easier to allow a user to submit text scripts and run them via the embedded engine than require users to run some kind of plugin build process.
[–]
Roboprog
8y ago
We are. We use a library called rules.js to do some basic content validations that can run on either/both the client and server.
And now I look foolish for suggesting it (using Nashorn).
[–]
kenan_warren
8y ago
I know of one CMS that uses it extensively underneath to construct the pages.
[–]
MrBuddyCasino
8y ago
Yeah Alfresco. Was a stupid idea, second only to their decision to roll their own crappy UI framework.
[–]
Fishkins
8y ago
I use it for server-rendering React in a Spring app