News for hackers. Stuff that matters.
Re:Lumen – Elixir and Erlang in the Browser by h91wka on Friday January 24, 2020 @11:53AM (#22139999)
Interesting project... I wonder does it have same kind of processes preemption based on reductions like BEAM?
Re:Lumen – Elixir and Erlang in the Browser by lawik on Friday January 24, 2020 @12:27PM (#22140402)
Is that the thing where after a number of reductions by a single process the BEAM will make sure another process gets its time in the sun? I believe so but I'm not familiar enough with the internals. They definitely spoke about reductions in the meeting I half-listened to.
Re:Lumen – Elixir and Erlang in the Browser by anthony_doan on Friday January 24, 2020 @12:55PM (#22140700)
Correct. It makes it so for(true) in other languages doesn't hijack the cpu and strive for the low latency goals of Erlang.

To be fair you can go about it by just filling up a process mail box with tons of messages.

Re:Lumen – Elixir and Erlang in the Browser by bitwalker on Friday January 24, 2020 @01:50PM (#22141248)
Yes, Lumen has a scheduler and does preemption the same way the BEAM does.
Re:Lumen – Elixir and Erlang in the Browser by xtian on Friday January 24, 2020 @12:33PM (#22140461)
Yes - preemptive multitasking is core to the BEAM process model.