{"id":22380,"date":"2018-08-06T14:57:01","date_gmt":"2018-08-06T18:57:01","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=22380"},"modified":"2018-08-07T16:06:17","modified_gmt":"2018-08-07T20:06:17","slug":"ios-12-relies-on-downloaded-lua-code","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2018\/08\/06\/ios-12-relies-on-downloaded-lua-code\/","title":{"rendered":"iOS 12 Relies on Downloaded Lua Code"},"content":{"rendered":"<p><a href=\"https:\/\/twitter.com\/_inside\/status\/1026173832527265792\">Guilherme Rambo<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/_inside\/status\/1026173832527265792\"><p>Fun fact: some of the predictive stuff on iOS 12 is based on Lua code downloaded from Apple&rsquo;s servers, which means the behavior can be updated without the need for a full OS update<\/p><\/blockquote>\n\n<p>Via <a href=\"https:\/\/twitter.com\/alexisgallagher\/status\/1026441355051102209\">Alexis Gallagher<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/alexisgallagher\/status\/1026441355051102209\">\n<p>Surprising on a few levels, in increasing order:<\/p>\n<ol>\n<li>That iOS uses Lua to define ad hoc logic for some predictive systems &#x2705;<\/li>\n<li>That it downloads the code separately from OS updates &#x1F62E;<\/li>\n<li>That the code ships unobfuscated with comments. &#x1F640;<\/li>\n<\/ol>\n<\/blockquote>\n\n<p>Of course, third-party apps are not allowed to do this.<\/p>\n\n<p>Previously: <a href=\"https:\/\/mjtsai.com\/blog\/2017\/06\/13\/executable-code-in-educational-apps\/\">Executable Code in Educational Apps<\/a>, <a href=\"https:\/\/mjtsai.com\/blog\/2014\/06\/08\/editorial-1-1-1-rejected-from-the-app-store\/\">Editorial 1.1.1 Rejected From the App Store<\/a>, <a href=\"https:\/\/mjtsai.com\/blog\/2017\/03\/08\/apple-rejecting-apps-that-use-rollout\/\">Apple Rejecting Apps That Use Rollout<\/a>, <a href=\"https:\/\/mjtsai.com\/blog\/2014\/06\/12\/pythonista-in-app-store-peril\/\">Pythonista in App Store Peril<\/a>, <a href=\"https:\/\/mjtsai.com\/blog\/2011\/03\/29\/briefs-rejected-from-the-app-store-again\/\">Briefs Rejected From the App Store, Again<\/a>.<\/p>\n\n<p>Update (2018-08-07): <a href=\"https:\/\/twitter.com\/McCloudStrife\/status\/1026581388923793409\">McCloud<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/McCloudStrife\/status\/1026581388923793409\">\n<p>In a past life I spotted Apple using Lua in <a href=\"https:\/\/opensource.apple.com\/source\/IOHIDFamily\/IOHIDFamily-870.1.10\/tools\/hidScript\/hidScript.cpp.auto.html\">other places<\/a>.<\/p>\n<\/blockquote>\n\n<p>See also: <a href=\"https:\/\/news.ycombinator.com\/item?id=17700894\">Hacker News<\/a>, <a href=\"https:\/\/www.reddit.com\/r\/apple\/comments\/954ys3\/ios_12_relies_on_downloaded_lua_code\/\">Reddit<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Guilherme Rambo: Fun fact: some of the predictive stuff on iOS 12 is based on Lua code downloaded from Apple&rsquo;s servers, which means the behavior can be updated without the need for a full OS update Via Alexis Gallagher: Surprising on a few levels, in increasing order: That iOS uses Lua to define ad hoc [&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":"2018-08-07T20:06:19Z","apple_news_api_id":"a3f55350-c8c1-4826-b52c-25f642a2b4dd","apple_news_api_modified_at":"2018-08-07T20:06:21Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAg==","apple_news_api_share_url":"https:\/\/apple.news\/Ao_VTUMjBSCa1LCX2QqK03Q","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":[91,31,1610,387],"class_list":["post-22380","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-appstore","tag-ios","tag-ios-12","tag-lua"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/22380","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=22380"}],"version-history":[{"count":4,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/22380\/revisions"}],"predecessor-version":[{"id":22387,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/22380\/revisions\/22387"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=22380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=22380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=22380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}