News for hackers. Stuff that matters.
Re:Electron is flash for the desktop (2016) by edko on Tuesday April 11, 2017 @01:15PM (#14090159)
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.
Re:Electron is flash for the desktop (2016) by petre on Tuesday April 11, 2017 @04:15PM (#14092036)
Do 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.
Re:Electron is flash for the desktop (2016) by ake1 on Tuesday April 11, 2017 @02:16PM (#14090860)
add nashorn so you have a spare javascript vm just in case...
Re:Electron is flash for the desktop (2016) by sametmax on Tuesday April 11, 2017 @01:39PM (#14090468)
Yet, this is not as popular as electron. Ask yourself why.
Re:Electron is flash for the desktop (2016) by michaelmrose on Tuesday April 11, 2017 @03:31PM (#14091599)
This 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.
Re:Electron is flash for the desktop (2016) by petre on Tuesday April 11, 2017 @04:22PM (#14092083)
Too many JS/web programmers that's why. Plus JS/web programming is way easier and more popular than most of the JVM languages.
Re:Electron is flash for the desktop (2016) by abiox on Tuesday April 11, 2017 @04:46PM (#14092272)
i'd guess that there are a variety of things to consider. do you actually have anything to say?
Re:Electron is flash for the desktop (2016) by vorg on Tuesday April 11, 2017 @03:28PM (#14091557)
> 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 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?

Re:Electron is flash for the desktop (2016) by edko on Tuesday April 11, 2017 @04:02PM (#14091898)
Not 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.
Re:Electron is flash for the desktop (2016) by tigershark on Wednesday April 12, 2017 @03:01AM (#14095418)
Groovy 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.
Re:Electron is flash for the desktop (2016) by vorg on Wednesday April 12, 2017 @06:11PM (#14102209)
> 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.

Re:Electron is flash for the desktop (2016) by tigershark on Wednesday April 12, 2017 @07:57PM (#14102866)
It's a DSL. And it works very well also because of these operator overloads.