Better HN
topnewbestaskshowjobs
Log inSign up

bcoates

5,109 karma · joined Jun 27, 2012 (14y ago) · 1,639 submissions

ben blueskylabs com
Submissions

comment 2y ago · link · parent

Looks cool... anybody want to do an explain-like-im-not-a-c64-esoterica-expert on what this is?

comment 2y ago · link · parent

Not super familiar with Carbon but .. what's the elevator pitch for porting my C++ to unsafe Carbon? Can it be done with an automated refactoring tool or something?

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

From the abstract:

"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

Yeah describing Luo Ji as having "struggles with the ethical implications of his mission" is the biggest whopper.

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 roll back a schema migration on a dev/test database by nuking it and regenerating it, probably with the same tools you use to manage the rest of your environment.

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 I understand what you mean, it's supported everywhere that has windowing at all afaik.

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

There's PowerQuery, built into Excel. It can do some great stuff (love me some fuzzy join) but the ergonomics are apocalyptic.

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

That's not really the problem here--CHAR_BIT is already 8 everywhere in practice, and all real existing code[1] handles CHAR_BIT being 8.

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

I have mixed feelings about this. On the one hand, it's obviously correct--there is no meaningful use for CHAR_BIT to be anything other than 8.

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

Microsoft has declared a whole lot of things to be the future of Windows, almost all of them were quietly sidelined in a version or two.

https://www.joelonsoftware.com/2002/01/06/fire-and-motion/

comment 2y ago · link · parent

The constant-math method above doesn't require that and works on denormalized expressions, too.

That said, the trick for turning four or more argument bitwise operations into a series of vpternlogd operations has yet to be posted

comment 2y ago · link · parent

In theory, they could form some sort of phased array beamforming to fuck one guy in particular, but ignoring that sort of targeted malice, and assuming non-correlated noise and a non-directional receiving antenna, the inverse square law would dominate and the overwhelming majority of the interference would just be the closest Tesla, not the total volume of Teslas.

comment 2y ago · link · parent

As far as I can tell, electric cars are regular old FCC 15b devices, but the emission limits are generous enough that an AM radio can't operate from inside of one, the same way you wouldn't expect an AM radio sitting on top of a generator to do well.

comment 2y ago · link · parent

"If it didn't work you didn't believe hard enough" also known as "Real Communism has never been tried" or "Conservatism never fails, it can only be failed" is a sort of... information-free stock position.

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

You can't reasonably assume the end user system has a system JVM installed (they probably don't, in fact) so they're not really an alternative to a fat binary -- if you can install dependencies, you can just pick a single-target binary while you're at it.

comment 2y ago · link · parent

Yes, it's bad. Learn to mind your own business. If you don't understand, you are failing the test.

comment 2y ago · link · parent

I mostly agree with you but take the opposite position: attacking memory safety bugs has been so successful that we should use the same pattern on other large classes of bugs.

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

Does the FDA have any actual mandate or expertise to do that, or are they just embracing mission creep?

comment 2y ago · link · parent

Generally OLEDs don't use off for black outside of special-effect low power modes. The display only has stable contrast above some threshold brightness that in a dark viewing environment is going to be noticeably brighter than off, and it looks awful below that. The #000 point is set well brighter than that level.

comment 2y ago · link · parent

If you unplug the network you can't send messages, correct.

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

Any evidence this actually causes material performance improvement?

Pre-shared compression dictionaries are rarely seen in the wild because they rarely provide meaningful benefit, particularly in the cases you care about most.

comment 2y ago · link · parent

This is a popular saying that is basically wrong.

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

Re: Compensation expectations, I figured out a long time ago that bad programmers create bad code, and bad code creates work for good programmers.

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

As sort of an exception that proves the rule thing, there was a real recent-ish case of (attempted) drink spiking in the LA area that demonstrates how it would actually go in real life vs the "unexplained mystery blackout while out drinking, must have been roofied by a stranger":

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

Yeah. Looks like the processor is in virtual x86 mode from the dump, maybe that causes weirdness in the OS/2 BSOD?

comment 3y ago · link · parent

My guess is that the Infocom game was setting up some sort of FP emulation TSR and not cleaning it up, and BattleTech was coincidentally using it. Or whatever the equivalent of a windows 3.x VxD is for OS/2, if that exists. Or just otherwise messing with the interrupt tables involved in the arcane x87 protocol in a way that un-breaks things.

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

"For example, what if the parallel sums are of different lengths? On GPUs, fast parallel reductions only work when inputs all have the same length. [...] Vexpr’s vectorizer groups the inputs by length and performs a reduced number of operations—one for each unique length."

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

I've used WYSIWYG UI dialog editors (mostly the one MSVS used to bundle with C# in... I wanna say 2012?) that maintain their entire state as somewhat-editible two-way code (so if I modified the code, at least within a constrained envelope, it would be reflected in the editor and remain WYSIWYG editable).

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

Yep. All the no-code systems I've ever investigated are essentially expert systems, and if there's one constant over the history of AI boom and bust cycles, it's "statistical models absolutely demolish expert systems every time".

comment 3y ago · link · parent

Feel free, I'm not so optimistic about the mechanisms of Wikipedia.

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.

1
567
55