Skip to content

Conversation

swannodette
Copy link
Member

No description provided.

- update older ObjMap
- simple-hash-map to avoid name collision
@swannodette swannodette changed the title Experimental Light Mode Experimental Lite Mode Jul 29, 2025
- avoid map in ObjMap for now until we get our ducks in a row
…mpossible to respect the O(1) copy contract, but too much of cljs.core relies on the protocol, we have to pretend we support it
- sanity check eq / hash between simple-map-entry and MapEntry
- go ahead and update cljs/lite-test-runner to run cljs.core-test
- add failing case in the comments
- add test assertions for the cases considered along the way to the problem
- cljs.core-test now passing under :lite-mode true
- simple-map-entry: add ICollection impl
- RSeq: can use `-count` in lastIndexOf
- Vector: Object.indexOf and Object.lastIndexOf
  inlined, a very small size hit, better for perf
- Vector: implement RSeq
- Set (Lite): need to return 0 from -count
- cljs.seqs-test: elide chunked-seq assertions from lite-mode tests
- cljs.lite-test-runner: run cljs.seqs-test
- implement es6 collection compatibility
- include cljs.intero-test in lite-test-runner
- add ObjMapIterator
- implement ObjMap IIterable
- implement HashMap -kv-reduce
- run cljs.reducers-test
- add ILookup
- add IFind
- add lite-collection-test for these cases
- NOTE: it wasn't clear until we we got to testing that we would need
  all this stuff. Perhaps we just want to use MapEntry, this does
  create a dependence on Vector, but I think simple-map-entry was
  created to avoid the connection to PV before I had done all work to emit
  the simple vector type under :lite-mode
- -lookup needs to use nil so it doesn't throw
- -invoke should not take extra parameter, just copy PersistentVector
  implementation
- clojure.data-test passing now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant