![]() |
|
![]() |
| I'm not familiar with Mojo, so my understanding above was based on their blog post that you linked, and assumptions based on context. Checking their website, I find a sentence equating "identity" with "having an address" though:
> So far, we've talked about values that live in memory, which means they have an identity (an address) that can be passed around among functions (passed "by reference"). Source: https://docs.modular.com/mojo/manual/lifecycle/life#trivial-... --- If their self referential structs require indirection, I agree that they're weaker then what's available in Rust. Hopefully they provide more details at some point. The "No pin requirement" section in particular focused on Mojo's async ergonomics, not Mojo's async perfs. |
![]() |
| Thanks for saying so. Its nice to know I'm not alone in struggling with this stuff. Now that some time has passed, I might loop back and take another stab at it. It'd feel great to clear this hurdle. |
![]() |
| Should add "rust" in the title, so that we know what the article is talking about.
If you're one of the "rust/go in title" haters... please go rage somewhere else. |
![]() |
| It's about beeing able to quickly scan titles and decide if it's worth clicking on. If all titles were similar, we would spend a lot of time clicking each link to see if it is relevant. |
![]() |
| I fully agree. Sometimes it feels like so much effort is put into rust's async side that the rest of the language ends up taking a back seat and suffering for it. |
![]() |
| If I could ask independently of the sentiment of this thread - I am genuinely curious: Why is marking the difference good? (sorry this is only tangential to the article) |
![]() |
| Agreed, it's just that in Rust async/await hurts more than in e. g. JavaScript where the browser gives you enough hooks to have a "fresh start with(out) async". |
It’s only true if the object is not Unpin, but most normal objects are Unpin, so Pin usually does nothing. It took me a very long time to finally understand this. The set of types T for which Pin does anything at all is very niche and weird and IMO this isn’t sufficiently highlighted by the documentation.