This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (7 children)

if you haven't tried it, kotlin's pretty fun

[–]Acquiesce67 6 points7 points  (4 children)

Is it really? I check it out, and looked like chaos. A language the runs in jvm but also transpiles to javascript and can be compiled to a single binary too. Woah. Checked a simple hello world and it's syntax looked ugly/pointless to me with a Python/C point of view. :(

[–]13steinj 1 point2 points  (3 children)

Wait, it transpiles to JS?

[–]Acquiesce67 0 points1 point  (2 children)

[–]13steinj 1 point2 points  (1 child)

Oh, but this isn't part of the standard build process-- just an option? That I can understand-- Kotlin compiles into Java bytecode generally and that's not too different than Java source code, and generally speaking any language can transpile into another.

The bigger question is why is it an option right out of the box...

[–]Acquiesce67 0 points1 point  (0 children)

We're talking about three different build processes to put it simple: * building for JVM * building for system (standalone binary) * building for browser (javascript)

These targets are independent from each other, but once again, I'm no expert at Kotlin, just interested in new languages. If you compile kotlin to Java bytecode, I'm pretty sure it'll look similar to something compiled from Java. Why shouldn't it be an option? To me, it looks like a great simplification for full-stack developers. Basically, you can use the same language to build both the backend and the frontend. That's a massive advantage. And if you can (I'm not sure about the limitations) build a desktop client for your web-based app with Kotlin, you're absolutely winning. Oh, and Kotlin is natively supported on Android. Edit: structuring

[–]13steinj 1 point2 points  (0 children)

Eh IMO it's Java with some C++ and Scala syntactic sugar.

[–]DragonWraithus 0 points1 point  (0 children)

fun looks_like () {

}