News for hackers. Stuff that matters.

twp

Re:If you don't have the factories, you lose the expertise on Thursday September 24, 2026 @06:35PM (#49837686)
This reads like it was written by an LLM.
Re:The exponential curve behind open source backlogs on Tuesday April 14, 2026 @10:19AM (#47766014)
AI reviews are flaky - maybe correct 80% of the time - and everyone hates flakiness.

AI code reviews easily double the work in reviewing: you have to both review the original code and the AI code review. The AI code review can be 80% correct, but you never know which 80% is correct and which 20% is garbage, so you have to review all the AI's comments.

Re:Show HN: Shittp – Volatile Dotfiles over SSH on Sunday December 21, 2025 @08:46AM (#46344804)
chezmoi has similar functionality, but it does install a binary on the target machine:

https://www.chezmoi.io/reference/commands/ssh/

Re:AI documentation you can talk to, for every repo on Tuesday November 11, 2025 @06:09AM (#45886082)
deepwiki.com is untrustworthy AI slop. A true cancer.

deepwiki.com's generated page on my project contains several glaring errors. I hate to think of the extra support burden I will have to bear because of deepwiki.com publishing wrong information.

I asked the authors of the site (Andrew Gao) to remove their page on my project, but they ignored my request.

Re:Kirigami-inspired parachute falls on target on Monday October 06, 2025 @05:19PM (#45496462)
This is really cool and innovative thinking, but anything aerodynamic does not scale linearly. It's really easy to make something light fall slowly. Baby spiders use "ballooning" -- a single thread -- to fall so slowly that they can travel far in thermal updrafts.

What's missing here is any evidence that the same cool parachutes will work on anything of significant mass, e.g. a parcel weighing 2kg or an average human weighing 80kg.

Re:GitHub replaces dashbord feed with AI shit? on Monday September 22, 2025 @05:20PM (#45339579)
Ah! Thank you! How can I update the story URL to point to GitHub's new dashboard feed?
Re:GitHub replaces dashbord feed with AI shit? on Monday September 22, 2025 @05:08PM (#45339451)
Original URL was https://github.com/dashboard-feed.

Presumably some HN mod changed the URL to point to something different?

Re:Just use `git` to manage your dotfiles on Sunday August 31, 2025 @09:50AM (#45083143)
> I know my way around emacs. vimdiff is a foreign country.

You don't have to use vimdiff. You can use any merge tool you want. See https://www.chezmoi.io/user-guide/tools/merge/.

> Often my changes are speculative or experimental. So I checkout, edit, apply and only then discover I’ve messed up. Or I can edit in place. Voila vimdiff!

> What’s the better way?

There are lots of options. See https://www.chezmoi.io/user-guide/frequently-asked-questions....

Personally, I tend to use `chezmoi edit` and then use git in my source directory to `git add -p . && git commit` the changes I want to keep and `git checkout` to discard the changes I don't want.

Re:Dotfiles feel too intimate and personal to share on Saturday August 09, 2025 @06:44PM (#44851050)
Please can you open an issue or discussion for these questions on https://github.com/twpayne/chezmoi - this way more people will both be able to help and more people will see the answer.
Re:Dotfiles feel too intimate and personal to share on Wednesday August 06, 2025 @01:52PM (#44815323)
chezmoi includes secret scanning from https://gitleaks.io/ by default to catch when you accidentally add a file with a secret in it. To be even more confident, you should add gitleaks as a git hook to your repo however.
Re:Dotfiles feel too intimate and personal to share on Wednesday August 06, 2025 @01:49PM (#44815278)
https://www.chezmoi.io/reference/commands/merge-all/ might help you here - it opens your preferred merge tool for the dotfiles that have drifted.
Re:Dotfiles feel too intimate and personal to share on Wednesday August 06, 2025 @11:55AM (#44813707)
It's not a question of share everything or share nothing - with https://chezmoi.io you can choose exactly what you want to share:

* You can keep your entire dotfile repo secret by using any private git hosting, including your own git hosting or a private GitHub repo.

* You can keep individual files secret by using age or gpg encryption. If you repo is public, this only reveals the existence of the file, not its contents.

* You can keep individual parts of your dotfiles secrets, e.g. API keys, by encrypting them or storing them in your password manager. All popular password managers are supported.

Disclaimer: I'm the author of chezmoi.

Re:The Night Watch (2013) [pdf] on Wednesday March 12, 2025 @07:00PM (#43348623)
This is, without doubt, the greatest sequence of words on programming ever committed to magnetic storage.
Re:Help Me Help You, Maintainers on Monday March 10, 2025 @04:39PM (#43325813)
As the maintainer of several popular open source projects (e.g. https://chezmoi.io), the forms of help I appreciate the most are:

* User support. Answering questions in discussions, social media, and GitHub issues. This helps on multiple levels: it saves me time that I would otherwise have to spend, and builds a community around the project.

* Documentation improvements. Better documentation means less user support work and helps everybody.

* Issue reports with a clear, minimal, way to reproduce the problem.

* Pull requests that follow the contributing guidelines of the project. This means that they follow the project's conventions, include tests, don't break any existing tests, and so on.

I don't write open source software to make money. I write open source software because I enjoy building high-quality software and I get a buzz from helping people.

Google are aware of the problem and are working on a fix: https://www.reddit.com/r/Chromecast/comments/1j7caui/comment...

Still very annoying.

Re:Hyperspace on Tuesday February 25, 2025 @01:52PM (#43175792)
CLI tool to find duplicate files unbelievably quickly:

https://github.com/twpayne/find-duplicates

Game of life implemented as sets in Clojure:

(defn neighbors [[x y]] #{[(dec x) (dec y)] [(dec x) y] [(dec x) (inc y)] [ x (dec y)] [ x (inc y)] [(inc x) (dec y)] [(inc x) y] [(inc x) (inc y)]})

(defn count-neighbors [world cell] (count (set/intersection (neighbors cell) world)))

(def rules #{[true 2] [true 3] [false 3]})

(defn live [world cell] (contains? rules [(contains? world cell) (count-neighbors world cell)]))

(defn evolve [world] (into #{} (filter #(live world %) (reduce set/union (map neighbors world)))))

Full source: https://github.com/twpayne/life/blob/master/clojure/src/life...

Re:Google preps 'Jarvis' AI agent that works in Chrome on Saturday October 26, 2024 @09:06PM (#41959062)
How can I stop this bullshit from ever affecting my life?
Re:Ask HN: Good Sites for/with AI Enthusiasts? on Monday September 23, 2024 @09:09AM (#41625664)
Keep a broad perspective: https://pivot-to-ai.com/

Show HN: Generate Go structs from multiple JSON objects

https://github.com/twpayne/go-jsonstruct

If you need to unmarshal arbitrary JSON or YAML data (e.g. consuming data from a REST/JSON endpoint with no defined schema) then https://github.com/twpayne/go-jsonstruct will automatically create your Go structs for you. What's special about go-jsonstruct compared to other JSON-to-Go generators, is that go-jsonstruct can accept multiple documents as input and generate the most specific Go...

( Read More... | no comments | on HN )
Re:Better Dotfiles on Saturday September 07, 2024 @01:57PM (#41475269)
In my case, I have things like Github Personal Access Tokens stored in my password manager and then use chezmoi's templates to populate them in my dotfiles, for example:

https://github.com/twpayne/dotfiles/blob/master/home/dot_zsh...

This means that: 1. My secrets are safely stored in my password manager so I can share my dotfiles. 2. When I update the secret in my password manager it automatically gets updated in my dotfiles when I run `chezmoi apply`.

Re:Better Dotfiles on Saturday September 07, 2024 @09:32AM (#41473859)
stow's approach of using symlinks is extremely limiting. For example, it means you can't have templates (for small machine-to-machine differences and secrets) or encrypted files. chezmoi does have a symlink mode, like stow, but using symlinks has multiple downsides: https://www.chezmoi.io/user-guide/frequently-asked-questions...

chezmoi was actually inspired by Puppet, not stow.

Source: me, I'm the author of chezmoi.

Re:Better Dotfiles on Saturday September 07, 2024 @09:27AM (#41473832)
How do you handle differences between machines? How do you handle secrets? How do you run scripts?
Re:Better Dotfiles on Saturday September 07, 2024 @09:26AM (#41473828)
Unfortunately there's no other way of doing this, except for adding a shell alias. See https://www.chezmoi.io/user-guide/frequently-asked-questions....

Older »