News for hackers. Stuff that matters.
Re:A Tour of Standard ML by dragonwriter on Wednesday January 29, 2020 @02:30PM (#22184812)
> SML is kind of like the lisp of FP.

Lisp is the Lisp of FP.

SML is more the SML of FP. Alternatively, SML can be viewed as the Lisp of statically-typed FP, in that, loosely, SML : Static FP :: Lisp : DynamicFP

Re:A Tour of Standard ML by mumblemumble on Wednesday January 29, 2020 @11:58PM (#22188973)
"Functional programming" is a term with a few meanings.

Notably, the paper that (I believe) coined the term, "Can Programming be Liberated from the Von Neumann Style?" by John Backus, spent a fair amount of ink on specifically calling lisp out, and contrasting it from what he had in mind. IIRC, he felt that FP was preferable to the lisp model because lisp gives you too much power: Mutable variables, ways of composing functions that are potentially more error prone due to domain/range mismatch gotchas, stuff like that could all be impediments to ensuring the correctness of programs. I think that, to some extent, a sort of Haskellian fastidiousness about correctness is what he felt this proposed functional style of programming was all about.

Re:A Tour of Standard ML by gpderetta on Wednesday January 29, 2020 @04:04PM (#22185798)
Scheme is the lisp of FP. My understanding is that idiomatic lisp is quite imperative.
Re:A Tour of Standard ML by wirrbel on Wednesday January 29, 2020 @05:10PM (#22186427)
So is scheme quite often. It appears functional looking at idiomatic scheme code relying on tail-recursive programming for loops, it appears procedural/imperative if you look at all the mutation used in scheme code (fun fact: the Scheme standards R*RS do not speak of functions but of procedures). Higher-order functions aren't used all that much in many scheme code bases which is odd from the perspective of a Haskell dev.
Re:A Tour of Standard ML by gpderetta on Thursday January 30, 2020 @08:13PM (#22197998)
Thanks for the info. My knowledge of the lisp family is quite limited outside of emacs lisp (which usually has a quite imperative feeling).
Re:A Tour of Standard ML by afiori on Wednesday January 29, 2020 @05:50PM (#22186860)
With my limited experience lisp is significantly not functional, or better is definitely an outlier in an unusual direction in the cluster of functional languages.

To me it feels much more like a symbolic computation oriented language.

But maybe it is because I associate too much fp with some kind of parametric typing