How many of you have switched to Clojure from Python and has any of you gone through http://hylang.org/ as an intermediate step? It has seamless bidirectional interop with Python, so I'm wondering if it could give Python people a taste of (kinda) Clojure and perhaps nudge them to this side 🤔
You can abuse hy-lang to macroexpand Python from Clojure https://github.com/plai-group/daphne/blob/master/src/daphne/hy.clj#L193
I think hylang is too esoteric for this step. I checked it out because I'm interested in Lisps. I would guess people going from Python to Clojure are more interested in the specifics of Clojure than in Lisps themselves. One dev I know is very interested in Clojure because of the REPL -- but only because Clojure has mainstream creds. Will he investigate other Lisps? Not a chance. Unfortunately.
hylang is not exactly Clojure but, last I checked, it's much closer to it than other lisps iirc
It's probably easier (for a Python developer) to write a python module in hylang than to start a project in Clojure from scratch (and have to learn CLI/lein & find replacements for your libraries if you write specialized code, e.g. data science).
> "switched to Clojure from Python" ✋ Didn't get here "through" Hy, but did have a look at it as a potential way to use Clojure in Python space. Hy wants to allow writing Python code with a lisp/Clojure-inspired syntax, while I'm looking for something that would bring the core Clojure ideas and values (immutability, simplicity, interop, etc.) to Python, including the syntax. Basically, I'm looking for a Python-hosted Clojure, in the same vein as ClojureScript, ClojureDart and ClojureCLR. One day I'll write it if someone else doesn't 😅🤞. For now I'll settle for using https://pyrsistent.readthedocs.io/en/latest/intro.html whenever possible. 🙂
A Python-hosted Clojure would indeed be very nice... I doubt I'd ever start a greenfield project in hylang. I think its niche is sprinkling Clojure-like bits over an existing Python project.
I came from Python, but not via Hy. I'd been dabbling with Clojure for quite a while, then got a job at a very functionally-oriented python shop who wanted to start using some Clojure.
Nice! Well done, hope you're happy there 🙂
Sadly our whole team got laid off at the end of 2020 😛
Damn, I'm sorry to hear that.
Ancient history now, and a great lesson in spotting signs that your acquiring company is only interested in your tech, not your team
It's not really quite what you're looking for but https://github.com/clj-python/libpython-clj also seems relevant. It allows nice access to python from (jvm) clojure