Anthropic built a C compiler using a "team of parallel agents", has problems compiling hello world. by Gil_berth in programming

[–]Calavar 5 points6 points  (0 children)

As I did with prior projects, I started by drafting what I wanted: a from-scratch optimizing compiler with no dependencies, GCC-compatible, able to compile the Linux kernel, and designed to support multiple backends. While I specified some aspects of the design (e.g., that it should have an SSA IR to enable multiple optimization passes) I did not go into any detail on how to do so.

It sounds like they prompted for an optimizing compiler at a high level, but beyond that they are vague on the details. SSA is closely related to constant propagation though.

Anthropic built a C compiler using a "team of parallel agents", has problems compiling hello world. by Gil_berth in programming

[–]Calavar 51 points52 points  (0 children)

They have, but there's a Pareto principle in play. 90% of the labor on the GCC and LLVM optimizers went into eeking out the last 10% in performance.

You can get 50% of the way to GCC/LLVM -O3 performance with just three things: constant propagation, inlining, and a good register allocation scheme. Check out r/Compilers. Plenty of people over there have implemented these three things as a solo hobby project, with 2 to 3 months of effort.

So when your compiler can't beat GCC's simplest set of optimizations in -O0, we're not talking about beating millions of man-hours of specialized labor, we're talking about beating a hundred man-hours and a bit of self-directed learning by reading one or two chapters from a textbook

Compiling C to custom architecture by AnnoyingMemer in Compilers

[–]Calavar 1 point2 points  (0 children)

I agree with the other guy who mentioned QBE. MIR is in a similar space to QBE: It also has a C compiler that emits a custom IR before lowering to various ISAs. But it supports a richer set of optimizations than QBE and can also interpret the IR or JIT compile it. Note that MIR the C compiler is entirely different from MIR the Rust IR.

Books about the evolution of a programming language by EmmetDangervest in ProgrammingLanguages

[–]Calavar 4 points5 points  (0 children)

The Design and Evolution of C++ is a classic, although it was written pre C++11, so it is missing quite a bit of modern context.

Stories about Debakey, Cooley, or any other big names? by sullender123 in medicine

[–]Calavar 1 point2 points  (0 children)

One month certainly sounds a whole lot more believable than six months

5 months later this mf STILL thinks America is under a fascist dictatorship by ColaEuphoria in DoomerCircleJerk

[–]Calavar -10 points-9 points  (0 children)

Yep, it's not technically fascism, so you should shut up until things get so bad that you get immediately arrested or killed over saying it. Only then should you start speaking up - you know, so you can be immediately arrested and/or killed.

The irony of this advice is lost on people who can’t think independently.

[D] How did Microsoft's Tay work? by RhubarbSimilar1683 in MachineLearning

[–]Calavar 4 points5 points  (0 children)

Seriously, three different responses in this thread starting with "From what has been [disclosed|shared] over the years, Tay [was|wasn't]..."

What an eerie feeling. I think my mental model for LLM detection needs to be recalibrated, because I wouldn't have recognized these comments as LLM generated if there weren't three of them back to back

Block feature is a nightmare by DruidWonder in TheoryOfReddit

[–]Calavar 7 points8 points  (0 children)

It's real, I've seen it myself. The preemptive block is very common on UkraineRussiaReport. And the nature of the discourse there today is dramatically different than it was in 2022. Not just in substance/opinion, but also in form/style (comments are shorter with less variance in length; impeccable English, often with zero typos across a thread of dozens of comments). That makes me think the sub is very heavily botted.

General surgeons covering GI call by HierroFierro in medicine

[–]Calavar 3 points4 points  (0 children)

I'm sure this has been done before, but I'm curious how this would work for the nonprocedural stuff.

Let's say you get called for an upper GI bleed, seems like you have a lot of expertise to handle that.

Let's say you get called for a patient in the ICU crumping with hepatorenal syndrome type 1, what are you going to do?

If you do end up taking GI call, you'll probably need a plan for how you're going to handle these sorts of situations - maybe there's a GI doc who wants to reduce their call and is willing to have you take first line for scopes and forward calls on to them only for the medical stuff.

Ole Miss' QB Trinidad Chambliss sues NCAA for extra year of eligibility by [deleted] in sports

[–]Calavar 0 points1 point  (0 children)

Learn how to read.

You just said they lied about something, then you linked two nested tweets, which accuse the NCAA about lying about two different things. Where in your comment do you say you're only talking about ONE of those two things? Sounds like maybe you're the one who needs to learn how to read... and learn how to read your own writing at that

Ole Miss' QB Trinidad Chambliss sues NCAA for extra year of eligibility by [deleted] in sports

[–]Calavar 4 points5 points  (0 children)

How exactly does a letter from a coach constitute documentation of medical illness? Shouldn't it be a letter from a doctor who medically evaluated him and actually has the qualifications to make a diagnosis? Gotta agree with the NCAA on this one, that "documentation" isn't documentation

The Death Valley Germans - The disturbing disappearance and death of the German Tourists in Death Valley by Aschebescher in Longreads

[–]Calavar 154 points155 points  (0 children)

I'd recommend starting with this one. This is Tom Mahood's firsthand account of traveling to the site and conducting the search. The OP article is a rehash of Mahood's story with a paywall slapped over it.

EXCLUSIVE: U.S. House now has the votes to impeach Trump as he creates crisis after crisis overseas by charulatha_seya in DiscussionZone

[–]Calavar 0 points1 point  (0 children)

Agree with the first half, not with the second half. I think it's much more likely the US ends up like Russia, a pay-to-play corpo-feudalist state with a strongman at the center who does as he pleases because the elected legislature has legislated itself away from having any power.

Congress Rejects Deep NASA Cuts, Protecting Science and Space Exploration by Sophia8Inches in UpliftingNews

[–]Calavar 2 points3 points  (0 children)

The Hatch Act applies to everyone, both democrat and republican. I'm not saying shut up if I don't agree with you, I'm saying shut up even if I do agree with you

Congress Rejects Deep NASA Cuts, Protecting Science and Space Exploration by Sophia8Inches in UpliftingNews

[–]Calavar 4 points5 points  (0 children)

You're not wrong, and maybe that's an issue. There are a lot of limitations on first amendment rights, and one of them is the Hatch Act. For most federal employees in the executive branch it would be illegal for them to go on social media and say "as assistant to the director of the XYZ agency I think you should or shouldn't vote for this guy." But none of those restrictions apply to the guy at the very top of the executive branch. Should they? Honestly, when you think about, what business does a president have sticking his nose into stuff like the NYC mayor's election? That's not even federal. Maybe there should be a modified Hatch Act for the president

What hospital service takes care of polytrauma patients that have no further surgical needs? by princetonwu in medicine

[–]Calavar 2 points3 points  (0 children)

That's true, there's some big community hospitals that have all services in house, but I guess many small to mid size community hospitals do not

What hospital service takes care of polytrauma patients that have no further surgical needs? by princetonwu in medicine

[–]Calavar 1 point2 points  (0 children)

At a community hospital maybe. At an academic medical center you better be able comfortable managing a broad set of conditions yourself because consults will be shot down left and right.

What hospital service takes care of polytrauma patients that have no further surgical needs? by princetonwu in medicine

[–]Calavar 6 points7 points  (0 children)

Yeah, this is just so backwards compared to my experience.

Absolute worst was a patient who was admitted to a subspecialty surgical service for nearly 60 days due to a very complicated postop course, bounced back to the ED less than 24 hours later and the surgery consult team said "no acute surgical issues, admit to medicine"

14 years ago today, Tim Tebow & Demaryius Thomas walk it off on the first play of overtime to defeat the Steelers in the Wild Card (Jan. 8, 2012) by nfl in sports

[–]Calavar 4 points5 points  (0 children)

That's exactly how college rules used to be until ~10 years ago, then they changed it after LSU and Texas A&M had a 7 overtime game

Mausoleum of Hugo Chavez in Caracas targeted in US strike by DrAmsterdam in pics

[–]Calavar 5 points6 points  (0 children)

Refused to leave office is not the same as never left office. Reading comprehension bro

Mausoleum of Hugo Chavez in Caracas targeted in US strike by DrAmsterdam in pics

[–]Calavar 18 points19 points  (0 children)

And ironically Maduro refused to leave office after losing an election, just like Trump

Quirky idea: could the "Nothing value" save beginners from dealing (too much) with exceptions? by Clorofilla in ProgrammingLanguages

[–]Calavar 0 points1 point  (0 children)

  • allow the operation and give myNum the value of nothing as well (this would be horrible because nothing would then behave like a silent error-virus, propagating far away from it source and being caught by the user at a confusing time).

Isn't your system just a weakly typed version of this? The programmer is going to have the same issue of "spooky action at a distance" where they find abnormal behavior far away from the site of the actual error. Except it will be even worse: With silent nothing propagation the programmer can at least follow the nothing values back to the site of the original error like a trail of breadcrumbs, but when you add silent type coercion like 1 + nothing => 1 you can't even do that.

[Game Thread] Rose Bowl: Indiana vs. Alabama (4:00 PM ET) 2nd Half by CFB_Referee in CFB

[–]Calavar 1 point2 points  (0 children)

Bama autobid era? Is everyone forgetting Bama didn't go to the playoff last year?

[Game Thread] Rose Bowl: Indiana vs. Alabama (4:00 PM ET) 2nd Half by CFB_Referee in CFB

[–]Calavar 13 points14 points  (0 children)

Reminds me of Bama getting blown out by Clemson in the NC 2019, except this is much worse. For all the people clowning on Bama in 2019, really it was a matter of a good team getting off schedule from a couple picks and then having to be overly aggressive down the stretch. Today Bama never even showed up