frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

AI Darwin Awards Launch

https://www.theregister.com/2025/09/09/ai_darwin_awards/
1•jjgreen•1m ago•0 comments

Ask HN: E-ink devices with real AI/LLM integration?

1•arbayi•1m ago•0 comments

Treat Your Career Like a Product

https://www.leadinginproduct.com/p/treat-your-career-like-a-product
1•benkan•3m ago•0 comments

I'm going to buy bybit you add me to the account verified

1•Fahadidris•4m ago•0 comments

QuantumScape and PowerCo Debut Solid-State Batteries in Ducati Motorcycle

https://www.quantumscape.com/quantumscape-and-powerco-debut-solid-state-batteries-in-ducati-motor...
1•taubek•4m ago•0 comments

Show HN: I built a tool to create ad variations to fight ad fatigue

https://vibecarousels.com/
1•Lindadao•4m ago•0 comments

Why monsoon rains have been so deadly in India this year

https://www.bbc.com/news/articles/c9wdr08wq2zo
1•Brajeshwar•7m ago•0 comments

Aurora season and the Russell-McPherron effect

https://earthsky.org/sun/aurora-season-auroras-equinox-connection/
1•NKosmatos•9m ago•1 comments

Politics, Payrolls, and Policy: Markets Brace for a Volatile September

https://nxtribes.com/blog/politics-payrolls-and-policy-markets-brace-for-a-volatile-september
1•douglas5•9m ago•1 comments

US tech companies enabled the surveillance and detention in China

https://apnews.com/article/chinese-surveillance-silicon-valley-uyghurs-tech-xinjiang-8e000601dadb...
1•c420•12m ago•1 comments

Wikimedia will sunset separate mobile domains

https://www.mediawiki.org/wiki/Requests_for_comment/Mobile_domain_sunsetting/2025_Announcement
1•Recursing•13m ago•0 comments

Show HN: Smile – an open source language for structuring prompts

https://github.com/DrThomasAger/smile
1•DrThomasAger•14m ago•0 comments

Anthropic Judge Rejects $1.5B AI Copyright Settlement

https://news.bloomberglaw.com/ip-law/anthropic-judge-blasts-copyright-pact-as-nowhere-close-to-done
2•nobody9999•14m ago•1 comments

Built an AI news agent that stops information overload

https://reckoning.dev/posts/news-agent-reactive-intelligence
2•sadanand4singh•15m ago•1 comments

Indexing Jsonb in PostgreSQL

https://www.crunchydata.com/blog/indexing-jsonb-in-postgres
1•fanf2•19m ago•0 comments

Seedream 4.0

https://seed.bytedance.com/en/seedream4_0
2•BoorishBears•21m ago•0 comments

Dev3000 – The browser for AI-based development by Vercel

https://d3k.vercel.sh/
1•mustaphah•22m ago•0 comments

RSA Signhash exception since last W11 update

https://github.com/microsoft/SymCrypt/issues/52
1•osivertsson•22m ago•0 comments

Disaggregation: A New Architecture for Cloud Databases

http://muratbuffalo.blogspot.com/2025/09/disaggregation-new-architecture-for.html
1•furkansahin•23m ago•0 comments

Show HN: CuckooTimer – Cuckoo Clock Productivity Timer

https://cuckootimer.com/
2•bribri•27m ago•0 comments

One mother for two species via obligate cross-species cloning in ants

https://www.nature.com/articles/s41586-025-09425-w
2•mighty_plant•27m ago•0 comments

Recreating the Apollo AI adoption rate chart with GPT-5, Python and Pyodide

https://simonwillison.net/2025/Sep/9/apollo-ai-adoption/
2•simonw•27m ago•0 comments

Chinese robotics firm Unitree eyeing $7B IPO valuation

https://www.reuters.com/business/autos-transportation/chinese-robotics-firm-unitree-eyeing-7-bill...
3•defrost•30m ago•0 comments

Caterham Seven 160 achieves 57.6mpg (24.5kml)

https://www.greencarguide.co.uk/2014/01/caterham-seven-160-57-mpg/
3•palmfacehn•30m ago•3 comments

Outcome-Based Exploration for LLM Reasoning

https://arxiv.org/abs/2509.06941
1•badmonster•31m ago•0 comments

Cyborgtest – the chill way to evolve your QA game from manual to automated

https://github.com/CyborgTests/playwright-manual-step-automation
10•epaminond•31m ago•1 comments

TailGuard: A way to connect your home WireGuard router into Tailscale via Docker

https://github.com/juhovh/tailguard
5•daduke•36m ago•2 comments

A Novel Technique for SQL Injection in PDO's Prepared Statements

https://slcyber.io/assetnote-security-research-center/a-novel-technique-for-sql-injection-in-pdos...
1•Bogdanp•42m ago•0 comments

iPhone Isn't Listening to You. But the Truth Is Worse

https://www.cnet.com/tech/services-and-software/features/no-your-iphone-isnt-listening-to-you-her...
2•koolhead17•45m ago•0 comments

Show HN: Quadrant – OKRs with Focus for small teams

https://mygoals.io/
1•davkh•45m ago•0 comments
Open in hackernews

Show HN: Attempt – A CLI for retrying fallible commands

https://github.com/MaxBondABE/attempt
37•maxbond•7h ago
Hi HN,

Here's a tool I wrote for retrying fallible commands. Nothing groundbreaking here, this is a tool that's been made many times (and several have been submitted to Show HN). Though this one does have a more comprehensive feature set than most. I hope one or two people will find it useful.

I wrote `attempt` for two reasons:

- To have a more featureful alternative to `wait-for-it.sh` for use in Docker Compose. Specifically to apply migration scripts to a database that may not be up yet. I wanted to be able to inspect the error messages from my migration tool & retry on connection errors.

- To test a hypothesis I had that a good way to make a CLI was to copy the API of a good library (in this case, `tenacity`). I want to write a blog post at some point to discuss this at length, but the tl;dr is that I believe it was a success.

Here are some usage examples: https://maxbondabe.github.io/attempt/usage.html

There may not be much to discuss for such a small tool, but I am open to all feedback and am happy to answer any questions.

Cheers,

Max

Comments

adastra22•6h ago
Is “try” taken as a CLI command? Seems like a better name.
maxbond•6h ago
That would be a good name. If it's taken it's not in the Debian or Arch repositories. I've been working on this on and off for a couple years, so I honestly don't remember why I picked `attempt`.
onionisafruit•6h ago
There is no try. There is only do
SparkyMcUnicorn•5h ago
`dotry`
dannyobrien•6h ago
This great! Thank you for writing it.
maxbond•5h ago
Thanks! Glad you like it!
brirec•5h ago
This is kind of neat. I appreciate how well it falls into the whole Unix philosophy of small tools that do one thing really well.

One thing I’m kind of curious about from a UI standpoint is why the exponential argument isn’t a double-hyphen flag. It kind of feels like it should be, given all of the other arguments are flags.

maxbond•5h ago
Thanks! That was the intention. There's a tool called `retry` which does an even better job by caching stdin so that it can be integrated into shell pipelines.

I was thinking of it as a subcommand, like `git pull`. I think of the backoff schedules as different "modes" the command can be put into, each with their own set of arguments. I also made some questionable design decisions and coupled too closely to the CLI argument parser (`clap`), which would make it a big pain to back out of that decision.

NightMKoder•5h ago
I was recently in the market for one of these! I ended up going with https://github.com/dbohdan/recur due to the nice stdout and stdin handling. Though this has stdout/stderr pattern matching for failures which is nice too!
maxbond•5h ago
Cool, I hadn't seen this one yet! Using Starlark is a very good idea. I ended up writing some tiny DSLs to specify certain things like status code patterns and durations; using an off the shelf DSL like Starlark would've saved a lot of effort.
bharrison•4h ago
Very nice work!

I am very far from expert, but understood expect: https://linux.die.net/man/1/expect to be the "swiss army knife" for this type of thing.

jalk•3h ago
This is useful. Don't want to think about how many times I have implemented retrying in shell scripts. I appreciate the extensive documentation, but I would suggest adding the output of `attempt --help` to the README / docs, so that features can be discovered at a glance.
juliangmp•1h ago
This looks nice Maybe I can finally replace that sshtry shell function which I've been using for a few years
nickdothutton•1m ago
I am reminded of the lack of really strong batch/job control of the sort I enjoyed as far back as VAX VMS at university, anything that brings a stronger capability to modern OS is welcome. This is I think a big missing thing.