[erlang-questions] Erlang 19.3 crashes when getting sockname of stdin
Tue Oct 17 16:31:37 CEST 2017
On Tue, Oct 17, 2017 at 1:29 PM, zxq9 <zxq9@REDACTED> wrote:
> On 2017年10月17日 火曜日 13:19:53 Lukas Larsson wrote:
> > We are planning to rewrite a lot of functionality in erts that today uses
> > linked-in driver to use nifs instead. We have already re-written the zlib
> > driver, we are in the process of re-writing the efile driver and are
> > planning to rewrite the inet driver in the future.
> What is the rationale?
It varies depending on driver. In general we want to be able to write more
code in Erlang and less in C than we are able to with linked-in drivers.
In zlib we wanted to improve how we handle large inputs, i.e. yield back to
For efile we want to start using dirty schedulers for file IO, something
that is not possible with linked-in drivers.
For inet the main reasons are maintainability and performance. We want to
be able to add and extend functionality more easily. We also think that it
should be possible to write a faster implementation using nifs because
sometimes we can remove the context switch between process and port that is
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions