Re: [fpc-pascal] Actor Model implementation in Pascal

2011-03-14 Thread Sven Barth
Yes, that sounds indeed interesting (well... most multithreading things do ^^), but... Am 13.03.2011 22:59, schrieb Jorge Aldo G. de F. Junior: the actor model can accelerate tasks that would be dealt with in singlethreaded fashion... lets suppose that your program needs to read 8 files at the

Re: [fpc-pascal] Actor Model implementation in Pascal

2011-03-13 Thread Jorge Aldo G. de F. Junior
the actor model can accelerate tasks that would be dealt with in singlethreaded fashion... lets suppose that your program needs to read 8 files at the same time, pre-process them, and use their data. you can write an actor that opens the file and pre-process it in your main thread (the program i

Re: [fpc-pascal] Actor Model implementation in Pascal

2011-03-13 Thread Sven Barth
Am 13.03.2011 22:30, schrieb Jorge Aldo G. de F. Junior: yes, its a kind of message passing. but mine is in native pascal and i have no intention of making bindings for other languages... its wayyy simpler than mpich too. you just pass TObjects back and forth from threads. (I understand that T

Re: [fpc-pascal] Actor Model implementation in Pascal

2011-03-13 Thread Jorge Aldo G. de F. Junior
yes, its a kind of message passing. but mine is in native pascal and i have no intention of making bindings for other languages... its wayyy simpler than mpich too. you just pass TObjects back and forth from threads. (I understand that TCustomMessage is way too restrictive, so i am planing to de

Re: [fpc-pascal] Actor Model implementation in Pascal

2011-03-13 Thread Sven Barth
Am 13.03.2011 22:08, schrieb Jorge Aldo G. de F. Junior: This is my attempt at implementing an actor model in freepascal Never heard of "actor model" yet, but I'll read about it ^^ http://code.google.com/p/pascal-actor-model/ This is an very early code. Any help is appreciated. Every commu

[fpc-pascal] Actor Model implementation in Pascal

2011-03-13 Thread Jorge Aldo G. de F. Junior
This is my attempt at implementing an actor model in freepascal http://code.google.com/p/pascal-actor-model/ This is an very early code. Any help is appreciated. Every communication between thread is done by using messages (wich are itself objects). I am improving the current code a bit so this