6dfc2a9308
- 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
36 lines
678 B
Makefile
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
|