Repository navigation
v0.9
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-AHIon a prefs unit,PLAY-SAMPLEfor 8/16-bit mono/stereo at any rate from any memory,QUEUE-SAMPLEfor 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 generatedahi.devicetable (167 constants, 11 structs). Verified 80/80 on real MorphOS; example inexamples/amiga/audio/ahi-play.lisp.AMIGA.AUDIOis audible on real AmigaOS 3 now.audio.deviceignoresADIOF_PERVOL, soPLAY-SAMPLEwrites 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.EXECgains 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=1reports what each shutdown stage hands back (and the whole-processAvailMemdelta on AmigaOS);make test-memleakruns an allocation tracer that names the exact call site of anything still outstanding.
The release boots from a heap image
bin/*/clamiga.imgsits beside each binary: the booted runtime (boot + CLOS) restored in one read instead of loadingboot.fasl+clos.faslform by form — on a 68040 under FS-UAE 740 ms → 40 ms, and a 68020 no longer spends ~38 s booting from FASLs.--no-imagestill 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.shstagesclamiga.lha+clamiga.readmefrom the tag message, checks them against Aminet's readme rules and uploads by anonymous FTP (macOS/Linux). examples/amiga/gfx/screenshot.lispsaves any screen as a PPM — RTG screens through cybergraphics / P96ReadPixelArray, 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
TandNIL(BOOLparameters no longer need a1/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-BINDrejects an unknown keyword in a&keysection (CLHS 3.4.4), naming the keys it accepts, in both the compiler andMACROEXPAND.- 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-INITIALIZEDandSSL-CHECK-VERIFY-P, so websocket-driver's client — and CLOG on top of it — load with TLS. - MorphOS:
make -f Makefile.mos imageworks on the box;audio-second-channelis a SKIP under itsaudio.deviceemulation.
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'sOPEN-AUDIOallocates 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.