The Haskell Unfolder Episode 36: concurrency and the FFI

Опубликовано: 05 Август 2026
на канале: Well-Typed
1,507
84

There are two primary ways to import C functions in Haskell: "unsafe" and "safe". We will first briefly recap what this means: `unsafe` functions are fast but cannot call back into Haskell, `safe` functions are much slower but can. As we will see in this episode, however, there are many more differences between `unsafe` and `safe` functions, especially in a concurrent setting. In particular, `safe` functions are not always safer!