 For graphics, cairo-sml is an open source interface to the Cairo graphics library.For machine learning, a library for graphical models exists.Snippets of SML code are most easily studied by entering them into a "top-level", also known as a read-eval-print loop or REPL.