| github | https://github.com/0xdeafbeef |
@imperio I’ve been struggling with the new search UI on docs.rs. My brain keeps hunting for a text box to type in, so I end up clicking the global search bar instead of the crate icon every time.
It's especially confusing seeing the old vs new UI on different crates. Is there a reason we moved away from the persistent bar? I'd be happy to file an issue/PR to improve the icon's visibility!
Found a cursed bug where:
```rust
let lock = mutex.lock().await;
let res = tokio::spawn_blocking(work);
return res
```
Was somehow running in parallel despite the lock. The guard IS held until the end, so... ???
Moving to a regular mutex inside spawn_blocking fixed it, but I still don't know WHY.
Already spent a week debugging RocksDB merge operators. Now diving into tokio internals
Finished writing an eBPF-based allocation profiler.
https://github.com/0xdeafbeef/jeprofl
Writing eBPF programs in Rust is strange. It compiles, but later you get some cryptic errors from the kernel saying you read some uninitialized memory, with a 10k-line stack trace. After commenting out all your code line by line, you'll find that you can't prove to the kernel that:
if a > 0 and a < 2 {
// do something with a
}