<div dir="ltr">On Mon, May 6, 2013 at 10:30 PM, Anthony Ramine <span dir="ltr"><<a href="mailto:n.oxyde@gmail.com" target="_blank">n.oxyde@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
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.<br>
<br>
git fetch <a href="https://github.com/nox/otp.git" target="_blank">https://github.com/nox/otp.git</a> erl_eval-receive<br>
<br>
<a href="https://github.com/nox/otp/compare/erlang:maint...erl_eval-receive" target="_blank">https://github.com/nox/otp/compare/erlang:maint...erl_eval-receive</a><br>
<a href="https://github.com/nox/otp/compare/erlang:maint...erl_eval-receive.patch" target="_blank">https://github.com/nox/otp/compare/erlang:maint...erl_eval-receive.patch</a><br>
<br>
Regards,<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div style>We found it strange to put BEAM assembly language files<br></div><div style>in the STDLIB application (in theory, STDLIB should</div>
<div style>be possible to use in other Erlang implementations).</div><div style><br></div><div style>I think that a better place would be to make it a pre-loaded</div><div style>module in the erts application. Also, I suggest that instead</div>
<div style>of calling a hard-coded function, the function can call a</div><div style>fun.</div><div style><br></div><div style>Also, I find the name match_clause() (in the erl_eval_receive</div><div style>module) confusing.</div>
<div style><br></div><div style>/Bjorn</div></div></div></div>