Skip to content

Version

Uri edited this page Jun 14, 2020 · 1 revision

You can get the Ol (Otus Lisp) or olvm (Otus Lisp Virtual Machine) version using:

Command line

$ ol --version
ol (Otus Lisp) 2.1-2537-eee9a158
$ vm --version
olvm (Otus Lisp Virtual Machine) 2.1

We can declare fake Ol version using command line --version=….

$ ol --version=7.33 --version
ol (Otus Lisp) 7.33

But we can't do this for olvm version.

$ vm --version=7.33 --version
Invalid binary script (errno: 84, Invalid or incomplete multibyte or wide character)

During execution

Ol version stored in *version* global symbol, and olvm version in vm:version builtin function.

$ ol
Welcome to Otus Lisp 2.1-2537-eee9a158
type ',help' to help, ',quit' to end session.
> *version*
'("OL" . "2.1-2537-eee9a158")
> (vm:version)
'("OL" . "2.1")
> *features*
'(ol-2.1-2537-eee9a158 r7rs srfi-16 srfi-87 srfi-71 otus-lisp exact-closed exact-complex ieee-float ratios full-unicode immutable srfi-0 little-endian Linux x86_64)
> ,quit
bye-bye :/

We can modify Ol version using command line --version=…, but we can't do this for olvm version.

ol --version=3.45
Welcome to Otus Lisp 3.45
type ',help' to help, ',quit' to end session.
> *version*
'("OL" . "3.45")
> (vm:version)
'("OL" . "2.1")
> *features*             
'(ol-3.45 r7rs srfi-16 srfi-87 srfi-71 otus-lisp exact-closed exact-complex ieee-float ratios full-unicode immutable srfi-0 little-endian Linux x86_64)
> ,quit
bye-bye :/
Clone this wiki locally