Re:Distributed SQLite with Elixir
by nesarkvechnep on Thursday February 16, 2023 @02:35AM
(#34816050)
You can’t get it in C# or Java. The BEAM virtual machine is build upon the idea of lightweight processes. You might get an imitation in other mainstream places but not the real thing. Take a look at the Actor Model if you haven’t heard of it.
[ Parent
| on HN ]
Re:Distributed SQLite with Elixir
by mattfrommars on Thursday February 16, 2023 @08:54AM
(#34818584)
> might get an imitation in other mainstream places but not the real thing.
Could you further elaborate on this?
I am familiar with Actor Model. I had work related to Akka in Scala that works on the principles of Actor Model.
Re:Distributed SQLite with Elixir
by weatherlight on Friday February 17, 2023 @11:04AM
(#34836269)
Erlang uses a preemptive scheduler for process scheduling, allowing for parallelization on multiple CPUs, while Scala distinguishes between thread-based and event-based actors. Thread-based actors can perform long-running computations without hindering other actors, but use more memory and scheduling overhead. Event-based actors are more lightweight but not suitable for parallelism as they execute on the same thread.