Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
insanitybit
on Nov 27, 2022
|
parent
|
context
|
favorite
| on:
Rusty ownership and the lifecycle’s stone
Interesting, I feel like "share vector across threads" is an area that rust excels in. There's `split_at_mut` and `rayon`, and now with GATs you should be able to create a lending iterator too.
protortyp
on Nov 27, 2022
[–]
Hm interesting, I have to look into GATs then. Anyhow it also got easier with scoped threads. But doing it the old way was always a pain point for me.
insanitybit
on Nov 27, 2022
|
parent
[–]
Scoped threads definitely help, yeah. Before that you'd want to use a scoped thread crate or rayon.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: