Skip to content

Releases

v0.12

Choose a tag to compare

@mdbergmann mdbergmann released this 29 Oct 17:40

AmiLisp 0.12

Highlights

CL-Amiga is AmiLisp

  • The product, the executable and the Lisp-level names are AmiLisp / amilisp: the AMILISP package (amilisp::..., with CLAMIGA kept as a nickname), the AMILISP_* environment variables, the ARexx port AMILISP, the heap image amilisp.img, the init file .amilisprc / S:.amilisprc, the library directory lib/amilisp/, the FASL cache under S:amilisp/faslcache/. Every old name stays as an alias: *features* carries :amilisp and :amicl next to :clamiga and :cl-amiga, an unset AMILISP_X variable is read as CLAMIGA_X, and the runtime still finds clamiga.img, .clamigarc and lib/clamiga/. The library forks say #+amilisp.
  • The Aminet package is dev/lang/amilisp.lha (it replaces dev/lang/clamiga.lha).

The collector

  • A backend seam behind cl_alloc (gc_backend.h, one allocation cursor, one root walk, one arena iterator) with a GC= build knob, and an Immix-style mark-region collector on it — the default on m68k and MorphOS now (make -f Makefile.cross amiga GC=classic keeps the mark-sweep one); the mark-loop pass marks at the visit with a leaf skip; ext:%heap-stats reports the heap.
  • A thread that comes online during a stop-the-world wait no longer becomes a second initiator (the arm64 CI watchdog).

Clamacs 0.5

  • Projects replace perspectives: Open / Switch / Close Project, Recent Projects, a folder requester, projects.cfg under ENVARC:Clamacs/ (~/.clamacs-projects.cfg on the host); the status line and the REPL's title name the project in front.
  • iedit: edit every occurrence of a symbol at once (C-;), widen or narrow the scope with M-{ / M-} / M-H, the occurrences shown with context on M-n / M-p, marks as colours on MUI.
  • C-c C-k / C-c C-l load on the REPL thread (EXT.DEV REPL-LOAD): the output is streamed, the errors become rows. Load System / Test System pick a system of a .asd that defines several and load the .asd once.
  • The status line names the cursor's package; a file window's title is its full path; a block cursor (View > Block Cursor); an About window; a save into a directory that is not there offers to make it; the right Option (Mac) / right Alt (MorphOS) composes, the left one is Meta; a missing or too old TextEditor.mcc is reported in a requester that names the installed version and the one needed.
  • The README is a user guide now, shipped as clamacs.guide; the build and test notes moved to docs/developing.md. Apache License 2.0.

REPL and runtime

  • The banner names the build, the heap, the collector, the JIT state and the boot image; the REPL colours its roles — a bold blue prompt, WARNING / ERROR badges — with system pens and bold only on an AmigaOS Shell, so it reads on a stock console too.
  • MP:WITH-LOCK-HELD and MP:WITH-RECURSIVE-LOCK-HELD take :TIMEOUT; MP:THREAD, MP:LOCK and MP:CONDITION-VARIABLE are type specifiers (bordeaux-threads); AMILISP:TYPEXPAND-1 / TYPEXPAND, and DEFTYPE's * default for an unsupplied parameter (introspect-environment); LOAD-ASD-SYSTEM / TEST-ASD-SYSTEM take the system's name.

Verification

  • The Vampire 68080 lost-store defect has its record in docs/vampire-68080-lost-stores.md (core 11350 is clean); the probe sources are retired. The cross toolchain stays at gcc 6.5.0b after a GCC 16 evaluation (13 to 28 % faster at -O2, kept as an option in docs/benchmarks.md).
  • The Amiga suite's audio one-shot retries until FS-UAE's audio DMA is warm, AMILISP_SUITE_SKIP leaves out the sections a machine cannot start (AHI on the Vampire), the 68020 suite has a two-hour ceiling, and make test-gc-stress runs the Clamacs suite as its last leg.

Compatibility notes

  • The FASL format stays v40; the cache re-keys to amilisp-0.12-fasl40 (S:amilisp/faslcache/, ~/.cache/common-lisp/amilisp-0.12-fasl40/), so caches from 0.11 rebuild transparently. Heap images are v5 and, as always, per-build.
  • The binaries are bin/*/amilisp, the images amilisp.img and clamacs.img; the Workbench launchers are AmiLisp / Clamacs, AmiLisp-FPU / Clamacs-FPU, AmiLisp-MOS / Clamacs-MOS. A third-party script that addresses the ARexx port CLAMIGA should say AMILISP; an old S:.clamigarc is still read when there is no S:.amilisprc.
  • Clamacs reads an old perspectives file as its projects (projects.cfg from then on); on the editor's port the PERSPECTIVES verb is PROJECTS and RECENT now.

Downloads

amilisp-0.12.0-bin.lha / .zip contain bin/aos3 (68020+, soft-float), bin/aos3-fpu (hard-float, needs an FPU), bin/mos (MorphOS PPC, built natively), each with its amilisp.img and clamacs.img, the runtime library (lib/, FASLs plus sources), the documentation as Markdown and AmigaGuide (README-FIRST.guide first, clamacs.guide is the editor's user guide), the examples and the Workbench icons. Unpack anywhere; no assigns needed.

The binaries are those of snapshot af2bebbb, run on real AmigaOS and MorphOS hardware before the tag. Amiga suite in FS-UAE: 5313/5313 fresh boot, 5303/5303 restored boot (gate run of 2026-10-21); test-extra 18/18 scripts, 13298/0.

v0.11

Choose a tag to compare

@mdbergmann mdbergmann released this 06 Oct 14:44

CL-Amiga 0.11

Highlights

Clamacs rewritten in Common Lisp

  • Clamacs, the Emacs-flavoured editor/IDE, is a Lisp program now (clamacs/lisp/) and runs as a clamiga instance of its own. The release ships it as a clamacs.img heap image beside every binary (bin/aos3, bin/aos3-fpu, bin/mos) plus its sources and FASLs under lib/clamacs/; the Clamacs icons start clamiga --image clamacs.img --eval "(clamacs::run)". The MUI frontend is unchanged in use — buffers, minibuffer, kill ring, Lisp indentation, C-c C-c / C-c C-k / C-c C-l, the REPL, debugger and inspector windows, themes and TEXT SIZE — and S:.clamacsrc defines commands and binds keys.
  • Clamacs on the host: the same editor runs on macOS and Linux (clamacs/host/run.sh, make host-app builds Clamacs.app) in one native window with the buffers as tabs, over the new TCP development port (lib/dev-tcp.lisp, EXT.DEV.TCP: length-framed lines, AUTH <token>, REPL-ATTACH tcp:host:port/token), which also lets a host Clamacs drive a clamiga on an Amiga.
  • The EXT.DEV layer grew DEFINE-RAW-COMMAND (verbs that take text, not syntax), COMPLETE's fallback to names containing the text, loading and testing an ASDF system by its .asd (Clamiga > Load System / Test System), MP:*THREAD-DEATH-HOOKS*, and a REPL thread that is respawned after a heap-exhaustion death (C-c C-z attaches a new one; the started clamiga's heap is *clamiga-heap*).
  • A clamiga the editor starts opens its port itself; the two S:.clamigarc lines are only for a clamiga you start yourself and want the editor to find. Connect on a clamiga that has quit offers to start a new one at once.

Standalone executables

  • (ext:save-image "app" :executable t :toplevel 'app:main :quit t) writes one file that is the program: a copy of clamiga with the image appended, no lib/, image file or launcher beside it. The whole command line belongs to the program (ext:*command-line-args*), :toplevel is what it runs (its return is exit 0, (quit n) is n), :heap-size the heap it starts with; it starts from a Shell or a Workbench icon (ARGS tool type, project icons). Each platform builds its own; tests/test_executable.sh and tests/amiga/exe-save.lisp are the runnable examples.
  • A SAVE-IMAGE that is refused names the worker threads in the way (... still running ("arexx-port") ...) and says what to do; the clean way to save an image or executable is a clamiga started with --no-userinit.

JIT

  • An AArch64 backend for arm64 hosts (Apple silicon, Linux arm64): template JIT with direct native-to-native calls and &optional/&rest prologues — make host uses it there.
  • m68k: direct native-to-native calls through call-site cells (one call generation word, bumped by every function-cell write and every GC; a miss into a builtin or an interpreted function costs nothing extra), &key, &optional and &rest prologues, positional arity up to OP_CALL's 255, tail calls into other functions, native functions push call frames so backtraces carry line numbers, native loops poll for GC, interrupts and Ctrl-C, and lazy compilation: a function is compiled when it turns hot (FASL v39; (optimize (speed 3)) compiles at definition).

Runtime, GC and MP

  • Heap images reopen the Amiga library bases of the AMIGA.* modules after a restore (amiga.ffi:define-library-variable, EXT::*SYSTEM-RESTORE-HOOKS*), store each source-file name once (image v5), read their payload only once the heap exists, and hand memory back on a failed start.
  • GC compaction forwards through a live-granule bitmap instead of a heap-sized forwarding table — the allocation stall of the low-end 68020 suite is gone; a fresh keyword no longer comes back from INTERN as a stale offset; the reader's line table follows a cons the collector moves.
  • Shutdown reaps worker threads that finished but were never joined, stops workers still running on AmigaOS, and bounds its waits by the clock rather than counted naps (Windows ticks); a startup CPU store self-test and the verify/ probe package that pinned the Vampire 68080 lost-store defect for the Apollo team.
  • 68k AmigaOS sizes the main thread's NLX, saved-pending and compiler-pool reservations for 8 MB machines; the compiler's bytecode and constants buffers grow on demand.

Release layout

  • Six Workbench launcher icons, one pair per binary — CLAmiga/Clamacs, CLAmiga-FPU/Clamacs-FPU, CLAmiga-MOS/Clamacs-MOS — with no platform detection in the scripts; the root is a 3 × 3 grid (clamiga, Clamacs, guides as the columns; soft-float, FPU, MorphOS as the rows) in the drawer icon's window.
  • scripts/make-binary-release.sh --snapshot [--with-mos] builds development snapshots; the Amiga test suite runs in 12 minutes with per-check log flushes and timings.

Fixes

  • DEFVAR evaluates its initial value only when the variable is unbound, and DEFVAR/DEFPARAMETER/DEFCONSTANT store out of tail position (FASL v38); &optional supplied-p vs &rest, and a supplied-p variable visible to later defaults (v40); the exit and inlining analysis expands MACROLET macros (flexi-streams FILL-BUFFER); FLET bindings are protected across the inliner's RETURN-FROM scan.
  • A string or vector literal keeps its identity through COMPILE-FILE + LOAD (v36); a FASL checks the structure layouts it was compiled against (v35, --no-fasl-cache); DEFSTRUCT's hidden slot setter no longer takes over a user function named %SET-<accessor> (v37); nested LOADs are bounded by a clear error and an abandoned LOAD gives its streams back.
  • Runtime UNDEFINED-FUNCTION / UNBOUND-VARIABLE are CELL-ERRORs that name the cell; EXT:BACKTRACE after a handled error in an earlier top-level form keeps its innermost frames; ~F and ~$ right-justify their field; (* bignum fixnum) is single-pass.
  • AmigaDOS pathnames read a leading or empty / component as the parent (//x); FOREIGN-TO-STRING reads to the NUL rather than a hidden 4096 bytes; ffi:close-library on the host is dlclose; a BOOPSI dispatcher lists its methods and the rest go to the superclass natively; rexxsyslib stays open under a send still waiting for its reply; a MUI 3.8 String edit hook runs on input.device's task (mui:make-string-key-hook); AMIGA:WAIT-SIGNALS.
  • Windows: the :WINDOWS feature, UIOP reads native namestrings with their drive letter and splits directory lists at ;.

Compatibility notes

  • The FASL format is v40; the cache re-keys to cl-amiga-0.11-fasl40, so caches from 0.10 rebuild transparently. Heap images are v5 and, as always, per-build.
  • bin/aos3/clamacs and bin/mos/clamacs (the C editor of 0.10) are gone; the editor is bin/*/clamacs.img + lib/clamacs/. Clamacs-FPU and Clamacs-MOS are new icons; CLAmiga-FPU no longer starts the MorphOS binary on MorphOS — use CLAmiga-MOS.

Downloads

clamiga-0.11.0-bin.lha / .zip contain bin/aos3 (68020+, soft-float), bin/aos3-fpu (hard-float, needs an FPU), bin/mos (MorphOS PPC, built natively), each with its clamiga.img and clamacs.img, the runtime library (lib/, FASLs plus sources), the documentation as Markdown and AmigaGuide (README-FIRST.guide first), the examples and the Workbench icons. Unpack anywhere; no assigns needed.

Amiga suite in FS-UAE: 5274/5274 restored-boot (soft-float and FPU; fresh boot 5283/5284, the FS-UAE-only audio-short-sample flake); test-extra 18/18 scripts, 13290/0.

v0.10

Choose a tag to compare

@mdbergmann mdbergmann released this 15 Sep 13:03

CL-Amiga 0.10

Highlights

Clamacs, the editor/IDE, ships in the release

  • Clamacs — an Emacs-flavoured Common Lisp editor and IDE for AmigaOS 3 and MorphOS, a native MUI application (TextEditor.mcc subclass with Emacs keys, minibuffer, kill ring, Lisp indentation and sexp navigation) that drives a running clamiga over its ARexx port: load, compile and evaluate from the buffer with clickable diagnostics, arglists and completion, jump to definition, describe and apropos, a REPL window (C-c C-z), a debugger window with restarts, backtrace, locals and eval-in-frame, and an inspector (C-c I). It lands as bin/aos3/clamacs (one binary for every 68020+) and bin/mos/clamacs next to the runtime. Needs MUI 3.8+ and TextEditor.mcc 15.29+ (MorphOS ships it).
  • The runtime grew the EXT.DEV command layer behind the ARexx development port that the editor speaks (lib/dev-commands.lisp, lib/dev-repl.lisp, shipped as FASLs): a REPL on a thread of its own, REPL-ATTACH ... DEBUG parking an erring form on its stack for interactive BACKTRACE / FRAME / FRAME-EVAL / RESTART, the INSPECT / PART / POP inspector over the new EXT:INSPECT-PARTS, and the introspection commands — which needed the runtime to keep docstrings at last, a real APROPOS, and DESCRIBE with lambda list, documentation and source location.
  • README-FIRST.guide in the package root explains what is where and, above all, the two S:.clamigarc lines that open clamiga's ARexx port so the editor finds (or starts) a clamiga.

Performance: Tier-4, all three phases

  • The runtime taxes removed (+37.6 % on the sento actor benchmark), the call and unwind protocol rebuilt (OP_CALL_GLOBAL with the callee resolved after the arguments, HANDLER-CASE as a special form with one NLX frame per entry, a per-thread multiple-value save stack for UNWIND-PROTECT, non-escaping FLET/LABELS bodies inlined, a JIT template for handler-case), and fourteen fused superinstructions chosen from an adjacent-pair profile of the sento message path, with the peephole pass at every speed above 0 (FASL v33).
  • MP locks and condition variables are heap words now — no lock table, no cap, per-thread parking — which lifted the sento matrix a further +50..360 % over the 0.8 binary (docs/sento-bench-results-0.10.md).
  • trunk/bench-general.lisp: a portable workload suite that runs the same file on clamiga, ECL and SBCL.

Documentation on the Amiga itself

  • Every page ships as AmigaGuide with a Workbench icon: README-FIRST.guide, cl-amiga.guide (the manual) and clamacs.guide in the package root next to the launcher icons, the package reference under docs/. Every heading is a node and the links between the pages work across the drawers (verified with MultiView on AmigaOS 3.2.3 and MorphOS 3.20). The converter, tools/docs/md2guide.lisp, is strict enough to be a drift gate in make test.

Release layout

  • Three Workbench launcher icons in the package root — CLAmiga, CLAmiga-FPU, Clamacs — start the matching binary from bin/ on a double-click (bin/mos/ on MorphOS, picked by the launcher script). The root opens in two rows, launchers then guides, showing only files with icons.
  • A bare-boot heap image beside every binary, make install lays the same out on a host, and --snapshot builds AmigaOS-only development packages.

Fixes

  • A THROW out of a cleanup in the m68k JIT no longer resurrects the abandoned error (the editor's C-c C-c of an undefined function took the ARexx port down).
  • Conditions made without a :format-control report from their slots per CLHS 9.2 ("The value 5 is not of type LIST" instead of #<CONDITION TYPE-ERROR>); runtime messages are ASCII-only for the byte-string m68k console.
  • A three-element LET binding is an error rather than silently compiled; FASL source names are portable; the user init file is S:.clamigarc as documented.
  • The ARexx port comes down at process exit (no zombie CLAMIGA task); a local function whose body has LOAD-TIME-VALUE keeps its closure.
  • Bignum division, bit operations and ASH take their scratch from the heap above the stack buffers; fill-pointer strings work as a string-stream source and as an EQUAL hash key.

Compatibility notes

  • The FASL format is v33 (superinstructions and return-shape rewrites); the cache re-keys to cl-amiga-0.10-fasl33, so caches from 0.9 rebuild transparently.
  • README-BINARY.txt is gone; its content is README-FIRST.md / README-FIRST.guide in the package root.

Downloads

clamiga-0.10.0-bin.lha / .zip contain bin/aos3 (68020+, soft-float), bin/aos3-fpu (hard-float, needs an FPU), bin/mos (MorphOS PPC, built natively), each with its clamiga.img and — for aos3 and mos — clamacs, plus lib/, docs/, examples/, the guides with their icons, and the package drawer's icon beside the drawer. Start with README-FIRST.guide.

v0.9

Choose a tag to compare

@mdbergmann mdbergmann released this 07 Sep 14:25

CL-Amiga 0.9

Highlights

Sound

  • AMIGA.AHI ((require "amiga/ahi")) — opt-in playback through AHI, the retargetable audio system (an Aminet install on AmigaOS 3.x, built into MorphOS). The device interface — OPEN-AHI on a prefs unit, PLAY-SAMPLE for 8/16-bit mono/stereo at any rate from any memory, QUEUE-SAMPLE for gapless double buffering, STOP-SAMPLE, PLAYING-P — and the hook-free low-level mixer API (ALLOC-AUDIO, LOAD-SOUND, START-PLAYBACK, PLAY, SET-VOLUME, SET-FREQUENCY, SET-SOUND) with the audio mode database. Over a generated ahi.device table (167 constants, 11 structs). Verified 80/80 on real MorphOS; example in examples/amiga/audio/ahi-play.lisp.
  • AMIGA.AUDIO is audible on real AmigaOS 3 now. audio.device ignores ADIOF_PERVOL, so PLAY-SAMPLE writes the Paula period and volume registers itself and channels are held at max precedence so nothing steals them mid-poke. Still the default sound module; nothing loads or probes AHI unless asked.
  • AMIGA.EXEC gains the exec device-I/O calls every device module needs: CREATE-MSG-PORT, CREATE-IO-REQUEST, OPEN-DEVICE, SEND-IO, CHECK-IO, WAIT-IO, ABORT-IO, DO-IO.

Memory handed back on AmigaOS

  • Every launch used to cost the machine 3,743,160 bytes of Fast RAM until reboot — AmigaOS does not reclaim what a process leaves behind. Dead bytecode buffers, the compiler pool, duplicated FASL source paths, the registry side tables, open DOS files and the ARexx port are all released now; what remains is about 1,300 bytes of the shell's own bookkeeping.
  • CLAMIGA_MEM_DIAG=1 reports what each shutdown stage hands back (and the whole-process AvailMem delta on AmigaOS); make test-memleak runs an allocation tracer that names the exact call site of anything still outstanding.

The release boots from a heap image

  • bin/*/clamiga.img sits beside each binary: the booted runtime (boot + CLOS) restored in one read instead of loading boot.fasl + clos.fasl form by form — on a 68040 under FS-UAE 740 ms → 40 ms, and a 68020 no longer spends ~38 s booting from FASLs. --no-image still boots from the FASLs.
  • A restored session re-derives *default-pathname-defaults* and *random-state* instead of inheriting the saver's.

Tooling

  • Aminet: scripts/aminet-upload.sh stages clamiga.lha + clamiga.readme from the tag message, checks them against Aminet's readme rules and uploads by anonymous FTP (macOS/Linux).
  • examples/amiga/gfx/screenshot.lisp saves any screen as a PPM — RTG screens through cybergraphics / P96 ReadPixelArray, chipset screens straight from their bitplanes.
  • The AmigaOS binaries are linked stripped and built without frame pointers: 845/834 KB → 797/787 KB.

Fixes

  • FFI register arguments take T and NIL (BOOL parameters no longer need a 1/0), a negative bignum keeps its sign, and a rejected value names the argument, the register and the value.
  • Errors report their own line. An error signalled by a builtin, an FFI stub or a library call was attributed to the previous call's source line in backtraces; the frame's instruction pointer is now saved before every call.
  • DESTRUCTURING-BIND rejects an unknown keyword in a &key section (CLHS 3.4.4), naming the keys it accepts, in both the compiler and MACROEXPAND.
  • The REPL prints no continuation prompt for a pasted multi-line form (#14) — the transcript matches what a typed form shows.
  • The cl+ssl facade gains ENSURE-INITIALIZED and SSL-CHECK-VERIFY-P, so websocket-driver's client — and CLOG on top of it — load with TLS.
  • MorphOS: make -f Makefile.mos image works on the box; audio-second-channel is a SKIP under its audio.device emulation.

Compatibility notes

  • The FASL format is unchanged (v31); the cache re-keys to cl-amiga-0.9-fasl31, so caches from 0.8 rebuild transparently.
  • AMIGA.AUDIO's OPEN-AUDIO allocates m68k channels at max precedence and honours a caller's precedence hint only off m68k.

Downloads

clamiga-0.9.0-bin.lha / .zip contain bin/aos3 (68020+, soft-float), bin/aos3-fpu (hard-float, needs an FPU), bin/mos (MorphOS PPC, built natively), each with its clamiga.img, plus lib/, docs/ and examples/. See README-BINARY.txt inside for which binary to pick.

v0.8

Choose a tag to compare

@mdbergmann mdbergmann released this 31 Aug 20:05

CL-Amiga 0.8

Highlights

MUI from Lisp

  • AMIGA.MUI ((require "amiga/mui")) — build MUI GUIs from Lisp: NEW-OBJECT by class name with nested objects as tag values, MAKE-OBJECT, NOTIFY, APPLICATION-INPUT, REQUEST.
  • Lisp functions as callbacks on the target — FFI:MAKE-CALLBACK (m68k stub + MorphOS): MUI custom classes whose dispatcher is a Lisp function, layout hooks, list hooks.
  • Raw muimaster layer generated from libraries/mui.h: 26 functions and 891 constants, merged across MUI 3.8, MUI 5 and MorphOS.
  • AMIGA.BOOPSI — the toolkit-neutral half (memory pools, tag lists, DO-METHOD, GET-ATTR/SET-ATTRS), split out of AMIGA.REACTION and shared by both toolkits. Works on a bare OS 3.1 with no toolkit installed.
  • Eight ported MUI SDK examples in examples/amiga/mui/, verified on AmigaOS 3.9 (MUI 3.8) and MorphOS (MUI 4).

Raw OS bindings for the whole system

  • lib/amiga/raw/** — 1:1 bindings generated from the NDK 3.2 and MorphOS SDKs. (require "amiga/raw/intuition"), and the same for every other library; ReAction classes under gadgets/, images/, classes/.
  • AMIGA.REACTION helpers, with ports of the NDK's ReAction examples.
  • They cost almost nothing now: FFI stub descriptors and demand-interned binding tables cut the common raw modules from 1.42 MB to 0.18 MB of heap, and lib/amiga ships precompiled so an Amiga never compiles ~1 MB of generated source.

Heap images

  • EXT:SAVE-IMAGE snapshots a whole session — packages, functions, CLOS, your data — and --image (or an auto-discovered clamiga.img) restores it without booting.
  • :SHAKE-BINDINGS drops the binding tables from a delivered image.

Native Windows build

  • make host in an MSYS2 mingw shell produces a real .exe — threads, sockets, TLS, FFI, generational GC, debugger, REPL. Plus a windows-11-arm CI job.

REPL, debugger and inspector

  • The REPL echoes every value a form returns; (values) prints nothing at all.
  • Ctrl-D at the Debug> and Inspect> prompts returns to the caller instead of ending the session.
  • CLHS-conforming string escapes, printing and multi-line input at the prompt.

New in the library

  • MAKE-ECHO-STREAM with its component accessors — the last composite stream kind.
  • MP:COMPARE-AND-SWAP / CAS / ATOMIC-INCF / ATOMIC-DECF; backs bordeaux-threads v2's atomic API.
  • EXT:*EXIT-HOOKS* — user cleanup on every normal exit path.
  • AMIGA.ASYNCIO — double-buffered file I/O straight over DOS packets (NDK AsynchIO port).
  • AMIGA.IFF — IFF reading over iffparse (sift.c port).
  • make install / make uninstall; an installed clamiga finds <prefix>/lib/clamiga/ on its own, from any directory.
  • New gfx examples: NDK V39 screen double-buffering and RKM hardware sprites.

Fixes

  • CLOS class redefinition updates the existing metaobject in place (CLHS 4.3.6) — methods specialized on a redefined class keep applying to subclasses defined afterwards.
  • LOOP's INTO accumulators hold their list in order at every step, not only in the epilogue.
  • REQUIRE accepts symbol and keyword module names on case-sensitive file systems, and never reloads an already-provided module.
  • NTH accepts any non-negative integer and signals on a negative one (CLHS 14.2).
  • Multiple-values hygiene in the compiler: (let ((x (floor 7 2))) x) returns one value, not two.
  • A multithreaded performance regression, bisected and fixed: the Ctrl-C poll counter is per-thread again, and vm.o builds without LTO.
  • The banner names the host it actually runs on — macOS, Linux or Windows — instead of greeting every host build as AmigaOS.

Compatibility notes

  • FASL version 29 → 31 — stale FASL caches are rejected and rebuild transparently (the cache re-keys to cl-amiga-0.8-fasl31).
  • AMIGA.REACTION's toolkit-neutral symbols now live in AMIGA.BOOPSI and are re-exported from it: amiga.reaction:do-method is amiga.boopsi:do-method, so existing code and examples are unaffected.

Downloads

clamiga-0.8.0-bin.lha / .zip contain bin/aos3 (68020+, soft-float), bin/aos3-fpu (hard-float, needs an FPU), bin/mos (MorphOS PPC, built natively), plus lib/, docs/ and examples/. See README-BINARY.txt inside for which binary to pick.

v0.7

Choose a tag to compare

@mdbergmann mdbergmann released this 16 Aug 11:07

CL-Amiga 0.7

Highlights

Native TLS — HTTPS everywhere

  • EXT:SOCKET-START-TLS upgrades a connected TCP socket stream to TLS in place: OpenSSL 1.1.1/3.x on the host (loaded via dlopen, no build dependency), AmiSSL v5 on AmigaOS/MorphOS.
    Companions: TLS-AVAILABLE-P, TLS-VERSION, SOCKET-TLS-P, TLS-PEER-CERTIFICATE.
  • A bundled cl+ssl facade (in lib/shims, auto-registered on ASDF's central registry — no installation step) gives drakma and hunchentoot HTTPS out of the box. CLAMIGA_NO_SHIMS=1 (host)
    / SetEnv CLAMIGA_NO_SHIMS 1 (Amiga) opts out.
  • The AmiSSL SDK headers are vendored in-repo — a plain checkout cross-compiles with TLS, no setup script.
  • Verified end-to-end on real hardware: drakma HTTPS via AmiSSL on a Vampire V4 (68k) and natively on MorphOS.

ARexx development port

  • (require "amiga/arexx") + (amiga.arexx:start) opens a public CLAMIGA ARexx port: drive a running clamiga from any ARexx-capable Amiga editor — LOAD, COMPILE-FILE, EVAL,
    IN-PACKAGE, LASTRESULT, PING, VERSION. A failing load answers with every diagnostic in the file (with line numbers), and the return-code ladder (0/5/10/20) is FAILAT-friendly. The
    on-Amiga counterpart to the SLY setup — no Emacs, no TCP, no host machine.
  • Lisp can also send ARexx commands to any application's port.

Unicode / wide strings

  • The MorphOS build now ships full Unicode (CHAR-CODE-LIMIT > 65533) with an adaptive representation — 8-bit strings stay 8-bit, UTF-32 only for strings that actually contain characters above
  1. Unblocks flexi-streams/drakma, which hard-require it.
  • New WIDE=1 cross-build knob for a wide-string 68k AmigaOS variant (composes with FPU=1). Released 68k binaries stay narrow to keep the 68020/8MB baseline lean.
  • Condition reports survive non-ASCII text — (error "…ü…") now prints the message instead of failing.

Floats: exact, FPU-independent printing and reading

  • Float↔text conversion no longer goes through libc's %g/strtod: shortest round-trip digits (Steele-White/Burger-Dybvig) and correctly rounded parsing, in core, with integer arithmetic only.
    Every printed float reads back bit-identically — on softfloat, real 68881/68882, and FPGA FPUs (Vampire/Apollo) alike.
  • New hard-float FPU=1 build variant (68881/68882): per-task/thread FPCR setup, excess-precision-safe FLOOR/CEILING/ROUND/TRUNCATE. Binary releases ship bin/aos3 (soft-float, any
    68020+) plus bin/aos3-fpu.

Debugger & backtraces

  • :bt N / :bt all — full backtraces on demand. The hard 20-frame window and the invisible 2KB formatting buffer are gone; expressions typed at the Debug> prompt evaluate on top of the
    error-time frames instead of destroying them.
  • Backtraces now show real names where they used to show <anonymous>: FLET/LABELS locals and CLOS method bodies carry their names, and a nested lambda no longer steals its enclosing function's
    name.

Loader & threading correctness

  • LOAD/COMPILE-FILE bind *PACKAGE*/*READTABLE* as true dynamic bindings (CLHS 23.2.7/24.2.2) — an error thrown out of a load no longer leaves the caller in a switched package. (This single
    fix eliminated 156 cascading failures in one real-hardware suite run.)
  • LOAD's per-form error recovery now survives an enclosing UNWIND-PROTECT, and a THROW out of a cleanup running an error unwind correctly abandons the original transfer (CLHS 5.2).
  • *PACKAGE* is per-thread at the C level — one thread binding it (e.g. Sly's control thread) no longer poisons readers/compiles running in other threads.
  • MP:MAKE-THREAD takes :stack-size, :vm-stack-size, :vm-frames, :nlx-frames (enlarge-only); Amiga worker threads inherit the launching console — or can open their own CON: window and
    run a REPL in it.

Amiga API additions

  • AMIGA.INTUITION:QUERY-OVERSCAN / DISPLAY-MODE-HEIGHT — ask the display database how tall a mode really is (PAL 256 vs NTSC 200 vs RTG), so programs can open correctly sized screens. Also
    fixes the underlying register order — the call had never once succeeded.
  • MSG-RAW-KEY — the qualifier-blind raw keycode behind a VANILLAKEY message, immune to wedged-modifier keymap lies.

Fixes

  • FORMAT ~F without a d parameter now prints true free-format fixed-point per CLHS 22.3.3.1: the decimal point is always present (87.0, not 87) and large/small magnitudes expand instead of
    switching to exponent notation (150000000.0, 0.00001).
  • COMPILE-FILE no longer writes stray output to stderr — the buffered bytes froze detached MorphOS processes at exit.
  • Source-compiling boot.lisp/clos.lisp at boot (stale-FASL fallback) now produces the same CLOS as the shipped FASLs — 47 internal helper names were missing from the pre-intern list, silently
    dropping dispatch self-heal, accessor ICs, and defstruct MOP registration.
  • MorphOS build fixes: ARexx SDK type differences; the stray-stderr exit freeze above.

Compatibility notes

  • FASL version 25 → 29 — stale FASL caches are rejected and rebuild transparently (the cache re-keys to cl-amiga-0.7-fasl29).
  • The cl+ssl/swank shims moved from contrib/shims (quicklisp symlink scheme) to lib/shims (auto-registered); make install-shims now just removes the old symlinks.

v0.6

Choose a tag to compare

@mdbergmann mdbergmann released this 28 Jul 09:03

CL-Amiga 0.6

MorphOS (PPC) port

  • CL-Amiga now runs natively on MorphOS: PPC library-call dispatcher, correct
    :morphos/:ppc features, platform-specific banner / software-type /
    machine-type, and a native build via Makefile.mos.
  • FFI, GUI, and audio are enabled on MorphOS; PPC stack handling hardened
    (1 MB main stack with headroom bounds check, 256 K worker-thread stacks) with
    a clean boot-failure diagnosis instead of a silent abort.

Binary releases

  • New packaging script produces a downloadable binary release for AmigaOS 3+
    (68020+) and MorphOS in one layout (bin/aos3 + bin/mos + lib/), as
    .zip and .lha — runs from any directory, no assigns needed.
  • API reference docs now include call signatures.

Amiga library modules

  • AMIGA.AUDIO — audio.device channel allocation and non-blocking sample
    playback.
  • AMIGA.EXEC — exec.library module; graphics gains BitMap accessors, planar
    image upload, and pointer-sprite support.

Quicklisp

  • Quicklisp installs and dist downloads now run with socket timeouts armed
    (30 s connect, 60 s read/write). A dead or stalled connection signals a
    catchable ext:socket-timeout instead of hanging the image — this fixes an
    intermittent install hang observed on MorphOS.
  • FILE-POSITION accepts the :start/:end position designators.
  • FIND-SYMBOL on a nonexistent package returns (values nil nil) (lenient,
    matches what the Quicklisp client expects).

Debugging & diagnostics

  • Ctrl-C break-in: interrupt a running program and land in the debugger with a
    backtrace; continue resumes in place. If the program is blocked on socket
    I/O, Ctrl-C reports the exact operation it is waiting on.
  • New opt-in runtime diagnostics via environment variables — no rebuild
    needed, zero cost when unset: CLAMIGA_GC_DIAG (one line per collection),
    CLAMIGA_SOCK_DIAG (socket reactor trace), CLAMIGA_IO_DIAG (file-op
    trace), plus a stop-the-world straggler diagnostic.
  • Fixed the debugger's numeric restart selection.

Fixes

  • Sequence/type: byte element-types in result-type specs (e.g. CONCATENATE
    / COERCE to (vector (unsigned-byte 8))) now build packed byte vectors.
  • GC stress/debug builds no longer false-positive-abort on packed byte
    vectors (GC_DBG_MAX_TYPE drift); UTF-8 codec declarations fixed for
    non-wide-string builds.

v0.5

Choose a tag to compare

@mdbergmann mdbergmann released this 24 Jul 13:05

What changed in 0.5

  • Packed byte vectors — the headline. (unsigned-byte 8) / (signed-byte 8) arrays now store 1 byte per element instead of 4-byte tagged values, and (unsigned-byte 16) / (signed-byte 16) store 2 bytes.

  • FASL format v25 carries them (16-bit payloads serialized big-endian so files stay portable between host and m68k). Landed in three slices, plus today's fix so CONCATENATE/COERCE result-type specs
    actually build the packed kind.

  • Bulk byte I/O and codecs — read-sequence/write-sequence, replace, map-into and count got byte-vector fast paths; new unpack-byterun1 (ILBM decompression) and ext:copy-rows for strided row copies.

  • FFI gained bulk poke-bytes/peek-bytes, replacing per-byte loops.

  • Amiga graphics from Lisp — custom screens (open-screen/with-screen, best-mode-id, set-rgb4), offscreen bitmaps, blits, ROM fonts, and untitled/borderless windows.

  • Amiga stack exhaustion fixed properly — the reader and compiler had oversized recursive frames; they're now shrunk and both call recursion guards, so blowing the stack produces a clean catchable "C stack nearly exhausted" error instead of silent memory corruption.

  • FS-UAE FASL cache fix — caches were perpetually stale (the .uaem datestamp quirk); also anchors the internal-time epoch at launch.

  • Conformance and correctness fixes — READ-SUPPRESS honored per CLHS 2.4.8.17; ~A/~S and bignum ~D render unbounded instead of truncating at fixed buffer sizes; :start/:end on the string

  • case-conversion family; a GC bug building condition slots via a cyclic alist; a stream-table mutex leak when thread count drops mid-critical-section.

  • MorphOS — new processes now enter as PPC rather than 68k; missing peephole.c added to its Makefile.

v0.4

Choose a tag to compare

@mdbergmann mdbergmann released this 16 Jul 14:54

Full Changelog: v0.2...v0.4

toolchain-macos-arm64-6.5.0b-251015

Choose a tag to compare

moved copying binary to amiga target.