What's the difference between Kotlin JVM and Kotlin Native?What are the -Xms and -Xmx parameters when starting JVM?Is it possible to compile Kotlin Native without runtime checks?Kotlin Native equivalent of System.exit(-1)Kotlin native - Execute an executableHow to include text/blob file as resource to be compiled together as executable in Kotlin/Native?Native C library in Kotlin-JVM/AndroidKotlin Native libcurl example on WindowsHow is Kotlin specifically compiled?what's the difference between these classes in Kotlin?How to compile kotlin-native to native library for android (like .so or .a for c++, not jvm library)

Perils of having a moon consisting of valuable material

"Chess is 90% tactics" - should a player focus more on tactics in order to improve?

How to write numbers in the form of using foreach or ...?

Dissecting the exotic bulbfish

Why do aircraft sometimes bounce while landing?

My boss wants me to recreate everything I have done for my previous employer

How to manage publications on a local computer

Unexpected Code Coverage Reduction

How to avoid after work hours team dinner?

Why rounding odd font sizes to even?

Why does nobody understand the grapple rules?

Find peaks, max and min of an interpolation function?

Basic Accidental Question

Russian Roulette (Redux!)

Identify the Eeveelutions

Why do Muslim refugees seek asylum in Europe and not in rich countries in the Middle East?

Conditionals across a new environment

Using footnotes in fiction: children's book which can be enjoyed by adults

Was there a clearly identifiable "first computer" to use or demonstrate the use of virtual memory?

A Simple Battleship Game

50% portfolio in single stock, JPM - appropriate for 80 year old?

What does Bitcoin policy language offer the developer that Miniscript doesn't? What is the difference between Bitcoin policy language and Miniscript?

A Star Trek book I read in the eighties, Kirk is shunned for destroying a civilization

Object Oriented Programming - how to avoid duplication in processes that differ slightly depending on a variable



What's the difference between Kotlin JVM and Kotlin Native?


What are the -Xms and -Xmx parameters when starting JVM?Is it possible to compile Kotlin Native without runtime checks?Kotlin Native equivalent of System.exit(-1)Kotlin native - Execute an executableHow to include text/blob file as resource to be compiled together as executable in Kotlin/Native?Native C library in Kotlin-JVM/AndroidKotlin Native libcurl example on WindowsHow is Kotlin specifically compiled?what's the difference between these classes in Kotlin?How to compile kotlin-native to native library for android (like .so or .a for c++, not jvm library)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2

















So I know Kotlin Native is obviously Native and Kotlin JVM isn't but is the code between Kotlin JVM and Kotlin Native:
1. Different Compiler and Different Code
2. Different Compiler and Similar Code
3. Different Compiler and Same Code
4. None of the above (please explain)










share|improve this question
































    2

















    So I know Kotlin Native is obviously Native and Kotlin JVM isn't but is the code between Kotlin JVM and Kotlin Native:
    1. Different Compiler and Different Code
    2. Different Compiler and Similar Code
    3. Different Compiler and Same Code
    4. None of the above (please explain)










    share|improve this question




























      2












      2








      2








      So I know Kotlin Native is obviously Native and Kotlin JVM isn't but is the code between Kotlin JVM and Kotlin Native:
      1. Different Compiler and Different Code
      2. Different Compiler and Similar Code
      3. Different Compiler and Same Code
      4. None of the above (please explain)










      share|improve this question















      So I know Kotlin Native is obviously Native and Kotlin JVM isn't but is the code between Kotlin JVM and Kotlin Native:
      1. Different Compiler and Different Code
      2. Different Compiler and Similar Code
      3. Different Compiler and Same Code
      4. None of the above (please explain)







      kotlin jvm kotlin-native






      share|improve this question














      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 21:58









      SmushyTacoSmushyTaco

      1392 silver badges11 bronze badges




      1392 silver badges11 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          5


















          The Kotlin/JVM and Kotlin/Native compilers share the front-end (the part that performs code parsing, name resolution, type inference etc.), but the compiler back-ends that translate the internal program representation to the target code (the JVM bytecode and LLVM bitcode, respectively) are different.



          The Kotlin language accepted by the two compilers is the same, but some of the features and checks are platform-specific. Also, the standard libraries for Kotlin/JVM and Kotlin/Native are sufficiently different, see the APIs available on each platform here: Kotlin Standard Library.



          Another big difference is the memory model: Kotlin/JVM uses the Java memory model, while Kotlin/Native offers its own concurrency and memory model.






          share|improve this answer



























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );














            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407468%2fwhats-the-difference-between-kotlin-jvm-and-kotlin-native%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown


























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            5


















            The Kotlin/JVM and Kotlin/Native compilers share the front-end (the part that performs code parsing, name resolution, type inference etc.), but the compiler back-ends that translate the internal program representation to the target code (the JVM bytecode and LLVM bitcode, respectively) are different.



            The Kotlin language accepted by the two compilers is the same, but some of the features and checks are platform-specific. Also, the standard libraries for Kotlin/JVM and Kotlin/Native are sufficiently different, see the APIs available on each platform here: Kotlin Standard Library.



            Another big difference is the memory model: Kotlin/JVM uses the Java memory model, while Kotlin/Native offers its own concurrency and memory model.






            share|improve this answer






























              5


















              The Kotlin/JVM and Kotlin/Native compilers share the front-end (the part that performs code parsing, name resolution, type inference etc.), but the compiler back-ends that translate the internal program representation to the target code (the JVM bytecode and LLVM bitcode, respectively) are different.



              The Kotlin language accepted by the two compilers is the same, but some of the features and checks are platform-specific. Also, the standard libraries for Kotlin/JVM and Kotlin/Native are sufficiently different, see the APIs available on each platform here: Kotlin Standard Library.



              Another big difference is the memory model: Kotlin/JVM uses the Java memory model, while Kotlin/Native offers its own concurrency and memory model.






              share|improve this answer




























                5














                5










                5









                The Kotlin/JVM and Kotlin/Native compilers share the front-end (the part that performs code parsing, name resolution, type inference etc.), but the compiler back-ends that translate the internal program representation to the target code (the JVM bytecode and LLVM bitcode, respectively) are different.



                The Kotlin language accepted by the two compilers is the same, but some of the features and checks are platform-specific. Also, the standard libraries for Kotlin/JVM and Kotlin/Native are sufficiently different, see the APIs available on each platform here: Kotlin Standard Library.



                Another big difference is the memory model: Kotlin/JVM uses the Java memory model, while Kotlin/Native offers its own concurrency and memory model.






                share|improve this answer














                The Kotlin/JVM and Kotlin/Native compilers share the front-end (the part that performs code parsing, name resolution, type inference etc.), but the compiler back-ends that translate the internal program representation to the target code (the JVM bytecode and LLVM bitcode, respectively) are different.



                The Kotlin language accepted by the two compilers is the same, but some of the features and checks are platform-specific. Also, the standard libraries for Kotlin/JVM and Kotlin/Native are sufficiently different, see the APIs available on each platform here: Kotlin Standard Library.



                Another big difference is the memory model: Kotlin/JVM uses the Java memory model, while Kotlin/Native offers its own concurrency and memory model.







                share|improve this answer













                share|improve this answer




                share|improve this answer










                answered Mar 28 at 22:40









                hotkeyhotkey

                79.1k19 gold badges219 silver badges233 bronze badges




                79.1k19 gold badges219 silver badges233 bronze badges

































                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407468%2fwhats-the-difference-between-kotlin-jvm-and-kotlin-native%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown









                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript