Programming in Standard ML (2011) [pdf]
cs.cmu.edu
Programming in Standard ML (2011) [pdf]
1–10 of 32 posts
Re: Programming in Standard ML (2011) [pdf]
#2Re: Programming in Standard ML (2011) [pdf]
#3Whenever I see a Standard ML article/paper, it always reminds me that I still need to learn OCaml. Not that one is better than the other, just that I've not gotten around to learning OCaml yet.
Re: Programming in Standard ML (2011) [pdf]
#4For something truly mind bending, try understanding this implementation of printf in SML: http://mlton.org/Printf
Re: Programming in Standard ML (2011) [pdf]
#5Whenever I see a Standard ML article/paper, it always reminds me that I still need to learn OCaml. Not that one is better than the other, just that I've not gotten around to learning OCaml yet.
Regardless, I would prioritize learning OCaml. The only thing SML has going for it is nicer syntax, and less stapled-on OOP stuff. OCaml's better in almost every way for day-to-day programming.
Which one you learn should depend on what you plan to use it for! I'm partial to SML. Then again, I've only written a handful of real-world programs with it.
Re: Programming in Standard ML (2011) [pdf]
#6For those interested in parallel, functional programming, I recommend taking a look at Futhark, which leverages data parallelism to make very fast parallel programs. It is based on SML, and has similar syntax, but can automatically build programs that (among other targets) run on the GPU using CUDA or OpenCL. It is also worth checking out MPL, which extends the (already awesome) whole-program optimizing compiler MLton to add support for nested, fork-join parallelism.
Re: Programming in Standard ML (2011) [pdf]
#7Whenever I see a Standard ML article/paper, it always reminds me that I still need to learn OCaml. Not that one is better than the other, just that I've not gotten around to learning OCaml yet.
Regardless, I would prioritize learning OCaml. The only thing SML has going for it is nicer syntax, and less stapled-on OOP stuff. OCaml's better in almost every way for day-to-day programming.
Re: Programming in Standard ML (2011) [pdf]
#8 $ sudo apt install smlnj
$ sml
Standard ML of New Jersey v110.79 [built: Sat Oct 26 12:27:04 2019]
-
and you can hit the ground running.Re: Programming in Standard ML (2011) [pdf]
#9There’s also https://smlhelp.github.io/book/ which is mostly put together by current/past CMU students.
Note: I made Millet.
Re: Programming in Standard ML (2011) [pdf]
#10For those running Debian or Ubuntu and interested to try the Standard ML of New Jersey, $ sudo apt install smlnj $ sml Standard ML of New Jersey v110.79 [built: Sat Oct 26 12:27:04 2019] - and you can hit the ground running.
$ file /usr/lib/smlnj/bin/.run/run.x86-linux /usr/lib/smlnj/bin/.run/run.x86-linux: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=b5e686ed7f390da7dfe58f0227cec46fd0e4fb95, for GNU/Linux 3.2.0, stripped
Debian hasn't packaged the 64-bit port of smlnj yet (in 110.94 and later). Both polyml and mlton have amd64 support, though.