News for hackers. Stuff that matters.
Re:OCaml for the Skeptical: OCaml in a Nutshell (2006) by millimeterman on Sunday August 02, 2020 @03:52PM (#24031155)
I don't know if I'd call OCaml dead simple. It's full of inconsistencies and bolted-on features that are practically useful but definitely not simple or elegantly designed. It's kind of like the C++ of ML derivatives in that sense.

I'd say Standard ML better fits the bill of "dead simple". The only issue is that tooling and learning resources are nearly nonexistent.

Re:OCaml for the Skeptical: OCaml in a Nutshell (2006) by andrepd on Sunday August 02, 2020 @08:40PM (#24033040)
>full of inconsistencies and bolted-on features that are practically useful but definitely not simple or elegantly designed

Care to elaborate? What are you referring to?

Re:OCaml for the Skeptical: OCaml in a Nutshell (2006) by millimeterman on Monday August 03, 2020 @10:25PM (#24045896)
Just some examples:

- First-class modules don't feel very first class, with how clunky it is to use modules at the value level

- Records are very clunky and hacky to use

- Generative functors are a hack

- Special language-level equality magic is awful (although SML also has this problem)

- Special `let` forms (whether via ppx or integrated into the language) feel really hacky

- GADTs require too much handholding of the typechecker

- All the "Objective" parts have very few redeeming qualities and should probably never have existed

- The way infix operators work is really half-assed

I don't think OCaml is a _bad_ language - it's very practically useful. It's just not simple or elegant.

Re:OCaml for the Skeptical: OCaml in a Nutshell (2006) by ernst_klim on Wednesday August 05, 2020 @07:04AM (#24059381)
Words like "clunky" and "hacky" are evaluation judgments, not objective criticism.
Re:OCaml for the Skeptical: OCaml in a Nutshell (2006) by yawaramin on Sunday August 02, 2020 @07:51PM (#24032796)
The main issue with Standard ML is that it's a dead language–it can't evolve beyond its current state. OCaml by comparison is steadily evolving.
Re:OCaml for the Skeptical: OCaml in a Nutshell (2006) by bctnry on Sunday August 02, 2020 @10:28PM (#24033638)
That's effectively not true[1].

[1]: https://github.com/SMLFamily/Successor-ML

Re:OCaml for the Skeptical: OCaml in a Nutshell (2006) by yawaramin on Sunday August 02, 2020 @10:35PM (#24033678)
That repo is a bunch of TeX files (not even an implementation) that haven't been touched since 2018. I stand by my statement.

By the way, the Successor ML wiki says[1]:

> Standard ML, being incapable of evolution, is dead. The purpose of successor ML, or sML for short, is to provide a vehicle for the continued evolution of ML, using Standard ML as a starting point. The intention is for successor ML to be a living, evolving dialect of ML that is responsive to community needs and advances in language design, implementation, and semantics.

Again, I stand by my statement that Standard ML is dead.

[1] https://smlfamily.github.io/successor-ml/OldSuccessorMLWiki/...

Re:OCaml for the Skeptical: OCaml in a Nutshell (2006) by millimeterman on Monday August 03, 2020 @10:26PM (#24045901)
Let's be real - Successor ML is never happening. I just don't think there's enough interest.
Re:OCaml for the Skeptical: OCaml in a Nutshell (2006) by dragonwriter on Tuesday August 04, 2020 @12:11PM (#24051364)
SML/NJ, as I understand it, is implementing Successor ML features, so one of three things is true:

(1) Successor ML is happening,

(2) Standard ML is alive and evolving,

(3) SML/NJ isn’t just an implementation but a distinct language which is a successor to Standard ML and which incorporates what was described as “Successor ML”.

Re:OCaml for the Skeptical: OCaml in a Nutshell (2006) by yawaramin on Tuesday August 04, 2020 @12:06PM (#24051307)
Yup. Realistically, the successor of ML is in fact OCaml.