wb14123

Joined 14 years ago

Karma
496
Submissions
106
Member since
Dec 18
Homepage: www.binwang.me
View on Hacker News

Recent submissions

Comment · 13 days ago
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.
Comment · 4 months ago
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.
Comment · 10 months ago
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.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton