Skip to content

Comment on Ask HN: What equivalents of Erlang/OTP exist for other languages?

Comments

Preemption. Erlang VM counts each instruction per process and uses it's own scheduler to switch processes, all other implementations of lightweight processes can't do this without implementing their own erlang.

So every OS is it's own Erlang?

Yes, but "modern" OS'es have heavy processes, in other words they save registers, stack pointers, other process related things and restore them on every process switch.

I'm not sure what makes real difference to Erlang's processes here, I hope someone can explain this with more details.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.