Workers stuck on the results send after the context is canceled
Ran into a simple thing and spent longer on it than I'd like. A pool of eight workers reads tasks from jobs and writes results to an unbuffered results. The consumer reads results…
Ran into a simple thing and spent longer on it than I'd like. A pool of eight workers reads tasks from jobs and writes results to an unbuffered results. The consumer reads results…
A loop over the rows of a matrix, calling a subroutine with the row a(i, :) on every iteration. Right answer, embarrassing sp…
A C++ RAII wrapper around a Vulkan buffer records work that uses the buffer, submits it, and goes out of scope. Its destructo…
A buffered channel bounds the jobs sitting in it. It does nothing about the goroutines blocked trying to send. Say a server g…
Trying to redo a short MATLAB script in R, and I've barely touched MATLAB before. Most of it came over fine, except for a sin…
Found this while running the same Gleam module on both targets, and it's a runtime fact more than a language one. gleam run p…
Per-group totals with tapply(x, g, sum, na.rm = TRUE), and one group came back as 0. Every value in that group is NA. Not a s…
A consuming API has to decide what happens to the value when it fails. String::from_utf8 takes the Vec<u8> by value, and on f…
D's pure is weaker than the word suggests, and I only noticed because an evaluator experiment wanted to cache calls. pure in…
Okay, a user pastes their name and it ends in e followed by U+0301. Later they type the same name and the keyboard gives U+00…