Better HN
topnewbestaskshowjobs
Log inSign up

ProfHewitt

250 karma · joined Aug 15, 2019 (7y ago) · 419 submissions

Submissions

comment 6y ago · link · parent

Yes, Actor is used in the technical sense axiomatized up to a unique isomorphism in the linked article and not in the common usage of a thespian ;-)

Erlang not being able to directly express Actor behavior change means that Erlang programs are more obscure and convoluted.

For example, consider the following program:

    ProcessorController[pk:PublicKey] *implements* controller 
        // initialize processor controller with a public key pk
    currrentVersion ≔ 1 // processor current version number is initially 1
    running ← Crowd [1] // running is a crowd of at most 1 running activities
    boot[*itemIs* i *whichIs* Package[*imageIS* code, *versionIs*  packageVersion], 
         signedIs s] ↦ // received boot request with item i and signed s         
         *IsEmpty* running *cases* // Check if the processor is running                      
             True ⇾  // If not running, then
                SigningChecker.[*itemIs* i, *signedIs* s, *publicKeyIs* pk] *cases* 
                // check that i was signed by s with private key for pk
                   True ⇾  // If signing check succeeds, then   
                    currentVersion⩽packageVersion *cases*  
                      // check processor current version is
                       // less or equal than package version
                       True ⇾  // If version check succeeds, then
                        (currentVersion ≔ packageVersion; // first update current version number,
                         code.run thru running)    
                         // afterward run code in a hole of mutual exclusion passing
                         // thru running then returning a termination report 
                       False ⇾  // If version check fails,
                            *Throw* BadVersionException[]      // throw bad version exception
             False ⇾   *Throw* BadSignatureException[] // If signature check fails,
        False ⇾ // If already running, then
           *Throw* AlreadyRunningException[] // throw already running exception
    shutDown ↦   // received shut down request  
        *IsEmpty* running *cases*  // Check if the processor is running        
               True ⇾  // If not running, then
                     *Throw* NotRunningException[] //throw not running exception 
                False ⇾  // If already running, then
                     *Cancel* running // cancel running returning Void
    
The challenge in Erlang is to implement the hole in the region of mutual exclusion in the above implementation.

comment 6y ago · link · parent

Unfortunately, Erlang does not directly implement Actor behavior change.

Consequently, Erlang cannot directly implement Actor behavior change. A factorial server is implemented below:

    FactorialServer[ ] *implements* ProcedureServer<[NaturalNumber], NaturalNumber>
     [i] |->           // received message [i]
        Factorial.[i]  // return result of sending [i] to Factorial
In order to implement Actor behavior change, Erlang must resort to using helper processes that trampoline back so that helper processes can return the desired change.

See the following for direct implementation of Actor behavior change:

    https://papers.ssrn.com/abstract=3418003
PS. The type ProcedureServer above can be defined as follows:

    ProcedureServer<t1, t2> ≡ // Procedure server with parameters types t1 and t2 is defined to be
        t1 -> t2 // type of procedure from t1 into t2

comment 6y ago · link · parent

The Actor Model moved the foundations of digital computing beyond the work of Alan Turing and Alonzo Church, who developed equivalent models of computation based on the concept of an algorithm, which by definition is provided an input from which it is to compute a value without external interaction. After physical computers were constructed, they soon diverged from computing only algorithms meaning that the Church/Turing theory of computation no longer applied to computation in practice because computer systems are highly interactive as they compute with incremental new input affecting future computation. The divergence inspired development of the Actor Model in 1972 to characterize all digital computation. There are simple digital computations that cannot be performed by a nondeterministic Turing Machine. The Actor Model has been axiomatized up to a unique isomorphism thereby removing all ambiguity from the most fundamental theory of digital computation. As part of the axiomatization, Actor theory has an induction axiom for computation events that is suitable for proving all kinds of properties (including specifications) for Actor systems. Event induction is much more powerful and practical than the methods developed by Turing [1949], Hoare [1969], and Lamport [2018] because it can express many more properties and because proofs are more intuitive. Concepts of the Actor Model have been deployed at scale at Ericsson, Erlang Solutions, Lightbend, Microsoft, PayPal, Twitter, and many other companies. Actors are being incorporated into the foundations for many-core intelligent systems that will be the foundation for the future of computing.

Strong types for the Actor model overturned an assumption beginning with Euclid that has persisted for millennia including Hilbert, Gödel, Church, Turing, and von Neumann. The assumption was that the theorems of a theory must be algorithmically enumerable by beginning with axioms and applying rules of inference. However, in order to characterize computation up to a unique isomorphism, it was necessary to develop an event induction axiom with uncountable instances. Because there are uncountable instances of the event induction axiom, it cannot possibly be the case that theorems of Actor theory are algorithmically enumerable because, of course, each axiom instance is a theorem of the theory. However, the theory of Actors is nevertheless effective because proof checking is algorithmically decidable. Consequently the foundational theory of digital computation is algorithmically inexhaustible. Furthermore, if a mathematical theory of digital computation is consistent, then the theory must be inexhaustible.

Strong types for the Actor model also exposed inadequacies in Gödel’s proof of the incompleteness (i.e. inferential undecidability) theorem using his proposition I’mUnprovable. Using strong types, the construction of I'mUnprovable is blocked because the mapping Ψ↦⊬Ψ has no fixed point because ⊬Ψ has order one greater than the order of Ψ since Ψ is a propositional variable. Consequently, some other way had to be found to prove inferential undecidability without using Gödel’s proposition I'mUnprovable. A complication is that theorems of strongly-typed theories of computation are not computationally enumerable, as mentioned above. The complication was overcome using special cases of the induction axioms to prove inferential undecidabilty.

304.

Physical Indeterminacy in Digital Computation(papers.ssrn.com ↗)

2 points · by ProfHewitt · 6y ago · 1 comment

comment 6y ago · link · parent

A Reusable Scalable Intelligent System (e.g. for pain management or dementia management) is not a human equivalent.

You didn't give any reason why you think that technology in the preprint cannot be implemented by 2025.

comment 6y ago · link · parent

Strategic competition will be crucial because once one side shows that it is possible others will quickly follow.

Do you see any reason that the technology outlined in the article cannot be implemented by 2025?

comment 6y ago · link · parent

Because of strategic challenges, Reusable Scalable Intelligent Systems will be developed by 2025 with the following characteristics:

• Interactively acquire information from video, Web pages, hologlasses (electronic glasses with holographic-like overlays), online data bases, sensors, articles, human speech and gestures, etc.

• Real-time integration of massive pervasively inconsistent information

• Self-informative in the sense of knowing its own goals, plans, history, provenance of its information and having relevant information about its own strengths and weaknesses.

• Close human interaction using hologlasses for secure mobile communication.

• No closed-form algorithmic solution is possible to implement the above capabilities

• Reusable so that advances in one area can readily be used elsewhere without having to start over from scratch.

• Scalable in all important dimensions meaning that there are no hard barriers to continual improvement in the above areas, i.e., system performance continually significantly improves.

A large project (analogous to Manhattan and Apollo) is required to meet strategic challenges for Intelligent Systems and S5G (Secure 5G).

See the following for an outline of technology involved:

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3428114

comment 6y ago · link · parent

Durability is a matter of degree. Lowest is to record in RAM. Next is persistent local storage. After that comes storage on other machines.

comment 6y ago · link · parent

The original name of the programming language Scheme was "Schemer", which was shortened by removing the last character because of file system limitations. The motivation for the name Schemer was that the authors were scheming against Actors analogous to the programming Conniver, where the authors were conniving against Planner.

comment 6y ago · link · parent

Don, you are very welcome!

Alexander Karaberov's article (linked above) is an important contribution.

You are correct that since an Actor can have many addresses, it is not clear what it would mean for an Actor to have an identity."

PS. Excellent SNL Santa :-)

comment 6y ago · link · parent

PS. If you employ locks correctly, you can do regions of mutual exclusion (with holes) in C++ :-)

comment 6y ago · link · parent

Thanks!

Unfortunately, C++ has many issues implementing Actors because of problems with regions of mutual exclusion with holes.

See the following: https://papers.ssrn.com/abstract=3418003

comment 6y ago · link · parent

Excellent question! But your question seems to make the unfounded assumption that application programmers should be in charge of restoring crashed Actors. Instead, an Actor System should restore Actors as best it can based on recordings that it has. Applications must be made resilient against any and all kinds of inconsistencies that will pervasively arise.

comment 6y ago · link · parent

The Actor Model has been used in many important large applications [Bernstein, Bykov, Geller, Kliot, and Thelin 2014; Bonér and Reisz 2017, Cesarini 2019] and has become the foundation for current computing.

Satisfactory implementation for Reusable Scalable Intelligent Systems with millions of Actor cores for quadrillions of Actor are under development, but not yet publicly available.

comment 6y ago · link · parent

Thanks Toast!

You have made the point exactly. The problem of dangling processes is made worse by the fact that Erlang is not strongly typed.

comment 6y ago · link · parent

The programming language Scheme was originally named Schemer against Actors ;-)

The monad (https://wiki.haskell.org/Monad) is another mostly unsuccessful lambda calculus way to try to address some of the issues resolved in the Actor Model.

comment 6y ago · link · parent

Ingalls was completely correct: It should be Actors all the way down (and Actor Systems all the way up).

Soon there will be packages with millions of Actor cores for quadrillions of Actors. Operating systems, e.g. Linux, will be inadequate for Reusable Sacalable Intelligent Systems.

See the following: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3428114

comment 6y ago · link · parent

Actually, the notation used above is for strongly-typed higher-order theories.

See the following:

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3418003

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3459566

comment 6y ago · link · parent

Synchronized requesting in Communicating Sequential Processes (CSP) [Hoare 1978] proceeds as follows: “Such communication occurs when one process names another as destination [to receive a request] and the second process names the first as source for [the request] ... [in order that providing the request] is delayed until the other process is ready [to receive the request].”

Synchronized requesting x with request r (i.e. x!r) can be implemented as follows using a 2-phase commit protocol: x.synchronize[Implements Provider ⟦provide ↦ r⟧] so that after x has received a synchronize message with parameter Implements Provider ⟦provide ↦ r⟧, x can get r from the parameter using a provide message (cf. [Knabe 1992]). Synchronized sending x a request r (i.e. x!r) can be algebraically reduced (which is a primary requirement of communication in the π-calculus [Milner 1993]) because x is provided with r without arbitration by Implements Provider ⟦provide ↦ r⟧.

Synchronized requesting (i.e. x!r) has the following significant costs in time, communication bandwidth, and robustness by comparison with unsynchronized Actor requesting (i.e. x.r):

1. The requester must wait for the receiver’s provide message in order to provide request r.

2. After receiving a synchronize message, the receiver must wait for the request r to be provided (meanwhile holding up processing of other requests).

3. Both the requester and receiver must be online concurrently for communication to take place.

Unsynchronized requesting (i.e. x.r) cannot in general be reduced using an algebraic equation as in [Milner 1993] because in general, the request must go through arbitration in order to be received. Although algebraic reductions may be elegant mathematics, synchronized requesting is not widely used in large software systems because it is slower, uses more communication bandwidth, and is less robust than asynchronous requesting (especially for IoT).

According to [Milner 1993]: “An important task is to compare it {π-calculus based on algebraic reduction using synchronized requesting} with Hewitt's Actors; there are definite points of agreement where we have followed the intuition of Actors and also some subtle differences, such as the treatment of names {i.e., request providers}. More generally, the π-calculus is a formal calculus, while the Actors model, in spirit closer to the approach of physics, sets out to identify the laws {i.e. [Hewitt and Baker 1977] expanded into the uniquely categorical axiomatization in this article} which govern the primitive concepts of interaction.”

comment 6y ago · link · parent

Erlang made important contributions. However, the Erlang model needs the following important extensions:

•Automatically reclamation of storage of an unreachable future [Baker and Hewitt 1977] (e.g. process in Erlang). For example, an Erlang process can be orphaned if its Process Identifier (PID) becomes inaccessible. Also, since Erlang is not strongly typed, cyberattacks can be launched against dangling references to processes that no longer exist.

•Language 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 message handler for each re-entry into the region of mutual exclusion potentially enabling cyberattacks from outside the process.

comment 6y ago · link · parent

Actors should be inherently persistent unless no longer reachable.

comment 6y ago · link · parent

Actors keep getting rediscovered because they are universal abstraction for digital computation.

comment 6y ago · link · parent

Above are important contributions, but they don't provide an adequate foundation for Actor massive concurrency.

comment 6y ago · link · parent

Actors were developed to unify and overcome limitations of

previous important contributions including lambda calculus

[Church 1932] (first-class procedures), Petri nets [Petri

1962] (true concurrency), semaphores [Dijkstra 1962-1963],

packet switching [Baran 1964] (concurrent communication

between computers using fixed size packets), capabilities

[Dennis and van Horn 1966] (pointer security), Simula [Dahl

and Nygaard 1967] (class hierarchy), and SmallTalk-72

[Goldberg and Kay 1976] (bit-mapped computer graphics and

browser, the precursor of modern programming Integrated

Development Environments). The lambda calculus could not

express concurrency with the consequence that lambda

calculus programs can be thousands of times slower than

Actors. A Petri net cannot dynamically expand and has the

limitation that tokens can miraculously disappear from

different places, which is inefficient to implement.

Capabilities have the limitation that pointers must be

manipulated using indexes into capability lists thereby

making programming awkward. Simula did not implement

concurrency and did not have messages. SmallTalk-72 used a

byte stream of program tokens thereby making it awkward for

concurrency.

See the following for more information: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3418003

comment 6y ago · link · parent

Below is the fundamental axiom for Actor events (i.e. communications:

   ∀[S:ActorSystem, P predicateOn Event<S>] // For every ActorSystem S and every predicate P on events of S
    (∀[x:Primordial<S>] P[Creation[x]] // If P holds for the creation event of every primordial of S
     ⋀ ∀[e:FromOutside<S>] P[e] // and P holds for every event from outside S                       
     ⋀ ∀[e:Event<S>, e1:ImmediatelyFollows<e>] // and for every event of S 
           P[e]⇒P[e1]) // if P holds for the event, then P holds for each immediately following event
        ⇒ ∀[e:Event<S>] P[e]  // then P holds for every event of S
See the following for more explanation: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3459566

comment 6y ago · link · parent

Of course, adding the axiom ZFC is consistent to the theory ZFC does _not_ produce a convincing proof of the consistency of ZFC!

The theory Ordinals has a convincing proof of consistency because the theory has a provably unique up to isomorphism model. Consequently, ZFC must also be consistent because it is a special case of the theory Ordinals.

comment 6y ago · link · parent

Chaitin made the very good point that inferential undecidability (incompleteness) is too important a result to depend on the triviality of the existence of the proposition I'mUnprovable. Fortunately, inferential undecidability of strongly-typed theories can be proved without using the nonexistent I'mUnprovable.

comment 6y ago · link · parent

Personal insults are not allowed on Hacker News.

comment 6y ago · link · parent

All of classical mathematics before 1930 can be formalized in the the theory Ordinals. However, formalizing digital computation requires the theory Actors, which is axiomatized here:

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3459566

1
1011121314