Discussion:
STM advice
Paul Tarvydas
2013-12-20 17:32:43 UTC
Permalink
I'm about to look into Software Transactional Memory techniques for some
financial code I'm involved with. Any advice about which libraries to
look at (and why) would be quite welcome.

Thanks
pt
Scott L. Burson
2013-12-20 20:17:40 UTC
Permalink
There is CL-STM. I haven't tried it, though, and know little about it.

If you do find a good STM library, you'll want a functional collections
library to go with it. This is for the same reason that Clojure uses
functional collections: you don't want to have to go outside the STM
framework to update collection-valued slots of objects. Permit me to
suggest FSet: http://common-lisp.net/project/fset/

It is Quicklisp-loadable: (ql:quickload "fset")

-- Scott
Post by Paul Tarvydas
I'm about to look into Software Transactional Memory techniques for some
financial code I'm involved with. Any advice about which libraries to look
at (and why) would be quite welcome.
Thanks
pt
Faré
2013-12-21 00:39:05 UTC
Permalink
Post by Scott L. Burson
There is CL-STM. I haven't tried it, though, and know little about it.
If you do find a good STM library, you'll want a functional collections
library to go with it. This is for the same reason that Clojure uses
functional collections: you don't want to have to go outside the STM
framework to update collection-valued slots of objects. Permit me to
suggest FSet: http://common-lisp.net/project/fset/
It is Quicklisp-loadable: (ql:quickload "fset")
And of course, there are also functional collections in LIL:
https://github.com/fare/lisp-interface-library

(FSet and LIL have very different styles and feel;
depending on your personality, you might prefer one or the other.
FSet is more of its own dialect of Lisp;
LIL is more of a peculiar way to use CLOS.)

—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org
"Under capitalism, man exploits man. Under Communism, it's just the
opposite."
— John Kenneth Galbraith

Continue reading on narkive:
Loading...