Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Solution: use Clojure's STM. If you listen to Rich Hickey's early presentations following Clojure 1.0 he detailed how spending over a decade trying to write concurrent code in Java with locks drove him to search for something simpler.


STM is not that fast. The easier solution is to switch to virtual threads and sidestep the issue.


Clojure's STMs (originally borrowed from Scala iirc) are not going to help you with concurrent file IO.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: