Re:OCaml 4.03: Everything else
by catnaroek on Wednesday March 02, 2016 @07:25AM
(#11209504)
He means that updates to those thunks have to be guaranteed atomic. This can be achieved in three ways: (0) disallowing threads running in parallel, (1) using atomic operations [only works on small enough pieces of data, such as pointers to boxed data], or (2) using explicit concurrency control [locks, whatever]. We know GHC doesn't do the first, and the third would also be overkill, so it probably does the second. This also explains why unboxed data in GHC is less lazy.
[ Parent
| on HN ]
There are no comments on this comment yet.