News for hackers. Stuff that matters.
Re:OCaml is 25 by haxiomic on Sunday May 09, 2021 @02:17PM (#27098284)
Can anyone recommend a good primer to learn OCaml? (ideally aimed at so someone familiar with traditions C-style languages)

The material I’ve found has been quite dense where I’m just looking to learn enough to be dangerous

Re:OCaml is 25 by zbaylin on Sunday May 09, 2021 @02:26PM (#27098358)
As an initial primer I would recommend Cornell’s Functional Programming class that teaches OCaml: https://www.cs.cornell.edu/courses/cs3110/2019sp/textbook/in...

After that, I would recommend the new (beta) version of Real World OCaml — it gets a lot more in depth about more advanced language features: https://dev.realworldocaml.org/toc.html

Re:OCaml is 25 by johnisgood on Sunday May 09, 2021 @10:19PM (#27102026)
As I have commented before:

There is also https://www.cs.cornell.edu/courses/cs3110/2019fa/textbook/. Yours is 2019 Spring, this is 2019 Fall. This version covers many more topics. Might be useful for some. :)

Just to add more:

- https://caml.inria.fr/pub/docs/u3-ocaml/ocaml.pdf (Using, Understanding, and Unraveling The OCaml Language by Didier Rémy)

- https://ocaml.github.io/ocamlunix/ocamlunix.pdf (Unix System Programming in OCaml by Xavier Leroy and Didier Rémy)

- https://caml.inria.fr/pub/distrib/ocaml-4.12/ocaml-4.12-refm...

- https://ocaml.org/learn/tutorials

You might also find interesting stuff here: https://blog.janestreet.com/. There are videos, too: https://blog.janestreet.com/why-ocaml/

Re:OCaml is 25 by dhconnelly on Sunday May 09, 2021 @03:22PM (#27098878)
The Cornell textbook is great. I worked through most of it last year and learned a ton.
Re:OCaml is 25 by haxiomic on Sunday May 09, 2021 @02:32PM (#27098412)
Thank you :)
Re:OCaml is 25 by baby on Sunday May 09, 2021 @04:29PM (#27099446)
Real World Ocaml is for free: https://dev.realworldocaml.org/
Re:OCaml is 25 by yawaramin on Sunday May 09, 2021 @02:36PM (#27098452)
The OCaml Manual has a good tutorial: https://ocaml.org/releases/4.12/htmlman/coreexamples.html

Note that ;; is only required in the REPL (i.e. the 'toplevel'), not in source code.