|
|
|
|
|
by whateveracct
2085 days ago
|
|
You can write safe memory management libraries in userspace with the existing extension. That can help reduce GC pressure by moving data off-heap and allow for safer & more efficient FFI bindings. As someone who has been exploring doing gamedev in Haskell, that all is very exciting and the use-cases are constantly obvious to me. It is entirely up to userspace to leverage this new feature. It doesn't do anything on its own outside of the type-checker. And to use it, your library will probably have to do some unsafe coercion under the hood (just like ST uses unsafePerformIO under the hood to do pure mutability.) |
|