Re: Fix receive support in erl_eval with a BEAM module
Björn Gustavsson <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.patches |
|---|---|
| Message-ID | <CA+yh78T7t35KT=b6hx6idcfmO-m_cPLqJXiS_GQbV4+d6REXFQ@mail.gmail.com> |
On Mon, May 6, 2013 at 10:30 PM, Anthony Ramine <[email protected]> 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 _______________________________________________ erlang-patches mailing list [email protected] http://erlang.org/mailman/listinfo/erlang-patches