News for hackers. Stuff that matters.

unop

Both Sonnet and Opus 4.6 under GHCP support a 1M context window.
`\rg foo` or `command rg foo`
Re:Obsidian Introduces Obsidian CLI on Tuesday February 10, 2026 @04:29PM (#46967173)
I welcome this "scriptability" improvement. I often have to do some bulk updates across a few dozen files and while I can whip up python or sed - I'd rest assured there's a more stable interface. but more importantly it opens doors to integrations with applescript and claude and whatnot
Re:Ask HN: How do you authorize AI agent actions in production? on Thursday January 22, 2026 @11:13PM (#46728329)
Tool calls with middleware. If you deploy an agent into a production system - you design it to use a set of curated whitelisted of bespoke tool calls against services in your stack.

Also, You should never connect an agent directly to a sensitive database server or an order/fulfillment system, etc. Rather, you'd use "middleware proxy" to arbitrate the requests, consult with a policy engine, log processing context, etc before relaying the requests on to the target system.

Also consider subtleties in the threat model and types of attack vector. how many systems the agent(s) connect to concurrently. See the lethal trifecta https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/

Re:What Killed Perl? on Wednesday November 19, 2025 @10:29AM (#45980793)
I spent 10 years in perl and created a lot in it - it taught me a lot about code as a culture,importance of tests, TIMTOWTDI, etc. I think I owe a lot to it.

I found myself defending it more and more online against the folks who were nay sayers - those who complained about its syntax and it's quirks - but that wasn't a problem for unixers who used sed/awk/vim and all the other arcane tools. Perl wawa means to and end and it was the best tool to reach for (the glorious Swiss army knife).

I guess there was an infection period - the brain drain to python and Ruby meant it was harder to find decent quality libs on CPAN anymore as folks would only do things in python. And Yea, while CPAN is still rich, it's not the first hit on Google anymore.

Today, the map-sort-map Schwarzian transform is still the easiest to do in perl than any other language and it helps me whip up the throwaway scripts quick. Wouldn't change the language - I really love it!

Re: on Friday November 14, 2025 @08:01PM (#45934100)
I'm having a grokking problem with the grammar of this question.

Hey claude, help parse .. Ohh wait.. claude says I've spent up all my weekly credits (twat!).

Gemini.. Hey.. Go to school on this one...

"Do you know how much the world outside a small group of people hates* AI?"

Re:Show HN: I recreated Windows XP as my portfolio on Sunday September 07, 2025 @01:27AM (#45155633)
Maybe cmd.exe launch into "your terminal" - styled with starship or whatever, your shell aliases but taking the user into your (code?) projects' directories that they can have a nosey around with (mirroring github repos?)
Re:The ROI of Exercise on Sunday August 24, 2025 @03:06AM (#45002034)
Umm, the front-loaded 8k hours might not have much return if you were sedantary in the later decades (arguably the years where exercise helps stave off metabolic disease) as much as sustained levels of exercise all through life.

I mean, we all know of the university budding sports star types who probably invested in many hours training and trying to break into their sport professionally but not quite cutting it - and then "retiring into mediocrity" with the regular 9-5,2 hour commute, 3 kids and the diet to match. They exercise no differently to the regular Joe and suffer all the maladies the same.

Re:The ROI of Exercise on Sunday August 24, 2025 @02:49AM (#45001952)
If you don't do this duration regularly enough - you're likely not fit enough to last the effects out and sure, anyone would feel tired or sleepy.

It takes a certain adaptation to reach this level of fitness - and it should be no guess how you get there.

I like the idea but I live in Europe and that and some skill issues couldn't get a route planned.

It would be nice if the route start and end selections could be from points ona map (for the outdoorsy types like me) as the text fields find nothing for me.

The landmark and node Explorer modes didn't show any results.

Re:Terraform Config Root Setups on Sunday February 16, 2025 @10:26AM (#43068728)
Nice! We'll link to this for our internal consultancy work.

It'd be nice to show the other dimension of the git branching strategies to apply. Github flow/feature-branches vs per-env branches of main vs git flow. How and when to apply changes in different environments - before vs after PRs, etc.

Actually the `gh clone` wraps up all the complexity with enterprise authn/authz, Tokens/PATs, multi-org SSO/MFA, etc really well. This alone is the reason I use gh.
Re:Supreme Court Overturns Roe vs. Wade on Friday June 24, 2022 @05:02PM (#31869259)
> Women choose to have sex consensually, no? Consent to sex doesn't imply consent to pregnancy (or even the consent to carry to term after) - it just doesn't follow, even with the risks of pregnancy.
Documentation-as-an-artefact of the continuous delivery process - every feature is feature-complete only when counterpart documentation is generated and integrated/built as part of the pull-request procese.

I.E. A code/solution review must also consider the documentation alongside the feature or solution.

This implies that the documentation is (held beside) source code too and can be diffed/compared e.g. Markdown for text, mermaid/graphviz for diagrams and that this can be built, rendered or published easily/readily (Hugo, zola, etc)

Re:Ask HN: What's your greatest enjoyment in life? on Monday May 23, 2022 @08:20AM (#31478052)
- MTB biking / Ultra-Endurance Road cycling - Running / Hiking in the mountains (actually climbing for the views) - Being creative (programming, sculpting, carving, painting, drawing)
Re:Ask HN: What's your greatest enjoyment in life? on Monday May 23, 2022 @06:26AM (#31477201)
Typically, this is the glib superficial answer a non-runner would have.

To a runner, you are your own opponent, your feet and the terrain the challenges and the elation and endorphin rush afterwards the goal/reward.

And watching running, well, watching capable elite runners glide effortlessly or outdoing themselves with a surge from deep within - it's kinda exhilarating just willing them on. And if that's not sport.. Not sure what qualifies :)

Re:Ask HN: What did you do to recover from burnout? on Sunday April 24, 2022 @02:22PM (#31146709)
I burned out just before the birth of my daughter - it was the extra I was doing to make sure I'd handed off to my replacement during paternity leave that sent me over the edge. The week my daughter was born, I was not at work but I couldn't help my mind from racing with fleeting thoughts and needlessly worrying about unfinished business .. I suppose it was "The inertia" and I knew I had to fix myself.

I requested to resign but was given leave to recover by my manager (which was very helpful). I ended up taking 6 months off doing all and nothing - took care of my baby daughter, helped my wife out, fixed small things around the house, picked up cycling, read a lot, went on small excursions and holidays, soaked up the sun, etc.

This helped "forget" and rejuvenate and I was now confident in myself that I wasn't a neurotic hamster-in-a-wheel anymore and stable enough to negotiate a better return to work - I ended up requesting a change of team/project which was a clean start and little in terms of attachment or responsibility that'd draw me back to being overwhelmed.

Things didn't work out in the new team - and that's just fine. I was free enough then to start job hunting and find work in a new place without being forced to jump ship.

Re:Ask HN: Is it possible to cut Russia off the internet? on Saturday February 26, 2022 @08:35PM (#30484406)
Your point is valid but you've completely sidestepped the question and have not entertained contrary possibility. The question is a legitimate one. Don't the people of Russia deserve to learn about their world via the Internet? If for anything, to decide on the objectivity of the news they'd get via a propaganda machine anyway? Surely that's a way of not staving off the potential in grassroots movements to bring about resistance and change.

Access to the Internet should be a human right in today's age. Depriving any nation state of that right is like foisting upon them a poverty greater than an economic one - I'd argue we are all poorer off if we have 2 North Koreas.

Nice! Surely if IPv6, you're using DNS, no? And not typing out the full changing IPv6 addresses? Even in your homelab? Making this concept a bit moot at best - awkward to manage if anything.
Re:Do not use redirection characters in your shell prompt on Wednesday March 17, 2021 @02:01PM (#26494760)
My takeaway is this: stop copy-pasting commands in the shell and use the superior history/command-line editing features of read line instead.
Elliot Management, one of the activist investors of LP mandating this change have long been known to get their claws into "underperforming" companies and insist on strategy change that is anti-free, anti-opensource. They did this around 2014 when I worked at Citrix and got them to sell off products not aligned with the flagship and close down some otherwise great software that was in part free-for-use-in-small-environments.

For e.g Citrix Xenserver (now Citrix Hypervisor) employed a lot of the founders and top talent contributing to the Xen project who being the hipster developer types fully buying into the free and open kinda felt betrayed that the ship they'd join to sail had changed course and eventually jumped ship - causing a brain drain to both the company and the upstream Xen. I wouldn't conclude this caused Xen to lose out to the competition - but the decaying cadence to the upstream project I'm sure was a contributing factor.

I've long since worked at Citrix and I hear now their product strategies and key offerings are "sensible", their valuations and stock prices are healthier, etc - which for the investors and employees is great but it appears this has come at a price of a less-free, less-open, insular monoculture. I don't particularly regard that as a success.

Re:OpenBSD Is Now My Workstation on Wednesday July 03, 2019 @09:51PM (#20350846)
The irony!
Re:Show HN: Gurn – Use words, not bookmarks on Wednesday July 04, 2018 @10:03AM (#17457314)
Umm, don't most browsers have a keyword based/parameterized bookmark feature nowadays?
Hmm, the HN title is grossly misleading.. I wonder why?
The back ticks to quote the keys are off-putting.. It feels like writing arcane SQL.

I personally would try and align with jsonpath for the convention, richer query-language and expressions.