5,109 karma · joined Jun 27, 2012 (14y ago) · 1,639 submissions
comment 2y ago · link · parent
I feel like if I'm gonna go through the whole nightmare of a code port I should get something for it as opposed to just relying on interop
comment 2y ago · link · parent
"Studies suggest muscle loss with these medications (as indicated by decreases in fat-free mass [FFM]) ranges from 25% to 39% of the total weight lost over 36–72 weeks. This substantial muscle loss can be largely attributed to the magnitude of weight loss, rather than by an independent effect of GLP-1 receptor agonists, although this hypothesis must be tested. By comparison, non-pharmacological caloric restriction studies with smaller magnitudes of weight loss result in 10–30% FFM losses."
The "surprising" part is kinda bullshit, and implies there's something special about glp-1s. It is the opposite of surprising that weight loss includes a lean mass loss.
That said, being skinnyfat is probably bad for you and the idea that you should work to preserve/build muscle and not only lose weight is a good one.
comment 2y ago · link · parent
He's like God's perfect sociopath. He wobbles between total indifference to his mission and interplanetary murder-suicide, and the only things that seem to really get to him are a stomachache and being ghosted by his wife.
comment 2y ago · link · parent
You don't rollback a schema migration to a production database, because that is impossible. What has been done cannot be undone.
comment 2y ago · link · parent
If you mean filtering the rows in the window, you can do 'sum(case when condition then value else null end) over (window)'; if you mean selecting rows based on the value of a window function you use 'qualify' where supported or a trivial subquery or CTE and 'where' (which qualify is just shorthand for)
comment 2y ago · link · parent
This is actually the root problem of trying to improve or extend Excel--it has a truly ancient, horribly broken sharing/ipc/embedding model that is integrated into everything and can't be easily fixed or worked around.
comment 2y ago · link · parent
The question is "does any code need to care about CHAR_BIT > 8 platforms" and the answer of course is no, its just should we perform the occult standards ceremony to acknowledge this, or continue to ritually pretend to standards compliant 16 bit DSPs are a thing.
[1] I'm sure artifacts of 7, 9, 16, 32, etc[2] bit code & platforms exist, but they aren't targeting or implementing anything resembling modern ISO C++ and can continue to exist without anyone's permission.
[2] if we're going for unconventional bitness my money's on 53, which at least has practical uses in 2024
comment 2y ago · link · parent
On the other hand, it seems like some sort of concession to the idea that you are entitled to some sort of just world where things make sense and can be reasoned out given your own personal, deeply oversimplified model of what's going on inside the computer. This approach can take you pretty far, but it's a garden path that goes nowhere--eventually you must admit that you know nothing and the best you can do is a formal argument that conditional on the documentation being correct you have constructed a correct program.
This is a huge intellectual leap, and in my personal experience the further you go without being forced to acknowledge it the harder it will be to make the jump.
That said, there seems to be an increasing popularity of physical electronics projects among the novice set these days... hopefully read the damn spec sheet will become the new read the documentation
comment 2y ago · link · parent
comment 2y ago · link · parent
Basically, if thing is good it needs to still be good when tried in the real world by flawed humans, so if someone says "I tried thing and it didn't work" replying with "well maybe thing is good but you suck" isn't productive.
comment 2y ago · link · parent
It's absolutely possible to write a reasonably usable language that makes injection/escaping/pollution/datatype confusion errors nearly impossible, but it would involve language support and rewriting most libraries--just like memory safety did. Unfortunately we are moving in the opposite direction (I'm still angry about javascript backticks, a feature seemingly designed solely to allow the porting of php-style sql injection errors)
comment 2y ago · link · parent
comment 2y ago · link · parent
Other people upthread have already gone over how you can't separate delivery from message processing and how TCP's attempt to do so makes it defective (unless you layer a whole additional system on top of it rendering most of TCP's design irrelevant)
If you were trying to make a new, non-broken system on top of TCP or otherwise, allowing multiple delivery doesn't add any correctness/robustness benefits -- it just makes messages cheaper to send and receive. There is no "at most once or at least once" choice except in the pickwickian sense that if you don't require delivery or delivery confirmation you can save the effort of even trying.
comment 2y ago · link · parent
You have very limited guarantees around an arbitrarily bad partition, but this is also a detectable condition. Lots of defective systems exist, but in general non-defective systems generally guarantee "exactly once delivery or detected failure"
comment 2y ago · link · parent
If the amount of bad code is no longer limited by the availability of workers who can be trained up to "just below average" and instead anyone who knows how to work a touchscreen can make AI slop, this opens up a big economic opportunity.
comment 2y ago · link · parent
https://www.smobserved.com/story/2022/04/03/crime/court-take...
Victim and attacker knew each other, was immediately noticed by bartender and caught on security cameras, drugs easily detected, etc.
comment 3y ago · link · parent
Also it looks like there may be some issues with FP/FP emulation on the OS/2 DOS extender host: https://www.os2museum.com/wp/floating-point-exceptions-and-d...
comment 3y ago · link · parent
I'm surprised this is necessary, I thought modern vectorization on both CPU and GPU handled heterogenous vectorization cases like this handily with conditional execution (on SMT GPUs) or mask registers (on SIMD CPUs)
comment 3y ago · link · parent
Does that count?
If so, I think the lesson is you need to keep the no-code side way, way less ambitious than is theoretically possible in order to keep everyone sane and you might actually have a useful tool that doesn't dig you into a big hole.
comment 3y ago · link · parent
Almost all the wrong information in the article has a high-quality source (presumably repeating either the Wikipedia article itself or some other random journo playing telephone about an event that happened in a then-relevant video game almost 20 years ago.) Or maybe the author pulled the ol' claim not found in source. I didn't check!
Serious answer: This is a job for Internet Historian https://www.youtube.com/c/InternetHistorian who is... (double ironically? anti-hyperbolically? I'm not sure how to express surprise he actually lives up to the name) someone who does some quality research about dumb old internet stuff everyone misremembers and the news media got wrong the first time.