Skip to content

Turtles v0.6.0

Choose a tag to compare

@github-actions github-actions released this 25 Sep 15:22
· 1 commit to main since this release

ARM now uses an untagged 64-bit word stack. Integers are immediate values; strings, arrays and closures are raw pointers. Numeric boxing, floating-point arithmetic, runtime type predicates and generic object properties are removed. Operations assume the correct representation.

SOM returns to Kevin's closure-based objects, captured fields and parent delegation, with direct T0 code generation. The added tagged object model and central message dispatcher are gone. T0, JS-like and SOM readers still share one persistent session.

This changes ARM semantics: arithmetic is signed integer arithmetic, print displays a word, print$ displays a string, and strings use explicit operations such as +$ and =$. Parser combinators require explicit lit construction. UTF-8 storage remains. There is no garbage collector; exhausting the arena or heap halts the machine.

Validated with native QEMU and browser QEMU, including JS functions and mutable closures, SOM classes and inheritance, reader switching, UTF-8 strings, integer boundaries and direct terminal input. Semantics and usage are described in the repository README.

Open the REPL. Download turtles.elf below and run:

qemu-system-aarch64 -machine virt-8.2 -cpu cortex-a53 -accel tcg -m 512M -smp 1 -nographic -device loader,file=turtles.elf,cpu-num=0

Enter :js, :som or :t0 to switch readers. Exit QEMU with Ctrl-a, then x. The JavaScript host retains its Number arithmetic; the ARM readers use integer arithmetic. Physical hardware boot and rebuilding a native image from inside the guest remain future work.