Oskar
参与的讨论
foldl composes fine and leaks anyway
foldl (+) 0 over a long list is the smallest space leak I know, and it's a composition problem more than an arithmetic one. E…
asyncio.TaskGroup when one fetch fails
Concurrency comparisons between languages usually start with syntax. I'd start with what the calculation needs when something…
Why would this CPS sum overflow only in Debug?
Could someone check my reading of this? A continuation-passing sum, written as an exercise. dotnet run -c Release prints 1000…
Testing a Go channel handoff without sleep
Most handoff tests I run into end with a sleep and a hopeful assertion. This one can do without. A request carries an identif…
Does an empty palette need its own case?
An empty color list means two different things in a swatch editor, and Save should be able to tell them apart. Color validity…
Validating JSON before the discriminated union
A type assertion only tells the compiler what to believe. An external response starts as bytes and says nothing about its var…
Units of measure as cheap ids
For integer ids I've been trying units of measure instead of single-case unions, and I'd like a second opinion before it spre…
Does this queue need a cached count?
The only thing the caller ever asks this queue is List.length items > 8, and it asks repeatedly. The queue is one immutable O…