frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

DoNotNotify is now Open Source

https://donotnotify.com/opensource.html
221•awaaz•5h ago•38 comments

Why E cores make Apple Silicon fast

https://eclecticlight.co/2026/02/08/last-week-on-my-mac-why-e-cores-make-apple-silicon-fast/
24•ingve•1h ago•2 comments

Dave Farber has passed away

https://lists.nanog.org/archives/list/nanog@lists.nanog.org/thread/TSNPJVFH4DKLINIKSMRIIVNHDG5XKJCM/
27•vitplister•1h ago•6 comments

Matchlock: Linux-based sandboxing for AI agents

https://github.com/jingkaihe/matchlock
47•jingkai_he•4h ago•10 comments

Reverse Engineering Raiders of the Lost Ark for the Atari 2600

https://github.com/joshuanwalker/Raiders2600
17•pacod•3h ago•1 comments

Show HN: LocalGPT – A local-first AI assistant in Rust with persistent memory

https://github.com/localgpt-app/localgpt
249•yi_wang•11h ago•125 comments

Haskell for all: Beyond agentic coding

https://haskellforall.com/2026/02/beyond-agentic-coding
155•RebelPotato•10h ago•45 comments

Curating a Show on My Ineffable Mother, Ursula K. Le Guin

https://hyperallergic.com/curating-a-show-on-my-ineffable-mother-ursula-k-le-guin/
6•bryanrasmussen•2h ago•0 comments

SectorC: A C Compiler in 512 bytes (2023)

https://xorvoid.com/sectorc.html
326•valyala•19h ago•66 comments

(AI) Slop Terrifies Me

https://ezhik.jp/ai-slop-terrifies-me/
52•Ezhik•2h ago•29 comments

Rabbit Ear "Origami": programmable origami in the browser (JS)

https://rabbitear.org/book/origami.html
17•molszanski•3d ago•3 comments

LLMs as the new high level language

https://federicopereiro.com/llm-high/
141•swah•5d ago•265 comments

The Legacy of Daniel Kahneman: A Personal View (2025)

https://ejpe.org/journal/article/view/1075/753
11•cainxinth•3d ago•0 comments

The Architecture of Open Source Applications (Volume 1) Berkeley DB

https://aosabook.org/en/v1/bdb.html
48•grep_it•5d ago•8 comments

Software factories and the agentic moment

https://factory.strongdm.ai/
245•mellosouls•21h ago•408 comments

Modern and Antique Technologies Reveal a Dynamic Cosmos

https://www.quantamagazine.org/how-modern-and-antique-technologies-reveal-a-dynamic-cosmos-20260202/
11•sohkamyung•5d ago•0 comments

Speed up responses with fast mode

https://code.claude.com/docs/en/fast-mode
198•surprisetalk•18h ago•204 comments

A11yJSON: A standard to describe the accessibility of the physical world

https://sozialhelden.github.io/a11yjson/
7•robin_reala•5d ago•0 comments

Hoot: Scheme on WebAssembly

https://www.spritely.institute/hoot/
200•AlexeyBrin•1d ago•40 comments

uLauncher

https://github.com/jrpie/launcher
42•dtj1123•5d ago•11 comments

Stories from 25 Years of Software Development

https://susam.net/twenty-five-years-of-computing.html
217•vinhnx•22h ago•26 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
380•jesperordrup•1d ago•121 comments

Brookhaven Lab's RHIC concludes 25-year run with final collisions

https://www.hpcwire.com/off-the-wire/brookhaven-labs-rhic-concludes-25-year-run-with-final-collis...
86•gnufx•17h ago•66 comments

Wood Gas Vehicles: Firewood in the Fuel Tank (2010)

https://solar.lowtechmagazine.com/2010/01/wood-gas-vehicles-firewood-in-the-fuel-tank/
60•Rygian•3d ago•29 comments

LineageOS 23.2

https://lineageos.org/Changelog-31/
93•pentagrama•7h ago•26 comments

First Proof

https://arxiv.org/abs/2602.05192
159•samasblack•21h ago•97 comments

Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version

https://github.com/Momciloo/fun-with-clip-path
120•momciloo•19h ago•29 comments

In the Australian outback, we're listening for nuclear tests

https://www.abc.net.au/news/2026-02-08/australian-outback-nuclear-tests-listening-warramunga-faci...
22•defrost•3h ago•4 comments

Start all of your commands with a comma (2009)

https://rhodesmill.org/brandon/2009/commands-with-comma/
624•theblazehen•3d ago•226 comments

Arcan Explained – A browser for different webs

https://arcan-fe.com/2026/01/26/arcan-explained-a-browser-for-different-webs/
3•walterbell•4h ago•0 comments
Open in hackernews

Python argparse has a limitation on argument groups that makes me sad

https://utcc.utoronto.ca/~cks/space/blog/python/ArgparseAndNestedGroups
29•zdw•8mo ago

Comments

lordkrandel•8mo ago
True, it's annoying
mjevans•7mo ago
Is there a standard python library that does annotate if an argument is user provided or instead (just) the default value?

This is extremely important for configuration priority. Program defaults (generally) should be the lowest priority level. Superseded by configuration files. Superseded by command-line arguments. Finally replaced by configuration changes during runtime. Notably each is (in theory) specified in a more specific context as well as more recently.

Neywiny•7mo ago
I think this is doable but as an X vs Y problem. You can either not have a default and check if it's in the namespace later, or make the default value be the previously highest priority value as a run-time defined default. Do either of those work?
mjevans•7mo ago
It would be nice if --help reports the (program) default as the default value for an option. A different option might dump a fully evaluated configuration. While a third might exit without doing anything.
Elixir6419•7mo ago
if you pass formatter_class=argparse.ArgumentDefaultsHelpFormatter) you will get exactly that.

shameless copy from https://stackoverflow.com/questions/12151306/argparse-way-to...

dodslaser•7mo ago
This can be done using click.
ErikBjare•7mo ago
Not with multiple=True, since it then always returns an empty list and never None, even if the default is None.
dodslaser•7mo ago
Yes it can. click.Context provides a get_parameter_source method that should help with that.
ErikBjare•7mo ago
Thank you! I recently got bitten by this limitation and will make use of get_parameter_source. I gave you credit/mentioned in the issue to restore our use of `multiple=True` behavior: https://github.com/gptme/gptme/issues/560
NewsaHackO•7mo ago
Can't you just generate all the groups by having a function the created a set of each individual timeout (--notimeout,--timeout-x) to pass to the parser?
bartread•7mo ago
I wondered this as well. I must admit I’ve not yet written a command line tool (in Python) where I’ve needed what the author describes, but I did wonder if adding multiple exclusive groups with --notimeout as a member of all of the groups would do the trick. Perhaps you get an error or get into undefined behaviour territory but it would certainly be worth trying.
qwertox•7mo ago
I mean, he does have a point, but his point has a solution: do not put them in mutually exclusive groups if they aren't mutually exclusive.

It seems more like this is a missing feature rather than an issue with mutually exclusive, if the desire is that `argparse` handles this in an elegant, internal way.

So, yes, `argparse` has a limitation on argument groups, but `add_mutually_exclusive_group` is not the issue.

looknee•7mo ago
The gcloud CLI handles this using argparse, having a parent mutex group with one child —no-timeout flag and then a child group containing the timeout flags.
what•7mo ago
But the docs say you can’t (or shouldn’t) add a child group because it’s not supported and will be removed…
xg15•7mo ago
So the author wants a configuration, where I can either run the program with

--foo-timeout=5 --bar-timeout=10

or with

--no-timeouts

which disables the timeouts for both too and bar.

I don't know the author's entire usecase, but it seems odd that you would specifically NOT want the user to only disable one timeout, but keep all the others active.

Unless there is a real reason for this, the more logical design for me would be to treat --foo-timeout=0 or something as the setting to disable timeout foo.

Not sure if argparse supports aliases, but if it does, --no-timeouts could then be defined as an alias for "--foo-timeout=0 --bar-timeout=0 --baz-timeout=0" etc etc.

NoahZuniga•7mo ago
They probably mean a combination like: I want the program to time out if the server response isn't done after 60 seconds I want the program to time out if the the last byte from the server is more than 10 seconds ago.

It doesn't make sense to say I want one of these timeouts and --no-timeout