Lisp-Actors
Lisp-Actors copied to clipboard
Possibly adding more examples to xTActors/Examples
Thanks for Lisp-Actors. I read about it on the HUG mailing list. I am now studying its code, but it is not so easy for a beginner. Would you add some easy tests or sample code for absolute beginners to better grasp Lisp-Actors?
I am trying to use Lisp-Actors to wrap very long-running calls to the underlying OS, for example hundreds of directory-tree change watchers, or file-change watchers, and handle such long-running daemons from within Lispworks. To me, Lisp-Actors feels like a very natural way to handle this use-case?
Would you consider adding some examples to the xTActors/Examples in that direction in the future?
Thanks again.
Hi There,
A good, relatively simple example is the transactional Key-Value database in xTActors/actors-extra/transactional-db.lisp. It only needs the baseline Actors system (no remote Actors being used in the contained example).
Your application with all the watchers sounds like an excellent candidate for an Actors system. Lots of administrative connections between subsystems. A nightmare in Call/Return program style, but should be relatively easy in Actors.
A good learning resource is here (not Lisp): http://www.dalnefre.com/wp/ http://www.dalnefre.com/wp/. Dale, the guy at the website, worked directly with Carl Hewitt some years ago. There are lots of great examples of use cases and useful Actor widgets. Actors programming becomes a lot like assembling models out of Lego blocks.
- DM
On Oct 18, 2022, at 11:24 PM, Lisp student @.***> wrote:
Thanks for Lisp-Actors. I read about it on the HUG mailing list. I am now studying its code, but it is not so easy for a beginner. Would you add some easy tests or sample code for absolute beginners to better grasp Lisp-Actors?
I am trying to use Lisp-Actors to wrap very long-running calls to the underlying OS, for example hundreds of directory-tree change watchers, or file-change watchers, and handle such long-running daemons from within Lispworks. To me, Lisp-Actors feels like a very natural way to handle this use-case?
Would you consider adding some examples to the xTActors/Examples https://github.com/dbmcclain/Lisp-Actors/tree/main/xTActors/Examples in that direction in the future?
Thanks again.
— Reply to this email directly, view it on GitHub https://github.com/dbmcclain/Lisp-Actors/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYDUAPTJAAY5UMGUZ6WALLWD6HY7ANCNFSM6AAAAAARIYR7UA. You are receiving this because you are subscribed to this thread.
Thank you for pointing to that resource and the transactional-db.lisp example. The comments are exemplary to me in their clarity and expressiveness. The code is quite above my level of understanding, I will need to start from a very simple example first, and keep this for late.
Thank you again!
PS: Please feel free to close this ticket whenever you wish so.
Have a glance at my-test.lisp https://github.com/dbmcclain/Lisp-Actors/blob/main/xTActors/Examples/my-test.lisp - a very simple example to start you off…
- DM
On Oct 20, 2022, at 12:10 AM, Lisp student @.***> wrote:
Thank you for pointing to that resource and the transactional-db.lisp example. The comments are exemplary to me in their clarity and expressiveness. The code is quite above my level of understanding, I will need to start from a very simple example first, and keep this for late.
Thank you again!
— Reply to this email directly, view it on GitHub https://github.com/dbmcclain/Lisp-Actors/issues/4#issuecomment-1285050238, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYDUAJ2LZGE624OEJYRX5TWEDV6RANCNFSM6AAAAAARIYR7UA. You are receiving this because you commented.
Sorry for the delay, I was traveling. That example is perfect. I wasn' t aware of so may hidden gems, like also in xTActors/Examples.
Thank you, also for the clarity of the code. Much appreciated.