{"id":36468,"date":"2022-07-08T16:36:22","date_gmt":"2022-07-08T20:36:22","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=36468"},"modified":"2022-07-08T17:29:39","modified_gmt":"2022-07-08T21:29:39","slug":"compileit-for-hypercard","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/07\/08\/compileit-for-hypercard\/","title":{"rendered":"CompileIt for HyperCard"},"content":{"rendered":"<p><a href=\"https:\/\/www.lowendmac.com\/ed\/rlawson\/rl07\/1004.html\">Tom Pittman<\/a> in 2007 (via <a href=\"https:\/\/twitter.com\/davekopec\/status\/1544479920696557568\">David Kopec<\/a>):<\/p>\n<blockquote cite=\"https:\/\/www.lowendmac.com\/ed\/rlawson\/rl07\/1004.html\"><p>When HyperCard came out, Bill Atkinson said there would never be a HyperCard compiler. Strictly, he was right, because you can write self-modifying scripts in HyperCard, and that just can&rsquo;t be compiled in any reasonable way. But I figured that most of what people do can be compiled, and I could punt the rest. Besides, it would be fun to prove Atkinson wrong.<\/p><p>Pundits were also saying that HyperCard was too limited to do useful things. I decided to prove them wrong at the same time by writing my compiler entirely in HyperCard. I did that. I never used any other programming tool besides ResEdit (and a text editor) for any version of CompileIt, not even the first one, which I wrote completely in HyperTalk. It was incredibly slow, but it worked. Then I compiled it in itself, and it got much faster.<\/p><\/blockquote>\n<p><a href=\"http:\/\/www.ittybittycomputers.com\/IttyBitty\/CompileIt\/index.html\">Tom Pittman<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.ittybittycomputers.com\/IttyBitty\/CompileIt\/index.html\"><p>The commercial version of CompileIt has full access to all (68K) ToolBox\ncalls and can generate just about any (again 68K) code resource. I have\ndone INITs and whole programs strictly in CompileIt.\nIn fact, after CompileIt was working (1994) everything I ever did on the\nMac (including CompileIt itself) was compiled in CompileIt -- until 2004,\nwhen I started migrating my tool base to the new language I call\n<a href=\"http:\/\/www.ittybittycomputers.com\/Essays\/Turk2white.htm\">Turkish\nDemitasse<\/a> (T2). Most of the tools I used in the transition to T2 were\nstill running in HyperCard and\/or CompileIt.<\/p><p>[&#8230;]<\/p><p>I see that both <a href=\"http:\/\/macintoshgarden.org\/apps\/compileit\">CompileIt<\/a>\nand <a href=\"http:\/\/macintoshgarden.org\/apps\/double-xx\">Double-XX<\/a> are\nalso available on the <a href=\"http:\/\/macintoshgarden.org\/\">MacintoshGarden\narchive site<\/a>.<\/p><p>When HyperCard was converted to PPC I tried converting CompileIt to generate PPC native code, but it got too messy and I gave up.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Tom Pittman in 2007 (via David Kopec): When HyperCard came out, Bill Atkinson said there would never be a HyperCard compiler. Strictly, he was right, because you can write self-modifying scripts in HyperCard, and that just can&rsquo;t be compiled in any reasonable way. But I figured that most of what people do can be compiled, [&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":"2022-07-08T20:36:27Z","apple_news_api_id":"9f96d8a3-0041-45f3-90bc-7caa354d13c9","apple_news_api_modified_at":"2022-07-08T21:29:43Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/An5bYowBBRfOQvHyqNU0TyQ","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":[2],"tags":[401,255,725,295,666,30,2244,71],"class_list":["post-36468","post","type-post","status-publish","format-standard","hentry","category-technology","tag-680x0","tag-compiler","tag-douglas-adams","tag-history","tag-hypercard","tag-mac","tag-myst","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36468","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=36468"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36468\/revisions"}],"predecessor-version":[{"id":36470,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36468\/revisions\/36470"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=36468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=36468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=36468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}