5 ms·
Java also has JavaFX, which comes with an embedded Webkit browser. I can create my UI with React, or any other HTML/CSS/JS library, and make it interact with co
by edko 9y ago
Java also has JavaFX, which comes with an embedded Webkit browser. I can create my UI with React, or any other HTML/CSS/JS library, and make it interact with code written in Java, Scala, Groovy, Clojure, Kotlin, Ceylon, Frege, etc. very easily. I think this provides all the benefits of Electron, but is even more flexible and powerful.
- sametmax 9y agoYet, this is not as popular as electron. Ask yourself why.
- michaelmrose 9y agoThis is basically a terrible argument in and of itself you would do better to flesh out why yourself instead of expecting everyone to conclude your self evident correctness.
- petre 9y agoToo many JS/web programmers that's why. Plus JS/web programming is way easier and more popular than most of the JVM languages.
- abiox 9y agoi'd guess that there are a variety of things to consider. do you actually have anything to say?
- ake1 9y agoadd nashorn so you have a spare javascript vm just in case...
- vorg 9y ago> code written in Java, Scala, Groovy, Clojure, Kotlin, Ceylon, Frege, etc Your list of 7 JVM languages (both here and in your earlier comment on this submission) seems to be from most widely used to least. Yet in your HN comment from 2 days ago at https://news.ycombinator.com/item?id=14068664 https://news.ycombinator.com/item?id=14068664 you ordered that list differently, i.e. "Java, Scala, Clojure, Groovy, Kotlin, Ceylon, Frege, etc". Have you changed your mind about the relative adoption of Clojure and Apache Groovy in the last two days?
- edko 9y agoNot really. Actually, however, there is a recent survey that shows that Groovy is the second most popular language on the JVM, behind Java. Myself, I use Scala, and would like to learn Frege.
- tigershark 9y agoGroovy is a quite lovely dynamic language and it's actually the best solution for BDD using Spock. Sadly I still didn't find anything comparable for BDD in all the languages that I use.
- vorg 9y ago> Groovy is a quite lovely dynamic language and it's actually the best solution for BDD using Spock There's something wrong when a testing framework hacks into a language parser to make the language statement labels have special meanings like function names do, and overload the `|` operator in expressions so data will appear as a table in the source code. "Lovely" isn't the word for that sort of thing.
- tigershark 9y agoIt's a DSL. And it works very well also because of these operator overloads.
- petre 9y agoDo you need to run N programs on N copies of Chrome with JavaFX or use a single VM like all JVM apps do? Because that's the problem with Electron mentioned in the article and that's exactly one place where JVM languages are better.