Akka-examples | These examples are purely meant to illustrate

 by   johanjanssen Scala Version: Current License: No License

kandi X-RAY | Akka-examples Summary

kandi X-RAY | Akka-examples Summary

Akka-examples is a Scala library. Akka-examples has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

These examples are purely meant to illustrate the posibilities of Akka. We tried to make these examples as simple as possible. The disadvantage was that we had to use some less nice constructions. If you want some more real life examples and best practices than we advice you to look at the official Akka examples.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Akka-examples has a low active ecosystem.
              It has 38 star(s) with 11 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              Akka-examples has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of Akka-examples is current.

            kandi-Quality Quality

              Akka-examples has no bugs reported.

            kandi-Security Security

              Akka-examples has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              Akka-examples does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              Akka-examples releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Akka-examples
            Get all kandi verified functions for this library.

            Akka-examples Key Features

            No Key Features are available at this moment for Akka-examples.

            Akka-examples Examples and Code Snippets

            No Code Snippets are available at this moment for Akka-examples.

            Community Discussions

            Trending Discussions on Akka-examples

            QUESTION

            How to model if-expressions with actor systems?
            Asked 2020-Mar-25 at 21:37

            I'm trying to emulate a simple functional language using actors.

            Actor systems nowadays are used basically for speeding up all kind of stuff by avoiding OS locks and stalled threads or to make microservices less painful, but initially it was supposed to be an alternative model of computation in general [1][2] and therefore should be capable to cover any programming language construct and certainly an if, right?

            While I'm aware that this is occasionally met with irritation, I saw one timid attempt to move towards recursive algorithms represented using akka actors (I've refurbished it and added further examples including the one given below). That attempt halted at function calls, but why not go further and also model operators and if conditions with actors? In fact the smalltalk language applies this model and yields a precursor of the actor concept, as has been pointed out in the accepted answers below.

            Surprisingly recursive function calls aren't much of an issue, but if1 is, due to it's potentially stateful nature.

            Given the clause C: if a then x else y, here's the problem:

            My initial idea was, that C is an actor behaving like a function with 3 parameters (a,x,y) that returns either x or y depending on a. Being maximally parallel [2] a,x and y would be evaluated simultaneously and passed as messages to C. Now, this isn't really good, if C is the exit condition of a recursive function f, sending one branch of f in an infinite recursion. Also if x or y have side effects one can't just evaluate both of them. Let's take this recursive sum (which is not the usual factorial, stupid as such and could be made tail recursive, but that's not the point)

            ...

            ANSWER

            Answered 2019-Oct-10 at 10:50

            Q : didn't ( I ) miss out on the question at a fundamental level?

            Yes, you happened to have missed a cardinal point: even the functional-languages, that may otherwise enjoy the forms of AND- and/or OR-based fine-grain sorts of parallelism, do not grow as wild as not to respect the strictly [SERIAL] nature of the if ( expression1 ) expression2 [ else expression3 ]

            You have spend many efforts on argumentation about recursion-case(s) whereas the principal property was left out of your view. State-fullness is the Mother Nature of the computing ( these toys are nothing but finite state automata, no matter how large the state-space might be, it is and always will principally remain finite ).

            Even the cited Scala p.88 confirms this: "The conditional expression is evaluated by evaluating first e1. If this evaluates to true, the result of evaluating e2 is returned, otherwise the result of evaluating e3 is returned." - which is a pure-[SERIAL] process-recipe ( one step after another ).

            One may remember, that even the evaluation of expression1 may have (and does have ) state-change effects ( not only "side-effects" ), but indeed state-change effects ( PRNG-steps into a new state whenever a random-number was asked to get generated and many similar situations )

            Thus the if e1 then e2 else e3 has to obey a pure-[SERIAL] implementation, no matter what benefits may be brought into action from fine-grain {AND|OR}-based-parallelism ( may see many working examples thereof in languages that can use 'em right since late 70-ies early 80-ies )

            Source https://stackoverflow.com/questions/58316588

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Akka-examples

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/johanjanssen/Akka-examples.git

          • CLI

            gh repo clone johanjanssen/Akka-examples

          • sshUrl

            git@github.com:johanjanssen/Akka-examples.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link