News for hackers. Stuff that matters.
Re:The case for dynamic, functional programming by grumpyprole on Wednesday November 23, 2022 @04:54PM (#33725015)
Lisp evolved into ML and Haskell and these have influenced professional programming enormously over the last few decades. Or are you advocating we ditch all progress and go back to Lisp? Have you tried an ML such as OCaml?
Re:The case for dynamic, functional programming by bslatkin on Wednesday November 23, 2022 @05:37PM (#33725410)
Why do you think so many Lisp fans (e.g., Norvig) went on to use Python instead of those ML alternatives?
Re:The case for dynamic, functional programming by grumpyprole on Wednesday November 23, 2022 @05:44PM (#33725478)
Norvig is a teacher and author who wants to reach the widest audience possible. So in his case, it was either Java or Python.
Re:The case for dynamic, functional programming by charlieflowers on Thursday November 24, 2022 @12:14AM (#33727999)
Norvig wrote an article or post where he deemed Python to be “an acceptable lisp” (or something like that, I may not have it exactly right).
Re:The case for dynamic, functional programming by grumpyprole on Thursday November 24, 2022 @02:13AM (#33728563)
Hardly a ringing endorsement! Python is certainly succinct and expressive like Lisp (when his alternative is Java). ML was designed to be a better Lisp.
Re:The case for dynamic, functional programming by lispm on Thursday November 24, 2022 @10:16AM (#33732221)
ML wasn't designed as a better Lisp. It was designed as a 'better' (and statically typed) functional programming language for writing proofs in a theorem prover. The theorem prover and then also the first ML version was written in Lisp. That was the motivation for the first version of ML.
Re:The case for dynamic, functional programming by grumpyprole on Thursday November 24, 2022 @04:56PM (#33736676)
I did not mean to imply it was a Lisp. It was designed to solve the same problems as lisp, i.e. symbolic manipulation; and was used to rewrite code originally written in Lisp.
Re:The case for dynamic, functional programming by lispm on Friday November 25, 2022 @02:24AM (#33740083)
ML was at first a domain specific language for writing/assisting proofs: a) maths-like notation, b) functional, c) statically typed, ...

Lisp did only do b) to some extent. It was and still is common to develop languages as internal or external domain specific languages on top of Lisp. ML was such an example. Often these languages then are/were ported away from Lisp to a specialized (and possibly smaller/more efficient) implementation. Thus Lisp served as a prototyping environment.

Re:The case for dynamic, functional programming by JonChesterfield on Wednesday November 23, 2022 @07:58PM (#33726589)
Influenced but didn't evolve into. For one thing ML and Haskell have a totally different approach to types.
Re:The case for dynamic, functional programming by grumpyprole on Thursday November 24, 2022 @01:51AM (#33728452)
ML was designed in the 70s by Robin Milner to replace all the LISP code he had. Just like LISP it was designed for symbolic manipulation. They are far more similar than you are giving them credit for; and usually recognised as part of the same family tree. The System F calculus also has a "totally different approach to types" but it evolved from the Lambda calculus. ML and Haskell are based on System F and its successors.
Re:The case for dynamic, functional programming by falcolas on Wednesday November 23, 2022 @08:14PM (#33726718)
Frankly, yes, I wouldn't mind going back to boring old lisp. Particularly when confronted with Java or Javascript. I also have no real desire to dive into strongly typed functional languages - see the "dynamic" part of the original title.

And all of those modern functional languages are as fringe (or even more fringe) than Lisp is. I wish this wasn't the case, but let's be honest: programming languages that appeal to mainstream developers and companies will always optimize for development teams of wildly varying skill.

Re:The case for dynamic, functional programming by sidlls on Thursday November 24, 2022 @01:58AM (#33728495)
Why does every thread about functional programming and/or lisp have to have this not-so-subtle dig at developers who don't use them?

Do you really think developers who prefer functional programming or lisp(s) are smarter on average than other developers?

Re:The case for dynamic, functional programming by substation13 on Thursday November 24, 2022 @05:03AM (#33729550)
No smarter, but they likely care a great deal more about programming.
Re:The case for dynamic, functional programming by sidlls on Friday November 25, 2022 @12:32PM (#33744760)
I doubt that very much.
Re:The case for dynamic, functional programming by grumpyprole on Thursday November 24, 2022 @02:06AM (#33728526)
> I also have no real desire to dive into strongly typed functional languages -

That's a big shame. But don't knock it until you've tried it.

> And all of those modern functional languages are as fringe (or even more fringe) than Lisp is.

I'm not convinced Lisp is more popular anymore. I've spent the last 10 years being a full time Haskell and OCaml programmer. The killer application is compilers and associated tooling. Almost no one is choosing Lisp for this today. And why would they?

> but let's be honest: programming languages that appeal to mainstream developers

Where do you think the newer mainstream languages are getting e.g. algebraic datatypes and pattern matching from?

Re:The case for dynamic, functional programming by pjmlp on Thursday November 24, 2022 @07:14AM (#33730441)
Although one point is that many only learn Lisp from FOSS tooling, instead of the Lisp Machine survivors, CCL, Allegro and LispWorks.

One of the talks at this year's HIW is how Haskell could be more better in IDE tooling.

Re:The case for dynamic, functional programming by JonChesterfield on Thursday November 24, 2022 @09:50AM (#33731896)
That's interesting. Have you written anything further about ML vs lisp for tooling, or could point to a reference? Compiler dev here, C++ when paid and lisp when not. Interested in SML but haven't spent the time to assess what I'm missing.

Exhaustive pattern matching over AST nodes is a good trick. That might interact better with the type constructors than ad hoc representation in clos. It seems possible I should stop putting everything in a map.

Is the edge over lisp in the compile time rejection of incorrect programs or elsewhere?

Re:The case for dynamic, functional programming by tralarpa on Thursday November 24, 2022 @03:23AM (#33728940)
> programming languages that appeal to mainstream developers and companies will always optimize for development teams of wildly varying skill

Does emacs have a hotkey for this sentence? Or why does it keep coming up in every discussion remotely related to lisp?