Re:The struggle with Rust
by pka on Tuesday January 24, 2017 @10:15AM
(#13471923)
You can do that perfectly fine even in a pure language like Haskell.
[ Parent
| on HN ]
Or maybe Haskell is also a hybrid? I know about the type theoretic accounting tricks used to stay pure, but when I really need unboxed mutable arrays and several tight loops, I just use the ST monad and write code that is psychologically completely imperative. And it compiles to pretty fast executables too, especially using the LLVM backend.