Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jafffsuds
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
jafffsuds
4mo ago
> There’s no built-in goroutine-style preemption. Long CPU-bound work in an async task starves the executor; you offload to tokio::task::spawn_blocking or rayon instead. I don't know why anyone uses spawn_blocking for CPU-bound task
2.
▲
by
jafffsuds
4mo ago
He's been busy with the typescript-go project
3.
▲
by
jafffsuds
4mo ago
What you are describing is something different called a disjoint union which will maintain the identities of the left and right values when there is overlap. The C# unions appear to behave like unions, not disjoint unions.