nbb

gdubs 2024-11-22T19:18:34.610009Z

How would I go about running https://github.com/clj-commons/ring-buffer on nbb? I understand that support for typedef is limited. I probably don't even need all of ring buffer's methods. I at least need https://github.com/clj-commons/ring-buffer/blob/master/src/amalloy/ring_buffer.cljs#L42 , but I don't know if nbb has an equivalent of ICollection? I naively tried looking for the implementation of conj in the nbb and sci source, and couldn't find anything. Tips appreciated.

borkdude 2024-11-22T19:21:41.134749Z

@gdwarner Implementing custom data structures isn't SCI's forte. conj is just the normal conj of the host system (ClojureScript). Perhaps a ring-buffer thingie from a JS lib will do?

gdubs 2024-11-22T19:38:12.098689Z

That's a good alternative. RingBuffer is a dependency of flowstorm. So I can try using a js ring buffer lib from flowstorm instead.

borkdude 2024-11-22T20:01:07.817329Z

I'm not sure if I follow that logic