News for hackers. Stuff that matters.
Re:Qt for Android better than ever before by krn on Thursday October 10, 2019 @11:48AM (#21215895)
What are the technical reasons to prefer Qt over JavaFX[1]? Even Bitwig Studio, which is a C++ audio application, went with JavaFX for its cross-platform UI. It can also be written in React-like declarative style[2], which is much easier to maintain.

[1] https://openjfx.io/

[2] https://github.com/cljfx/cljfx

Re:Qt for Android better than ever before by yoz-y on Thursday October 10, 2019 @11:51AM (#21215928)
You can write in C++ so it's much easier to re-use libraries in C/C++.
Re:Qt for Android better than ever before by The_rationalist on Thursday October 10, 2019 @02:39PM (#21217777)
Electron does allow to use c++, what make QT c++ more practical for business logic?
Re:Qt for Android better than ever before by ahartmetz on Thursday October 10, 2019 @05:20PM (#21219300)
The things that are missing in standard C++: Unicode, SQL, filesystem (kind of fixed in C++20 or so), serialization, network protocols, JSON, XML, an event loop(!), signals and slots, a thread pool, compiled-in resources, runtime plugin support, etc
Re:Qt for Android better than ever before by The_rationalist on Thursday October 10, 2019 @07:22PM (#21220214)
Thanks for exemplifying! Nit: filesystem is fixed in C++17.
Re:Qt for Android better than ever before by yoz-y on Thursday October 10, 2019 @07:34PM (#21220283)
I’d add that passing objects is also way easier when you do not need to bridge languages. And you avoid gyp.
Re:Qt for Android better than ever before by Cyph0n on Thursday October 10, 2019 @11:52AM (#21215930)
Along the lines of [2], there is also ScalaFX: https://github.com/scalafx/scalafx
Re:Qt for Android better than ever before by krn on Thursday October 10, 2019 @11:59AM (#21216022)
And TornadoFX[1] in Kotlin, which seems to be a complete framework.

[1] https://tornadofx.io/

Re:Qt for Android better than ever before by jcelerier on Thursday October 10, 2019 @12:25PM (#21216371)
> It can also be written in React-like declarative style[2], which is much easier to maintain.

you haven't seen QML :-)

http://qmlbook.github.io/ch04-qmlstart/qmlstart.html#qml-syn...

Re:Qt for Android better than ever before by heavyset_go on Thursday October 10, 2019 @02:55PM (#21217961)
QML is declarative and you don't need to use Clojure to use it.
Re:Qt for Android better than ever before by monocasa on Thursday October 10, 2019 @03:20PM (#21218210)
No Oracle dependencies?
Re:Qt for Android better than ever before by lsh on Friday October 11, 2019 @02:26AM (#21222018)
JavaFX as of JDK 11 (the next LTS after JDK 8) is now part of OpenJDK. It's still released separately, rather than integrated like Swing is.

https://en.wikipedia.org/wiki/JavaFX

OpenJDK is now the 'official' JDK and reference implementation with Oracle making proprietary forks for their own customers, supported on their own timelines.

Java is actually doing some really interesting things since Java 9, with modular runtimes, pluggable garbage collectors, new compilers (Graal) and the Clojure crowd are being swept along with it simply by stint of being on the JVM.