{"id":27645,"date":"2019-12-20T14:09:39","date_gmt":"2019-12-20T19:09:39","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=27645"},"modified":"2019-12-20T14:09:39","modified_gmt":"2019-12-20T19:09:39","slug":"the-cub-programming-language","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2019\/12\/20\/the-cub-programming-language\/","title":{"rendered":"The Cub Programming Language"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/louisdh\/cub\">Louis D&rsquo;hauwe<\/a>:<\/p>\n<blockquote cite=\"https:\/\/github.com\/louisdh\/cub\"><p>Cub is an interpreted, dynamically typed, scripting language inspired by Swift. This project includes a lexer, parser, compiler and interpreter, all written in Swift.<\/p><p>Cub is used for <a href=\"https:\/\/github.com\/louisdh\/openterm\">OpenTerm<\/a>&rsquo;s scripting feature. A language guide is available in OpenTerm and <a href=\"https:\/\/silverfox.be\/cub\/guide\/index.html\">online<\/a>.\nCub was derived from <a href=\"https:\/\/github.com\/louisdh\/lioness\">Lioness<\/a> (my first programming language).<\/p><p>The standard library (abbreviated: stdlib) contains basic utility functions, for example to convert from\/to dates.<\/p><\/blockquote>\n\n<p>Via <a href=\"https:\/\/twitter.com\/superezfe\/status\/1203025572521222145\">Ezekiel Elin<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/superezfe\/status\/1203025572521222145\"><p>Found in the Apple Research app<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/hhas02\/status\/1204354344835006464\">Hamish Sanderson<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/hhas02\/status\/1204354344835006464\">\n<p>The author joined Apple in 2018 as an Xcode engineer. Read as much or as little into that as you want.<\/p>\n<p>(Not that I&rsquo;m thrilled by the thought of yet another 1990s-era scripting lang, but honestly at this point <em>any<\/em> sign of a clear automation strategy at Apple would be welcome.)<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Louis D&rsquo;hauwe: Cub is an interpreted, dynamically typed, scripting language inspired by Swift. This project includes a lexer, parser, compiler and interpreter, all written in Swift.Cub is used for OpenTerm&rsquo;s scripting feature. A language guide is available in OpenTerm and online. Cub was derived from Lioness (my first programming language).The standard library (abbreviated: stdlib) contains [&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":"2019-12-20T19:09:43Z","apple_news_api_id":"9ade6e31-1a61-4f54-aa98-547f3115a6fe","apple_news_api_modified_at":"2019-12-20T19:09:43Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/Amt5uMRphT1SqmFR_MRWm_g","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":[1903,31,1667,46,30,1666,71,1159,901],"class_list":["post-27645","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cub-programming-language","tag-ios","tag-ios-13","tag-languagedesign","tag-mac","tag-macos-10-15","tag-programming","tag-researchkit","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27645","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=27645"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27645\/revisions"}],"predecessor-version":[{"id":27646,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27645\/revisions\/27646"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=27645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=27645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=27645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}