What is the size of int?

ML has a type of integers. Fine; but how large is the underlying representatinon? 16 bit? 32 bit? 64 bit?

So I read this page about SML and based—indirectly—on that reading, here’s how I found out …

Some comments:

PolyML is another ML implementation, and a rather nice one. If you are fortunate enough to be using a Debian-based Linux, you can get it by typing in

sudo apt-get install polyml

You can also type in

sudo apt-get install xaos
While not strictly speaking relevant to SML, it’s such an awesome program I thought you might as well install it anyway, since you’ve already typed in your admin password once for the first sudo.


06 Nov 2013
Go back