The Actor Model: The Object Awakens

33ab5062beb333c981b7a1530024f7bc?s=47 Karmen Blake
January 19, 2016

The Actor Model: The Object Awakens

See how the actor model influenced object-oriented programming. And why concurrent-oriented programming is relevant for the future of programming.

33ab5062beb333c981b7a1530024f7bc?s=128

Karmen Blake

January 19, 2016
Tweet

Transcript

  1. 2.

    Are we ready to write these kinds of apps?? Multicore

    by default Internet of Things Real-time Distributed Concurrent
  2. 3.

    Are you willing to try a functional language? Higher Order

    functions No side effects Immutable data Lazy evaluation
  3. 6.
  4. 8.
  5. 9.
  6. 11.

    OOP "OOP to me means only messaging, local retention and

    protection and hiding of state- process, and extreme late binding of all things." “I invented the term object-oriented, and I can tell you that C++ wasn’t what I had in mind.“ - Alan Kay
  7. 13.

    Actor Model Invented by Hewitt, Baker, Agha in 1973 Everything

    is an actor and execution is concurrent.
  8. 16.

    Actor Model Designed by motivation of highly parallel computing machines

    consisting of many independent microprocessors, each with its own local memory, communicating via high-performance network. - https://en.wikipedia.org/wiki/Actor_model
  9. 17.

    Actor Model Actors + Message Passing Foundation for Asynchronous and

    Distributed Sysems Resilient and self-healing systems
  10. 19.

    Erlang did not invent the "Actor" model but did not

    take from it either. It arrived at its own best ways to solve problems. Erlang inventors did not hear about Actors until years later.
  11. 20.
  12. 22.
  13. 23.
  14. 24.

    “No concurrency library for Ruby can ever prevent the user

    from making thread safety mistakes (such as sharing a mutable object between threads and modifying it on both threads) or from creating deadlocks through incorrect use of locks.” - https://github.com/ruby-concurrency/concurrent-ruby
  15. 25.

    “When the Ruby language was designed computers had only one

    CPU. Nowadays we have multiple cores and to utilize these we need concurrency. At this time Ruby can use other cores for IO operations, but for the rest Ruby can only execute code on one core at a time because of the global interpreter lock that is implemented in the language. This technique is in place to make sure the executed code and data is safe from modification so no unexpected behavior will occur.” - http://www.mangrove.com/en/journal/2015-11-17-whats-coming-in-ruby-3-and- rails-5/
  16. 26.
  17. 27.
  18. 28.
  19. 29.
  20. 30.
  21. 31.
  22. 33.
  23. 34.