10
submitted 2 months ago* (last edited 2 months ago) by HaraldvonBlauzahn@feddit.org to c/programming@programming.dev

I posted this because I think it is really cool: Clojure is a great and extremely elegant language, which has a powerful approach to concurrency: Data is immutable by default, like Python's strings and tuples. (Here more about this idea.)

Because this Clojure dialect runs in the Python bytecode interpreter, it has via its interop features access to all of Python's libraries.

And there is one more advantage, which is less obvious: Python can be extended with native extension modules via a C API. And this does not only allows code written in C and C++ to be called (via boost::python and pybind11), but also code written in Rust - because Rust supports calls via the C ABI, and this can be used in comfortable Python wrappers like PyO3, in the same way as C++ with pybind11. And the concrete advantage of Rust here is that it is a far better match to Clojure's immutability-by-default, and its safe concurrency support.

no comments (yet)
sorted by: hot top new old
there doesn't seem to be anything here
this post was submitted on 06 Jun 2026
10 points (100.0% liked)

Programming

28304 readers
439 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS