5 ms·
React-material-ui with a pure Java stack
- LoSboccacc 9y agoah! the memories of when I ran ember on rhino within a servlet container. fun thing was that some javascript reserved words are allowed in node and widely used. had to write a nodejs to vanillajs converter.
- pjmlp 9y agoOracle plans to replace Nashorn with V8 due to lack of manpower. Check this year's Java Languages Summit.
- zengid 9y agoVideo with more info: https://www.youtube.com/watch?v=-JLhwsbMvjQ https://www.youtube.com/watch?v=-JLhwsbMvjQ
- BoorishBears 9y agoYou can use J2V8 to use V8 for now too: https://github.com/eclipsesource/J2V8 https://github.com/eclipsesource/J2V8 I prefer it's very cut and dry boundaries between Java and JS to Nashorn which tries to help by bridging Java into JS (but complicates both in the process)
- issaria 9y agoWhat? Where did they say that in that talk? They simply showed a way to execute native code with V8, so it's easier to run node on nashorn. Stop spreading misinformation.
- pjmlp 9y agoAnyone can check by themselves, starting at 7:25. "Nashorn has been in development since 2010" "Alas, only 2-3 engineers available to work on Nashorn at any given time" "It takes a village to implement a programming language" "ECMAScript 6 requires a significant number of changes" "Other JavaScripts get better and better; V8, Nitro, SpiderMonkey" https://www.youtube.com/watch?v=-JLhwsbMvjQ https://www.youtube.com/watch?v=-JLhwsbMvjQ Then follow from there up to the end.
- jerven 9y agoOr GRAAL.js which is a lot further in implementing al the new ES6+ features than Nashorn will ever be [1] It's really quite nice and I think there will be exiting news in this front from Oracle lab soonish... [1] http://www.oracle.com/technetwork/oracle-labs/program-languages/polyglot/index.html http://www.oracle.com/technetwork/oracle-labs/program-langua...
- pjmlp 9y agoI love Graal, have been following its development since it used to be called Maxime VM.
- issaria 9y agoThere is no where they mentioned "replace nashorn", the main feature of nashorn is to interoperate with Java, V8 cannot do that. If you follow the development of Nashorn, they are working on ES6 features right now. Also replace nashorn with V8 simply is a false statement, V8 is of it's own project established before Nashorn, and it doesn't even belong to Oracle, how can one replace a new project with an old one?
- fokinsean 9y agoI'm slightly confused, what is the use case for this? It says "no npm, babel, etc" but then it goes and downloads the packages for you.
- kevan 9y agoLots of places are Java™ shops, and adding new shiny stuff from the NodeJS ecosystem for frontend work can be difficult. I couple years ago I had to build a weird multi-step build bridge between babel and the Grails asset pipeline. A pure JVM implementation would probably make this sort of thing less painful for a lot of companies.
- deleted 9y ago[deleted]
- fokinsean 9y agoAh ok, so this makes it easier to integrate react into the view layer for a traditional java mvc application is that right?
- kevan 9y agoYep, lowers the entry barrier to add it to a project. I think most of the modern frameworks have decent support out of the box but for projects started a decade ago it's useful
- sbergot 9y agoIt is "npmless" ;-)
- moru0011 9y agoIt's not only npm, its also jsx transpilation, bundling (incl. a shim of npm, es6 imports and html-imports) and java-javascript interfacing.
- gdubya 9y agoNice, but it seems like a cut-down version of frontend-maven-plugin: https://github.com/eirslett/frontend-maven-plugin https://github.com/eirslett/frontend-maven-plugin
- moru0011 9y agoNope. mvn still reuqires a native node install. In addition it does not provide JSX rendering import shims and bundling
- shujito 9y agoCan it be used with sparkjava, pippo, or springfw?
- moru0011 9y agonope its currently bound to kontraktor actors.
- bassman9000 9y agoI love the mvn clean package just after git clone This immediately tells me of his attention to make builds reproducible. edit: formatting
- moru0011 9y agonpm is indeterministic, as I have to mimic its implementation, JNMP isn't deterministic also (but I could make it so, good point)