←back to thread

200 points taddgiles | 2 comments | | HN request time: 0s | source
Show context
fbn79 ◴[] No.45311033[source]
I never used Erlang, and I'm a functional programming fan. But languages based on heavy VM that abstract OS away always make me doubt that's the right direction.
replies(2): >>45311130 #>>45312582 #
cess11 ◴[] No.45312582[source]
What makes you think the BEAM VM is "heavy"?

It's almost like an OS in itself and initially designed to be like a more capable and robust OS on top of rather constrained computers. In my experience it's trivial to shell or port out to the environment when I want to, and I also see people that I don't think of as highly skilled low-level programmers do things with NIF:s so that can't be exceptionally demanding either.

replies(1): >>45313038 #
1. conradfr ◴[] No.45313038[source]
Yes it's definitely not heavy like a Java program that will cannibalize your RAM.

It's actually quite lean.

It will use all your cores without you asking (which is fantastic right?) but it's configurable AFAIK.

replies(1): >>45315418 #
2. cess11 ◴[] No.45315418[source]
It will also use preemptive multitasking, so busy processes won't pin CPU cores at the expense of other tasks.