# Clojure hosted on Python

**URL:** <https://clojureverse.org/t/clojure-hosted-on-python/11314>\
**Category:** Watercooler\
**Tags:** clojure, data-science, clojurescript\
**Created:** [April 7, 2025, 12:25am UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314 "2025-04-07T00:25:22Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dirk\_Roeckmann](https://clojureverse.org/user_avatar/clojureverse.org/dirk_roeckmann/32/5739_2.png) [@Dirk\_Roeckmann](https://clojureverse.org/u/Dirk_Roeckmann)\
**Post date:** [April 7, 2025, 12:25am UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/1 "2025-04-07T00:25:22Z")

</div>

Are there any official efforts/plans to introduce Clojure on Python in order to have full access to the data science, ML and AI packages? Yes I know there is Basilisp. which is fantastic but I wonder if an official leap into this arena is even remotely realistic.

---

<div class="post-metadata">

**Author:** ![Harold](https://clojureverse.org/user_avatar/clojureverse.org/harold/32/4796_2.png) [@Harold](https://clojureverse.org/u/Harold)\
**Post date:** [April 7, 2025, 1:40am UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/2 "2025-04-07T01:40:31Z")

</div>

We use [libpython-clj](https://github.com/clj-python/libpython-clj) for this.

---

<div class="post-metadata">

**Author:** ![Dirk\_Roeckmann](https://clojureverse.org/user_avatar/clojureverse.org/dirk_roeckmann/32/5739_2.png) [@Dirk\_Roeckmann](https://clojureverse.org/u/Dirk_Roeckmann)\
**Post date:** [April 7, 2025, 1:53am UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/3 "2025-04-07T01:53:56Z")

</div>

Yep thanks. Great advice. My question was more pointing to the possibility of officialy hosting a new Clojure on the ‘last frontier’ host Python after Java (Clojure) and JS (Clojure Script)

---

<div class="post-metadata">

**Author:** ![Harold](https://clojureverse.org/user_avatar/clojureverse.org/harold/32/4796_2.png) [@Harold](https://clojureverse.org/u/Harold)\
**Post date:** [April 7, 2025, 2:04am UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/4 "2025-04-07T02:04:29Z")

</div>

I sort of doubt that’d be worth the effort - the more I learn about the JVM, and the more I learn about the python runtime, the less I think something like what you’re describing is a good idea.

_[just saw you’re a first-time poster - I’m not actually trying to be that flippant; perhaps other knowledgeable folks here would like to discuss the pros and cons hosting Clojure on Python 😄]_

---

<div class="post-metadata">

**Author:** ![joinr](https://clojureverse.org/user_avatar/clojureverse.org/joinr/32/1861_2.png) [@joinr](https://clojureverse.org/u/joinr)\
**Post date:** [April 7, 2025, 4:32am UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/5 "2025-04-07T04:32:08Z")

</div>

This has been explored very early in Clojure’s lifetime. Tim Baldridge had an implementation (forked at [GitHub - drewr/clojure-py: A implementation of Clojure in pure (dynamic) Python](https://github.com/drewr/clojure-py)), along with more revisions and explorations but it was eventually publicly abandoned (I think there were some blog posts or mailing lists about the reasoning). I think (based off mailing list posts) he got it up to py 2.7, but abandoned it due to speed issues. Then he went off researching pypy, rpython, and implemented pixie lang (a clojure inspired language written in rpython with a jit) among other research topics.

"At this point I’ve moved on from Clojure-Py. The amount of hoops I needed to jump through to get Clojure semantics on Python ended up having too many drawbacks. "

That doesn’t mean someone else couldn’t reinvigorate the effort, but I just haven’t seen any demand or initiative since like 2015. People seem okay with bridging as a compromise.

---

<div class="post-metadata">

**Author:** ![Dirk\_Roeckmann](https://clojureverse.org/user_avatar/clojureverse.org/dirk_roeckmann/32/5739_2.png) [@Dirk\_Roeckmann](https://clojureverse.org/u/Dirk_Roeckmann)\
**Post date:** [April 7, 2025, 11:37am UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/6 "2025-04-07T11:37:06Z")

</div>

Have you ever had a look at Basilisp? Chris Rink accomplished a lot of that in a personal project. Especially in data science and AI, all frameworks and packages of any seriouspedigree run on Python, nobody and I mean nobody hosts on JVM.  
It would be a great expansion of Clojure to cover that area of application.

Yes I am a first-time poster and new to Clojure but I have decades of experience in computer science and IT consulting having worked with all kinds of languages like C, C++, Scheme, Prolog, Java, JS, Rust etc.

I would be very interested in your expert opinion on Basilisp

---

<div class="post-metadata">

**Author:** ![joinr](https://clojureverse.org/user_avatar/clojureverse.org/joinr/32/1861_2.png) [@joinr](https://clojureverse.org/u/joinr)\
**Post date:** [April 7, 2025, 1:46pm UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/7 "2025-04-07T13:46:49Z")

</div>

I don’t have an opinion on basilisp; I don’t use it but I am aware of it. Just stating the prior art relative to your query, e.g. why there is no formally supported clojure-on-python. Maybe basilisp will be able to overcome the hurdles that clojure-py could not, or maybe it remains as a pragmatic compromise that gets you 95% of clojure on modern python.

I personally think python kind of sucks and Gumped its way into popularity 🙂 Such is life.

For what it’s worth, the [SciCloj](https://scicloj.github.io/) folks are working to build out the data science story in Clojure (consolidating efforts and getting fundamental infrastructure built out, since about 2019), in addition to just bridging into Python, R (and even early julia bindings) out of pragmatism. AI/ML side of the Clojure house is pretty much leveraging aforementioned bindings, or java/scala/native based stuff through the JVM. Much of the discussion happens on the [Zulip board](https://scicloj.github.io/docs/community/chat/#the-clojurians-zulip) if you want to poke around.

---

<div class="post-metadata">

**Author:** ![Dirk\_Roeckmann](https://clojureverse.org/user_avatar/clojureverse.org/dirk_roeckmann/32/5739_2.png) [@Dirk\_Roeckmann](https://clojureverse.org/u/Dirk_Roeckmann)\
**Post date:** [April 7, 2025, 2:42pm UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/8 "2025-04-07T14:42:56Z")

</div>

Thanks for your input

---

<div class="post-metadata">

**Author:** ![Harold](https://clojureverse.org/user_avatar/clojureverse.org/harold/32/4796_2.png) [@Harold](https://clojureverse.org/u/Harold)\
**Post date:** [April 7, 2025, 5:04pm UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/9 "2025-04-07T17:04:11Z")

</div>

> [@Dirk\_Roeckmann](#):
>
> I would be very interested in your expert opinion on Basilisp

I have used basilisp, in a hobby setting, to write Clojure code to run in Blender:

 ![2025-03-02_18-24 (1)](https://v2.clojureverse.org/uploads/default/original/2X/d/d024872a005640eb9c9c6b1a751b15290d423c7a.jpeg)

The work there is great, and the effort that has gone into making that experience smooth is very, very admirable.

> nobody and I mean nobody hosts on JVM

Well, we do.

And we like it. Personally, I believe there’s a lot of promise in functional programming for data science and machine learning. Exploring these ideas and solving problems in this area for the last decade has been enlightening, and fun, and lucrative.

---

<div class="post-metadata">

**Author:** ![Dirk\_Roeckmann](https://clojureverse.org/user_avatar/clojureverse.org/dirk_roeckmann/32/5739_2.png) [@Dirk\_Roeckmann](https://clojureverse.org/u/Dirk_Roeckmann)\
**Post date:** [April 7, 2025, 7:19pm UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/10 "2025-04-07T19:19:11Z")

</div>

Thanks for the input. I am happy that you had positive experiences with Baslisp. I only tinkered a little and it made a great impression on me for a personal project.

When I said ‘nobody hosts data science on JVM’ (I apologize for the abrasiveness) I meant all the well known frameworks pytorch, tensorflow, jax, numpy, pandas, scikit-learn etc all live on Python and it would be great if there was a more official support for Clojure on Python - thanks again

---

<div class="post-metadata">

**Author:** ![didibus](https://clojureverse.org/user_avatar/clojureverse.org/didibus/32/951_2.png) [@didibus](https://clojureverse.org/u/didibus)\
**Post date:** [April 7, 2025, 8:36pm UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/11 "2025-04-07T20:36:23Z")

</div>

I think Basilisp is what you want. It’s pretty feature complete, and well maintained.

libpython-clj is the other way around, let’s you use Python libs from Clojure. But Basilisp is a Clojure implementation that runs over the Python VM.

---

<div class="post-metadata">

**Author:** ![Dirk\_Roeckmann](https://clojureverse.org/user_avatar/clojureverse.org/dirk_roeckmann/32/5739_2.png) [@Dirk\_Roeckmann](https://clojureverse.org/u/Dirk_Roeckmann)\
**Post date:** [April 7, 2025, 10:32pm UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/12 "2025-04-07T22:32:20Z")

</div>

Thanks. I makes a pretty solid impression

---

<div class="post-metadata">

**Author:** ![mardukbp](https://clojureverse.org/user_avatar/clojureverse.org/mardukbp/32/4403_2.png) [@mardukbp](https://clojureverse.org/u/mardukbp)\
**Post date:** [April 14, 2025, 9:59am UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/13 "2025-04-14T09:59:57Z")

</div>

@Dirk_Roeckmann Using Python libraries from Clojure should be possible with [GraalPy](https://www.graalvm.org/python/). From their website:

> GraalPy provides a Python 3.11 compliant runtime. A primary goal is to support PyTorch, SciPy, and their constituent libraries, as well as to work with other data science and machine learning libraries from the rich Python ecosystem.

The online book [Practical Artificial Intelligence Programming With Clojure](https://markwatson.com/books/clojureai-site/) shows how to use some Python libraries from Clojure (not through GraalPy).

Also check out [ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator](https://onnxruntime.ai/). It has a Java API.

While Python is the best known platform for data science and ML, Python as a language and also its runtime are suboptimal for doing this kind of work. For this reason the Elixir community has been developing a complete ecosystem that leverages the same C++ libraries as Python, and can also call Python libraries when needed.

The Clojure community has been on the same track developing a data science stack that leverages existing C++ and Java libraries. There is also similar work in the Scala community.

Building an ecosystem that is on par with the Python ecosystem requires a huge amount of work. Hopefully AI will one day make it possible to rewrite a whole ecosystem in another language. Then everybody will we able to choose the tool they consider the best fit 🙂

---

<div class="post-metadata">

**Author:** ![Dirk\_Roeckmann](https://clojureverse.org/user_avatar/clojureverse.org/dirk_roeckmann/32/5739_2.png) [@Dirk\_Roeckmann](https://clojureverse.org/u/Dirk_Roeckmann)\
**Post date:** [April 14, 2025, 11:32am UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/14 "2025-04-14T11:32:30Z")

</div>

Thanks for the info. I will have a look

---

<div class="post-metadata">

**Author:** ![system](https://clojureverse.org/uploads/default/original/2X/5/51079bf9e4b7d9466242c06cf1e43b9f8bd6da14.png) [@system](https://clojureverse.org/u/system)\
**Post date:** [October 13, 2025, 11:33pm UTC](https://clojureverse.org/t/clojure-hosted-on-python/11314/15 "2025-10-13T23:33:15Z")

</div>

Closed on October 13, 2025, 11:33pm UTC

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