frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Image to 3D AI Generator – Instant 3D Models from Photos

https://heydream.im/image-to-3d/
1•HeyDream_AI•45s ago•0 comments

Ubuntu Pro subscription – should you pay to use Linux?

https://optimizedbyotto.com/post/ubuntu-pro-subscription-pay-for-linux/
1•ottoke•1m ago•0 comments

A Post-American, Enshittification-Resistant Internet [video]

https://www.youtube.com/watch?v=39jsstmmUUs
1•anhner•2m ago•0 comments

Show HN: Blockframe v1.0.3 Released

2•DeusCodex•6m ago•1 comments

A Comprehensive Guide for Backing Up Apple Notes on Your Mac

https://appledispatch.substack.com/p/comprehensive-guide-for-backing-up-apple-notes
2•simonebrunozzi•8m ago•0 comments

Ask HN: Which features are you searching in an AI assistant?

1•ProtosGalaxias•9m ago•1 comments

The ungentle joy of spider sex [2020]

https://knowablemagazine.org/content/article/living-world/2020/the-ungentle-joy-spider-sex
1•joebig•13m ago•0 comments

Library of Congress issues RFP for web harvesting services

https://sam.gov/workspace/contract/opp/a2c5551af2b74c3d84c775032c83a55e/view
1•mellosouls•16m ago•0 comments

Attempting to rebuild Ramp's background agent system in a weekend (on a Mac VM)

https://eliot.blog/p/attempting-to-rebuild-ramps-background
1•ea016•17m ago•0 comments

Cow Tools

https://en.wikipedia.org/wiki/Cow_tools
2•docdeek•17m ago•1 comments

Pandas 3 Upgrade Playlist

https://www.youtube.com/playlist?list=PLbFHh-ZjYFwFWHVT0qeg9Jz1TBD0TlJJT
1•reuven•17m ago•0 comments

Gwtar: A static efficient single-file HTML format – Gwern.net

https://gwern.net/gwtar
2•Antibabelic•20m ago•0 comments

Functioning Open Source Version of Lovable/Bolt/Replit

https://github.com/polterguy/magic
1•ainiro•27m ago•0 comments

Exhausting the Clang Preprocessor

https://blog.vursc.org/cpp-dos.html
2•isoow•28m ago•0 comments

Show HN: GLM-Image Dense-knowledge AI Generator

https://www.glmimage1.com
1•Zach_HE•30m ago•0 comments

How to think about Gas Town

https://steveklabnik.com/writing/how-to-think-about-gas-town/
1•wyldfire•32m ago•0 comments

Burhan (TruthCert): a fail-closed "ship gate" for LLM outputs

https://github.com/mahmood726-cyber/Burhan
1•mahmood726•34m ago•0 comments

Factorioctl: Claude Code Plays Factorio

https://github.com/MarkMcCaskey/factorioctl
1•maoeurk•36m ago•0 comments

My Talking Pet AI

https://mytalkingpet.ai/
1•Evan233•38m ago•1 comments

"Clean Code" a Timeless Truth or a Myth We Keep Telling Ourselves?

https://www.youtube.com/watch?v=OjW_0ZRdN5E
1•aivarsk•44m ago•0 comments

Show HN: A curated library of prompt patterns for Nano models

https://banana-prompts.com/
1•icstiss•45m ago•0 comments

Show HN: Privacy-first JSON/YAML toolkit – 100% client-side, no server

https://tools.pinusx.com
1•dbhariprakash•56m ago•1 comments

Show HN: We ran a test–92% of local businesses don't show up in AI answers

https://getchatalyst.com/
1•Chatalyst•56m ago•0 comments

Email Writer – a tiny AI tool to write better emails, instantly

https://tryemailwriter.com/
1•mddanishyusuf•58m ago•0 comments

Ask HN: Freelance Qt C++

2•shchess•1h ago•1 comments

India to slash tariffs on cars to 40% in trade deal with EU

https://www.reuters.com/world/india/india-slash-tariffs-cars-40-trade-deal-with-eu-sources-say-20...
1•petethomas•1h ago•0 comments

Am I the only one who switches between ChatGPT, Gemini, and Claude?

https://twitter.com/oswarld_oz/status/2015432998406226289
2•haebom•1h ago•2 comments

TurboKV: A fast, embedded key-value store in Rust

https://github.com/hanshiro-dev/turbokv
2•rgbimbochamp•1h ago•0 comments

Ask HN: Running UPDATEs in production always feels heavier than it should

2•Lucy_Bai•1h ago•1 comments

The Space Propulsion Tier List [video]

https://www.youtube.com/watch?v=KnLUxrLPSMk
1•chii•1h 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•8mo ago

Comments

qwertox•8mo ago
Rule #1: Always put deletions behind a flag which is disabled for the first couple of test runs.
turtleyacht•8mo 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•8mo 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•8mo ago
Oh, I see. Having a flag to skip deletion during test runs is a good rule then.
rvz•8mo 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•8mo ago
Who runs such an AI generated script without checking the code first?
qwertox•8mo 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•8mo ago
Right so lets just always run the code as is ?
qwertox•8mo 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•8mo 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•8mo ago
In which Roko's Basilisk fires a warning shot.
jethronethro•8mo ago
This is why you test code or a script before running it for real. Live and learn, I guess ...