Ask HN: Why should we learn Lisp?
Learn it because you&#x27;re curious about it. If you aren&#x27;t curious about it, don&#x27;t bother.<p>Some people learn it and it becomes important in their lives. I&#x27;m one of those. Others don&#x27;t seem to get much out of it.<p>If you&#x27;re someone who doesn&#x27;t get much out of it, then you won&#x27;t lose much if you don&#x27;t learn it.<p>If, on the other hand, you&#x27;re one of those that it can enrich, then you&#x27;ll be missing out on a lot if you don&#x27;t learn it.<p>There are a few ways that Lisp can be important.<p>One way is by being a small set of concepts with large ramifications. Alan Kay (the creator of Smalltalk) famously described it as &quot;the Maxwell&#x27;s Equations of software&quot;, meaning that the short page of pseudocode that defines Lisp also defines all of computation.<p>In case you want to know what short page he was talking about, it&#x27;s a page from the Lisp 1.5 manual, which you can find here:<p><a href="https:&#x2F;&#x2F;michaelnielsen.org&#x2F;ddi&#x2F;wp-content&#x2F;uploads&#x2F;2012&#x2F;04&#x2F;Lisp_Maxwells_Equations.png" rel="nofollow">https:&#x2F;&#x2F;michaelnielsen.org&#x2F;ddi&#x2F;wp-content&#x2F;uploads&#x2F;2012&#x2F;04&#x2F;Li...</a><p>What Kay meant, as he has explained before, is that once you understand that page, you understand the foundations of computation, and can use them to build anything you need.<p>Realizing that all of computation is embodied in a small set of concepts that can be written down on less than one page and understood in a brief moment is an empowering realization. It means that there is a small toolkit that offers you unlimited expressive power. It means that a set of tools you can hold in your hands offers you the power to build worlds.<p>Another way Lisp can enrich you is by providing a programming system of unsurpassed flexibility and interactivity. Old-fashioned Lisps (and Smalltalks) are designed to redefine themselves as they run, enabling you to build up structures of arbitrary complexity by interacting with them, and to interrogate, comprehend, and modify those structures while they continue to run.<p>Different kinds of programming systems provide different levels of support for interactivity and livecoding. Old-fashioned Lisp and Smalltalk systems are at the extremely interactive end of the spectrum, and are worth learning just to see what that looks like. Not everyone prefers extremely interactive programming systems, but, again, if you&#x27;re someone who does, then you&#x27;ll be missing out if you don&#x27;t experience what it&#x27;s like to redefine some part of a running program and watch it adapt in real time to your new definitions.<p>Another way Lisp can enrich you is by illustrating what happens when you make it really really easy to manipulate code.<p>Most programming languages&#x27; source code is made of text strings. Lisp code isn&#x27;t. Lisp code is made of s-expressions--that is, lists and atoms. Yes, you typically write it in the form of text strings, but the text strings are not Lisp code; they are one possible serialization of Lisp code. Others are possible.<p>(Historically, some Lisps have offered editors that bypass text strings and work directly on s-expressions in memory. One such editor is INTERLISP&#x27;s S-Edit.)<p>When you give your text to Lisp, it starts by deserializing it into actual Lisp source code. Because the source code is made of lists and atoms, which are standard, first-class Lisp data structures, the source code is really really easy to operate on. You can walk its structure, take it apart, analyze it, put it back together, transform it, rewrite it, and so on, all using standard, built-in Lisp functions.<p>A C compiler does all of these sorts of things in the process of compiling C code, but it doesn&#x27;t typically expose its internal data structures or the functions that operate on them to you, the programmer. Lisp uses standard, built-in data structures to represent its source code--data structures that are available to you as a user. It uses standard, built-in procedures to operate on the code--procedures that are part of the standard API of the language. Everything it uses to process and compile source code, you can use for your own purposes just as easily.<p>That circumstance makes it unusually easy to write a wide variety of coding tools in Lisp, including code walkers, analyzers, macro processors, editors, interpreters and compilers, optimizers, code-coverage tools, cross-referencers, and so on. It can be inspiring to work with rich Lisp development environments and see what people build when it&#x27;s so easy to work with source code. It&#x27;s one of the reasons that so many experiments in language design have emerged from Lisp. It&#x27;s also a reason that Lisp programmers come to like the idiosyncratic parenthesized syntax that seems to unappealing at first. That syntax--those s-expressions--are part of what makes it so easy to work with Lisp code.<p>If your reaction is, &quot;so what?&quot; then Lisp may not be for you. If you&#x27;re intrigued, then I recommend you learn more about Lisp. You might find that it enriches your life.<p>I&#x27;d say the main hazard is discovering that you really love it, and that it&#x27;s relatively hard to find employers who will pay you to work with it all day. On the other hand, if you do happen to love Lisp, and you do find a job working with it, it&#x27;s worth the wait.