10
sleek
4y

Im learning kotlin but heres what i dont get..

is it a completely new language that uses jvm concept like java or is it a template over java with extra stuff like C++ and C.

when i import a library in kotlin that exists in the java sdk does it use that or all the libraries are made for kotlin.

is kotlin java++ basically or is it something completely different

sorry if its a dumb question still nee at this

Comments
  • 7
    Java with a different syntax and additional runtime stuff.

    Same shit, different smell.
  • 6
    It wasn't complicated enough to write native apps in Objective-C and Java which people had been using for years.

    And the native world grew jealous of the front end world getting a new framework every 6.274 seconds.

    So they made Swift and Kotlin so we all had extra things to learn for no fucking reason.
  • 1
    @HiFiWiFiSciFi don't forget all the attempts to bring the frontend to the app development world.

    Looking at you, Ionic, React Native and Flutter
  • 4
    It compiles to java bytecode, and runs on the jvm. Same idea as typescript - that transpiles to javascript.

    Kotlin reduces the java verbosity, and removes the boilerplate. Not the first lang that attempts this. Look at Jython, Scala, and others.
  • 1
    It's a modern, general purpose language that compiles to JVM bytecode (native compilation is possible with graal but that's still a niche case for the moment.)

    It's not perfect, but it's probably my favourite general purpose language at the moment. It's got a nice, familiar syntax to anyone who's used c style languages in the past, but also introduces a whole bunch of modern language features without cramming the language with useless junk.

    Some people see it as a Java 2.0, personally I just see it as a separate language.
  • 1
    @AlmondSauce Kotlin also has a native compilation option without Graal.

    One can also compile Kotlin to JavaScript, as two compile targets are somehow not enough :)
  • 0
    You technically say out the obvious.
Add Comment