|
|
|
|
|
by felixgallo
3785 days ago
|
|
to be fair, the original article is fundamentally incorrect and Erlang is not truly preemptive either. It uses a reduction-counting based cooperative multitasking system which yields at function calls, but a badly programmed NIF can still ruin your day if you don't put it on a dirty scheduler. |
|
Implementing NIFs should be done with the same care you would use adding a new machine instruction to your processor ;-)