Better HN
topnewbestaskshowjobs
Log inSign up

ProfHewitt

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

Submissions

comment 7y ago · link · parent

An Actor procedure need not be a mathematical function. For example, Random.[ ] could return a different result each time that it is invoked.

comment 7y ago · link · parent

Visual Studio Code and and Elixir with Language Server Protocol are are good start but still have a long way to go reach the level of Android Studio with plugins.

comment 7y ago · link · parent

Actor message passing "maps nicely" for use in procedure calls. For example Factor.[3] sends the message [3] to Factorial which sends back the return value 6. The procedural functions of Erlang are much more limited.

comment 7y ago · link · parent

JavaScript in browsers was decreed by the standards committee to be single-threaded forever. Consequently, JavaScript is entirely lacking in concurrency constructs, e.g., implementing a region of mutual exclusion inside a JavaScript program.

comment 7y ago · link · parent

The Smalltalk-72 model was extremely limited. Code in the language was viewed by the interpreter as simply a stream of tokens. According to [Ingalls 1983]:

    "The first (token) encountered (in a program) was looked 
     up in the dynamic context, to determine the receiver of
     the subsequent message. The name lookup began with the 
     class dictionary of the current activation. Failing 
     there, it moved to the sender of that activation and so 
     on up the sender chain. When a binding was finally found 
     for the token, its value became the receiver of a new 
     message, and the interpreter activated the code for that 
     object's class."
SENDER and stack of previous senders was retained as part of the message-passing protocol, which is problematical for concurrent systems.

comment 7y ago · link · parent

The Actor conceptional model had not yet been developed when SmallTalk-72 was designed following on SmallTalk-71. Later versions of SmallTalk after SmallTalk-72 adopted the Simula object model. Actors were developed for concurrency, which was entirely lacking from Simula. Also, Simula had procedures attached to the class hierarchy instead of Actor message handlers, which initially seemed like a subtle distinction that grew in importance.

comment 7y ago · link · parent

Erlang's insecurities will become more of a problem in the implementation of Reusable Scalable Intelligent Systems. See the following:

    https://papers.ssrn.com/abstract=3428114
PS. You are very welcome. Thanks for your EE380 talk!

comment 7y ago · link · parent

If a computer is required to be an Actor, then we have a precise characterization of what it can and cannot do.

Of course, an exact implementation of a computer as an Actor needs to be specified.

comment 7y ago · link · parent

Good luck finding all the places that various kinds of colocation have been hard-coded, e.g., same core, nearby core, same chip, same package, same rack, same datacenter, etc.

comment 7y ago · link · parent

Of course, a computer is an Actor ;-) This would be a joke except for the fact that Actors have been defined up to a unique isomorphism. See the following:

    https://papers.ssrn.com/abstract=3418003

    https://papers.ssrn.com/abstract=3459566

comment 7y ago · link · parent

Do you think that the "difference in kind" should be frozen in application source code?

I agree that latency needs to be carefully controlled. But the software engineering can be complex!

comment 7y ago · link · parent

Even Git has a complicated behavior that changes. For example, each new commit changes the behavior of Git.

comment 7y ago · link · parent

The Actor Model attempts to be as general as possible to support direct modeling and efficient implementation of all digital computation. For example, an Actor is not required to have an external mailbox, which is required for communication in Erlang [Armstrong, et. al. 1992]. Requiring an external mailbox is problematical for Actors because the mailbox would itself necessarily be another Actor thereby immediately leading to an infinite regress. Also, requiring the use of external mailboxes can slow requests between Actors because it would always be necessary to first deposit a request in an Actor’s external mailbox so that the request could later be retrieved. That a request is almost always sent and received without ever residing in persistent storage, where it can be left and later retrieved, is an important engineering goal for Actors.

comment 7y ago · link · parent

Business software must deal with change! Even something as simple as a financial account changes behavior because the balance in the account changes.

Of course, many business Actors never change their behavior. For example, a quarterly report to the SEC never changes although additional reports to the SEC may correct information in previous reports.

Of course, you know that Factorial is an Actor that never changes behavior :-) Also, the (infinite) list of prime numbers is an Actor that never changes behavior.

comment 7y ago · link · parent

Promises are used most prominently in current-generation JavaScript where they lack a proper interface. Instead promises are standardized using language constructs. Promises have the well-known disadvantage that promises are contagious, i.e, once a promise is used then everything that continues must be promises.

On the other hand, a Future [Baker and Hewitt 1977] has the following well defined interface:

   Future<t> *interface* resolve[] ↦ t

comment 7y ago · link · parent

The title of this post is very unfair to Alan, who has made important contributions. For example the SmallTalk browser was extremely innovative leading to modern Integrated Development Environments that have taken over software development. Also, SmallTalk was the first to use Simula class hierarchies for graphics, which are now used everywhere.

Objects as conceived in Simula-67 are not universal primitives of digital computation. However this was remedied in 1972 with the invention of Actors.

It is very important that Actors rigorously formalize the rules for digital computation. See the following:

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

    https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3459566
In this way, computer systems themselves can participate in discourse with humans about the nature of digital computation and associated software systems.

Every important scientist (including Einstein) made numerous errors. Fermi received the 1938 Nobel prize [Fermi 1938] for the discovery of the nonexistent elements “Ausonium” and “Hesperium”, which were actually mixtures of barium, krypton and other elements. I have made quite a number of errors myself, although I am certainly not of the caliber of Einstein or Fermi! It is important to find and rectify errors ASAP. In order to make progress, we must make errors.

Reusable Scalable Intelligent Systems cannot be implemented using the current common programming practice of stateless sever code + relational data base. See the following:

    https://papers.ssrn.com/abstract=3428114

comment 7y ago · link · parent

Should be possible to achieve your goals. Researchers are working on prototypes.

You are very welcome!

comment 7y ago · link · parent

Runtime system knows approximate latency to intended recipient Actor of a message, e.g., this core, nearby core, nearby chip on the package, nearby chip in the same server, nearby server in the same rack, nearby server in the same datacenter, another datacenter, another IoT, etc. However, Actors can dynamically move and so the answer can change over time.

comment 7y ago · link · parent

Difficult to know since you don't specify exactly what an "object" is. Seems more reasonable that "Actors are a recursion on concept of interacting computers."

comment 7y ago · link · parent

Workers can be made to work in a browser, but communication can be awkward and slow.

comment 7y ago · link · parent

To see if it is Actor, you have to check if it follows the rules. Akka and Erlang have been used to implement some important scalable systems.

What do you recommend as a "traditional" way to implement scalable systems?

comment 7y ago · link · parent

Unfortunately, Actors cannot be efficiently implemented in browsers because of the way that they implement concurrency.

comment 7y ago · link · parent

What exactly do you think that an Actor cannot do? Trivially, an Actor can implement a Turing Machine. However, there are some Actors that cannot be implemented using a Turing Machine, e.g., an Actor with unbounded nondeterminism.

comment 7y ago · link · parent

Yes, Erlang dearly needs an IDE comparable to the one for Java Studio.

comment 7y ago · link · parent

Actalk was a useful early simulation. However, it did not provide a region of mutual exclusion for an Actor with facets.

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

comment 7y ago · link · parent

Actors were developed to synthesize and integrate a whole bunch of things including those mentioned by Alan above.

Additional important influences in addition to SmallTalk-72 [Kay November 1972] were Petri nets, Planner [Hewitt 1969], capability systems [Dennis and van Horn], semaphores [Dijkstra], the lambda calculus, and Scott-Strachey semantics failure to integrate everything using the lambda calculus.

1-way message passing is most important for hardware systems in which there is near certainty that a message will be delivered and there is no need to wait for an acknowledgement of receipt.

comment 7y ago · link · parent

What is the precise definition of a "promise"?

I.e., what is the interface of a promise?

comment 7y ago · link · parent

What is your precise definition of "object"?

comment 7y ago · link · parent

Simula originated the terminology "object", which was then adopted in later versions of SmallTalk. Objects differ in fundamental ways from Actors.

comment 7y ago · link · parent

Objects as originally conceived in Simula left out concurrency, i.e., region of mutual exclusion of an Actor.

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

1
1011121314