{"id":680,"date":"2012-04-30T09:03:50","date_gmt":"2012-04-30T14:03:50","guid":{"rendered":"http:\/\/alarmingdevelopment.org\/?p=680"},"modified":"2012-05-01T16:39:01","modified_gmt":"2012-05-01T21:39:01","slug":"an-ide-is-not-enough","status":"publish","type":"post","link":"https:\/\/alarmingdevelopment.org\/?p=680","title":{"rendered":"An IDE is not enough"},"content":{"rendered":"<p>The internets are buzzing with new IDE ideas. I credit Bret Victor&#8217;s <a href=\"http:\/\/vimeo.com\/36579366\">masterful demo<\/a> for much of this. Chris Granger is having amazing success <a href=\"http:\/\/www.kickstarter.com\/projects\/ibdknox\/light-table\">kickstarting <\/a>his IDE concept. Josh Marinacci <a href=\"http:\/\/joshondesign.com\/2012\/03\/14\/sacred-cows-2\">discussed <\/a>some possibilities. [Another one: <a href=\"http:\/\/ermau.com\/making-instant-c-viable-part-1\/\">Instant C#<\/a>] I have been working in this area for over a decade and have very mixed feelings about these events. On the one hand, it is great to wake people out of their stupor and and show them what might be possible. But on the other hand I am bothered with the unspoken implication that such things are possible with current programming languages. Just slap a magical new IDE on top of Java or JavaScript and the world will be a better place. Unfortunately I don&#8217;t believe that is possible, and I fear it will lead only to disappointment and further fatalism.<br \/>\n<!--more--><\/p>\n<p>Live code execution is an instructive issue. Annotate the code with actual execution values. See the semantics of the code change as you edit it. Eliminate debugging! Cool idea. A cool idea that has been proposed repeatedly\u00a0for over 30 years. There is a long history of sketchy demos of live code execution that have never progressed past the demo (including my own). The reason is that there are fundamental and intractable problems. What about mutable state? [but see\u00a0<a href=\"http:\/\/circa-lang.org\/about\/introduction.html\">Circa<\/a>] What about I\/O? What about non-determinism and asynchrony? If live code execution only works for factorial functions and the like, it is pretty much irrelevant to real programmers. In general you will still need to edit dead code and use a traditional debugger to examine its execution. So all you have done is complicate the IDE. Why bother?<\/p>\n<p>The same tradeoff kills many proposals for fancy new ways to visualize code. Hundreds of papers have been published about new ways to query and visualize code. They look pretty in cherry-picked examples, but they don&#8217;t work for the whole range and scale of real world programs. So why bother with the complexity of limited purpose features? Coming up with new general purpose code visualizations is actually very hard, especially if you are not allowed to change the language to help out.<\/p>\n<p>The fundamental reason IDEs have dead-ended is that they are constrained by the syntax and semantics of our programming languages. Our programming languages were all designed to be used with a text editor. It is therefore not surprising that our IDEs amount to tarted-up text editors. Likewise our programming languages were all designed with an imperative semantics that efficiently matches the hardware but defies static visualization. Indeed it would be a miracle if we could slap a new IDE on top of an old language and magically alter its syntactic and semantic assumptions. I don&#8217;t believe in miracles.<\/p>\n<p>Languages and IDEs have co-evolved and neither can change without the other also changing. That is why three years ago I put aside my IDE work to focus on language design. Getting rid of imperative semantics is one of the goals. Another is getting rid of source text files (as well as ASTs, which carry all the baggage of a textual encoding minus the readability). This has turned out to be really really hard. And lonely &#8211; no one wants to even talk about these crazy ideas. Nevertheless I firmly believe that <strong>so long as we are programming in decendants of assembly language we will continue to program in descendants of text editors<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The internets are buzzing with new IDE ideas. I credit Bret Victor&#8217;s masterful demo for much of this. Chris Granger is having amazing success kickstarting his IDE concept. Josh Marinacci discussed some possibilities. [Another one: Instant C#] I have been working in this area for over a decade and have very mixed feelings about these &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/alarmingdevelopment.org\/?p=680\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;An IDE is not enough&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-680","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pfEnU-aY","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/posts\/680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=680"}],"version-history":[{"count":13,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/posts\/680\/revisions"}],"predecessor-version":[{"id":689,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/posts\/680\/revisions\/689"}],"wp:attachment":[{"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}