Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cutler
on March 12, 2023
|
parent
|
context
|
favorite
| on:
Don't Share Java FileChannels
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.
MrBuddyCasino
on March 12, 2023
|
next
[–]
STM is not that fast. The easier solution is to switch to virtual threads and sidestep the issue.
eternalban
on March 13, 2023
|
prev
[–]
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: