frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

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 ...

DiffusionBlocks: Training Neural Networks One Block at a Time

https://pub.sakana.ai/diffusionblocks/
1•sebg•43s ago•0 comments

LLVM: ZSTD-Compressed Binaries for "Significantly Reduced" Downloads

https://www.phoronix.com/news/LLVM-Zstd-Compressed-Binaries
1•doener•3m ago•0 comments

Autonomous cars will destroy jobs by 2025 (2015)

https://qz.com/403628/autonomous-cars-will-destroy-millions-of-jobs-and-reshape-the-economy-by-2025
4•mtuncer•8m ago•1 comments

Marjane Satrapi, author of 'Persepolis,' dies at 56

https://www.lemonde.fr/en/obituaries/article/2026/06/04/marjane-satrapi-author-of-persepolis-dies...
2•spankibalt•9m ago•1 comments

Lambda isn't leaking memory, your metrics are lying to you

https://engineering.taktile.com/blog/onnx-memory-usage-on-lambda/
2•tlarkworthy•9m ago•0 comments

Show HN: A built-in SQLite viewer for verifying your coding agents database work

https://lanes.sh/blog/whats-new-v042
4•s-xyz•9m ago•0 comments

Apple's Overhauled Siri Will Reportedly Run on Nvidia's Blackwell Chips

https://www.macrumors.com/2026/06/04/apple-siri-rely-on-google-nvidia-chips/
1•tosh•10m ago•0 comments

Show HN: ssh late.sh - a cozy command-line Clubhouse for computer people

https://late.sh
2•bl4ckbe4r•11m ago•2 comments

As AI gets better, it reveals an empty promise (gift link)

https://www.theverge.com/ai-artificial-intelligence/942629/as-ai-gets-better-it-reveals-an-empty-...
2•heyts•12m ago•0 comments

LLM memory systems benchmark: high recall near-zero precision for tested systems

https://arxiv.org/abs/2605.11325
2•decorner•15m ago•0 comments

NanoClaw founder on OpenClaw's 800k lines of code, sloppiness and poor security

https://thenewstack.io/nanoclaw-openclaw-agent-security/
1•nachopa•15m ago•0 comments

X: Inauthentic Behaviors

https://help.x.com/en/rules-and-policies/authenticity
1•throwaway2027•17m ago•1 comments

git-fsmonitor--daemon

https://manpages.ubuntu.com/manpages/stonking/man1/git-fsmonitor--daemon.1.html
1•tosh•20m ago•0 comments

Training Data for Bio AI Models

https://research.dimensioncap.com/p/on-training-data-for-bio-ai-models
1•sebg•21m ago•0 comments

Free NIS2 CEO training course

https://nisd2.eu/training/nis2-ceo
1•cjhisey•21m ago•0 comments

Foldable Reflectarray Turbocharges Cubesats' Data Rates

https://spectrum.ieee.org/cubesats-origami-antenna-foldable-reflectarray
1•rbanffy•26m ago•0 comments

European Commission Adopts OceanEye

https://eurocean.org/np4/2087.html
1•_____k•30m ago•0 comments

Replacing Bash with Swift in an AI Harness

https://alejandromp.com/development/blog/replacing-bash-with-swift-in-an-ai-harness/
2•ianhxu•34m ago•0 comments

Miasma NPM Supply Chain Attack: Self-Spreading Worm via Phantom Gyp

https://www.stepsecurity.io/blog/binding-gyp-npm-supply-chain-attack-spreads-like-worm
1•gaurang_tandon•36m ago•0 comments

RIP Jim Rutt (1953-2026), and Thoughts on Philanthropy and Culture-Building

https://lydialaurenson.substack.com/p/rip-jim-rutt-1953-2026-and-thoughts
1•sebg•38m ago•0 comments

Show HN: App that shows your screen-free hours every time you look at your phone

https://apps.apple.com/gb/app/oh-my-hours/id6760450002
3•mindfulbun•44m ago•0 comments

Latency Numbers Every Programmer Should Know

https://colin-scott.github.io/personal_website/research/interactive_latency.html
3•tosh•46m ago•1 comments

Root access for Harmony Hubs and local web mangagement

https://github.com/Ripthulhu/harmony-hub-root
1•lakid•50m ago•1 comments

Digital Independence: EU Plans Strict Access to State IT Structures

https://www.heise.de/en/news/Digital-Independence-EU-Plans-Strict-Access-to-State-IT-Structures-1...
3•doener•54m ago•0 comments

AI enthusiasts are in a race against time, AI skeptics in a race against entropy

https://charitydotwtf.substack.com/p/ai-enthusiasts-are-in-a-race-against
2•adunk•57m ago•1 comments

Coreutils for Windows Overview – Microsoft Learn

https://learn.microsoft.com/en-us/windows/core-utils/overview
2•rbanffy•59m ago•2 comments

Grep this: Microsoft grafts (most) Linux commands onto Windows

https://www.theregister.com/os-platforms/2026/06/03/grep-this-microsoft-grafts-most-linux-command...
2•rbanffy•1h ago•0 comments

StereoTales: Multilingual Open-Ended Stereotype Discovery in LLMs

https://research.giskard.ai/blog/stereotales/
2•mattbit•1h ago•1 comments

XLclick Add-In

https://xlclick.com/
1•getseofix•1h ago•0 comments

Train your own LLM? Here's what happens

https://www.exasol.com/blog/train-your-own-llm/
6•ROSEDOLA•1h ago•0 comments