Fork me on GitHub
#announcements
<
2019-09-30
>
athomasoriginal01:09:49

Finally got around to solving a 2 year old bug in a project from the early days of my Clojure learning journey https://betweentwoparens.com/students-of-the-game-reloadable-code

parrot 16
leonoel14:09:59

First release of clope, a byte rope implementation for clojure and clojurescript. https://github.com/leonoel/clope

💯 16
👍 4
paul a15:09:54

i have some cljs code where i store about 2 MB in a Uint8Array. i update some values in the byte array (no shortening or lengthening it) and then return it. is clope up my alley?

leonoel16:09:17

@UN0TDQ30T maybe, depending on your use case and performance requirements. the right way to update a portion of an immutable rope is to extract a subrope of the portion you want to update, copy it to a new buffer, mutate the buffer, wrap it in a new rope and finally join it with the unmodified subropes before and after. All these operations should be reasonably fast.

paul a16:09:56

i see, thanks!

leonoel16:09:46

mutate the underlying array in-place is at best hackish as it will break internal hashcode caching

andy.fingerhut20:09:48

Version 0.1.0 of the core.rrb-vector library has been released, with fixes for several bugs found in earlier releases. https://github.com/clojure/core.rrb-vector . Change log: https://github.com/clojure/core.rrb-vector/blob/master/CHANGES.md

👍 28