News for hackers. Stuff that matters.

wb14123

I created my own harness tcode (https://github.com/wb14123/tcode) to leverage tmux and neovim. Have been using it all the time since the beginning of this year.
Re:Herdr: Agent multiplexer that lives in your terminal on Monday June 29, 2026 @01:29PM (#48722247)
I wrote a harness leveraging tmux and nvim: https://github.com/wb14123/tcode . It's able to open subagents and even talk with them, all managed by tmux and using nvim as the UI for both the editor and the messages display window.
Re:Go ahead, self-host Postgres on Saturday December 20, 2025 @09:17PM (#46341650)
Yeah I'm also wondering that. I'm looking for self-host PostgreSQL after Cockroach changed their free tier license but found the HA part of PostgreSQL is really lacking. I tested Patroni which seems to be a popular choice but found some pretty critical problems (https://www.binwang.me/2024-12-02-PostgreSQL-High-Availabili...). I tried to explore some other solutions, but found out the lack of a high level design really makes the HA for PostgreSQL really hard if not impossible. For example, without the necessary information in WAL, it's hard to enforce primary node even with an external Raft/Paxos coordinator. I wrote some of them down in this blog (https://www.binwang.me/2025-08-13-Why-Consensus-Shortcuts-Fa...) especially in the section "Highly Available PostgreSQL Cluster" and "Quorum".

My theory of why Postgres is still getting the hype is either people don't know the problem, or it's acceptable on some level. I've worked in a team that maintains the in house database cluster (even though we were using MySQL instead of PostgreSQL) and the HA story was pretty bad. But there were engineers manually recover the data lost and resolve data conflicts, either from the recovery of incident or from customer tickets. So I guess that's one way of doing business.

Show HN: A Web UI Generator for Rust CLI Projects

https://github.com/wb14123/clap-web-gen

Hi HN,Everyone loves CLI! I recently started to use Rust write CLI tools and I really enjoy it. But sometimes it's convenient to also have the tool available in a browser so that I can share it to other non tech savvy people, and also for myself to use on mobile phones. So I write a tool to automatically generate a web UI for Rust CLI projects if it's using Clap...

( Read More... | no comments | on HN )
Re:K8s with 1M Nodes on Saturday October 18, 2025 @09:56PM (#45631602)
Instead of giving up the good guarantee of etcd, a better approach maybe grouping some nodes together to create a tree like structure with sub clusters.
Re:Jepsen: Amazon RDS for PostgreSQL 17.4 on Wednesday April 30, 2025 @04:42AM (#43842643)
Yeah yet this is a happy path with no failure imported. Still surprised to see this kind of scenario was not tested inside AWS.
Re:Jepsen: Amazon RDS for PostgreSQL 17.4 on Wednesday April 30, 2025 @04:40AM (#43842628)
This kind of replication can be configured in vanilla Postgres with something like ANY 3 (s1, s2, s3, s4) in synchronous_standby_names? Doc: https://www.postgresql.org/docs/current/runtime-config-repli...
Re:Jepsen: Amazon RDS for PostgreSQL 17.4 on Tuesday April 29, 2025 @08:43PM (#43839881)
Surprised to see Amazon RDS doesn't pass such simple test. Nicely done!
Re:7 Databases in 7 Weeks for 2025 on Thursday December 05, 2024 @11:16PM (#42336278)
Ever since CockroachDB changed their license, I'm searching for alternatives. PostgreSQL is an obvious choice but is there a good HA solution? What people usually do for HA with PostgreSQL or do they just not care about it? I tested Patroni, which is the most popular one in my knowledge, but found some HA issues that makes me hesitate to use: https://www.binwang.me/2024-12-02-PostgreSQL-High-Availabili...
Is it really prioritizing happiness tho? From Wikipedia:

> According to the World Happiness Report 2019, Bhutan is 95th out of 156 countries.

Not to mention its ethnic cleansing of the non-Buddhist population. There are definitely other things that have higher priority on the government's agenda than people's happiness.

Re:ZFS Profiling on Arch Linux on Sunday December 17, 2023 @11:47AM (#38674100)
More details on this discussion: https://github.com/openzfs/zfs/issues/6824#issuecomment-1817... . Basically he is too busy to continue developing the encryption features but is able to review the related works.

There is also discussion about using ZFS on LUKS in the same thread: https://github.com/openzfs/zfs/issues/6824#issuecomment-1819...

Of course you don’t need schemas or code generation if you are only targeting one language.
Re:Apple Vision Pro: Apple’s first spatial computer on Monday June 05, 2023 @05:23PM (#36203872)
I don't see lots of AR/VR techs in the intro: there is no interaction with real world, there is no 3D object other than virtual screen and virtual controls. It seems to be just a traditional portable computer with bigger screens. I can see the potential of it. But at the current stage, it's hard to justify the price.

Older »