Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Message passing model in clojure for concurrency

I am inquiring to know whether or not one can use the programming language Clojure for a message passing concurrency model i.e. no shared memory region between two processes/threads.

I wish to use Clojure for a few reasons, namely, I know and like Common Lisp and I would like to a functional programming language. I don't know too much about either Clojure or Concurrency however from wikipedia Clojure implements concurrency through software-transactional-memory,an agent system and a dynamic var system.

  1. Can Clojure implement a message passing concurrency model?
  2. If not, what other languages

Thank you for your help!

like image 761
CodeKingPlusPlus Avatar asked Jun 20 '26 14:06

CodeKingPlusPlus


1 Answers

Can Clojure implement a message passing concurrency model?

Yes sure. It is already implemented for Clojure. Check Pulsar project. It looks really promising and ready for the prime time.

Of course, nothing stops you from using Akka.io since it is a JVM project (by using Clojure's built-in Java interop). But Pulsar is created with Clojure in mind.

what other languages?

Erlang is the undisputed champion when it comes to Actors model.

like image 108
Chiron Avatar answered Jun 24 '26 14:06

Chiron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!