Comment

Comment by MeetingsBrowser

This has the same drawbacks as "#pragma omp for".

The hard part isn't splitting loop iterations between threads, but doing so _safely_.

Proving an arbitrary loop's iterations are split in a memory safe way is an NP hard problem in C and C++, but the default behavior in Rust.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton