stm
Using the Par monad with STM and Deterministic IO
I\'m in the process of writing a report for an assignment in which I implemented a concurrent multicore branch and bound algorithm using the STM package and there was an issue I\'ve come up against.[详细]
2023-04-13 05:59 分类:问答scala/akka/stm design for large shared state?
I am new to Scala and Akka and am considering using it to solve a problem. Suppose I have a calculation engine (that searches for a solution). I\'d like to parallelize that search both across cpus and[详细]
2023-03-24 21:56 分类:问答Difference between TVar and TMVar
I\'ve seen the TVar is a simple container, while the TMVar开发者_StackOverflow社区 is the same as an MVar, meaning it has a lock etc, but within the STM monad. I am wondering why would that be necessa[详细]
2023-03-24 11:09 分类:问答get variable in catch clause
Hello I need to write function than will send and receive messages over tcp and auto reconnect if conne开发者_JAVA百科ction is broken. Messages is taken from STM Channel[详细]
2023-03-23 05:14 分类:问答Can Clojure's STM's history of values be accessed?
Given that the STM holds a history of say 10 values of refs, agents etc, can those values be read ? The reason is, I\'m updating a load of agents and I need to keep a history of values. If the STM is[详细]
2023-03-16 00:58 分类:问答stm implementations issues
Hey guys, At some point i think that these stm implementation ( multiverse which i have used a little bit... ), are over-hyped. Because at some point they uses CAS which is providing them atomicity of[详细]
2023-03-06 08:49 分类:问答Do both alter and ref-set update the STM tree in Clojure?
I am using refs everywhere in my Clojure code and then I realised I was using ref-set everywhere. Does this destroy the history of changes in the STM? Or should I be using alter only and ref-set to in[详细]
2023-02-24 08:08 分类:问答STM and alter in clojure
I am working through the Programming Clojure book. While explaining alter and the STM, they say that if, during an alter, Clojure detects a change to the ref from outside the transaction, it will re-r[详细]
2023-02-20 04:41 分类:问答Use of agents to complete side-effects in STM transactions
I\'m aware that it is generally bad practice to put functions with side-effects within STM transactions, as they can potentially be retried and called multiple times.[详细]
2023-02-05 22:52 分类:问答Experiences with Clojure STM for large datasets?
I need to make a decision about whether to use STM in a Clojure system I am involved with for a system which needs several GB to be stored in a single STM r开发者_StackOverflowef.[详细]
2023-02-02 00:08 分类:问答