News for hackers. Stuff that matters.
Re:Rhine – A Lisp on LLVM by derengel on Saturday September 06, 2014 @01:37PM (#8278894)
STM/Refs are not really used in the Clojure community, its a great a concept but in practice almost no one uses it, at least that's what you can see from public Clojure projects.
Re:Rhine – A Lisp on LLVM by sarnowski on Saturday September 06, 2014 @04:40PM (#8279399)
At some point most applications have to have some state. Most clojure projects are nice functional libraries that work without state but somewhere are one or to refs (or atoms). A good example is Datomic where Rich Hickey said, it only has 6 refs. Its 99% persistent but somewhere you need at least a pointer to your current state. Of course you can push the problem to your database or some libraries but I really like refs with their optimistic locking and am using them to have in-memory consistency.
Re:Rhine – A Lisp on LLVM by mtrimpe on Saturday September 06, 2014 @05:02PM (#8279475)
Wouldn't you generally want an STM in your domain model in places where it's essential rather than in (ideally generic) open source libraries?