An alternative to clj->js

Hello, I have been playing with using JS Proxy as an alternative to clj->js.

The main idea is that instead of doing an eager conversion, make a proxy and read lazily.

I made a write up including some benchmarks on how it compares to clj->js, you can find it at

I will be glad to hear what you think about this approach.


You can also check out which has a similar approach.

1 Like

Yes, that’s cool, I see the cljs-bean covered the opposite direction, I mean using the CLJS Map interface to wrap a JS object. What I do is very similar, but in the other direction, I use the Proxy interface (which is JS) to wrap a CLJS data structure.


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.