Fork me on GitHub

I wonder how difficult it would be to develop a clojure transpiler for python


@U07TDTQNL has some implementations. (checkout other repos)

👍 4

Python input, Clojure output?


I guess I mean something closer to hylang, but closer to the clojure standard library


so like cljerl, or even clojurescript


It might even be easier to implement than javascript, since the main implementation depends on google closure to ensure a consistent experience between web browsers. Compilation stages aren't really a problem either. That was more important for bringing down bundle sizes for the web


could call it cljpy


It may be off-the-mark for what you are looking for, but have you seen Pixie?


Yeah, pixie lang had the goal of providing native performance, and I think they wanted to provide better native FFI for shared libraries? They also restricted its use to pypy with RPython, so it could only run solely on the pypy interpreter. From a native library perspective, I don't see anything wrong with this.


Something that ties in with the python ecosystem might garner better adoption, so restricting development to pypy for a clojure on python VM implementation might not be a good idea. It would be beneficial to try and get it to run in CPython 2.7 and 3.*


Of course, performance would be lacking, but if it can tie into the python standard library, that might not be as much of a concern


would be cool to just be able to type pip install cljpy, and boot up a clojure repl with cljpy