frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

AI Writing Code Makes Premature Optimization Viable

https://zacharyernst.medium.com/how-ai-software-development-changes-the-premature-optimization-pa...
1•zernst3•1m ago•0 comments

Show HN: Running a vision model on every screenshot on-device

https://github.com/ayushh0110/ScreenMind/blob/main/README.md
2•alexkarpathy•1m ago•0 comments

I Understand Nostalgia

https://yordi.me/i-finally-understand-nostalgia/
1•speckx•2m ago•0 comments

Boomer Radio

https://www.myboomerradio.com/
1•mooreds•3m ago•0 comments

Ask HN: GitHub OAuth Flows Failures?

1•jakub_g•4m ago•0 comments

Why don't people use chatbots?

https://www.pewresearch.org/internet/2026/06/17/why-dont-people-use-chatbots/
1•mooreds•4m ago•0 comments

Time to Power

https://cloudedjudgement.substack.com/p/clouded-judgement-62626-time-to-power
1•mooreds•4m ago•0 comments

When "Hello" Means Trouble: The Telegram Scam Epidemic

https://medium.com/@brothke/when-hello-means-trouble-the-telegram-scam-epidemic-1fdc042607bf
1•benrothke•5m ago•0 comments

27,000 free expert AI agents, now inside your editor via MCP

https://prompteneering.com/
1•launchcore•6m ago•0 comments

Gor Nishanov (1971-2026)

https://herbsutter.com/2026/06/28/gor-nishanov-1971-2026/
2•leeter•7m ago•1 comments

Show HN: Certificate Transparency search that groups related certificates

https://certobserver.com/ct-search
1•rellem•7m ago•0 comments

Show HN: Lorentzian CSS Duality in Causal Diamond Quantum Error-Correcting Codes

https://github.com/ynnk-research/A-Lorentzian-CSS-Duality-in-Causal-Diamond-Quantum-Error-Correct...
1•ynnk•8m ago•0 comments

As the Tide Turns Against Putin, Beware the Drowning Man

https://foreignpolicy.com/2026/06/25/russia-ukraine-war-putin-escalation-nato-europe/
2•baxtr•9m ago•1 comments

Europe heatwave halts Leipzig trams as soaring temperatures damage tracks

https://www.firstpost.com/world/europe-heatwave-halts-leipzig-trams-as-extreme-heat-damages-track...
2•no_news_is•9m ago•1 comments

Farming is Why Humanity is Fucked

https://brennan.day/farming-is-why-humanity-is-fucked/
1•surprisetalk•11m ago•0 comments

Ask HN: Has open source become the best business model?

1•adithyaharish•14m ago•0 comments

We Reduced Development Time by 50%, Users Didn't Notice

1•Semi_hayat•14m ago•0 comments

The Secret Life of Computers – The Chip Letter

https://thechipletter.substack.com/p/the-secret-life-of-computers
1•rbanffy•15m ago•0 comments

NASA races to save Swift telescope

https://www.latimes.com/world-nation/story/2026-06-28/nasa-races-to-save-swift-telescope-with-dar...
1•mrhappyhappy•15m ago•0 comments

Cognitive Bias

https://en.wikipedia.org/wiki/Cognitive_bias
1•abixb•15m ago•0 comments

SQL Alerting in Cloud Monitoring Observability

https://cloud.google.com/blog/products/management-tools/alert-with-sql-in-cloud-monitoring-observ...
1•mjs06•17m ago•0 comments

The Humanoid That Runs Until Someone Steps In

https://atomsfrontier.substack.com/p/the-humanoid-that-runs-until-someone
2•jpatel3•17m ago•0 comments

ePulz.io

https://epulz.io/
3•tiptech•20m ago•0 comments

Making a Meal of the Family Meal: Cooking Dinner [audio]

https://abundance.institute/our-work/everyday-abundance-making-a-meal-of-the-family-meal-cooking-...
1•mooreds•21m ago•0 comments

A Beginner's Guide to Reopening the Strait (Of Hormuz)

https://www.commoditycontext.com/p/a-beginners-guide-to-reopening-the-strait
1•mooreds•21m ago•0 comments

AI-Enhanced Writing

https://enocc.com/blog/2026-04-09-on-ai-enhanced-writing.html
1•speckx•22m ago•0 comments

Pizza wheels are bad, Japanese toilets are great

https://www.noahpinion.blog/p/pizza-wheels-are-bad-japanese-toilets
1•mooreds•22m ago•0 comments

Ask HN: AI robbed my joy of reading books?

3•hasudon7171•25m ago•4 comments

Search, Discovery, Pills, and Portals

https://contraptions.venkateshrao.com/p/search-discovery-pills-and-portals
1•surprisetalk•25m ago•0 comments

Route Phone Calls to an AI Agent with the Telnyx Voice API

https://telnyx.com/resources/route-phone-calls-ai-agent
1•harpreetseehra•26m ago•0 comments
Open in hackernews

I asked Gemini for a script to move files to Cloudflare R2. It deleted them

https://twitter.com/levelsio/status/1921974501257912563
6•bundie•1y ago

Comments

qwertox•1y ago
Rule #1: Always put deletions behind a flag which is disabled for the first couple of test runs.
turtleyacht•1y ago
It was truncating filenames, so /pics/1003-46.png overwrote /pics/1003-45.png because both were renamed /pics/1003-.png, or something like that.
qwertox•1y ago
Truncating file names for the target. Then it proceeded to delete the source file. "Successfully deleted local file: ..."

I mean, look at the printout. It shows that it created the remote file with the truncated filename, then deletes the local file with the correct filename.

turtleyacht•1y ago
Oh, I see. Having a flag to skip deletion during test runs is a good rule then.
rvz•1y ago
Recently there was a story about an updater causing a $8,000 bill because there was a lack of basic automated tests to catch the issue. [0]

The big lesson here is that you should actually test the code you write and also write automated tests to check any code generated by an LLM that the code is correct in what it does.

It is also useless to ask another AI to check for mistakes created by another LLM. As you can see in the post, both of them failed to catch the issue.

This why I don't take this hype around 'vibe-coding' seriously since not only it isn't software engineering, it promotes low quality and carelessness over basic testing and dismisses in checking that the software / script works as expected.

Turning $70 problems found in development into $700,000+ costs in production.

There are no more excuses in not adding tests.

[0] https://news.ycombinator.com/item?id=43829006

victorbjorklund•1y ago
Who runs such an AI generated script without checking the code first?
qwertox•1y ago
To be fair, the code Gemini outputs in AI Studio is so extremely verbose that it is almost impossible to read through it.

It turns 10 lines of code which is perfectly fine to reason about into 100 lines of unreadable code full of comments and exception handling.

weatherlite•1y ago
Right so lets just always run the code as is ?
qwertox•1y ago
No. Not at all. I've settled to discussing my code with Gemini. That way it works very well. I explicitly say "Comment on my code and discuss it" or "Let's discuss code for a script doing this and that. Generate me an outline and let's see where this leads. Don't put comments in the code, nor exception handling, we're just discussing it".

Or you create elaborate System Instructions, since it adheres to them pretty well.

But out-of-the-box, Gemini's coding abilities are unusable due to the verbosity.

I've even gone so far to tell it that it must understand that I am just a human and have limited bandwidth in my brain, so it should write code which is easy to reason about, that this is more important than having it handle every possible exception or adding multiline comments.

rsynnott•1y ago
> To be fair, the code Gemini outputs in AI Studio is so extremely verbose that it is almost impossible to read through it.

In which case, it should simply be considered unusable. Like, the sensible response to "tool is so inadequate that there is no reasonable way to make sure its output is safe" is to _not use that tool_.

rsynnott•1y ago
In which Roko's Basilisk fires a warning shot.
jethronethro•1y ago
This is why you test code or a script before running it for real. Live and learn, I guess ...