Files
bara-lang/Makefile
T
dimgigov 6dfc2a9308 Phase 5: HAMT Persistent Map + Persistent Set, 86 tests pass
- T5.3: HAMT Persistent Map (lib/cljnim_pmap.nim)
  O(log32 n) assoc/dissoc/get with structural sharing
  16 unit tests, ckMap migrated from seq to HAMT

- T5.4: Persistent Set backed by HAMT map
  ckSet with conj/disj/contains?/get, set literal #{}

- Fix: cljContains/cljCount return CljVal (not bool/int)
- Fix: equality in generics via explicit cljEq parameter
- Updated roadmap, task board, CI/Makefile
2026-05-08 19:13:09 +03:00

36 lines
678 B
Makefile

.PHONY: build test clean run-example bench bench-aot
NIMCACHE = nimcache
build:
nim c -o:cljnim src/cljnim.nim
test:
nim c -r tests/test_reader.nim
nim c -r tests/test_emitter.nim
nim c -r tests/test_pvec.nim
nim c -r tests/test_pmap.nim
test-reader:
nim c -r tests/test_reader.nim
test-emitter:
nim c -r tests/test_emitter.nim
run-example: build
./cljnim run examples/hello.clj
bench:
bash benchmarks/run_benchmarks.sh
bench-aot:
bash benchmarks/run_aot_benchmarks.sh
clean:
rm -f cljnim
rm -rf $(NIMCACHE)
find . -name "*_generated.nim" -delete
find . -name "*_generated" -delete
find . -name "test_reader" -delete
find . -name "test_emitter" -delete