6 ms·
Funny, I was messing around with Kotlin for the first time last night. So far, the language seems well-structured and I really like that one gets all of Java's
by tomc1985 9y ago
Funny, I was messing around with Kotlin for the first time last night. So far, the language seems well-structured and I really like that one gets all of Java's ecosystem without actually having to write java. (Also, "override fun" just sounds hilarious. Bwaha!)
Throw in TornadoFX and Gluon Scene Builder (formerly of Oracle) and you're spinning up high-quality cross-platform GUIs faster than Atom, with a visual editor, and without having to touch Javascript!
I've been trying to find a suitable, high-quality cross-platform GUI kit for a while and this looks like it might challenge my current favorite (GTK)
- gecko 9y agoIs JavaFX also included in the "safe" parts of Java (i.e., in an Oracle-sanctioned GPL VM)? I know there are some open-source versions, but Oracle's trigger-happy lawsuit button on Java these days has made me nervous to poke.
- Nullabillity 9y agoOpenJFX is part of Oracle's OpenJDK project.
- floatboth 9y agoIt even works on FreeBSD https://www.freshports.org/java/openjfx8-devel/ https://www.freshports.org/java/openjfx8-devel/ so yeah, truly cross-platform open source GUI :)
- deskamess 9y agoNew to Kotlin + ecosystem... So can you build Android UI's with Scene Builder? I see notes about it working with Gluon Mobile which appears to be a cross platform mobile library.
- tomc1985 9y agoNot concerned about Android at the time, I was looking for a desktop app toolkit. Now that you mention it mobile support seems to be in flux: http://stackoverflow.com/questions/20860931/is-it-possible-to-run-javafx-applications-on-ios-android-or-windows-phone-8 http://stackoverflow.com/questions/20860931/is-it-possible-t...
- bitmapbrother 9y agoNo, Android does not support JavaFX or Swing for that matter.
- tomc1985 9y agoFrom what I've read the open-source bits of Gluon Mobile are available for free via JavaFXPorts http://gluonhq.com/products/mobile/javafxports/get/ http://gluonhq.com/products/mobile/javafxports/get/ <-- android, iOS, ARM However it seems to be a barebones solution as it lacks mobile-specific controls (they want you to buy Gluon Mobile for that)
- on_and_off 9y agoNot really. Android has its own graphical stack. You might be able to write an ndk app targeting android with you own stack of widget, but that's very different from an 'sdk' app.
- s73ver 9y agoFor Android, just use it's UI toolkit. It'll work better than trying to shoehorn a 3rd party thing in.
- invalidname 9y agoThe problem is its performance on the device and size overhead is horrible. Javafxpackager is just about the worse too. Check out Codename One which is more like Swing but far more robust. The GUI builder isn't as refined as scene builder but the final product actually works everywhere and far more portable than anything else.
- monkmartinez 9y agoCodename one "Professional Edition" is $79 per month! Basic is $19 per month... As a kind of "indie" developer that is very expensive. Gluon Mobile is not much less expensive at $42 per month. Still, free edition looks better than Codename 1 free edition. Wondering if Jetbrains will release Kotlin/Native for a set price or charge monthly like most companies are doing these days.
- invalidname 9y agoCodename One is open source and has a free edition without nag screen or any license restrictions. For that $19 you get more platforms and no need for a Mac etc.
- tomc1985 9y agoBut you have to use their BS cloud build service? Hell no.
- invalidname 9y agoInstead of having both a Mac and PC which is the only other alternative that's physically legal. Notice that this is a compile time feature, you don't need to use it for production.
- reitanqild 9y agoWhy so negative? I'm also against "cloud everything" but here they seem to provide an actually useful service.
- 9y ago
- mahyarm 9y agoI call Kotlin Android's Swift.
- real-hacker 9y agoExactly!
- mastazi 9y agohttp://nilhcem.com/swift-is-like-kotlin/ http://nilhcem.com/swift-is-like-kotlin/
- balladeer 9y agoWow.. Swift is reading a lot like JS and TS. (PS. I am new in both the languages and no Swift expertise)
- tooFastFuckYou 9y agoHeaven forbid they just support Swift instead.
- oakesm9 9y agoYou'd need to rewrite Swift to run on the Android VM (a big undertaking) or fork the Android frameworks to work well with Swift. That's a much bigger undertaking than supporting a language which was created for the JVM and specifically made for interoperability with Java.
- ptx 9y agoUnfortunately the JavaFX menu bar is just as broken as the one in Swing. In particular (I'm sure there's more), 1. it gets very confused about the focus when alt-tabbing between windows (as alt, on Windows, also toggles focus on the menubar), 2. there is no attempt to solve the problem of submenus disappearing when you attempt to move the pointer towards them, which is solved in Windows and Qt with a delay, and in Mac OS and GTK with ... the solution that is actually documented in the OpenJDK wiki but not implemented: https://wiki.openjdk.java.net/display/OpenJFX/Menu+User+Experience+Documentation#MenuUserExperienceDocumentation-3.DetailedBehaviors https://wiki.openjdk.java.net/display/OpenJFX/Menu+User+Expe... So JavaFX might be high-quality in some way I haven't noticed, but to me its immediately noticeable qualities were its general slowness and brokenness.