<!--DEBUG:--><!--DEBUG:dc3-united-states-software-in-english-pdf-2--><!--DEBUG:--><!--DEBUG:dc3-united-states-software-in-english-pdf-2--><!--DEBUG-spv-->{"id":417014,"date":"2017-01-21T02:12:00","date_gmt":"2017-01-20T22:12:00","guid":{"rendered":"http:\/\/nhub.news\/?p=417014"},"modified":"2017-01-21T00:16:04","modified_gmt":"2017-01-20T22:16:04","slug":"kotlin-1-1-beta-adds-javascript-compilation","status":"publish","type":"post","link":"http:\/\/nhub.news\/fr\/2017\/01\/kotlin-1-1-beta-adds-javascript-compilation\/","title":{"rendered":"Kotlin 1.1 beta adds JavaScript compilation"},"content":{"rendered":"<p style=\"text-align: justify;\"><img style=\"float: left; padding: 5px;\" width=\"300px\" src=\"http:\/\/cdn.computerworld.com.au\/dimg\/600x600\/\/idg_sites\/logos\/computerworld_6.png\" alt=\"NewsHub\" border=\"0\" \/>Kotlin, JetBrains&rsquo; statically typed language, is bolstering its JavaScript and Java standing with the 1.1 beta release this week, adding JavaScript compilation and coroutines on both the JVM and JavaScript.<br \/>JavaScript compilation had been in an incomplete, experimental phase, even as builders have had JavaScript ambitions for Kotlin for several years. \u00ab\u00a0There were many things missing from the standard library and things such as proper interop with package systems weren&rsquo;t production-ready,\u00a0\u00bb said Hadi Hariri, vice president of developer advocacy at JetBrains. \u00ab\u00a0With 1.1, there was a focus to make all of this happen. \u00ab\u00a0<br \/>The language now has proper support for different types of modules in JavaScript as well as having the standard library in part with the JVM. The compilation capability means developers can use Kotlin strings, collections, sequences, arrays, and other core APIs on JavaScript as well as JVM\/Android, said Antony Breslav, lead language designer for Kotlin at JetBrains. \u00ab\u00a0Numerous popular JS libraries will be available through typed headers (converted from DefinitelyTyped ),\u00a0\u00bb Breslav said.<br \/>JetBrains is supporting popular runtime module systems for JavaScript as well as webpack and other important tools. With Kotlin 1.2 and beyond, JetBrains plans to improve JavaScript tooling. \u00ab\u00a0Our goal is to enable pleasant full-stack development with Kotlin,\u00a0\u00bb Breslav said.<br \/>The beta also has experimental support of coroutines (functions that can be suspended and resumed) on the JVM, Android, and JavaScript. This means developers can use future\/await, yield, and similar programming patterns. With Kotlin&rsquo;s design, the implementation of coroutines is part of the libraries rather than the language, meaning developers are not bound to a specific programming paradigm or concurrency library.<br \/>Type aliases in version 1.1 enable developers to define an alternative name for a type. This is useful for generic types, such as collections, and also for function types. Bound callable references in the beta, meanwhile, allow use of the : operator to access a member reference that points to a method or property of a specific object instance. This previously was reserved for lambdas.<br \/>Compiler plugins are featured to make classes open by default, generation of no-arg constructors, also by default, and extending SAM (single abstract method) conversions. Also, some restrictions on sealed and data classes were removed; developers now can define subclasses of a sealed subclass in the same file and not just as nested classes of the sealed class. Data classes can extend other classes and be used to define a hierarchy of expressions \u00ab\u00a0nicely and cleanly,\u00a0\u00bb JetBrains said. Verson 1.1 deprecates the name mod that was used for the % operator and replaces it with the name ram , which is semantically correct and agrees with libraries like java.math. BigInteger.<br \/>Kotlin joined the fray on the JVM early in the decade. Recently, it has taken hold on the Tiobe language popularity index, reaching into the top 100 of that list. It was ranked 87th this month. Kotlin 1.1 is expected to reach a general release stage this quarter. <br \/>More about<\/p>\n<div id=\"td_post_ranks\" class=\"td-post-comments\" style=\"vertical-align: middle;\">\n<div style=\"float: left;\">\nSimilarity rank: 0\n<\/div>\n<\/div>\n<p><script>\njQuery(function() {\nvar mainContentMetaInfo = '.td-post-header .meta-info';\nvar tdPostRanks = '#td_post_ranks';\nif (jQuery(tdPostRanks).length) {\n    var tdPostRanksHtml = jQuery(tdPostRanks).get(0).outerHTML;\n    if (typeof tdPostRanksHtml != 'undefined') {\n        jQuery(tdPostRanks).remove();\n        jQuery(mainContentMetaInfo).append(tdPostRanksHtml);\n    }\n}\n});\n<\/script><span>&copy; Source: <a href=\"http:\/\/www.computerworld.com.au\/article\/613019\/kotlin-1-1-beta-adds-javascript-compilation\/?utm_medium=rss&amp;utm_source=sectionfeed\" target=\"_blank\">http:\/\/www.computerworld.com.au\/article\/613019\/kotlin-1-1-beta-adds-javascript-compilation\/?utm_medium=rss&amp;utm_source=sectionfeed<\/a><br \/>All rights are reserved and belongs to a source media.<\/span><\/p>\n<script>jQuery(function(){jQuery(\"#td_post_ranks\").remove();});<\/script><script>jQuery(function(){jQuery(\".td-post-content\").find(\"p\").find(\"img\").hide();});<\/script>","protected":false},"excerpt":{"rendered":"<p>Kotlin, JetBrains&rsquo; statically typed language, is bolstering its JavaScript and Java standing with the 1.1 beta release this week, adding JavaScript compilation and coroutines on both the JVM and JavaScript.JavaScript compilation had been in an incomplete, experimental phase, even as builders have had JavaScript ambitions for Kotlin for several years. \u00ab\u00a0There were many things missing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":417013,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[93],"tags":[],"_links":{"self":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts\/417014"}],"collection":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/comments?post=417014"}],"version-history":[{"count":1,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts\/417014\/revisions"}],"predecessor-version":[{"id":417015,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/posts\/417014\/revisions\/417015"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/media\/417013"}],"wp:attachment":[{"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/media?parent=417014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/categories?post=417014"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nhub.news\/fr\/wp-json\/wp\/v2\/tags?post=417014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}