Fork me on GitHub
#off-topic
<
2018-09-11
>
benzap22:09:37

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

souenzzo13:09:36

@U07TDTQNL has some implementations. (checkout other repos) https://github.com/halgari/clojure-py-redux

👍 4
andy.fingerhut22:09:24

Python input, Clojure output?

benzap22:09:09

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

benzap22:09:21

so like cljerl, or even clojurescript

benzap22:09:15

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

benzap22:09:25

could call it cljpy

andy.fingerhut22:09:50

It may be off-the-mark for what you are looking for, but have you seen Pixie? https://github.com/pixie-lang/pixie

benzap23:09:50

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.

benzap23:09:11

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.*

benzap23:09:26

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

benzap23:09:15

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