5 ms·
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
by krn 7y ago
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/ https://openjfx.io/
[2] https://github.com/cljfx/cljfx https://github.com/cljfx/cljfx
- yoz-y 7y agoYou can write in C++ so it's much easier to re-use libraries in C/C++.
- The_rationalist 7y agoElectron does allow to use c++, what make QT c++ more practical for business logic?
- ahartmetz 7y agoThe 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
- The_rationalist 7y agoThanks for exemplifying! Nit: filesystem is fixed in C++17.
- yoz-y 7y agoI’d add that passing objects is also way easier when you do not need to bridge languages. And you avoid gyp.
- Cyph0n 7y agoAlong the lines of [2], there is also ScalaFX: https://github.com/scalafx/scalafx https://github.com/scalafx/scalafx
- krn 7y agoAnd TornadoFX[1] in Kotlin, which seems to be a complete framework. [1] https://tornadofx.io/ https://tornadofx.io/
- jcelerier 7y ago> 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-syntax http://qmlbook.github.io/ch04-qmlstart/qmlstart.html#qml-syn...
- heavyset_go 7y agoQML is declarative and you don't need to use Clojure to use it.
- monocasa 7y agoNo Oracle dependencies?
- lsh 7y agoJavaFX 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 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.