Skip to main content

Questions tagged [actor]

The Actor model is a mathematical model of concurrent computation that treats "actors" as the universal primitives of concurrent digital computation: in response to a message that it receives, an actor can make local decisions, create more actors, send more messages, and determine how to respond to the next message received.

Filter by
Sorted by
Tagged with
4 votes
1 answer
148 views

Simple C++98 actor system (with event system) - think Doom or Unreal

I am finishing up an actor system (like those used in 90s games, like Doom, Unreal, etc.), which currently deals with damage and event handling. actor.cpp ...
wallabra's user avatar
  • 789
2 votes
1 answer
458 views

Erlang: pmap with max number of processes

I'm working through Joe Armstrong's Programming Erlang 2nd E. The book has exercises at the end of each chapter. Chapter 26, Question 5 is: Write a function called ...
Tianxiang Xiong's user avatar
3 votes
1 answer
91 views

Akka actor to calculate a soccer league rank

I am new to Scala / Akka and this is my first attempt at writing an actor. The task that I am trying to accomplish is: given a sequence of soccer matches, generate a ranking based on the usual rules ...
Alberto Venturini's user avatar
1 vote
1 answer
697 views

Line count of each file in a given directory efficiently using akka

This is my first program in akka so I wanted to know if the program is efficient and is using the advantages of actor model. The program's purpose is to scan a given directory for any files and print ...
whokares's user avatar
  • 111
2 votes
1 answer
2k views

Implementing the Actor-Model in C#

After learning the basics (isolated state, communication and computation) of the the Actor-Model, I wrote my own implementation and I'm ready for a thorough code review. You will be able to see that ...
Yair Nevet's user avatar
3 votes
0 answers
407 views

Finding the most frequent words in Scala using Akka

I'm new to akka and would like to get some feedback on my first attempt. The code takes text from stdin and finds the top 10 most frequently occurring words. Specifically, I would like to know Is ...
Jason Desrosiers's user avatar
2 votes
1 answer
209 views

Simple actor system in F#

Any thoughts on my actor model here? Obviously it doesn't have implementation for concurrency as it stands- being completely synchronous, but it should be easy to make the send/become/create be sent ...
Jimmy Hoffa's user avatar
  • 1,545
2 votes
1 answer
291 views

Light Weight Actors

Edit: This was an absolute ignorance on my part which leads to hierarchical locks and can be implemented much cleaner (in fact the right way, in a mutable world) using a pipe-line of messages or ...
Kaveh Shahbazian's user avatar
3 votes
5 answers
490 views

Does this Actor implementation has synchronization problems?

As a part of a job test, I wrote following implementation of the Actor execution model: ...
Alexei Kaigorodov's user avatar
5 votes
1 answer
472 views

Review of simple Java Actor library

How can I improve this code? Also available from git://github.com/edescourtis/actor.git . Actor.java ...
Eric des Courtis's user avatar
4 votes
3 answers
325 views

Is this Agent/Actor implementation issue free?

I implemented this Agent class for a project recently and was wondering if I could get some other eyes to look at it -- I'm currently the only developer where I work so I can't exactly ask someone ...
paul's user avatar
  • 168
2 votes
2 answers
258 views

Scala: Josephus problem with Actors

Another stab at the Josephus problem, this time using Actors. N people stand in a circle and every stepth person is eliminated ...
Luigi Plinge's user avatar
3 votes
1 answer
718 views

Review an asynchronous/message-oriented library actor

I'd like to get input on a F# actor that coordinates receives around a blocking message buffer. The actor is a piece of code that continuously tries to fetch messages from Azure Service Bus. ...
Henrik's user avatar
  • 81