Giter Site home page Giter Site logo

concurrency-in-scala-with-ce's People

Contributors

alexandru avatar corbell1 avatar llcampos avatar paualarco avatar slouc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

concurrency-in-scala-with-ce's Issues

How a fiber's non blocking behaviour is implemented?

The section in which is given the definition of a Fiber says that

Also, blocking a fiber doesn't block the underlying thread.

Since in text there isn't an explanation for this behaviour I think that would be great to add it. I'd submit a PR but unfortunately I haven't yet understood how it's possible to implement such a behaviour πŸ˜….

Threadpool queues

Hi, how are you, I was reading this part, and I think it might be missing some information about the thread pool queue

"Blocking asynchronous operations:

Unbounded cached pool. Unbounded because blocking operation can (and will) block a thread for some time, and we want to be able to serve other I/O requests in the meantime. Cached because we could run out of memory by creating too many threads, so it’s important to reuse existing threads."

You can also get out of memory if you use an unbounded tasks queue in the threadpool. If all the cached threads are in use, your queue might go up and your app go down. my 2 cents

Run Loop

Hi, I really really love your write-up. I just have a small question.

Since a for-comprehension is a series of nested flatMaps where the computation is sequenced, and the result of a previous computation is used to get the next computation. Shouldn't the Run loop here be:

FlatMap(
    Delay(() => println("What's up?")),
    (_: Unit) => FlatMap(
      Delay(() => readLine),
      (input: String) => Delay(() => println(s"Ah, $input is up!"))
    )
  )

where the function k is what leads to the next FlatMap ?

Using a toy interpreter, funny enough, I can't seem to see any difference between the two.

Minor clarification

In the shift example you wrote

Code is pretty straightforward - we have a recursive loop that goes on forever, and all it does is print out some ID ("A" or "B").

On my reading and executing this, the first example with def loop prints "A" continually. (I commented out the 'shift' to match your example).

Parallelism or parallel execution?

Hey πŸ€—,

I am a bit newer about concurrency and parallelism and I would like to make an open question. Which is the different between parallel execution and parallelism in the docs? Reading the repository I don't really know if we are threatening the concept like one. There is any specific example I can check to visualise how a task is subdivided in subtask and paralleled?

Thank you! πŸ™‚

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.