Historical internal name "uncommonlisp" retired in favor of the
public name "lumbda" ahead of lumbda.com going live. Scope of
this commit:
Source files renamed:
uncommonlisp.py -> lumbda.py
asm/uncommonlisp.s -> asm/lumbda.s
c/uncommonlisp.h -> c/lumbda.h
whitepaper/uncommonlisp-whitepaper -> whitepaper/lumbda-whitepaper (.rst + .pdf)
Binaries renamed (tracked ones; c/ was always gitignored):
asm/uncommonlisp, asm/uncommonlisp-gc, asm/uncommonlisp.o,
asm/uncommonlisp-gc.o -> asm/lumbda(-gc)(.o)
c/.gitignore -> ignores lumbda
Internal string updates (sed pass ordered longest-first):
asm/uncommonlisp -> asm/lumbda
c/uncommonlisp -> c/lumbda
uncommonlisp.py -> lumbda.py
UNCOMMONLISP_BIN -> LUMBDA_BIN (asm/test.sh env var)
"uncommonlisp> " -> "lumbda> " (asm REPL prompt baked into binary)
UNCOMMONLISP -> LUMBDA (macros, comments)
uncommonlisp -> lumbda (prose)
Binary portal magic updated:
"ULPORTAL" -> "LUMBDAB1" # "Lumbda Binary v1"
Old portal files are not backward-compatible — this is a deliberate
break since it's the rename moment. S-expression portals already
carry their own ";; lumbda-portal v1" header and remain cleanly
versioned.
WHITEPAPER.pdf / WHITEPAPER.rst symlinks repointed to the renamed
files. Makefile's whitepaper target targets lumbda-whitepaper.pdf.
Not changed (intentional, separate phases):
- Filesystem directory /home/fox/git/uncommonlisp itself
(fox renames locally and the gitlab repo URL in a follow-up)
- tests.py hardcoded cwd=/home/fox/git/uncommonlisp
(matches the current on-disk location; will flip when the
directory rename ships)
- Git history (immutable; old commits still say uncommonlisp,
which is correct — that's what they were)
Verified:
137 asm no-GC + 137 asm GC + 571 Python + 83 C + 189 shared
functional tests all pass under the new names.
bench-gc-http (2000 req): all 4 cells behave as expected
(cells 1/2 flat, 3 leaks, 4 bounded at 1 chunk).
Python REPL, C REPL, asm REPL all start cleanly.
46 lines
1.2 KiB
Bash
Executable file
46 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
# bench-gc-memory.sh — compare asm no-GC vs asm naive GC under
|
|
# sustained allocation load. Each build runs the same .lsp workload
|
|
# while a sampler records RSS from /proc/<pid>/status. Reports
|
|
# wall time, peak RSS, final RSS.
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
|
|
ulimit -v 524288
|
|
trap 'pkill -9 -u "$USER" -f "asm/lumbda" 2>/dev/null || true' EXIT
|
|
|
|
make -s -C asm all
|
|
|
|
WORKLOAD=examples/bench-gc-memory.lsp
|
|
|
|
run_with_sampling() {
|
|
local bin="$1"
|
|
local label="$2"
|
|
local pid peak=0 final=0 rss
|
|
echo "== $label =="
|
|
"$bin" < "$WORKLOAD" > /tmp/gc-bench.out &
|
|
pid=$!
|
|
while kill -0 "$pid" 2>/dev/null; do
|
|
rss=$(awk '/^VmRSS:/ {print $2}' /proc/$pid/status 2>/dev/null || echo 0)
|
|
if [ -n "$rss" ] && [ "$rss" -gt "$peak" ]; then
|
|
peak=$rss
|
|
fi
|
|
final=$rss
|
|
sleep 0.05
|
|
done
|
|
wait "$pid"
|
|
cat /tmp/gc-bench.out
|
|
echo "peak_rss_kb=$peak"
|
|
echo "final_rss_kb=$final"
|
|
echo ""
|
|
}
|
|
|
|
run_with_sampling ./asm/lumbda "asm (no GC, 64 MB chunks)"
|
|
run_with_sampling ./asm/lumbda-gc "asm (naive GC, 1 MB chunks)"
|
|
|
|
rm -f /tmp/gc-bench.out
|
|
|
|
if pgrep -u "$USER" -f 'asm/lumbda' > /dev/null; then
|
|
echo "STRAGGLER detected" >&2
|
|
exit 1
|
|
fi
|