Originally posted by caligula
View Post
Announcement
Collapse
No announcement yet.
Java 11 Released As The First Java LTS Release
Collapse
X
-
Originally posted by przmk View Post
How the hell does Rust replace the Java eco-system for Android ? What would you even use for the GUI with Rust ?Last edited by Vistaus; 26 September 2018, 12:27 PM.
Comment
-
Originally posted by uid313 View PostBecause coding in Android is so boring. You have to write so much boilerplate code, and write with so much legacy stuff without any nice modern things you are used to. It is a pain to be an Android developer.
I don't know if Kotlin will still be relevant in a year or two or if it will be forgotten.
Also Kotlin have pretty weird syntax and strange concepts such as companion objects.
It would be nice with better Java support in Android.
Maybe Android development wouldn't be so awful if it supported the latest of Java.
Comment
-
Originally posted by Vistaus View Post
Qt works on Android, so I imagine you just wrap a Qt GUI around Rust. And if not, maybe you can tie it to Flutter?
On the other hand, the Java eco-system for Android is very mature and Android Studio is a complete IDE with lots of quality tooling.
I love Rust but it doesn't even have proper auto-complete.
- Likes 1
Comment
-
Originally posted by Vistaus View Post
Why do they need to spend tons of resources when they're working on replacing Android with Fuchsia anywa (which uses Flutter rather than Java)?
Even if Fuchsia gets into the real world, maybe by then Flutter is no more and they replaced it with something else.
Originally posted by Vistaus View Post
Just use Flutter then.
- Likes 1
Comment
-
Maybe Kotlin is nicer than Java 8, but what about Java 9, 10 and 11?
Also Kotlin syntax is pretty weird, "var" and "val" looks almost the same and is easy to confuse.
It has this weird concept of "companion object", which is unfamiliar to me, I've never seen it before in any other programming language.
Comment
-
Originally posted by Vistaus View Post
Why do they need to spend tons of resources when they're working on replacing Android with Fuchsia anywa (which uses Flutter rather than Java)?- Java can be compiled/transpiled to JS, WebAssembly, JVM bytecode, Dalvik bytecode, ART AOT bytecode/native, .NET runtime, and pure native
- They even made a special CPU that could run Java bytecode as its native language
- Many languages target JVM
- Some of those languages can also target JS/WA
- Languages that target JVM are nice due to the large availability of existing code/libraries that can be used
- JVM has a nice ecosystem of development tools
- JVM is one of the most advanced language runtimes available
- Legions of cheap labor know Java
- Java/JVM is totally free / open source
- It doesn't really matter which language you use - they all pick new features from a common pool of ideas. In few years Java will adopt more features from Scala/Kotlin and maybe Java 20 or 21 will look like Kotlin does today.
- Why this is true? Look at Pascal or Basic. The latest versions of Object Pascal & Visual Basic have classes, lambdas, generics, ...
- Likes 1
Comment
-
Originally posted by Michael_S View PostI would argue that Kotlin is Scala--, but because of the Scala features the Kotlin developers skipped it has three advantages over Scala:
1. Kotlin has faster compile times partly or totally due to Scala features that are missing. (Supposedly a brand new Scala compiler will be very fast, but it's not released yet.)
Comment
-
Originally posted by uid313 View PostIt has this weird concept of "companion object", which is unfamiliar to me, I've never seen it before in any other programming language.
It's kind of a niche feature, since storing class-level state is *usually* a bad idea, but it does have it's uses.
Comment
-
Originally posted by przmk View Post
While such bindings already exists, they're a pain in the ass to use and definitely not in a stable state.
On the other hand, the Java eco-system for Android is very mature and Android Studio is a complete IDE with lots of quality tooling.
I love Rust but it doesn't even have proper auto-complete.
Comment
Comment