News for hackers. Stuff that matters.
Re:Ask HN: What's your proudest hack? by tux2bsd on Tuesday December 13, 2022 @04:04AM (#33966374)
The official updater for FreeBSD (freebsd-update) is inefficient, it does internal spaghetti which prevents it from doing the most logical thing FIRST : "check if upstream changed" (it checks after a bunch of other stuff but it's so intertwined that it's safer/easier to not fix freebsd-update)

I created a work around: if upstream changed then do stuff.

I scratched my own itch, it was kinda neat to effect a several hundred times speed increase on a certain condition (if no updates, tell me quick (freebsd-update cannot do this)).

https://github.com/tux2bsd/freebsd-update-probe

Oh, and I'm not a programmer.

On FreeBSD:

I don't use FreeBSD, but I'd recommend it to try out as a hobby OS. It has a few cool things: hard separation of OS vs external software, & /etc/rc.conf, & pkg.

They HATE me at the FreeBSD Forums - a horrendously in-group place, full of moderator groupies (bizarre).

Those forums actually do the FreeBSD project a disservice, embarrassingly hyper anti-linux (the 'tux' in my handle was enough for their initial hostility).

The project as a whole is coasting on ZFS success. That said, they were on the money with their early and committed adoption of ZFS.

Re:Ask HN: What's your proudest hack? by vermaden on Tuesday December 13, 2022 @06:31AM (#33967459)
Hi,

I really liked your probe ... and yes freebsd-update(8) may be useful for small updates from -pX to -pY but large updates like from 12.1 to 12.2 are real PITA.

The HardenedBSD (FreeBSD fork) made its own hbsd-update(8) tool which just fetches whole new OS and after extraction installs/updates needed things. But its PITA for small updates :)

Sorry to hear you have bad experiences with FreeBSD Froums ... but to be honest I do not often go there now - just ocasional visits.

I used to love BSD forums when the BSDForums.org existed. Then we started over with DaemonFroums.org as BSDForums.org was shutdown by some asshole admin ... and not long ago official FreeBSD Forums appeared.

Not sure why they (at FreeBSD Forums) would chase you as you provided really nice solution/frontend to freebsd-update(8) tool.

Regards, vermaden

Re:Ask HN: What's your proudest hack? by tux2bsd on Friday December 16, 2022 @05:57PM (#34021765)
It's a strange thing, people like Shaun Webb that demonstrate high intelligence in a specialized field can simultaneously be mindless sheep and follow/advocate "the current thing"...
Re:Ask HN: What's your proudest hack? by anthk on Thursday December 15, 2022 @12:05AM (#33995449)
OpenBSD had a similar issue with pkg_add, later it used caching (and anyway, curl connects much faster than ftp(1) ) and package updates are much faster now.
Re:Ask HN: What's your proudest hack? by tux2bsd on Friday December 16, 2022 @05:47PM (#34021680)
Nah, pkg_add works differently at a fundamental level. Yes, OpenBSD improved pkg_add significantly.