[erlang-patches] Fix receive support in erl_eval with a BEAM module

Björn Gustavsson <>
Wed May 8 11:56:39 CEST 2013


On Mon, May 6, 2013 at 10:30 PM, Anthony Ramine <> wrote:

> Hello,
>
> Using the low-level BEAM instructions, we can loop over each message in
> the process queue and removes the first message that matches, without
> receiving them all to later send them back to itself.
>
>         git fetch https://github.com/nox/otp.git erl_eval-receive
>
>         https://github.com/nox/otp/compare/erlang:maint...erl_eval-receive
>
> https://github.com/nox/otp/compare/erlang:maint...erl_eval-receive.patch
>
> Regards,
>
>
We found it strange to put BEAM assembly language files
in the STDLIB application (in theory, STDLIB should
be possible to use in other Erlang implementations).

I think that a better place would be to make it a pre-loaded
module in the erts application. Also, I suggest that instead
of calling a hard-coded function, the function can call a
fun.

Also, I find the name match_clause() (in the erl_eval_receive
module) confusing.

/Bjorn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130508/b671286e/attachment.html>


More information about the erlang-patches mailing list