Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

At this point it doesn't seem that Mojo is exposing any access to threads or provides public implementation of parallelize or other algorithm functions.

I really wonder - are there any docs/discussions/ideas about how the thread-safety enforcement (if any) would Mojo have?
In Rust we have Send/Sync, pinning for async stuff, etc.
Swift ended up having single Sendable trait, but it lacks the ability to return/store references, so its model is simpler than Rust's.
Mojo looks much closer to Rust in terms of reference semantics (with the difference that when you want to store them - you have to convert them to pointers), so I wonder whether there were any discussions about thread-safety topics in Mojo.

You must be logged in to vote

Replies: 1 comment

Comment options

Please post this in our forum instead. Thank you!

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.