News for hackers. Stuff that matters.
Re:An Anecdote About ML Type Inference (1994) by cannam on Thursday August 20, 2020 @02:27PM (#24226683)
Just checked the code examples in a current Standard ML compiler, and they work without modification and behave as described. That's why you should choose Standard ML for your next project.

Great example though. When looking at Idris I had the impression there was a logical end point of having the type system so descriptive that, given the type of a function, there was only one possible implementation.

Re:An Anecdote About ML Type Inference (1994) by iammiles on Thursday August 20, 2020 @05:06PM (#24228977)
I was introduced to SML via Dan Grossman's Programming Languages course [0] and it's quickly become my favorite programming language to work through problems and brain-teasers.

Shame there isn't more non-academic support for it.

[0] - https://www.coursera.org/learn/programming-languages

Re:An Anecdote About ML Type Inference (1994) by bmitc on Friday August 21, 2020 @12:24PM (#24236253)
That is such a good course. I really enjoyed it and need to go back and finish the third part with Ruby.

If you like SML, check out F#. I did part one of that course in SML, F#, Typed Racket, and Scala. F# was by far the cleanest and most concise for each homework assignment. (Most code was written in SML first and then ported to the other languages.)

F# has become my side-project language.

Re:An Anecdote About ML Type Inference (1994) by cmrdporcupine on Thursday August 20, 2020 @02:32PM (#24226772)
About twenty years ago I endeavored to learn both Standard ML and OCaml, and I found I preferred SML. I'm not clear how OCaml has gotten more mindshare, but I really liked SML/NJ.

I suppose back then we were still in the throes of "object-oriented is best" and the "object" in OCaml had some pull

Re:An Anecdote About ML Type Inference (1994) by agumonkey on Thursday August 20, 2020 @03:14PM (#24227427)
I guess so. Both mainstream market mindshare and research freshness. The Ocaml Object System was quite liked at the time for the solid backing.
Re:An Anecdote About ML Type Inference (1994) by hwj on Friday August 21, 2020 @02:30AM (#24232576)
I too prefer SML's syntax, but OCaml seems to have better tools.
Re:An Anecdote About ML Type Inference (1994) by vslira on Thursday August 20, 2020 @02:48PM (#24227028)
People compare type checkers with guard rails. In this regard, programming in SML is more like taking the subway :)
Re:An Anecdote About ML Type Inference (1994) by msla on Thursday August 20, 2020 @02:46PM (#24226994)
It's also really easy to translate them into Haskell.