Skip to content

v0.9

Choose a tag to compare

@mdbergmann mdbergmann released this 07 Sep 14:25
· 300 commits to master since this release

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.