Add warning to not use

This commit is contained in:
Joshua Nussbaum
2018-09-17 00:20:47 -04:00
committed by GitHub
parent c2cc656c5c
commit b93183f27b

View File

@@ -1,6 +1,8 @@
FFI FFI
=== ===
*** Warning: Turns out this is a really bad idea, do not use! When the BEAM calls native functions it needs to know how many reductions should be used. Otherwise calling a long running function can break the scheduling completly, because with this approach a long running function is considered 1 reduction ***
An easy way to call external functions (e.g. C functions) from [Elixir](https://github.com/elixir-lang/elixir). An easy way to call external functions (e.g. C functions) from [Elixir](https://github.com/elixir-lang/elixir).
Inspired by [Ruby's FFI](https://github.com/ffi/ffi) Inspired by [Ruby's FFI](https://github.com/ffi/ffi)