r/functionalprogramming • • Jul 08 '25

Question why not Lisp/Haskell used for MachineLearning/AI

i have a course on topic of AI: Search Methods and it the instructor told about Lisp, found out it was a func-lang, also told about functions like car & cdr why in the real world of AI/ML func-langs aren't adopted more when they naturally transfom to operations like, map->filter->reduce->functions

am I missing something ?

56 Upvotes

66 comments sorted by

View all comments

Show parent comment

2

u/eckertliam009 Jul 10 '25

I love lisp but there’s definitely more friction prototyping in lisp than there is in a notebook with Python. You could be prototyping in a Python notebook before you even have your env setup for lisp if you want inlined graphs and other nice features

2

u/deaddyfreddy Jul 10 '25

You could be prototyping in a Python notebook before you even have your env setup for lisp if you want inlined graphs and other nice features

There's Clerk and Clay: just add one dependency to your project - and that's it.

I usually don't need graphs for prototyping at all (I'm a programmer, after all), so I just open a new clj file and type M-x cider-jack-in. In a fraction of a second, Babashka with all its batteries (and PODs, if you need them) is at your service.

It's blazingly fast with no pip hell and no Python at all - amazing!

1

u/eckertliam009 Jul 16 '25

I’m a programmer too and trust me I need graphing often. It’s pretty helpful to graph a few metrics when working on compilers (instruction count, bb count, mem instr ratio, etc) and I guarantee there’s many other domains where programmers need graphs even for low level domains such as mine