You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to build a real time server. Actually a tree of chat servers organized by topic. You can see the related lightening talk at blog.pythonlinks.info.
Erlang has the right concurrency model, but the language is not object-oriented. Python has a great object language but only a single thread at a time. Go is statically bound. Which brought me back to my beloved Objective-C.
But what to do about concurrency? I found the answer right here. https://www.ios-blog.com/tutorials/objective-c/asynchronous-message-passing-with-actors-in-objective-c/
Basically every concurrent actor is a subclass of Thread. You send a message to the actor, it goes into their input queue. It gets copied and processed. No problem with locks. A very simple computational model. But the repository is not very active because with Apple’s Objective-C you have to create a new class for
every message. With Mulle-objc, the messages is itself a data structure, so easy to write a function which copies any message.
Anyhow I am new to all of this concurrency stuff. Am I on the right track? Is anyone else thinking along these lines? Is this the killer application for Mulle-objc?
Warm
Regards
Christopher Lozinski
PythonLinks.info
The text was updated successfully, but these errors were encountered:
Actors are interesting, but I only have knowledge about them by having watched some Youtube videos :) I think the main difference between ObjC messages and Actor messages are, that Actor messages are one-way only (async), whereas ObjC is call and return (sync). So it looks more like an event model. I think for a distributed chat server this would be interesting to use, but I am out of my level of expertise there.
I want to build a real time server. Actually a tree of chat servers organized by topic. You can see the related lightening talk at blog.pythonlinks.info.
Erlang has the right concurrency model, but the language is not object-oriented. Python has a great object language but only a single thread at a time. Go is statically bound. Which brought me back to my beloved Objective-C.
But what to do about concurrency? I found the answer right here.
https://www.ios-blog.com/tutorials/objective-c/asynchronous-message-passing-with-actors-in-objective-c/
Basically every concurrent actor is a subclass of Thread. You send a message to the actor, it goes into their input queue. It gets copied and processed. No problem with locks. A very simple computational model. But the repository is not very active because with Apple’s Objective-C you have to create a new class for
every message. With Mulle-objc, the messages is itself a data structure, so easy to write a function which copies any message.
Anyhow I am new to all of this concurrency stuff. Am I on the right track? Is anyone else thinking along these lines? Is this the killer application for Mulle-objc?
Warm
Regards
Christopher Lozinski
PythonLinks.info
The text was updated successfully, but these errors were encountered: