opensistemas-hub / osbrain

osBrain - A general-purpose multi-agent system module written in Python
https://osbrain.readthedocs.io/en/stable/
Apache License 2.0
175 stars 43 forks source link

Global synchronization #362

Open Blankslide opened 3 years ago

Blankslide commented 3 years ago

Is there a way to achieve a global synchronization call as it is in MPI.Barrier() in mpi4py?

Peque commented 3 years ago

@Folorunblues That pattern, and many others, are not implemented inside osBrain.

Since osBrain is based on ZeroMQ you can, however, implement any communication pattern you need without requiring too much effort. I strongly recommend you to have a look at ØMQ - The Guide. There you will find lots of examples for different communication patterns for different needs. :blush:

Blankslide commented 3 years ago

@Peque Thank you for your prompt reply! I will take a look at the guide. Is osbrain 0.70 coming out any time soon?

Peque commented 3 years ago

@Folorunblues I don't think so. Unfortunately, I am no longer actively developing this library, and it seems the project is not receiving lots of contributions either.

Blankslide commented 3 years ago

@Peque, I quite understand. I believe the 0.6.5 is great and still has all the necessary features. Thanks again for your response!

Peque commented 3 years ago

@Folorunblues Glad you find it useful! :blush:

Let me keep the issue open for contributions.