frontpage.
newsnewestaskshowjobs

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

Preliminary Design and Exploratory Evaluation

https://zenodo.org/records/23259916
1•SepehrGhanbari•44s ago•0 comments

Show HN: Open-source alternative to SageMaker BlazingText, in PyTorch

https://github.com/Fazel94/floret-torch
1•Fazel94•45s ago•0 comments

Anyone can DMCA strike anyone

https://dmca.net/news/fake-dmca-strikes/
1•FuriousNelly•1m ago•0 comments

Conditional "Async?/Await?" For TypeScript

https://github.com/metawrap-dev/TypeScript/blob/conditional-async-await/CONDITIONAL_ASYNC.md
1•DrMiaow•2m ago•0 comments

Samsung expects 780% quarterly operating profit jump on AI boom

https://www.france24.com/en/live-news/20261008-samsung-expects-780-quarterly-operating-profit-jum...
1•theanonymousone•3m ago•0 comments

Llama Factory

1•XxMaxNCheesexX•4m ago•0 comments

The Map: Mathematics Autoformalization Project

https://twitter.com/jdlichtman/status/2097182834985168992
1•Anon84•8m ago•0 comments

Show HN: Physics written into the architecture (learned Hamiltonian)

https://github.com/AwareLiquid/AwareLiquid-Physic
1•EverestAn•10m ago•0 comments

White House targets tech giants with H-1B visa suspension

https://www.washingtontechnology.com/companies/2026/10/white-house-targets-tech-giants-h-1b-visa-...
3•mastermedo•11m ago•1 comments

Community pushed OpenAI FFT proof to over 10^-4

https://github.com/CrocSwap/integer-mult-bounds
1•mcmoor•11m ago•0 comments

Vitalik Buterin on AIxMath and Crypto

https://twitter.com/VitalikButerin/status/2107976296320106851
1•porridgeraisin•12m ago•0 comments

BiCS NAND Close Up from Kioxia and SanDisk – ServeTheHome

https://www.servethehome.com/this-is-bics-nand-close-up-from-kioxia-and-sandisk/
1•rbanffy•14m ago•0 comments

The next gen of data infra optimization is about connecting cost to value

https://medium.com/@yanivleven/why-we-built-seemore-for-databricks-4a45ec1cd8b1
2•yanivleven•14m ago•1 comments

ML Drift: Google's open-source on-device GPU inference engine

https://developers.googleblog.com/ml-drift-next-gen-gpu-aiml-inference-at-the-edge/
1•joshcsimmons•15m ago•0 comments

The Dirty Secret Behind the Farmed Fish You Eat

https://www.nytimes.com/interactive/2026/10/08/magazine/farm-raised-fish-aquaculture-overfishing....
1•thelastgallon•15m ago•0 comments

I Save and Read Articles

https://www.kulman.sk/en/how-i-save-and-read-articles/
1•ig0r0•17m ago•0 comments

Docsy for AI Agents, Oh, and People Too

https://devops.com/docsy-for-ai-agents-oh-and-people-too/
2•CrankyBear•23m ago•0 comments

Stop Looking for the Best Way to Retrieve Context for AI Agents. Build a Router

https://manveerc.substack.com/p/context-retrieval-ai-agent
2•manveerc•24m ago•0 comments

Nvidia RTX Spark Pre-Orders Open: N1X Runs 45-80W in Laptops, 140W in Desktops

https://www.storagereview.com/news/nvidia-rtx-spark-pre-orders-n1x-laptop-desktop-tdp-mxc-dgx-sta...
3•rbanffy•24m ago•0 comments

What's on That Access Port?

https://danielmangum.com/posts/whats-on-that-access-port/
1•hasheddan•25m ago•0 comments

The reverts will continue until morale improves

http://peter.eisentraut.org/blog/2026/10/09/the-reverts-will-continue-until-morale-improves
2•hans_castorp•25m ago•0 comments

Nobel Peace Prize for 2026 to Navanethem "NAVI" Pillay

https://www.nobelprize.org/prizes/peace/2026/press-release/
17•Anon84•29m ago•2 comments

B-Trees Are Back: Engineering Fast and Pageable Node Layouts [pdf]

https://www.cs.cit.tum.de/fileadmin/w00cfj/dis/papers/btrees-are-back.pdf
2•mpweiher•31m ago•0 comments

The Programmer's Job in an AI World

https://www.dgt.is/blog/2026-05-27-programmers-job/
2•Bluestein•35m ago•0 comments

New Amazon Alexa Tablets with Alexa+ built in: details, availability, pricing

https://www.aboutamazon.com/news/devices/new-amazon-alexa-tablets-alexa-plus
1•rbanffy•36m ago•0 comments

OpenAI fires three safety researchers for "mishandling research information"

https://techcrunch.com/2026/10/08/fired-openai-safety-researchers-dispute-misconduct-claims-warn-...
14•trakkstar•40m ago•1 comments

Nanvix – Lightweight Sandbox

https://github.com/nanvix/nanvix
1•mau•41m ago•0 comments

If your team is happy, are you doing a good job?

https://charity.wtf/p/if-your-team-is-happy-are-you-doing
1•BerislavLopac•42m ago•0 comments

Lsnet – a fast TUI home network scanner in Rust

https://github.com/sanford/lsnet
1•wavesplash•43m ago•0 comments

The Agent Experience (Ax) Practitioner Playbook

https://developer.microsoft.com/blog/introducing-the-agent-experience-ax-practitioner-playbook/
1•waldekm•47m ago•1 comments