Shitposting: @willrad.bsky.social
GitHub: https://github.com/wgwoods
The mustard (still) indicates progress 🌭
OTOH I don't know if there's a lesson here other than "my code was stupid and ugly, and x86_64 & arm64 have slightly different memory ordering". I already know these things!
OTOH I don't know if there's a lesson here other than "my code was stupid and ugly, and x86_64 & arm64 have slightly different memory ordering". I already know these things!
buffers just love overflowing so dang much
buffers just love overflowing so dang much
TIME TO BECOME CRAB BABYYYYY 🦀🦀🦀
TIME TO BECOME CRAB BABYYYYY 🦀🦀🦀
Here's the PR to get the fix upstream: github.com/rust-lang/ru...
Here's the PR to get the fix upstream: github.com/rust-lang/ru...
---- library/std/src/io/buffered/bufreader.rs - io::buffered::bufreader::BufReader<R>::peek (line 117) stdout ----
Test executable failed (signal: 6 (SIGABRT)).
---- library/std/src/io/buffered/bufreader.rs - io::buffered::bufreader::BufReader<R>::peek (line 117) stdout ----
Test executable failed (signal: 6 (SIGABRT)).
7. peek(1) - calls read_more(), but reader is at EOF, so it returns 0 and returns an empty buffer.
So the test does call read_more().. but it never actually reads anything! So let's fix that!
7. peek(1) - calls read_more(), but reader is at EOF, so it returns 0 and returns an empty buffer.
So the test does call read_more().. but it never actually reads anything! So let's fix that!
1. Make a Reader (`bytes`) containing 9 bytes: "oh, hello"
2. Wrap it in a BufReader (`buf`) with a 6-byte capacity
3. peek(2) - this causes a buffer fill. buf contains "oh, he". 4. read 4 bytes: "oh, ". buf now contains "he".
5. peek(2) - just returns "he". (cont'd..)
1. Make a Reader (`bytes`) containing 9 bytes: "oh, hello"
2. Wrap it in a BufReader (`buf`) with a 6-byte capacity
3. peek(2) - this causes a buffer fill. buf contains "oh, he". 4. read 4 bytes: "oh, ". buf now contains "he".
5. peek(2) - just returns "he". (cont'd..)
Now let's see if I can trigger the problem. Let's look at BufReader::peek() and its doctest: github.com/rust-lang/ru...
Now let's see if I can trigger the problem. Let's look at BufReader::peek() and its doctest: github.com/rust-lang/ru...
SORRY ABOUT YOUR NETFLIX STREAMING QUALITY BUT I GOTTA REINSTALL XCODE BECAUSE NOBODY KNOWS HOW TO FIX CONFIG FILES
SORRY ABOUT YOUR NETFLIX STREAMING QUALITY BUT I GOTTA REINSTALL XCODE BECAUSE NOBODY KNOWS HOW TO FIX CONFIG FILES
sudo rm -rf $(xcode-select -p) && xcode-select --install
[redownloads 2GB of data I already had]
...aaaaand now it works! What a cool and efficient way to fix my tooling configuration!!
sudo rm -rf $(xcode-select -p) && xcode-select --install
[redownloads 2GB of data I already had]
...aaaaand now it works! What a cool and efficient way to fix my tooling configuration!!
fatal error: 'iostream' file not found
hoorayyyyyyy missing search paths, my favorite
fatal error: 'iostream' file not found
hoorayyyyyyy missing search paths, my favorite
Next they suggest using their `x.py` tool to bootstrap the build environment.
Is this gonna download a buncha binary tarballs from rust-lang.org without checking sigs or certs? HELL YEAH, I LOVE SOFTWARE
Next they suggest using their `x.py` tool to bootstrap the build environment.
Is this gonna download a buncha binary tarballs from rust-lang.org without checking sigs or certs? HELL YEAH, I LOVE SOFTWARE
I'm not using peek() - or nightly, for that matter - but I *did* steal Buffer::read_more() for my own thingy.
I'm not using peek() - or nightly, for that matter - but I *did* steal Buffer::read_more() for my own thingy.