News for hackers. Stuff that matters.
Re:React-material-ui with a pure Java stack by fokinsean on Tuesday August 29, 2017 @01:01PM (#15125725)
I'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.
Re:React-material-ui with a pure Java stack by kevan on Tuesday August 29, 2017 @01:10PM (#15125803)
Lots 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.
Re:React-material-ui with a pure Java stack by fokinsean on Tuesday August 29, 2017 @01:23PM (#15125929)
Ah ok, so this makes it easier to integrate react into the view layer for a traditional java mvc application is that right?
Re:React-material-ui with a pure Java stack by kevan on Tuesday August 29, 2017 @02:26PM (#15126480)
Yep, 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
Re:React-material-ui with a pure Java stack by moru0011 on Wednesday August 30, 2017 @09:28AM (#15131942)
It's not only npm, its also jsx transpilation, bundling (incl. a shim of npm, es6 imports and html-imports) and java-javascript interfacing.
Re:React-material-ui with a pure Java stack by sbergot on Tuesday August 29, 2017 @02:12PM (#15126350)
It is "npmless" ;-)
Re:React-material-ui with a pure Java stack by gdubya on Tuesday August 29, 2017 @04:30PM (#15127367)
Nice, but it seems like a cut-down version of frontend-maven-plugin: https://github.com/eirslett/frontend-maven-plugin
Re:React-material-ui with a pure Java stack by moru0011 on Wednesday August 30, 2017 @09:27AM (#15131932)
Nope. mvn still reuqires a native node install. In addition it does not provide JSX rendering import shims and bundling
Re:React-material-ui with a pure Java stack by LoSboccacc on Tuesday August 29, 2017 @12:45PM (#15125583)
ah! 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.
Re:React-material-ui with a pure Java stack by pjmlp on Tuesday August 29, 2017 @12:48PM (#15125614)
Oracle plans to replace Nashorn with V8 due to lack of manpower.

Check this year's Java Languages Summit.

Re:React-material-ui with a pure Java stack by issaria on Tuesday August 29, 2017 @01:58PM (#15126230)
What? 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.
Re:React-material-ui with a pure Java stack by pjmlp on Tuesday August 29, 2017 @02:46PM (#15126633)
Anyone 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

Then follow from there up to the end.

Re:React-material-ui with a pure Java stack by jerven on Tuesday August 29, 2017 @04:42PM (#15127448)
Or 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-langua...

Re:React-material-ui with a pure Java stack by pjmlp on Wednesday August 30, 2017 @04:43AM (#15130617)
I love Graal, have been following its development since it used to be called Maxime VM.
Re:React-material-ui with a pure Java stack by issaria on Wednesday August 30, 2017 @07:01AM (#15131120)
There 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?

Re:React-material-ui with a pure Java stack by BoorishBears on Tuesday August 29, 2017 @01:19PM (#15125891)
You can use J2V8 to use V8 for now too:

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)

Re:React-material-ui with a pure Java stack by zengid on Tuesday August 29, 2017 @01:16PM (#15125862)
Re:React-material-ui with a pure Java stack by bassman9000 on Tuesday August 29, 2017 @08:52PM (#15128875)
I love the

mvn clean package

just after

git clone

This immediately tells me of his attention to make builds reproducible.

edit: formatting

Re:React-material-ui with a pure Java stack by moru0011 on Wednesday August 30, 2017 @09:52AM (#15132116)
npm is indeterministic, as I have to mimic its implementation, JNMP isn't deterministic also (but I could make it so, good point)
Re:React-material-ui with a pure Java stack by shujito on Tuesday August 29, 2017 @05:23PM (#15127711)
Can it be used with sparkjava, pippo, or springfw?
Re:React-material-ui with a pure Java stack by moru0011 on Wednesday August 30, 2017 @09:25AM (#15131918)
nope its currently bound to kontraktor actors.