Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening page has a tab/sample for "Async & Parallelism" - does perl6 / that sample illustrate parallelism or concurrency? #134

Open
ahungry opened this issue Sep 24, 2019 · 1 comment

Comments

@ahungry
Copy link

ahungry commented Sep 24, 2019

Opening page has a tab/sample for "Async & Parallelism" - does perl6 / that sample illustrate parallelism or concurrency?

https://perl6.org/

This sample:

start { sleep 1.5; print "hi" }
await Supply.from-list(<A B C D E F>).throttle: 2, {
    sleep 0.5;
    .print
}

# OUTPUT: ABCDhiEF

A cursory glance looks like that is concurrency (running multiple idling things in tandem vs sequentially). This is not parallelism, which would require multi-threading and running across multiple cores (active processing/computing) at the same time.

Should this tab title be changed to "Async & Concurrency" ?

@2colours
Copy link
Contributor

This is not parallelism, which would require multi-threading and running across multiple cores (active processing/computing) at the same time

I'm not sure what the example illustrates but "multi-threading and running across multiple cores at the same time" definitely exists in Raku 🤔

@coke coke added this to the 2023-Quarter 4 milestone Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants