OAKLISP(1)
β¨ OAKLISP(1) β¨
okay bestie, pull up a chair π this is the manual page for oaklisp, section 1 of your General Commands Manual. It's an implementation of the Oaklisp object-oriented Scheme dialect, and yeah, it's a whole vibe. Let's get into it π
πΈ NAME πΈ
oaklisp β an implementation of the Oaklisp object-oriented Scheme dialect. That's it, that's the name section, she's concise π
π¦ SYNOPSIS π¦
oaklisp [ emulator-options ... [ -- oaklisp-options ... ]]
note the double dash bestie, she's the wall between the two option worlds π
π DESCRIPTION π
So, Oaklisp is an object-oriented dialect of Scheme. This particular implementation? Super portable, no cap β it compiles down to a virtual machine, and that VM gets emulated by a C program. And before you come for her about speed: reasonable speed is achieved through a variety of sophisticated techniques. She ate. Periodt β¨
π OPTIONS π
Okay so the lore here first, because it matters:
- Every option is a long option. Starting it with one dash or two dashes makes no difference β
-and--are the same thing, she does not care π - Every option can be abbreviated to a unique prefix. Short queen energy.
- There are two sorts of options: ones for the bytecode emulator, and ones for the Oaklisp world.
- You must use a
--to separate them. That's the divider, that's the boundary, respect it π«Ά
π EMULATOR OPTIONS π
--helpβ show a summary of emulator options and exit. bye bestie π--versionβ print the version of the emulator and exit.--world fileβ file is the world to load π--dump fileβ dump the world to file upon exit.--d fileβ synonym for--dump. Same girl, shorter name π--dump-base bβ0=ascii,2=binary; default=2.--predump-gc bβ0=no,1=yes; default=1.--size-heap nβ n is in kilo-refs, default128.--size-val-stk nβ value stack buffer, n is in refs.--size-cxt-stk nβ context stack buffer, n is in refs.--size-seg-max nβ maximum flushed segment len, n is in refs.--trace-gc vβ0=quiet,3=very detailed; default=0. spill the tea, GC β--verbose-gc vβ synonym for--trace-gc.--trace-trapsβ trace traps. That's the whole description, she's mysterious π΅οΈ--trace-filesβ trace filesystem operations.
π UNOPTIMIZED EMULATOR OPTIONS π
heads up: these are the unoptimized ones. They're here, they're real, they're just not the fast lane π
--trace-segsβ trace stack segment writes/reads.--trace-valconβ print the entire value stack at each instr.--trace-cxtconβ print the entire context stack at each instr.--trace-stksβ print the size of the stacks at each instr.--trace-instructionsβ trace each bytecode executed.--trace-methodsβ trace each method lookup.--trace-mcacheβ trace method cache.
π OAKLISP OPTIONS π
--helpβ show a summary of Oaklisp options. (Yes, another one. Different world, different help π« )--eval exprβ evaluate the Oaklisp expression expr, which is one arg, so be sure to quote it for the shell. Do not forget the quotes bestie, the shell will humble you π--load fileβ load a file.--compile fileβ compilefile.oakyieldingfile.oaβ¨--locale xβ switch to locale x, egsystem-locale(default),compiler-locale,scheme-locale(for RnRS compatibility).--exitβ exit upon processing this option.
π EXAMPLES π
This one will compile the file myfile.oak in the scheme locale, and then leave the user in a read-eval-print loop in the scheme locale. Look at her go πββοΈπ¨
oaklisp -- --locale scheme-locale --compile myfile
π§ ENVIRONMENT π§
The environment variable OAKWORLD will override the default compiled into the executable β but she herself can be overridden on the command line. it's a hierarchy, it's giving succession drama π
π FILES π
/usr/lib/x86_64-linux-gnu/oaklisp/oakworld.bin holds the world image π
It is portable between machines of the same endianity. And, important caveat: the location can vary depending upon installation-time decisions. So like, check your own install, iykyk π
π BUGS π
okay gathering the girls because this section is a lot:
- Floating point numbers are not implemented. Not a drill π¨ Rationals can be used to make up for this lack, because rationals can be told to print in floating point format, and floating point format input can be made to read as rational numbers. (There are a couple floating point implementations, but they are not merged into the distributed release.)
- In contrast to the error handling system, which is Industrial Strength πͺ, the debugger is virtually nonexistent. the way that is so real and so scary π
- There is no foreign function interface for loading and calling C routines from a running Oaklisp. (Again, there are a couple implementations of foreign function interfaces which are not merged in.)
- The memory format does not support uninterpreted "blobs".
- Porting the system to 64-bit machines has not been done, and would be quite difficult. π¬
- POSIX threads in the emulator never got quite finished. She's in progress forever, iconic behavior honestly π
Bug reports and enhancements can be filed on the github issue tracker β¨https://github.com/barak/oaklispβ© π«Ά
π REFERENCES π
The programs are documented more fully in the language and implementation manuals lang.pdf and lim.pdf, along with OaklispSummary.pdf β whose source is included with the distribution, and installed in /usr/share/doc/oaklisp/.
The Oaklisp home page is old location β¨http://barak.pearlmutter.net/oaklisp/β© to github β¨https://github.com/barak/oaklispβ©.
The Implementation of Oaklisp is a chapter in Topics in Advanced Language Implementation, edited by Peter Lee, pp 189-215, MIT Press, 1991.
Oaklisp: an Object-Oriented Dialect of Scheme appears in the journal Lisp and Symbolic Computation 1(1):39-51, published by Klewer Associates, May 1988.
Oaklisp: an Object-Oriented Scheme with First Class Types appeared in proceedings of the ACM conference OOPSLA-86, pp30-37, published as a special issue of SIGPLAN Notices.
Garbage collection with pointers to single cells, an article on the Oaklisp garbage collector, appeared in Communications of the ACM, 39(12):202-206 (online edition), December 1996.
The Revised^n Report on Scheme is a useful piece of documentation, and is widely available online. go read it bestie, it's the blueprint πβ¨
π DISTRIBUTION π
The Oaklisp copyright belongs to its authors. It is distributed under the GNU General Public License, a copy of which is included in the source distribution in the file COPYING. For further information, or to make alternate arrangements, please contact the authors β who are surprisingly reasonable people π«Άπ (that's a direct quote and honestly the most endearing thing in this whole manpage)
β¨ AUTHOR β¨
Oaklisp was originally designed, implemented, and documented by Barak A. Pearlmutter and Kevin J. Lang. Legends only ππ
and that's the whole page, bestie πΈ this was OAKLISP(1) from the General Commands Manual, section 1 β a real one, a classic, she's been around. now go compile something and slay πβ¨π¦
π¦ where this page comes from
- debian bookworm: oaklisp 1.3.7-4 Β· GPL-2.0-or-later
- debian trixie: oaklisp 1.3.7-4 Β· GPL-2.0-or-later
- ubuntu jammy: oaklisp 1.3.7-3 Β· GPL-2.0-or-later
- ubuntu noble: oaklisp 1.3.7-4 Β· GPL-2.0-or-later
- ubuntu questing: oaklisp 1.3.7-4
- ubuntu resolute: oaklisp 1.3.8-2 Β· GPL-2.0-or-later
- ubuntu stonking: oaklisp 1.3.8-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms