5 ms·
> Why is most AI work done in Lisp? That’s changed, of course, but it remained true for at least another 15 or 20 years after this article was written and then
by dahart 2y ago
> Why is most AI work done in Lisp?
That’s changed, of course, but it remained true for at least another 15 or 20 years after this article was written and then changed rather quickly, perhaps cemented with deep neural networks and GPUs.
Other than running the emacs ecosystem, what else is Lisp being used for commonly these days?
- volltrottel 2y agoRunning hacker news
- tombert 2y agoCan't speak for the entire industry obviously, but at a few jobs I've had [1] Clojure is used pretty liberally for network-heavy stuff, largely because it's JVM and core.async is pretty handy for handling concurrency. I know a lot of people classify "Clojure" and "Lisp" in different categories, but I'm not 100% sure why. [1] Usual disclaimer: It's not hard to find my job history, I don't hide it, but I politely ask that you don't post it here.
- packetlost 2y ago> I know a lot of people classify "Clojure" and "Lisp" in different categories, but I'm not 100% sure why It mostly boils down to Clojure not having CONS cells. I feel like this distinction is arbitrary because the interesting aspect of Lisps is not the fact that linked-lists are the core data-structure (linked-lists mostly suck on modern hardware), but rather that the code itself is a tree of lists that enables the code to be homoiconic.
- pfdietz 2y agoI mean, you can have a tree of vectors also, so I don't see why lists are needed for homoiconicity.
- iLemming 2y agoNo, not needed. This argumentation can go both ways; some may even say, "Well, Python is 'Lispy,'" which to me is obviously not. It boils down to what can you do in the REPL, right? https://news.ycombinator.com/item?id=41844611 https://news.ycombinator.com/item?id=41844611
- vnorilo 2y agoIn my mind Clojure is Lispy, Python is not, nor is Javascript. In addition to REPL and macros, I think two other Lispy features are essential: nil is not just the sad path poison value that makes everything explode: lisp is written so that optionals compose well. Speaking of composing, Lisps tend to be amazing with regard to composability. This is another line that cuts between CL, Scheme and Clojure on one side, with Python and Javascript firmly on the other side in my experience. Lisps are as dynamic a languages ever go, unapologetically.
- iLemming 2y agoI just wanted to add that "dynamic" doesn't mean untyped or weakly typed. Clojure is a strongly-typed dynamicly-typed PL. Clojurescript compiler for example, in many cases can produce safer JS code than even Typescript ever could.
- tombert 2y agoOut of curiosity, can you give an example of where ClojureScript is safer than TypeScript? I'm pretty far removed from the frontend world so this sounds pretty interesting to me.
- iLemming 2y agoThis is a slightly expanded answer to your question, apologies for the external link, I could of course repeat here verbatim, but let's not increase entropy needlessly, right? https://www.reddit.com/r/Clojure/comments/1dyjwyo/is_it_easier_to_write_oneliners_in_clojure_than/lclna76/ https://www.reddit.com/r/Clojure/comments/1dyjwyo/is_it_easi... Beware though, that there are today more than one flavor of Clojurescript, nbb for instance still acts just like JS in this regard.
- iLemming 2y agoSome purist won't consider Clojure a "true" Lisp, but it's a Lisp dialect. > what else is Lisp being used for commonly these days? Anything that runs on Clojure - Cisco has their cybersec platform and tooling running on it; Walmart their receipt system; Apple - their payments (or something, not sure); Nubank's entire business runs on it; CircleCI; Embraer - I know uses Clojure for pipelines, not sure about CL, in general Common Lisp I think still quite used for aircraft design and CAD modeling; Grammarly - use both Common Lisp and Clojure; Many startups use Clojure and Clojurescript. Fennel - Clojure-like language that compiles to Lua can handle anything Lua-based - people build games, use it to configure their Hammerspoon, AwesomeWM, MPV, Wez terminal and things-alike, even Neovim - it's almost weird how we're circling back - decades of arguing Emacs vs. Vim, and now getting Vim to embrace Lisp.
- casta 2y agoThe pricing engine for Google Flights (and behind many big airline websites) is written in Lisp.
- mepian 2y ago>what else is Lisp being used for commonly these days? It is being used for formal verification in the semiconductor industry by companies like AMD, Arm, Intel, and IBM: https://www.cs.utexas.edu/~moore/acl2/ https://www.cs.utexas.edu/~moore/acl2/
- nextos 2y ago> Why is most AI work done in Lisp? Yann LeCun developed Lush, which is a Lisp for neural networks, during the early days of deep architectures. See https://yann.lecun.com/ex/downloads/index.html https://yann.lecun.com/ex/downloads/index.html and https://lush.sourceforge.net https://lush.sourceforge.net. Things moved to Python after a brief period when Lua was also a serious contender. LeCun is not pleased with Python. I can't find his comments now, but he thinks Python is not an ideal solution. Hard to argue with that, as its mostly a thin wrapper over C/C++/FORTRAN that poses an obvious two-language problem.
- sourcepluck 2y agoHadn't seen that before, very interesting!
- buescher 2y agoA friend used lush as his “secret weapon” for a while. I didn’t quite warm to it and now regret not paying attention. It’s amazing how much is packed in “batteries included.” Apparently it didn’t make the transition to 64-bit machines well? But I haven’t really looked.
- shawn_w 2y agoIt's just as easy to have thin wrappers over C/etc. number crunching libraries in Common Lisp as it is Python. And pure CL code is typically faster than pure Python (though pypy might be a different story). There's no technical reason it still couldn't be dominant in AI. It's a shame things took the course they did with preferred languages.
- mportela 2y agoMy take is that Python won by having a complete ecosystem centralizing many tools that were dispersed in different languages: - Numpy/Scipy/Matplotlib enabled scientists to do data analysis with Panda similar to what was available in R - PySpark enabled big data scripts in Python instead of Scala - PyTorch made Torch available for non-Lua users Bit by bit, more people got used to doing data analysis and AI research in Python. Some projects were even written for Python first (e.g. Tensorflow or Keras). Eventually, Python had so many high-quality packages that it became the de facto for modern AI. Is it the _best_ language for AI, though? I doubt. However, it is good enough for most use cases.
- sourcepluck 2y agoI think personally that Coalton and the stuff its built on is crazy cool. Coalton is a little library you add to your Lisp, but, to quote the third link here: "In terms of its type system, Coalton’s closest cousin is Haskell." So Lisp's dynamism with all sorts of advanced typing. QVM, a Quantum Virtual Machine https://github.com/quil-lang/qvm https://github.com/quil-lang/qvm Quilc, an "advanced optimizing compiler" for Quil https://github.com/quil-lang/quilc https://github.com/quil-lang/quilc Coalton, "a statically typed functional programming language built with Common Lisp." https://coalton-lang.github.io/20211010-introducing-coalton/ https://coalton-lang.github.io/20211010-introducing-coalton/
- ryukafalz 2y agoGuix is a Nix-like package manager and distro that is almost entirely written in Guile Scheme: https://guix.gnu.org/ https://guix.gnu.org/ I would guess it's by far the most active Guile project.
- jjtheblunt 2y agoGrammarly was famously using it. https://www.grammarly.com/blog/engineering/running-lisp-in-production/ https://www.grammarly.com/blog/engineering/running-lisp-in-p...
- vindarel 2y agoQuantum computing and symbolic AI? But also web services, CAD and 3D software, trading, designing programmable chips, big data analytics… present companies (that we know about): https://github.com/azzamsa/awesome-lisp-companies/ https://github.com/azzamsa/awesome-lisp-companies/
- tmtvl 2y ago> what [...] is Lisp being used for [...] these days? I dunno, there's Nyxt, Google Flights, MediKanren, there's some German HPC guys doing stuff with SBCL, Kandria,... I believe there's also a HFT guy using Lisp who's here on HN. LispWorks and Franz are also still trucking, so they prolly have clientele. There are fewer great big FLOSS Lisp projects than C or Rust, but that doesn't really tell the whole story. Unfortunately proprietary and internal projects are less visible.
- chromaton 2y agoAutoCAD automation?
- fuzztester 2y agoYes. AutoLisp was available from the early days of AutoCAD. I didn't use it much myself. I just helped some mechanical engineers with it in a company where I worked, in small ways, just tinkering, really. At that time I was quite junior, so I didn't really grasp the power of it, so I didn't play around with it much.
- deleted 2y ago[deleted]
- knbknb 2y agoSome computer science departments (and their MOOCs) use Lisp Dialects "Racket" and "Scheme" as a Teaching Language . For example, IDE DrRacket has an innovative language preselection feature that allows students to start out with a "Beginning Student Language". https://www.racket-lang.org/ https://www.racket-lang.org/