{"id":16600,"date":"2016-12-12T15:27:01","date_gmt":"2016-12-12T20:27:01","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=16600"},"modified":"2016-12-12T15:27:01","modified_gmt":"2016-12-12T20:27:01","slug":"the-opportunity-of-swift-on-the-server","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/12\/12\/the-opportunity-of-swift-on-the-server\/","title":{"rendered":"The Opportunity of Swift on the Server"},"content":{"rendered":"<p><a href=\"https:\/\/www.knitelius.com\/2016\/12\/12\/swift-for-beans-java-developers-view-on-swift\/\">Stephan Knitelius<\/a> (via <a href=\"https:\/\/twitter.com\/clattner_llvm\/status\/808388177459220480\">Chris Lattner<\/a>):<\/p>\n<blockquote cite=\"https:\/\/www.knitelius.com\/2016\/12\/12\/swift-for-beans-java-developers-view-on-swift\/\"><p>Java and other languages that compile to Java byte code run on the JVM. In a world of Docker containers the JVM is just <em>yet another layer<\/em> eating up resources. The claim &ldquo;write once run any where&rdquo; is just as true for a Swift applications packaged into a Docker container as for a Java Application running on top of a JVM.<\/p>\n<p>Running an application in JVM, that is running in a Docker container, that is running on a virtual host seems rather ludicrous. Swift compiling to native machine code, has the advantage of a rather small memory footprint. When running hundreds or thousands of instances, as many tech companies do, even saving a couple of MB on memory footprint generates real business incentive.<\/p>\n<p>[&#8230;]<\/p>\n<p>Also garbage collection comes at a high cost. Employing concurrent mark and sweep algorithms, it still requires more memory and CPU cycles then immediately assigning and releasing memory as needed.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Stephan Knitelius (via Chris Lattner): Java and other languages that compile to Java byte code run on the JVM. In a world of Docker containers the JVM is just yet another layer eating up resources. The claim &ldquo;write once run any where&rdquo; is just as true for a Swift applications packaged into a Docker container [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[55,288,84,571,71,901],"class_list":["post-16600","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-arc","tag-garbargecollection","tag-java","tag-memory-management","tag-programming","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=16600"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16600\/revisions"}],"predecessor-version":[{"id":16601,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16600\/revisions\/16601"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=16600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=16600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=16600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}