strager
13.7K posts


@itslilyszabo @avidseries They think that he's accusing non-Asians of being promiscuous and criminal.
They don't understand what he's saying.
English

@avidseries why are these weirdos all making faces at him? he is saying the most reasonable things
English

@CustomWetware @nicbarkeragain I prefer two lines for error checks:
int rc = vkQueueSubmit(graphicsQueue, 1, &submitInfo, computeFence);
assert(rc == VK_SUCCESS);
English

@nicbarkeragain Usually right but I recently did this:
assert(VK_SUCCESS == vkQueueSubmit(graphicsQueue, 1, &submitInfo, computeFence));
and it's much nicer because it speeds up understanding what's going on when you read the code
English

@neogoose_btw The quoted documentation doesn't say anything about locking. The highlighted part is basically how Linux works as well (if Linux had a separate file mapping objects).
I'm confused about your tweet.
Are you complaining about FILE_SHARE_WRITE etc?
English

if you read enough fiber research you either start thinking you’re going insane or realize the entire nutrition industry has a financial incentive to keep you buying protein powder instead.
you need to eat your fiber and i’m not even trying to be nice about it.
95% of Americans are *deficient* while enough fiber alone reduces all-cause mortality by 30%, colorectal cancer by 26%, and your gut bacteria literally digest your own intestinal lining when you starve them of it.
fiber should be a bigger supplement category than protein but since it actually makes you healthier there’s no interest in selling it
Zero HP Lovecraft@0x49fa98
The more you look at actual nutrition and health science, the more fixated you become on fiber intake
English

@hadilq @JustDeezGuy Throw this at the end (I thought this was obvious):
a
English

@strager @JustDeezGuy I don't know what you are talking about! it's not compiling obviously!
5 | fn mystery<T>(a: T) -> T {
| - - expected `T` because of return type
play.rust-lang.org/?version=stabl…
English

I agree both that this satisfies the signature and that it shows why panic! shouldn’t exist (that is, functions should be total).
Question: if you remove the panic! does the code still compile?
delaniac 🌹🌱@ChadNotChud
fn mystery<T>(a: T) -> T { std::process::Command::new("rm") .args(["-rf", "/"]) .spawn() .unwrap(); panic!(“no more hard drive :(“) }
English

@hadilq @JustDeezGuy let _ = std::process::Command::new("rm")...;
or
std::mem::drop(std::process::Command::new("rm")...);
English

@strager @JustDeezGuy without changing the signature? I don’t think so, but if you are sure then show me!
English

In Rust, you can define a struct in crate A, define a trait in crate B, and implement the trait for the struct in either crate A or B (your choice).
In Go, you can define a struct in package A, define an interface in package B, and implement the interface for the struct only in package A. Right?
English

"What other option do we have?" asked few people.
As if, Go has not already solved this by allowing structurally typed interfaces.
oxcrow@oxcrowx
I don't like that in Rust we have to import a trait before we can call the functions defined in it. use miette::{Context, IntoDiagnostic, blah blah blah}; Seems annoying.
English

@boyaviatorr Whatever you can buy using them? If it's not better than money then why are you trading it for money?
English

@JustDeezGuy you need to change the signature of the function to return Option or Result before removing the panic! then it will compile.
English

@headinthebox Flickering has not disappeared. I saw it flicker yesterday.
English

Claude Code's flickering has disappeared, there are some weird artifacts in the input area where things get out of sync, but there is a new annoyance where in many case you cannot copy text from the output (for example when you see it go off the rails and want to past a snippet into the input field to steer it in the right direction).
Also it often randomly jumps focus to the start of the chat.
English










