News for hackers. Stuff that matters.
Re:Graal: How to use the new JVM JIT compiler in real life [... by matharmin on Saturday February 10, 2018 @06:40AM (#16346901)
I've use the unofficial Android Maven plugin before the official Gradle plugin was released. When the Gradle plugin came out, it made my builds so much simpler than it used to be with Maven. As much as I like XML, having 4 lines per dependency is way too much. And having to write a custom plugin every time you want some custom logic is terrible. The Maven ecosystem may have increased since then, but I'm very glad they chose Gradle over Maven.
Re:Graal: How to use the new JVM JIT compiler in real life [... by pjmlp on Saturday February 10, 2018 @07:40AM (#16347062)
The beauty of XML is that is designed for tooling, not to be written by hand.

So for me adding a dependency is just a matter of using the graphical tooling in Eclipse and Netbeans.

All major headaches I "enjoyed" with Maven was custom logic coming from Ant scripts, from team not willing to adopt a more declarative way of designing their projects.

With Gradle, I get the same mess Ant used to be, just slower.

Re:Graal: How to use the new JVM JIT compiler in real life [... by sitkack on Saturday February 10, 2018 @09:43AM (#16347462)
I shouldn't be getting nerd sniped by comment about Maven but here goes. Maven doesn't compose because it is an ad-hoc lisp where every element has different semantics, every element is a different language. This isn't an XML problem, but a way that XML fragments in Maven map to the interpreters of those fragments. Maven could have been an amazingly compact expressive combination of a logic/constraint solver with a declarative language, instead it is PHP written in XML. Maven is declarative only in that it has a textual interface.
Re:Graal: How to use the new JVM JIT compiler in real life [... by chickenbane on Saturday February 10, 2018 @03:14PM (#16349332)
My disclaimer: my coworkers are using Scala and SBT. Gradle + Java isn't slower than Ant or Maven. Gradle + Kotlin is a little slower, they just need to make the annotation processors incremental.

But for Java, incremental builds with compiler avoidance combined with the build cache, parallel builds (incubating features close to maturity) mean I write more sophisticated, easier to maintain builds than I ever have with Maven.

Re:Graal: How to use the new JVM JIT compiler in real life [... by jxub on Saturday February 10, 2018 @07:05AM (#16346973)
Something awesome would be to have a S-expression to Maven XML transpiler. Parens instead of xml tags. Is there something like that?
Re:Graal: How to use the new JVM JIT compiler in real life [... by divs1210 on Saturday February 10, 2018 @07:26AM (#16347024)
Not a transpiler, but we use something similar all the time in Clojureland.

https://leiningen.org

It can easily be used as a Java build tool.

Re:Graal: How to use the new JVM JIT compiler in real life [... by papercrane on Saturday February 10, 2018 @11:45AM (#16348048)
You could do something like that with polygot-maven.

https://github.com/takari/polyglot-maven

Re:Graal: How to use the new JVM JIT compiler in real life [... by sitkack on Saturday February 10, 2018 @09:44AM (#16347466)
The encoding (XML) isn't Maven's problem, the semantics are.