r/Clojure • • Jun 11 '19

GitHub - timothypratley/rustly: A Clojure to Rust transpiler

https://github.com/timothypratley/rustly
73 Upvotes

15 comments sorted by

View all comments

5

u/jimmyhmiller Jun 11 '19

Definitely early days, but exciting. But I'm partial because it is using meander.

I wonder if rather than using strings it might be worth rewriting to an ast representation. I know rust has a json ast format. So you could turn it into normal clojure data structures, serialize to json, and then do code gen. Might be a bit more complicated, but perhaps more flexible.