Thanks for the welcome. My "real job" is busy right now, but when I
get some time I'm going to hack on pysage a bit, if for no other
reason than to understand the codebase already.
As for the "immediate send" functionality:
it would be like "trigger" but asynchronous. If such functionality was
implemented in a method called ActorMgr.send_now, then calling
send_now would queue a message and return. However, there would be a
background thread/process (unseen to the caller) whose sole
responsibility is to dispatch that message. This way, any actor can
just queue a message and continue without worrying about flushing
messages (although your "game loop" explanation has made me understand
why that model is also needed). This "asynchronous send" functionality
is similar to that which Erlang provides (also the Gears workerpool),
and I bring it up because it makes more sense to me than the flushing
model that you described with tick.
As for the raw data functionality:
yes, I mean functionality to send a message without having to write a
message class. The best use case that I can think of is a single, "one-
off" message that an actor wants to send. In this case and other
similar cases, I think it's too much overhead to have to write a new
message class. Some great examples I can think of are notifications -
things like "message received", "computation done", etc...
Alternatively, I guess pysage could include some pre-fab message
classes to solve some of the most common use cases.
This functionality could be implemented as a wrapper on top of a
generic message class. This way any actor can be guaranteed to be able
to receive and understand any message regardless of whether it was
sent "ad-hoc" or via a structured message class.
Sorry for the long message. Maybe this thread should be forked?
Aaron
> > detailed inhttp://
code.google.com/p/pysage/issues/detail?id=3.