Skip to content

Concurrent Actor Model  #4

@PythonLinks

Description

@PythonLinks

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions