by ProfHewitt · 5y ago · 0 comments
Erlang with the goals stated at the beginning of the article!
However, the Erlang language itself is now rather dated :-(
In order to implement next generation Universal
Intelligent Systems [Hewitt 2019], the following extensions
to Erlang are needed:
• Automatic reclamation of processes. For example,
Erlang uses Process Identifiers (PIDs) to communicate between
processes. However, a process that has a process identifier
(say ProcessIdentifier) of a process with which it
communicates can launch a denial of service attack to kill
that process using exit(ProcessIdentifier, kill). An Erlang
process can be orphaned if its Process Identifier (PID)
becomes inaccessible. By default, the send operation in
Erlang always succeeds (even if the target is a non-existing process).
• Strong parameterized types with no type Any.
• Region of mutual exclusion for an Erlang process.
An Erlang process does not have a region of mutual exclusion,
which can lead to internal conflicts within processes.
• Behavior change using variables in a region of mutual
exclusion instead of having to create auxiliary processes to
hold state with callbacks. [Swain 2014] In particular,
o Better support for holes in the region of mutual exclusion
of an Actor implementation. For example, in Erlang it is
necessary for application programmers to explicitly code a
request handler for each re-entry into the region of mutual
exclusion potentially enabling cyberattacks from outside the
process.
o Better ways to upgrade Actors in place without losing work in progress.
The BEAM does not promise (or provide) secure isolation between processes within a single VM. It's even called out in their bug report policy:
https://github.com/erlang/otp/wiki/FAQ:-What-kind-of-patches...
"An Erlang process does not have a region of mutual exclusion, which can lead to internal conflicts within processes."
I don't follow the use of "mutual exclusion" in this statement; the only thing that can write to a process's stack or heap is the process - what kind of "conflicts" do you mean?
"For example, in Erlang it is necessary for application programmers to explicitly code a request handler for each re-entry into the region of mutual exclusion"
This sentence doesn't help either, because the previous statement was that the processes don't _have_ the region this objects to writing handlers for entering...
mutual exclusion (which can have holes), which is explained
here:
https://papers.ssrn.com/abstract=3459566
Is there a rigorous formalization of Erlang message passing?
Consensus protocols are too slow for Universal Intelligent Systems (UIS) :-(
See the following for UIS:
reinvented many times since it was first published in 1973.
For example, Erlang was a reinvention that put the paradigm
into many practical applications :-)
However, only more recently has it been characterized up to a
unique isomorphism. See the following article:
https://papers.ssrn.com/abstract=3459566
The most important code to be written now is for the
foundations of Universal Intelligent Systems :-)