MurphyA/hacker-news huggingface dataset:
Show HN: Dwarfreflect – Extract Go function parameter names at runtime
by matteogrella | 2025-07-30 01:39:57+00:00
While working on openai-agents-go, I wanted users to define tools by passing in a plain Go function and have the agent figure out the inputs automatically.

But I ran into a gap: Go's reflect gives you parameter types and positions, but not the actual names you wrote.

So I built dwarfreflect: it parses the DWARF debug info embedded in Go binaries (unless stripped) to recover real function parameter names at runtime.

This made it easy to: - Bind incoming JSON/map data to actual parameter names - Build a clean API without boilerplate

Try it out here: https://github.com/matteo-grella/dwarfreflect

Happy to hear thoughts, ideas, use cases, or bug reports.
by koito17 | 2025-07-30 01:40:01+00:00
Since Japan has exactly one timezone and most services are intended for use within Japan, many Japanese programmers are unaware of timezone-related logic. I've frequently encountered Japanese sites store dates as OffsetDateTime instances (rather than UTC Instants), and have frequently seen subtle bugs, like a web app's backend returning UTC+9 timestamps, and then subsets of the frontend format the date according to the user's local time. I witnessed this last week on a fairly big concert ticket website. The lottery application datetime was simply formatting the OffsetDateTime returned by backend. Then, for some reason, the lottery result announcement datetime was being passed through a different formatting function. Two adjacent timestamps were in different timezones and there were no visual indications of this. I learned a lot about the site's API when investigating. I later reported the bug and was told the service is not intended for use outside of Japan, so they won't fix.

I've also encountered games where device local time results in bugs when certain features are gated to durations within Japanese Standard Time. For one particular game, I contacted support and the response was similarly "this service is intended for use within Japan; please ensure your device time is set to Japanese Standard Time." The support representative actually went further and told me, "if you are using this service outside of Japan, then we cannot make any guarantees on [the app's] behavior or resolve issues."

To most programmers in the US or Europe, storing all dates as UTC and localizing datetimes in the frontend may seem like "common sense", but this is essentially 異文化 to many Japanese programmers, for lack of a better way to phrase it.
by fblp | 2025-07-30 01:40:03+00:00
Here are some live streams.. No action yet. Fingers crossed!

From a helicopter Japanese KATU news https://www.youtube.com/live/mBQHNV7cqrM?si=lwqB5YHknA7KUTY_

Webcams https://www.youtube.com/live/5pTPKHJxQ4g?si=xWe5MkLKIZ3N5I8D

Hawaii news https://m.youtube.com/watch?v=lVy5nLWruu0&pp=ygUSSmFwYW4gdHN...
by oatmeal1 | 2025-07-30 01:41:36+00:00
Here is a video tutorial on hosting Mason Bees - https://www.youtube.com/watch?v=VQhg82f-OPI

You can start out simple, but you might need to be more involved if you want to prevent the spread of parasites since they are more easily spread when all the mason bee larvae are in one place.
by DimmieMan | 2025-07-30 01:41:58+00:00
The JS world leaves me more and more perplexed.There's a similar rant about forms, but why is this so hard? Huge amount of dev time spent being able to execute asynchronous functions to the backend seamlessly yet pretty much every major framework is just rawdog the url string and deal with URLSearchParams object yourself.

Tanstack router[1] provides first class support for not only parsing params but giving you a typed URL helper, this should be the goal for the big meta frameworks but even tools like sveltekit that advertise themselves on simplicity and web standards have next to zero support.

I've seen even non JS frameworks, with like fifteen lines of documentation for half baked support of search params.

The industry would probably be better off if even a tenth of the effort that goes into doing literally anything to avoid learning the platform was spent making this (and post-redirect-get for forms) the path of least resistance for the 90% of the time search params are perfectly adequate.

I don't use HTMX but i do love how it and its community are pushing the rediscover of how much simpler things can be.

[1] https://tanstack.com/router/latest/docs/framework/react/guid...
by dgrin91 | 2025-07-30 01:42:09+00:00
Thats not what other people's kingdoms means. Basically all non-trivial apps are already built on VPSs. The other people's kingdoms refers to how people interact with your app. Take Zynga - they were not literally running on FB servers, I'm sure they had their own VPS, but their games just had 0 reach outside of FB. When FB decided to change things Zynga just got fucked, VPS or not.
by AdieuToLogic | 2025-07-30 01:43:40+00:00
On a related note, I've found combining htmx with Parsley[0] to be very powerful for adding client-side validation to declarative server-rendered HTML form definitions. All that is needed is a simple htmx extension[1] and applicable data attribute use.

0 - https://parsleyjs.org/doc/index.html

1 - https://htmx.org/docs/#extensions
by jrockway | 2025-07-30 01:45:02+00:00
The iPhone blurred background is completely synthetic. It uses multiple cameras to build a depth map of the scene, and then blurs whatever isn't at the depth of the subject of the photo.

If you're asking "how do you do", you can select "portrait" when taking the photo, or go to the photo in your gallery after the fact, pick "edit", pick "portrait", and choose a fake aperture ("f/1.4") and focus point to use. The results are ... mid.
by BakeInBeens | 2025-07-30 01:45:23+00:00
It's not personal experience. It's a segment of the market and also a lack of familiarity. The Macbook Air ships with only USB-C Thunderbolt and a large group of people are fine buying a dock to connect it or HDMI to thunderbolt.

While reading this article I thought it'd be interesting to read this on Android desktop mode and went looking for a cable while forgetting I could just unplug my USB-C laptop.
by red369 | 2025-07-30 01:46:49+00:00
The worse case with the sedan, of going teeth first through the windshield and into the back seat, sounds a lot better than the SUV alternative for pedestrians!

I know you're not making a comment either way regarding pedestrian safety with sedans/SUVs in your post, but there's something that caught my attention about the graphic description for the sedan, with just a hint hanging there that the SUV would be worse.

Full disclosure: I'm biased against SUVs. Something about the sheer size seems wasteful. They also make more sense to be common in some places than others, and I haven't lived anywhere recently that I think they make sense.
by krisoft | 2025-07-30 01:49:03+00:00
> We can easily cherry pick our humans to fit any hypothesis about humans, because there are dumb humans.

Nah. You would take a large number of humans, make half of them take the test with distractions and half without distracting statements and then you would compare their results statistically. Yes there would be some dumb ones, but as long as you test on enough people they would show up in both samples rougly at the same rate.

> become confused in ways that humans in that problem-solving class would not be.

You just state the same thing others are disputing. Do you think it will suddenly become convincing if you write it down a few more times?
by stx5 | 2025-07-30 01:49:21+00:00
Telling you a joke that's very popular in China, we call it a 'Soviet Joke'. --- American: "Why did you come to America?" Soviet: "I came to learn your brainwashing techniques." American: "Nonsense! We're a free and democratic country—no brainwashing here!" Soviet: "Exactly! That's precisely what I want to learn!"
by marcus_holmes | 2025-07-30 01:49:48+00:00
> What is the next step here?

The next step will be to walk you through clearing your browser cache and cookies.

Because the CS rep has no idea who you are, and your protestations of competency fall on deaf ears because they've dealt with 23325424 people in the last year that claimed to know what they're doing but actually didn't at all.

Their goal is to get through the script, because getting through the script is the only way to be sure that it's all been done the way it needs to be done. And if they don't run through the script, and refer you to the next level of support, and it turns out that you hadn't actually cleared your browser cache and cookies, then that's their fault and they get dinged for it.

I always approach these situations with this understanding; that the quickest way to get my problem solved is to help them work through their script. And every now and then, just occasionally, working through the script has shown up something simple and obvious that I'd totally missed despite my decades of experience.
by dylan604 | 2025-07-30 01:50:14+00:00
Did your grandmother or friend get their issues resolved? If yes, not a story. If no, then potentially a story if they make enough noise.

But sure, you go right ahead and just roll over and take shitty service and then go ahead and add a tip too while you at it. The rest of will continue to make noise and call a spade a spade. Some of us might even tell them emperor he has no clothes on
by mortsnort | 2025-07-30 01:50:15+00:00
I get the MS Copilot hate, but Perplexity, Dia, Open AI and others are entering the AI browser space. I don't think Google and MS can just sit it out and hope AI browsers don't catch on.

At this point most of us have a ChatGPT tab (or 20) open at all times- it's more convenient just having it on the page. It's also genuinely revolutionary when integrated into things like Colab notebooks.
by makeitdouble | 2025-07-30 01:50:39+00:00
It might not be for everyone, but digging in the camera controls helped tremendously for me.

In particular, manual focus with the actual focus scale (no tap around on some surrogate object) and in-focus indicator, control to set a lower ISO in scenes where the phone wants to pull a faster image, or set a higher shutter speed even on darker situations.

Or on the pro line you get the option to stop automatic lens switching, which gives a lot more control (stay on the best lens/sensor and adjust for it yourself, instead of the phone trying to be clever)

All in all it stops being a point and shoot, and there will be a more missed pictures because of wrong settings, but the highs are also a lot higher in my experience. And it can go back to the "all auto" mode anytime.
by decimalenough | 2025-07-30 01:51:21+00:00
It's complicated. Tsunami forecasting is a very inexact science and "3m" means "very large".

The average actual height in eastern Japan (Tohoku) was 4-6m, but there were peaks up to 20m in places like Ofunato where the local geography funneled all the water upwards.

https://en.wikipedia.org/wiki/2011_T%C5%8Dhoku_earthquake_an...
by rhet0rica | 2025-07-30 01:51:30+00:00
Severo-Kurilsk, an island town destroyed by a similar tsunami in 1956, lost its port again: https://en.wikipedia.org/wiki/Severo-Kurilsk — the rest of the settlement was rebuilt on higher ground, leaving only the port vulnerable.

The settlement is notable as having belonged to the Japanese in late 19th and early 20th centuries, who once relocated islanders there. Russian Wikipedia says they were Ainu.
by MongooseStudios | 2025-07-30 01:51:31+00:00
Seen the news recently? People have been discovering that the LLMs are snake oil lately. I think we are only starting to see how truly bad they are in reality. "AI takes all our jobs someday" almost certainly. It's not today, and I'm pretty sure LLMs aren't gonna get us there.

If you're tired of working for the kind of idiot that sees "AI will replace everyone in your company for cheap" and starts drooling I don't blame you. I'm pretty sick of the industry too.

But I don't think AI is a good reason to quit.
by tptacek | 2025-07-30 01:52:02+00:00
(Without re-engaging on any of this, I certainly didn't mean to bait you, but see how you could get there; I have a take on your comments that I wouldn't like to hear about mine, either. I'll try harder not to sound like I'm barbing you, and, as part of that, I'm getting the hell out of this thread.)
by kinghajj | 2025-07-30 01:52:06+00:00
It seems to work correctly if you include the last two lines in the first commit.

jj-workshop on  HEAD (2cab0f1) [!] > jj @ unwquwxk samfredrickson@gmail.com 2025-07-29 18:47:18 f7db7c8a │ Part 2 first ○ wskswvnt samfredrickson@gmail.com 2025-07-29 18:47:13 git_head() 2cab0f16 │ Part 2 second ◆ pnxpmvpz jkoppel@users.noreply.github.com 2025-07-27 21:54:50 main 4d04bcef │ Update README.md with link to JJ homepage ~ jj-workshop on  HEAD (2cab0f1) [!] > jj show w --git Commit ID: 2cab0f167c64cea1d23407e12196fa6d1b8aab25 Change ID: wskswvntlvtwzqutoowyqltsouklzmqr Author : Sam Fredrickson <samfredrickson@gmail.com> (2025-07-29 18:34:52) Committer: Sam Fredrickson <samfredrickson@gmail.com> (2025-07-29 18:47:13) Part 2 second diff --git a/part1/foo.txt b/part1/foo.txt index 067f76475a..56c99c9cc3 100644 --- a/part1/foo.txt +++ b/part1/foo.txt @@ -6,5 +6,5 @@ * The best operating system is ______ * The best text editor is ______ -* The best kind of phone is _______ -* The best superhero is ___________ +* The best kind of phone is nothing +* The best superhero is nobody jj-workshop on  HEAD (2cab0f1) [!] > jj show u --git Commit ID: f7db7c8a5f37df8c29e08a6697ca6cd59c2313c4 Change ID: unwquwxklkprlqoksmxzvoumspnmnknk Author : Sam Fredrickson <samfredrickson@gmail.com> (2025-07-29 18:34:52) Committer: Sam Fredrickson <samfredrickson@gmail.com> (2025-07-29 18:47:18) Part 2 first diff --git a/part1/foo.txt b/part1/foo.txt index 56c99c9cc3..f48ae9b3f9 100644 --- a/part1/foo.txt +++ b/part1/foo.txt @@ -4,7 +4,7 @@ Maybe fill this out? -* The best operating system is ______ -* The best text editor is ______ +* The best operating system is Linux +* The best text editor is neovim * The best kind of phone is nothing * The best superhero is nobody
by djao | 2025-07-30 01:54:43+00:00
That's what OP said. Netflix and its customers have opposing interests. The customers want to use VPNs, whereas Netflix doesn't want to allow VPNs. The customers don't care about following anti-piracy laws, whereas Netflix wants to enforce them.

The situation is the opposite for age verification laws. In this case, both porn sites and their customers have aligned interests. Both sides want to allow VPNs. Both sides want to abolish age verification laws, and if that is not possible, to circumvent them.
by Brajeshwar | 2025-07-30 01:54:45+00:00
For those not going for this one, should get a bunch of USB-C to Lightning adapter. I bought a few packs and they are all over the house, the car, tech pouch, etc. I stopped caring about Lightning cables. Lighting pins are going to be needed for a pretty long time. The TV Remote is going to be there for quite a while, the mice, the keyboard.
by danaris | 2025-07-30 01:55:28+00:00
Thing is, all the states are purple.

I've never seen numbers for 2024, but I have for previous recent national elections, and the most either party has in any state is roughly 70%. So at the statewide level, that's the total skew you're looking at.

In local elections, things can be more one-sided; I imagine there are a fair number of rural counties that would have only a handful of blue voters (but out of a total of, y'know, a few thousand voters in the whole county).
by mrheosuper | 2025-07-30 01:56:22+00:00
what do you mean "alibaba garbage", Have you checked them ?

The lenovo 12.7 pro 2025 has D8300 cpu, which is on par with QC 8g2. Oppo Pad flagship using 8 elite CPU, and you still think they have trouble with performance ?

What a fucking nonsense.
by lovecg | 2025-07-30 01:56:27+00:00
I’m comparing X-Plane 12 to MSFS 24. MSFS 24 is a great aid and near picture perfect when preflying real world routes, with 3D buildings and everything, and the latest G1000 implementation is pretty complete too. But X-Plane still wins on physics realism and systems fidelity. I’d be happy if there was a way to combine the strengths of the two in one simulator somehow..
by specproc | 2025-07-30 01:56:50+00:00
I'm getting an error so can't check it out properly, but from what I've seen of 2D to 3D so far, this sort of tech is very much still in the "nice idea" phase.

There's such a big difference in quality between human-designed models. Some fantastic stuff out there, shout out to PiperMakes, LazyForger, Beastarium and Rescale, but so much that's really derivative and pedestrian.

I've got limited hobby time. Whilst I like the idea of running up something from a sketch, I'm confident these models won't touch the quality of lesser human designers for some time, if at all. I'd rather support an artist and paint something great.
by t-3 | 2025-07-30 01:57:54+00:00
Maybe it's the prevalence of noise-canceling headphones, especially the modern airpods-type bluetooth kind with active noise canceling. When "everybody" can turn off the noise on demand, noise is no problem. They also reduce the sensitivity of the user to their own noise, which might lead to making more. The modern culture of conspicuous consumption that demands loud and flashy probably has a part to play as well.
Show HN: I built a satirical Dowry Calculator to highlight a harmful tradition
by airobus | 2025-07-30 01:57:56+00:00
Hi HN,

I've created a simple, non-commercial web tool called the Dahej (Dowry) Calculator.

Growing up hearing stories within my community about the immense pressure and financial ruin caused by the dowry system in India, I wanted to find a way to talk about this difficult topic. Direct confrontation often shuts down dialogue, so I chose satire as a way to approach it.

The calculator is intentionally absurd; it generates a monetary 'worth' based on real-world (and often ugly) factors like profession, salary, and even caste. The goal isn't to be accurate, but to be a conversation starter. It's an educational tool designed to hold up a mirror to a practice that treats marriage like a transaction.

There are no ads, trackers, or sign-up requirements. It's just a simple page built with React.

I'm here to answer any questions and would love to hear your feedback on using satire and technology for social commentary.

Thanks for checking it out.
by VTimofeenko | 2025-07-30 02:02:14+00:00
I'm kinda in the same boat. Built quite a few kits back in the day but never painted them (at least to a quality I would admit to). I picked up a ww1 British tank some time ago and hope to finally get it right. When I was in the store, however, I'd say the majority of customers in the model kit section were teenagers.

Maybe there's just more hobbies available these days so fewer folks end up building the models.
by qingcharles | 2025-07-30 02:02:26+00:00
In case OP reads this. I tried it again with a harder task with my friend's company. It got into a good conversation about materials and permits, but then my friend asked if they had a survey done. At that point the AI abruptly hung up and asked me in the chat if I had a survey. Obviously this wasn't ideal. It was doing great until that point, though. It should have just said that it didn't know and it would have to get back to the person with that information, and tried to see how much further it could get without that info.
by jsjohns2 | 2025-07-30 02:02:47+00:00
It always strikes me how much commonality exists across different software engineering disciplines—not to mention across fields outside of engineering (e.g., how double-entry bookkeeping mirrors immutable design principles, or how federalism resembles class-based OOP).

Great to see an attempt at describing this phenomenon. A great start to what will surely be an awesome resource.
by OutOfHere | 2025-07-30 02:02:53+00:00
1. A regular hash algorithm is already very safe against quantum computing if the hash is sufficiently long, which it easily is or can be for passwords. A special hashing algorithm isn't needed for quantum safety. At worst the hash length has to be doubled for ultimate quantum safety. The assertion of needing a special hashing algorithm is bogus.

2. It is risked in practice.

3. It too is risked in practice.
by apatheticonion | 2025-07-30 02:03:11+00:00
> Seen the news recently? People have been discovering that the LLMs are snake oil lately.

Sources? That would cheer me up for sure, haha.

> If you're tired of working for the kind of idiot that sees "AI will replace everyone in your company for cheap" and starts drooling I don't blame you. I'm pretty sick of the industry too.

Yeah you're probably right and I suppose this is more a factor than AI itself.

The company I work for has been stack ranking for about a year and a half. It's exhausting and, combined with the onslaught of AI hype, it's pretty easy to slip into a pattern of thought where I feel I contribute no value.

So AI might just be the proverbial straw.

It also doesn't help that the engineering landscape in Australia is a bit lacklustre when it comes to anything more complicated than web/app development. Would love to work on operating systems or crazy hardware projects like piloting software or robotics.
by quietthrow | 2025-07-30 02:04:28+00:00
I agree with all that you say. It’s an incredible time indeed. Just one thing I can’t wrap my mind around is privacy. We all seem to be asking sometimes stupid and some times incredibly personal questions to these llms. Questions that we may not even speak out loud from embarrassment or shame or other such emotions to even our closest people. How are these companies using our data ? More importantly what are you all doing to protect yourself from misuse of your information? Or is it if you want to use it you have to give up such privacy and uncomfortableness ?
by brightmood | 2025-07-30 02:05:13+00:00
TLDR if you are skilled on Linux use archlinux vanilla instead of their opinionated version.

- Super unstable if you use as a workstation.

- Purely gaming oriented.

- Constant untested things pushed into their cachyos-settings repo

- Bugs with their kernels they don't care for.

- Dismissal as it is not 'meant for workstations'
Ask HN: How to ask questions to LLMs privately?
by quietthrow | 2025-07-30 02:06:13+00:00
It’s an incredible time we live in. We can ask any question we want the previously we may have been embarrassed to ask and get an answer and learn and improve ourselves daily. Just one thing I can’t wrap my mind around is privacy. We all seem to be asking sometimes stupid and some times incredibly personal questions to these llms. Questions that we may not even speak out loud from embarrassment or shame or other such emotions to even our closest people. How are these companies using our data ? More importantly what are you all doing to protect yourself from misuse of your information? Or is it if you want to use it you have to give up such privacy and uncomfortableness ? What are some solutions available today that people are using there are somewhat privacy, preserving or fully privacy preserving?
by eadmund | 2025-07-30 02:06:57+00:00
What I would want is to GET http://example.com/item/448828 with an Accept header of ‘application/s-expression,application/json;q=0.1’ instead of retrieving the HTML representation of the resource. HTTP is the API.

I also want http://example.com/application/with/path?and=parameters and http://example.com/application to return Link headers with rel=canonical appropriately.

I’d also like world peace.
by Razarizv1 | 2025-07-30 02:07:56+00:00
Lately I’ve been really interested in how meme tokens are evolving beyond just hype. There’s a noticeable shift from saturated ecosystems like Solana to smaller, faster networks where creators have more control and less noise.

It reminds me of early crypto days — more experimentation, less gatekeeping. Curious to see where this momentum heads next.