4 ms·
Java and C# don't have a GIL though, and have good support for threading right?
by Torn 12y ago
Java and C# don't have a GIL though, and have good support for threading right?
- VMG 12y agoSTM is useful even if you have good threading support. You could easily build a STM library for Java or C#, and there are some, but without syntax support it's pretty cumbersome to use. Clojure has good STM support because it's easy to add the necessary primitives to a Lisp.
- jpgvm 12y agoPrecisely. :) STM's advantages are not so much in -enabling- threading, but instead allowing for new paradigms (possibly simpler ones).
- thesz 12y agoLinked list for single processor is a job for first year student. Linked list for multiprocessors with mutexes and locks is a PhD-level job. Linked list for multiprocessors with STM is a job for first year student again. The quote is from one of Simon Peyton-Jones talks.
- Torn 12y agoThanks - that quote immediately shifted my thinking.