Live data from Hacker News

FoundationDB's Flow – Bringing Actor-Based Concurrency to C++11

apple.github.io

1–10 of 38 posts

Re: FoundationDB's Flow – Bringing Actor-Based Concurrency to C++11

#5
post #3

This looks kind of outdated, especially since we are on C++23 as latest approved standard, and co-routines would be a better approach since C++20. Also how is the supposed Swift rewrite going on?

Just because coroutines exist doesn’t mean everything should use them for concurrency.

Why would it be better? It’s pretty easy to set up threads in general.

Re: FoundationDB's Flow – Bringing Actor-Based Concurrency to C++11

#6
post #3

This looks kind of outdated, especially since we are on C++23 as latest approved standard, and co-routines would be a better approach since C++20. Also how is the supposed Swift rewrite going on?

You're in luck: https://github.com/apple/foundationdb/blob/main/design/corou...

Re: FoundationDB's Flow – Bringing Actor-Based Concurrency to C++11

#7
post #5
post #3

This looks kind of outdated, especially since we are on C++23 as latest approved standard, and co-routines would be a better approach since C++20. Also how is the supposed Swift rewrite going on?

Just because coroutines exist doesn’t mean everything should use them for concurrency. Why would it be better? It’s pretty easy to set up threads in general.

Threads use more system resources than coroutines so it can be a big deal when you can potentially have thousands of them running.

Re: FoundationDB's Flow – Bringing Actor-Based Concurrency to C++11

#8
post #6
post #3

This looks kind of outdated, especially since we are on C++23 as latest approved standard, and co-routines would be a better approach since C++20. Also how is the supposed Swift rewrite going on?

You're in luck: https://github.com/apple/foundationdb/blob/main/design/corou...

Thanks!

Re: FoundationDB's Flow – Bringing Actor-Based Concurrency to C++11

#9
post #5
post #3

This looks kind of outdated, especially since we are on C++23 as latest approved standard, and co-routines would be a better approach since C++20. Also how is the supposed Swift rewrite going on?

Just because coroutines exist doesn’t mean everything should use them for concurrency. Why would it be better? It’s pretty easy to set up threads in general.

The management to handle Threading and IO and not get it wrong is pretty high unless you’re using something like Rust because it guarantees you’re safe, vs letting the routine runtime management handle everything for you for free
Post reply on HN