← Back to context

Comment by tomjen3

22 days ago

Lisp missed its timing. When it was above and beyond everything else and a totally different world, it was way too expensive and way too inefficient.

Today, when mainstream languages have stolen much from Lisp, the benefit of using a language where you can generally just add a gem, egg, or crate is much higher than the benefit of the one thing that is still unique to Lisp: macros. Reflection is inelegant as hell when you compare, but it will get you almost all the way macros do.

At the same time, typed languages have become much more like dynamic languages. The types have disappeared into var and let statements; they are now inferred rather than repeated. Pattern matching has been added, and more—without compromising the benefits for larger teams and larger code bases.

Purists will disagree, but I haven't seen a real world problem solved in Lisp that I couldn't also solve in other languages.

And yes, I am interested in being proven wrong. I want to know what kind of problems still exist that are that hardcore. But I suspect a big part of it is that those who code in this still think the "hello world" for Java looks something like this:

    public class HelloWorld {
      public static void main(String[] args) {
        System.out.println("Hello, World!");
      }
    }

when in reality it now looks like this:

    void main() {
      println("Hello World");
    }

and in C# it looks like this:

    Console.WriteLine("Hello, World!");

And comes with full first class support for Linux and Mac.

Lisp is an intellectual tower and has given an incredible amount to the programming community in terms of ideas and a playground for people to try things. I'm not denying any of that — it should be celebrated. But my thesis is this: most of that has been moved, copied, stolen, and adapted to mainstream programming languages.

>Purists will disagree, but I haven't seen a real world problem solved in Lisp that I couldn't also solve in other languages.

Turing completeness makes "I couldn't also solve" an impossibly high bar.

But if what you mean is, you haven't seen macros used in ways that make you wish your day-job programming language had macros, that's fixable.

  • Not GP and not Lisp programmer. But I'm curious about what you said. If you had to name one popular app or web service (>10,000 monthly unique users) that'd be much easier to clone in Lisp than in Python or Rust, specifically due to macros - what would that be?

    • I'm not active with any Lisp these days myself, either. Back in Web 1.0 days, when a lot of apps were transforming streaming rows of SQL results into grouped HTML entities, I used macros to implement something akin to SQL's LEAD and LAG, but at the application level. I don't have time, so I have to leave it as an exercise to the reader why it would take more verbosity to implement this in another language.

      https://brl.sourceforge.net/brl_4.html#SEC31

      Now, as a non-Lisper, I have to wait and hope the maintainers of programming languages I use will take useful syntax from other languages. Back when I was an active Lisper, I could take such syntax myself.

      6 replies →

> the one thing unique

it's the developer experience

(and the combination of all features, including homoiconic macros)

> a real world problem

You can solve anything with enough sweat ;)

One example? Routific's core algorithm is written in CL (source: its author on HN). Why not Java, like everybody on his field at this time? Because it was too tedious (edit: and we're not talking only about syntax) (there's a blog post somewhere). His prototype evolved in efficient production code, now the heart of the company.

> my thesis: most of that…

agreed on "most". Many features appear here and there in other languages. But there's the parts and the whole.

And the living platform ("stop writing dead programs"), still unique (with Smalltalk).

As big Smalltalk / Lisp / ML languages fanboy, I mostly agree with you.

In fact the main reason I hang around Java and .NET as my main tools, is that those development environments have taken many key features from those programming languages and development experience, to the point that where they still lose to them isn't that much relevant.

Additionally, now with AI code generation, the actual programming language matters even less, natural language can be translated to whatever programming language one feels like, at the whim of a Markdown paragraph describing the desired output, assuming it is supported on the model being used.

However it is kind of sad that we lost the last AI wave from Lisp/Prolog to Python, losing good machine code generation in the process.

And I have seen many real problems solved with Lisp, regardless, that is why commercial Lisps like LispWorks and Allegro are still in business.

> I haven't seen a real world problem solved in Lisp

Bruh... Nubank is literally the biggest effing digital bank in the world. Famously built on Clojure stack. Just because you have not seen shit it doesn't mean it's not happening.

Apple, Netflix, Amazon, Walmart, NASA - they all use Lisp, and that's just the States. There are tons of European startups building on it.

> Lisp missed its timing.

It is literally timeless. Emacs just turned 50. Name a single half-a-century old software product that's being actively used, developed and improved. r/emacs subreddit gets daily, daily! updates of new Emacs package announcements.

> most of that has been moved, copied, stolen, and adapted to mainstream programming languages.

Totally. Except homoiconicity. The point of which the majority of programmers miss, misunderstand, or ignore. The bigger point programmers miss is that Lisp effectively proves that largely the syntax of programming languages doesn't really matter. What matters is the runtime. And Lisp today runs practically on every possible runtime. Meaning that to be a polyglot, you don't really need to know dozens of PLs, you can just understand homoiconicity and voila - you can practically ship software for any runtime. Syntax is the cheap part, and Lisp shows it well: Clojure on the JVM and CLR, Clojurescript on JS, Fennel on Lua, Hy on Python, LFE on BEAM, Jank on LLVM, etc. The surface stays the same, and the host changes underneath. Then you learn runtimes and type systems, which is the real work of being a polyglot. That is a big win. Most programmers spend years on syntax and then mistake it for knowing a language. Learn the damn Lisp. It is enormously practical.

> still think the "hello world ...

Who the fuck cares about intricacies? In pretty much [almost] every Lisp dialect it would be just:

(print "Hello, World!")

For EVERY different runtime.