New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add JavaScript support for Spring dynamic languages [SPR-7592] #12248
Comments
Darren Cruse commented I think this is a great idea - Server Side Javascript has been getting a lot of attention (e.g. V8 and node.js) and Rhino is really a mature implementation we're lucky to have it on the JVM. In fact I was a little surprised/disappointed Groovy's Dynamic Language Support didn't already support Javascript - after all if you define "popularity" in terms of numbers of developers who know it, Javascript is in fact more popular than the other dynamic languages already supported. I did download Tomasz rough version, and it appears that he's made his changes right within/alongside the current spring code base, I assume to make incorporation in the official Spring code base as easy as possible. So I vote for this and I hope others do as well!! :) |
Tomasz Nurkiewicz commented Any updates on this issue? Few people contacted me and asked about this feature. |
James Cook commented With the enormous number of REST services spitting out JSON these days and JavaScript built right into the JVM, it seems silly to constantly be marshaling JSON back and forth through Java objects. RingoJS is awesome in that it lets me work with JSON as God intended while running on the JVM thus giving me access to Spring abstractions, but I would like more seamless integration with Spring. How about adding Rhino and Nashorn support to Spring's list of dynamic languages. Better yet, make a huge splash and support CommonJS package loading and NPM libraries in the same runtime. |
Sébastien Deleuze commented Since Nashorn Javascript engine use JSR-233 |
Juergen Hoeller commented Superseded by #9888. |
Tomasz Nurkiewicz opened SPR-7592 and commented
Spring currently supports Groovy, JRuby and BeanShell dynamic languages. I would like to suggest adding support for JavaScript. Because Rhino engine is embedded in Java 6 JRE, no additional libraries are needed since that version.
I have already implemented (GitHub) rough version of this feature (including several unit tests) and explained it here.
Affects: 3.0.4
Issue Links:
8 votes, 9 watchers
The text was updated successfully, but these errors were encountered: