MurphyA/hacker-news huggingface dataset:
by 9rx | 2025-06-05 13:29:17+00:00
> The Wikipedia article about Exception handling[1]

What's that old adage? I think it goes something like "The wiki is always accurate—except when it’s about something you know personally." If you don't enough about the topic to discuss it yourself, what are you doing here?

> Also, obviously when we say "exceptions" in a programming language, we're definitely talking about "exception handling"

Not necessarily. Often it is important to discuss the data structure and not the control flow. Strictly, "exception" refers to either the broad concept of exceptional circumstances (i.e. programmer error) or the data structure to represent it. "Exception" being short for "exception handling" where context is clear is fine, but be sure context is clear if you want to go down that road – unless you like confusing others, I suppose.

> well the Go error object is an "exception"

You mean the error interface? That's not an exception. It's just a plain old interface; literally `type error interface { Error() string }`. In fact, the only reason it gained special keyword status is because it being part of the standard library, where it was originally defined in early versions, caused cyclical import headaches. If Go supported circular imports, it would be a standard library definition instead of a keyword today.

The underlying data structure produced when calling panic is an exception, though. It carries the typical payload you'd expect in an exception, like the stack trace.

Of course, errors and exceptions are conceptually very different. Errors are for things that happen in the environment – invalid input, network down, hard drive crash, etc. Exceptions are for programmer mistakes – faults that could have theoretically been detected at compile time if you had a sufficiently advanced compiler. Obviously you can overload exceptions to carry unexceptional information (as you can overload errors to carry exceptional information), and a pragmatist will from time to time, but that's not the intent for such a feature[1].

> To me this is no different than implementing "exception handling" with setjmp/longjmp, just less work to do.

Aside from the fact that there is actually an exception involved. Again, while you might be able to hand roll your own exception data structure in C, it does not provide it for you like Go does. If setjmp/longjmp were paired with an exception data structure of the box, it would reasonably considered exceptions, naturally.

However, the second bit was the real meat of that. A tiny bit of search and replace and you have a system that is effectively indistinguishable from exception handling in languages like Java, Javascript, etc. You haven't explained what about that search and replace, that does not introduce any other new language features or introduce any new concepts, turns what is not exceptions into exceptions.

[1] Java and its offspring's failed experiments in seeing if errors and exceptions could reasonably be considered the same thing excepted.
by grues-dinner | 2025-06-05 13:29:40+00:00
It's amazing there are any engineers or programmers at at all in the UK. When a graduate engineering post is commonly in the region of 25k to 30k, one wonders why anyone would actually aim to do that rather then finance. Sometimes I ask myself the same question - maybe I should have just sold out and I'd be rocking a million-plus detached house like my classmates!

It's also a bit depressing to think that there are posts so near what I started at 15 years ago (mid-low 20s), despite 54% inflation over that period, per the BoE calculator (another claims 64%).
by ralphdas | 2025-06-05 13:29:41+00:00
I would like to have some control over the process. I uploaded a picture of my father taken around 1958- 1960. It's blurry and he is wearing a shirt and tie and must have been around 7-9 years old . The restored image shows him as a middle aged man, wrinkles included. Would be nice to specify a couple of aspects
by MeIam | 2025-06-05 13:29:53+00:00
So in effect if a lot of people don't get the data now, then it will never matter, is that right?

That logic makes no sense because if they don't get it right now then it does not mean that they will not get it in future.

If Times and its staff can get the text, is all that matters because the use and rate of data usage is not material as it can change any time in future.
by techjamie | 2025-06-05 13:30:07+00:00
I did a little research. The $10,000 threshold was set in 1970 in the US as part of the Bank Secrecy Act and, as far as I can tell, wasn't updated since then to reflect inflation.

According to an inflation calculator, $10,000 at the time that threshold was set is worth $82,679.12 today.
by burnt-resistor | 2025-06-05 13:30:28+00:00
chubbyemu enters the chat

- A Boy Ate Only Chips And French Fries For 10 Years. This Is What Happened To His Eyes.

- A Man Ate Only Instant Noodles For 6 Months. This Is What Happened To His Organs.

- A Student Ate 20 Protein Bars Everyday For 6 Weeks. This Is What Happened To His Intestines.

- A Man Drank 7 Liters Soda Everyday For 10 Years. This Is What Happened To His Organs.

- A Boy Ate 75 Chicken Nuggets Everyday For 7 Years. This Is What Happened To His Eyes.

- A Man Ate 8 Pound Burger In 30 Minutes. This Is What Happened To His Organs. ft ‪@GugaFoods‬

Need I continue?
by thrance | 2025-06-05 13:31:04+00:00
I think you may have a shallow understanding of what fascism is, and I don't mean that disparagingly. I can't recommend this short read enough: https://theanarchistlibrary.org/library/umberto-eco-ur-fasci...

Fascism is always a big tent movement, that is surprisingly lenient in who it allows inside. Ultraliberalists (Thiel...), Christian traditionalists (Vance...), pro-Russians (Gabbard...), etc. They all find a seat in Trump's administration.

You have to remove this idea from your head that fascism is a focused ideology with a consistent system of ideas. It is anything but. There is no grand Machiavellian plan to build X, Y or Z.

My previous comment attempted to explain why Yarvin's ideas came into the public's eye: because he was sponsored by one of the factions that today occupies a prominent role in Trump's administration. Nothing more.

While fascism is internally inconsistent, it does exhibit some consistent aspects, explicited in the short essay I linked you. Close relations with the capitalist class is one of them, and indeed, this ties together Hitler, Mussolini, Putin, Trump...

So to answer your question: no, I don't think we're likely to get a CEO-king. But we will get a generic authoritarian government, which is where Orban's ended too. Not out of sheer ideology but as a result of every faction's pull towards something like that.

You might want to consume less liberal media, as those are forever clueless about what's happening since they can't reason about the prevalence of capital in Trump's politics. Actual left-wing media has been pretty spot-on in my experience, in predicting the general outline of Trump's policies. Deporting citizens? check. Cutting medicare/medicaid? check. Undoing constitutional checks to power? check.
by robertlagrant | 2025-06-05 13:31:34+00:00
This is what I mean - my impression is you can't tell the difference between someone commenting on a product and someone boasting about something they made or did. The OP (as far as we know) is not in a position to brag about the general status of Tesla cars, unless they are a senior person at Tesla.

If I said "BMWs are excellent cars" would I be bragging?
by addandsubtract | 2025-06-05 13:32:50+00:00
I would just like to appreciate how good of a picture that is, where Magnus is slamming the desk, Gukesh is looking at him, and the chess pieces are suspended in mid air. You couldn't have staged that picture any better. I'm not sure what annual photo contests there are (sports? history?), but this picture should win an award.
by 3cats-in-a-coat | 2025-06-05 13:33:00+00:00
Saying "is not" implies the author has AGI. If they do, they wouldn't be posting this blog post but the AGI. If they don't, they speaking authoritatively and conclusively like that is just a cheap front for someone's completely uninformed and unsupported, but highly certain opinion. There's an infinite supply of those.
by globular-toast | 2025-06-05 13:33:13+00:00
Girls' names can hardly be considered "English". I've seen all of Chloé, Aimée, Zoé etc. There are no rules.

It was hard for me to type those on my English keyboard. That's reason enough for me to say they are not really part of English any more and haven't been for decades. I do like writing connexion sometimes, and I note that this isn't even considered a spelling error in my installed dictionary, unlike coördinate, but I'm not going to claim that it's "still in use" because I read a dictionary one time.
by Spivak | 2025-06-05 13:33:44+00:00
So then what's the fear? If they take antibiotics for a bacterial infection and don't finish it's same as the current state of the world. If they take antibiotics for a viral infection and don't finish them then no harm no foul if you believe the theory that this is how resistance occurs.

Hard to create a strain of antibiotic resistant bacteria when you didn't have any in your system to begin with. Turns out you can't #gatekeep #girlboss your way out of this and have to educate your way out regardless if antibiotics are behind-the-counter non-prescription or not.
by chuckadams | 2025-06-05 13:33:51+00:00
Thankfully no-cors also restricts most headers, including setting content-type to anything but the built-in form types. So while CSRF doesn't even need a click because of no-cors, it's still not possible to do csrf with a json-only api. Just be sure the server is actually set up to restrict the content type -- most frameworks will "helpfully" accept and convert form-data by default.
by NickC25 | 2025-06-05 13:35:24+00:00
A guy who says that races shouldn't mix, that diversity is bad, etc... happens to be part of a group that historically has been marginalized to some degree nearly every time it tries to integrate itself into a larger society. Sometimes, that same group's not just been marginalized by political word, but by real physical violence.

A lot of the "real Americans" in flyover country who rail about "coastal elites" do not like jewish people. It's fucked up and deplorable, but it's fact. Here you have Yarvin, who is a jewish dude who grew up between 2 coastal liberal environments (SF and NYC). He's trying to pander to the people who count on those "real americans" for votes.

EDIT: History has shown us that it often doesn't end well for these types of people. "Oh I'm one of the good ones, they won't come after me" usually lasts until the last of the low-hanging fruit is picked. Again, a modern tech-bro Clayton Bigsby. (Chapelle's show reference for those who don't know)
by vanschelven | 2025-06-05 13:35:26+00:00
I had a section "Why" in one of the drafts but scrapped it because I thought it was maybe a bit too harsh. But the gist of it is (IMHO):

* For vendors logging is _awesome_. There's basically no upper limit, you can log all kinds of things, and you can bill them by usage. And because of the scale it's hard to do locally, which is also good news for vendors.

* On the developer-side, there's always the "let's not think about it too much right now, let's just collect a bunch of info" argument for logging. Which is great if you don't want to think (more kindly: if you're facing deadlines)

I'm sure there's good cases for logging (I read logs occasionally too) but it wouldn't be my _first_ thing to heavily invest in (hence the article)
by radonek | 2025-06-05 13:35:44+00:00
ORM is not as much solution to a problem as it is way of doing things. Certain kind of programmers observe that SELECT is kinda like getter, UPDATE is like setter and so on… It looks like cool abstraction, relatively straightforward to implement and most people working with databases toy with their own ORM code, have fun and thinks themselves very clever. Think of it as a rite of passage if you will.

…until they try to do JOIN. Or subselect. Or CTE. Or just about any other powerful SQL feature. Materialized views, triggers, sharding, atomic operations, you name it. At which point ones who are actually clever realize this idea has some serious limitations and drop it. Not because it can't be done – there are some nifty and well working ORMS out there – but because its bound to end just as complicated as sql itself. So why bother?

IMO main reason for existence of the ORM libraries is because back in the day, true object databases failed to take off for various reasons.
by pyman | 2025-06-05 13:36:07+00:00
The news about BuilderAI using 700 devs instead of AI is false. Here's why.

I've seen a lot of posts coming out of India claiming "we were the AI". So I looked into it to see if Builder AI was lying, or if this was just a case of unpaid developers from India spreading rumours after the company went bust.

Here's what some of the devs are saying:

> "We were the AI. They hired 700 of us to build the apps"

Sounds shocking, but it doesn't hold up.

The problem is, BuilderAI never said development was done using AI. Quite the opposite. Their own website explains that a virtual assistant called "Natasha" assigns a human developer to your project. That developer then customises the code. They even use facial recognition to verify it's the same person doing the work.

> "Natasha recommends the best suited developer for your app project, who then customises your code on our virtual desktop. We also use facial recognition to check that the developer working on your code is the same one Natasha picked."

Source: https://www.builder.ai/how-it-works

I also checked the Wayback Machine. No changes were made to that site after the scandal. Which means: yes, those 700 developers were probably building apps, but no, they weren't "the AI". Because the company never claimed the apps were built by AI to begin with.

Verdict: FAKE NEWS
by whywhywhywhy | 2025-06-05 13:36:52+00:00
> Burning tokens with constant incorrect command-line calls to read lines

See this sort of asinine behavior with cursor too sometimes although it's less grating when you're not being directly billed by the failed command line attempt. Also it's in a text editor it fully controls why is it messing around in the command line to read parts of files or put edits in, seems to be a weird failure state it gets into a few times a project for me.
by collinvandyck76 | 2025-06-05 13:37:06+00:00
I honestly used to be a skeptic on AI, at least for how it was being marketed, until agentic workflows became available. I've been in this biz for about 25 years now and have seen a lot of fads come and go, but framed correctly, this one has legs. If you're using it as a foundational part of your development budget I have bad news for you. But if you're using it as a handy assistant that you can guide to do things in minutes that would take you hours it's a force multiplier.

One interesting thought I had about it after I used Claude Code to generate a lot of documentation for a new codebase I was being bootstrapped into was that it's kind of a hedge against the loss of mental acuity that is natural with aging. I, and friends of mine, have admitted that you kind of get less quick/sharp with age. The tradeoff here is wisdom. But with a tool like this I'm able to move much more quickly than before.
by mwigdahl | 2025-06-05 13:37:06+00:00
Claude Code has been pretty poky for me running under WSL 2 on my Server 2022 box (admittedly, with pretty outdated hardware). It would routinely hang after a lot of use and performance would degrade over time.

Since the last couple of updates I don't seem to have those problems as prominently any more. Plus it seems to have greatly improved its context handling as well -- I've encountered far fewer occurrences where I've had to compact manually.
by habinero | 2025-06-05 13:37:22+00:00
> while LLMs have become so good at "human intelligence" (language) that they can reliably pass the Turing Test

If the LLM overhype has taught me anything, it's the Turing Test is much easier to pass than expected. If you pick the right set of people, anyway.

Turns out a whole lot of people will gladly Clever Hans themselves.

"LLMs are intelligent" / "AGI is coming" is frankly the tech equivalent of chemtrails and jet fuel/steel beams.
by coolKid721 | 2025-06-05 13:38:04+00:00
The main thing I think is people just trying to do everything in "one prompt" or one giant thing throwing all the context at it. What you said is correct but also, instead of making one massive request breaking it down into parts and having multiple prompts with smaller context that say all have structured output you feed into each other.

Make prompts focused with explicit output with examples, and don't overload the context. Then the 3 you said basically.
by jinny_1103 | 2025-06-05 13:38:19+00:00
Hello, I’m the maintainer of the viewer. Did you mean that WebGPU didn’t work on Safari? Since Safari enables WebGL by default, you can still render using the software or WebGL renderer on the Safari — unless you’ve disabled WebGL in your safari settings.

WebGPU doesn’t work on Safari without additional configuration, as it’s not enabled by default. We’ll hide unsupported renderers from the options list soon to address this issue.
by michaelsshaw | 2025-06-05 13:38:22+00:00
If your US-biased sympathies blind you from the awful deeds committed by your people, that's not my problem. There's no issue with shit-talking China to the ground, but criticising the US is the only thing I've gotten any hacker news users disagreeing with me.

And dang's argument reads like the Chewbacca defense, to be frank.
by arnsholt | 2025-06-05 13:38:31+00:00
Semi-relatedly, this is why I'm quite liberal about throwing errors while developing programs. During development it makes sure I'm reminded of my slipups when I inevitably forget some invariant that needed to be upheld, and then towards the end of the process any throws remaining are easily found and vetted. And in production, the closer to the source the error occurs the easier it is to fix; if you're especially unlucky, the error doesn't occur until after state has been persisted and read back, in which case you not only need to fix the bug but also have to figure out how to handle and/or remediate the bogus state written to your database.
by Daviey | 2025-06-05 13:38:46+00:00
Loved to death I assume. :(

$ curl parrot.live <html> <head><title>504 Gateway Time-out</title></head> <body bgcolor="white"> <center><h1>504 Gateway Time-out</h1></center> <hr><center>nginx/1.14.0 (Ubuntu)</center> </body> </html>
by taeric | 2025-06-05 13:39:14+00:00
I'm not sure I can sign on to this. In particular, this sounds kind of like an indictment of many algorithms. But, how many where there? And did any go on to give good results?

Considers, OCR was a very new field, such that a lot of the struggle was getting data into a place you could even try recognition against it. It should be no surprise that they were not able to succeed that often. It would be more surprising if they had a lot of different algorithms.
by nashashmi | 2025-06-05 13:39:28+00:00
We have shifted over to SaaS so much for convenience that we have lost sight of “our control”.

I imagine a 90s era software industry for today’s tech world: person buys a server computer, person buys an internet connection with stable ip, person buys server software boxes to host content on the internet, person buys security suite to firewall access.

Where is the problem in this model? Aging computers? Duplicating computing hardware for little use? Unsustainable? Not green/efficient?
by haswell | 2025-06-05 13:39:30+00:00
> DoorDashers on mopeds on sidewalks are annoying

No, they’re dangerous.

> but drivers in NYC kill hundreds, maim thousands, and hit tens of thousands every year.

This strikes me as an argument from whataboutism. I don’t have the stats, but I strongly suspect that the volume of cars is also significantly higher than the volume of bikes on top of the size/weight difference, so it is not surprising that the numbers are significantly higher. This doesn’t make the status quo with dangerous behavior on bikes ok to ignore.

Here in Chicago, I’ve been clipped by a bike while walking on the sidewalk, hit by a drunk cyclist while riding my bike, causing me to crash, and witness stupid close calls and ridiculous behavior on a daily basis. I’ve had more close encounters with bikes as a pedestrian than I’ve ever had with cars.

Clearly the stats show that vehicle deaths are far greater, but again, this is a numbers thing, and not a valid reason to ignore bike safety.

> Add to that the fact that NYPD is NOT focusing on dangerous behaviors or mopeds

Running red lights is dangerous. Period. The fact that many cyclists do it without causing an accident doesn’t make it less dangerous.

And I disagree that the police aren’t targeting dangerous behaviors here. If the goal is to stop rule violations by people who are doing dangerous things, that necessarily involves going after the people engaged in obvious rule violations.

Think about this from an enforcement perspective: if I see someone run a red that causes an oncoming driver with the right of way to slow down to avoid a collision, that’s pretty obviously a problem and worth citing.

But the line between “dangerous” and “safe” is often not clear cut, and so it doesn’t seem unreasonable to target rule violations across the board if the goal is to achieve a major behavior change among cyclists.

> The equivalent to ticketing a cyclist proceeding safely through an intersection without the light

Except most cyclists who run red lights do not do so safely, and I think this is a poor characterization of the issue and risk.

To reiterate an earlier point, I’m not sure I’m a fan of the how here, i.e. threatening people with an arrest warrant feels heavy handed. But I also understand why to some degree. I’m tempted to say I’d prefer some kind of law change such that riders have similar legal responsibility to respond to citations as drivers, but I also am not a fan of some of the potential implications of that, e.g. I don’t want bicycle licenses to become a thing.

I’m curious how you’d address the issue, if you can acknowledge for a moment that there is indeed a real issue that needs to be addressed.
by Corrado | 2025-06-05 13:39:40+00:00
I'm the same. I loved my 2020 Model Y when I bought it new and I love my 2020 Model X that I bought used. Both are the best cars I've ever owned. I know that everyone likes to complain about fit and finish but honestly I never noticed a single thing wrong with either of them. They are performant, silent, efficient, and the MX doors make my grandkids giggle (that's worth quite a bit :).

I keep looking for the next EV to buy but every one that I test drive seems lacking, mostly in the software area. Tesla has the software nailed and nobody else can seem to figure it out. I recently drove a Rivian R1S and really liked it, but the software was not great (for a $100K car) and it really disappointing me.

I really feel like Tesla does great work but their leader needs to go. He's smeared the name so badly that I fear it might never recover.
by sandworm101 | 2025-06-05 13:41:53+00:00
For the rich people who can even consider a tesla, there are no old cars. The average tesla owner would not be seen in any car more than a decade old. They lease. Older/used cars are someone elses domain. This is a shame because cars today can easily last 25+ years. If manufactuers wanted to, they could even biuld them to last much longer. But the new car market is dominated by people who lease and dump cars, not people who keep them around once the shine is gone.