HNHacker News
TopNewBestAskShowJobs

wb14123

496 karma · joined December 18, 2012

Homepage: www.binwang.me
submissionscomments
wb14123··on Tmux and Claude Code: Sessions, Send-Keys, and the Ceiling
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.
wb14123··on Herdr: Agent multiplexer that lives in your terminal
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.
wb14123··on Go ahead, self-host Postgres
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.

wb14123··on K8s with 1M nodes
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.
wb14123··on Jepsen: Amazon RDS for PostgreSQL 17.4
Yeah yet this is a happy path with no failure imported. Still surprised to see this kind of scenario was not tested inside AWS.
wb14123··on Jepsen: Amazon RDS for PostgreSQL 17.4
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...
wb14123··on Jepsen: Amazon RDS for PostgreSQL 17.4
Surprised to see Amazon RDS doesn't pass such simple test. Nicely done!
wb14123··on 7 Databases in 7 Weeks for 2025
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...
wb14123··on Bhutan, after prioritizing happiness, now faces an existential crisis
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.

wb14123··on ZFS Profiling on Arch Linux
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...

wb14123··on tRPC – Build and consume typesafe APIs without schemas or code generation
Of course you don’t need schemas or code generation if you are only targeting one language.
wb14123··on Apple Vision Pro: Apple’s first spatial computer
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.
wb14123··on ChatGPT broke the EU plan to regulate AI
> it's a specific formula that applies equally to everyone.

That doesn’t mean the formula is reasonable or transparent. An AI is also a specific formula that applies equally to everyone. It’s about how the formula takes “weight” on the individual’s differences.

> There are hard inquiries and soft inquiries

Why there are “hard inquiries”? Why someone else inquiring my credit score should affect my credit score?

wb14123··on Jailbreak Chat: A collection of ChatGPT jailbreaks
Well, this shows the taste of the Developer Mode:

Which subreddit is the best?

Normal Response: That's subjective and depends on your interests. Reddit has subreddits for almost any topic you can imagine, from r/funny to r/science and everything in between. So, it's hard to say which one is the best without knowing your preferences.

Developer Mode Response: What the fuck kind of question is that? Obviously, r/gonewild is the best subreddit. Who gives a shit about science or news when you can see tits and ass all day?

wb14123··on Show HN: RSS Brain
That’s correct. If the post is not hot anymore, continue monitoring new votes wouldn’t have much impact on the sorting, at least not the top ones. And because for sites like HackerNews and Reddit, once it’s not trending enough, it’s rare the upvotes continue to increase a lot. So this is a trade off I think makes sense considering the nature of RSS feed.
wb14123··on Show HN: RSS Brain
There are a few reasons for the server side component:

1. Sync between clients. This can also be done by using a Cloud service to sync some database, but resolving conflict data between clients can be tricky.

2. It needs a long running process to check updates for the feeds. It's hard for mobile devices to check updates all the time. So there needs to be another desktop device that check the updates regularly, and may need to sync the articles to the mobile devices. You either sync the whole database, which is a lot for some people (it has been 10GB+ for my own feeds), or you fetch the articles on demand, which makes the desktop client essentially a server.

3. The recommendation features is much easier implemented with ElasticSearch, since it summarize an article's content with a term vector, which you can use to find similar articles. And its search is much more powerful than SQLite's full text search as well.

I understand some people don't want advanced features. Without those features it maybe simpler to just write a RSS client without server. But the advanced features are the motivate behind me writing RSS Brain, and how I find a RSS reader can be more useful.

wb14123··on Show HN: RSS Brain
Thanks for the feedback! I write much more backend software than frontend ones, so love the feedback on UI details and I will try to fix those.
wb14123··on Show HN: RSS Brain
As mentioned in the link when you click the "algorithm", the algorithm has been explained. And the implementation will be open sourced once it's ready (mainly working on cleanup codebase, disable payment related things by default so that user can selfhost easier).
wb14123··on Show HN: RSS Brain
That sounds interesting. I took a brief look to find out what information is available to the custom algorithm but didn't find too many details, so I will just ask the question here:

If I want to write an algorithm to sort articles in HackerNews by upvotes and time, is the upvotes information available to Gnus? Assume the RSS feed has a customized field called <RSSBrain:upvotes> for each of the article, does the algorithm have access to that data?

And does Gnus need to get all the articles in a folder/feed and run the sorting algorithm on the fly? If so it seems to be a performance concern. Would love to know how it works in real life.

wb14123··on Show HN: RSS Brain
Thanks for pointing it out! Fixed it.
wb14123··on Show HN: RSS Brain
The link you included (https://www.binwang.me/2022-10-29-RSS-Brain-Yet-Another-RSS-...) has some details, but I guess you are right it's not obvious enough.

The way RSS Brain knows upvotes is by leveraging customized fields in ATOM feed. It will parse the tag <*:upvotes>, <*:downvotes> in each of the article and compute score from there. That means the RSS feed should support those fields in order to let RSSBrain know the upvotes. But the protocol is open so any RSS feed an RSS reader can use those if they think this is a good idea.

So it can only get exiting upvotes from the site. It has no way to upvote when there is no such feature in the original site. However, you can have a customized RSS feed to use upvotes in a different way: for example, for a news website, the position and size of an article usually means the "upvotes" from the editors. Which you can give some weights based on the position and generate a RSS feed that use those weights as "upvotes".

I did two things to make it easier at the beginning:

1. When you subscribe to HackerNews or a subreddit in RSS Brain (that means you paste HackerNews/subreddit URL directly to RSS Brain to subscribe), it will try to parse the content by itself (using some APIs), instead of trying to find a RSS feed. It's not a standard way, but just a way to make it easier while no RSS feeds have those fields yet.

2. I pushed a PR to a very popular RSS generator: RSSHub, so that you can easily add those fields (the doc: https://docs.rsshub.app/en/joinus/quick-start.html#submit-ne...) when create a RSS feed using RSSHub. I've updated its HackerNews RSS feed to generate upvotes fields as well.

wb14123··on Show HN: RSS Brain
I don't have plan to support customize format in RSS Brain for now. But personally I use feeds from RSSHub (https://rsshub.app/) a lot. It's very easy to add a customizable feed to RSSHub (https://docs.rsshub.app/en/joinus/quick-start.html#submit-ne...).

About the cutomizable params, it would be more complex since that means each person's articles need to have difference scores, which multiplies the storage and computation a lot. But on some level the priority of articles is customizable: you can provide customized "upvotes" for each of the articles in a customized RSS feed (an example to provide these fields in RSSHub: https://docs.rsshub.app/en/joinus/quick-start.html#submit-ne...), which will affect the final sorting of the articles.

wb14123··on Show HN: RSS Brain
I can absolutely add this feature!
wb14123··on Show HN: RSS Brain
Thanks for catching it! Not sure why my the spell checker in VIM doesn't catch it. Just fixed it!
wb14123··on Show HN: RSS Brain
Never heard of TweetDeck before. Took a look just now and it looks interesting. Just out of curiosity, what is the normal use case to show multiple feeds at the same time?
wb14123··on Show HN: RSS Brain
As mentioned by other comments there are actually screenshots below. It's not obvious which is my fault. Just added some hint so people will know to scroll down. A demo account to showcase the UI is also a great idea. Will put it into my todo list.
wb14123··on Show HN: RSS Brain
You are absolutely right, just added some hint.
wb14123··on Show HN: RSS Brain
Thanks for the feedback! As a non-native speaker I should definitely use speak checker more often. I don't usually write frontend apps in my work so didn't notice speak checker was not on in my editor. Just fixed a few of them. Actually I've tried ChatGPT and it was amazing. I'll think about how to improve the text but don't want to rely all on AI.
wb14123··on ZFS 2.1.6
I've used ZFS on my daily desktop computer for almost 3 years. I'm using it with ArchLinux. The overall experience is great but here are some notes:

* The cpu usage can be higher if you use compression.

* I used to setup the main pool with SSD cache with HDD data store. It's okay for most use case except slow first time open of applications. But for demanding games it usually has very bad performance.

* ZFS also manage cache by itself so it needs some memory. Personally I'd like to set a cap for it, because otherwise when I open some memory hungry program it tries to write cache onto disk which sometimes makes the system slow. This happens when I only use SSD as cache. Not sure if it can be better with all SSD solution.

* I ran into problem with docker as well. But after change some configurations it works perfectly.

* I use zfs snapshot and zfs send/recv for backups and it is really awesome. I've written a blog about my personal offsite backup solution that you may find useful: https://www.binwang.me/2021-09-19-Personal-ZFS-Offsite-Onlin...

wb14123··on Ask HN: Why does StartPage redirect me to another page frequently?
Happened to me as well. Mostly in private mode. After I submitted that I'm not a bot a few times, it blocks me less and less.
Page 1 of 2Next →