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

Why does Dart use the Actor model? #55434

Closed
SkUnK-cc opened this issue Apr 11, 2024 · 3 comments
Closed

Why does Dart use the Actor model? #55434

SkUnK-cc opened this issue Apr 11, 2024 · 3 comments

Comments

@SkUnK-cc
Copy link

Why does Dart use the Actor model? Why doesn't Dart use the Thread model?
Is Thread model not suitable for Dart?
Can anyone tell me why?

@SkUnK-cc SkUnK-cc changed the title Why does dart use the Actor model? Why does Dart use the Actor model? Apr 11, 2024
@julemand101
Copy link
Contributor

https://github.com/dart-lang/language/blob/main/working/333%20-%20shared%20memory%20multithreading/proposal.md

@mraleph
Copy link
Member

mraleph commented Apr 11, 2024

The simple answer is that Dart is using the model which was the only one available on the Web at the time when Dart was conceived. Original language designers also believed it to be simpler for developers.

@mraleph mraleph closed this as completed Apr 11, 2024
@SkUnK-cc
Copy link
Author

SkUnK-cc commented Apr 15, 2024

The simple answer is that Dart is using the model which was the only one available on the Web at the time when Dart was conceived. Original language designers also believed it to be simpler for developers.

thanks.
Is this the reason?
The State Of Web Workers In 2021
image

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