Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

4,901 karma · joined Sep 13, 2020 (6y ago) · 1,641 submissions

Submissions

comment 4y ago · link · parent

Personally, I consider GATs a lot easier to understand than async. It doesn't transform my code into something completely different than I'm seeing. It's just the ability to put a generic parameter in one more place, paradoxically reducing the number of traits.

It's something that you naturally try to write when you don't know it's not supported, rather than an additional thing to learn.

comment 4y ago · link · parent

I hope you don't read any OpenBSD slides... ;)

comment 4y ago · link · parent

https://archive.ph/uZa0n

comment 4y ago · link · parent

100% this. A couple times I've considered moving my personal website to AWS, but each time I got lost in the documentation trying to keep all the different moving parts in my head. At the end of the day managing a single VPS running debian+nginx+certbot[1] with a Gandi domain is orders of magnitude simpler.

[1]: I'm probably going to move that to FreeBSD/OpenBSD with OpenBSD's relayd+httpd+acme-client at some point, but the general idea stays the same.

comment 4y ago · link · parent

It's funny how BBC annotated American/Oxford spellings with "[sic]".

comment 4y ago · link · parent

That to me sounds like moving the problem from a privileged binary to a privileged daemon and putting a network stack in the middle. I don’t see how it solves anything. Any way you can secure sshd you can probably apply to the suid binary as well.

comment 4y ago · link · parent

Sudo must be the program with the largest number of buffer overflows I’ve heard about. That news is repeating itself ever since I remember.

Maybe a good time to plug doas, a simpler alternative to sudo from OpenBSD folks[1], developed partly due to security fears about sudo. It’s also been ported to Linux and is available in e.g. Alpine and Debian.

[1]: <https://flak.tedunangst.com/post/doas>

comment 4y ago · link · parent

Are there any standard benchmarks for POSIX systems, facilitating objective comparisons between schedulers? When I was reading the dinosaur book, I was continually impressed by the elegance of solutions used in Solaris, scheduler being one of the highlights. However, a sense of elegance may be poorly calibrated, and I’d like to look at some hard data about how Solaris (today Illumos) stacks up against BSDs and Linux. Sadly I’m not knowledgable enough about operating systems to write a good set of such benchmarks myself, so I’d prefer to lean on the expertise of smarter people.

comment 4y ago · link · parent

https://www.phoronix.com/review/bsd-linux-eo2021

comment 4y ago · link · parent

> You should have the modules downloaded to the module cache for the occasional case when you don't have direct internet access.

That’s assuming I’ve built the thing previously on that same computer. I’m talking about the common case of working on a normal desktop day-to-day and then switching to a laptop, when travelling to a place without internet (or internet of such a poor quality you might as well not bother). With vendoring I don’t need to think about any other steps than copy/checkout the repo. The repo is self-contained. Without it, I’m making the quantum leap to a checklist.

comment 4y ago · link · parent

Vendoring also means your builds don’t need an Internet connection.

Going on a trip somewhere without an Internet connection? Checkout the repo on your laptop and go. Without vendoring: oh shoot, I forgot to download the deps, I guess I’m going to be forced into a work-life balance. With vendoring: no additional step needed after checking out the repo. The repo has everything you need to work.

Another case: repo of your dependency is removed, or force-pushed to overwriting history. You’ve lost the ability to build your project, and need to either find another source for your dependency, or rewrite it. With vendoring: everything still works, you don’t even notice the dep repo went under.

Generally, with vendoring your code is in just one place instead of being a distributed being which crumbles when any part of it gets sick.

Moreover, relying on checksums to me seems a bit overcomplicated. It’s like going to a pub and giving each drink from a stranger to a chemist for verification to make sure they didn’t slip any pills, when you could just carry your own drink around and cover the top with your hand.

comment 4y ago · link · parent

Linux kernel publishes util-linux, iproute2 and perf at the very least. I don’t see why they couldn’t publish an so.

comment 4y ago · link · parent

As a former child I suspect in most cases the pleasure is all parent’s in such a conversation. I’ve never liked showing incomplete things.

comment 4y ago · link · parent

Git tags can be changed, i.e. which commits they point to may change over time.

comment 4y ago · link · parent

Closing a file doesn't trigger a cascade of closing other files, while freeing memory in RAII does trigger a cascade of more frees.

comment 4y ago · link · parent

The original thread: <https://twitter.com/echetus/status/1579776106034757633>

Just wow. I’ve been hearing about Wikipedia having a surplus of money for a while, it didn’t bother me. But after seeing what sort of nonsense they’re funding I’m cancelling my donations.

comment 4y ago · link · parent

I use Alabaster[1]. Contrary to most themes, it is quite minimalistic and it emphasises comments instead of de-emphasising them. I like the minimalism, because it lets me focus, instead of marking every single thing on the screen as a different colour of “important” making my head spin.

[1]: <https://github.com/tonsky/sublime-scheme-alabaster>

comment 4y ago · link · parent

I have an iPhone 13 Mini and in those conditions it will never take even a good photo. To make anything even half-decent excellent light is needed. When I look online at those articles-ads about phones being great at photography now they use a combination of great light and a boatload of RAW editing.

Plus you need to mind that it’s the standard problem of people saying they don’t hear the fans of their computer, don’t see the tearing in X, and finally don’t see the loads of noise and loss of sharpness in phone photos. Discussing those things is basically futile.

As a side note, a touch screen is never going to be able to compete with the comfort of physical buttons on my DSLR.

comment 4y ago · link · parent

That explains it. Thanks.

comment 4y ago · link · parent

I've watched the video and I still don't understand how you get the wire through the conduit though. Part of the video seemed to happen through telekinesis: the part where a wire magically came out of the wall, allowing you to pull from the other side.

comment 4y ago · link · parent

I can sort of see how that may be the case with Musk and Zuckerberg, but Gates? Is it normal in US for upper middle class fathers to be partners at multi-national law corporations?

comment 4y ago · link · parent

This case is more akin to a TV network, since the ad is publicly broadcasted based on what people are watching/reading. It’s not private correspondence.

comment 4y ago · link · parent

I'd expect higher quality code review from OpenBSD folks (who maintain LibreSSL), compared to OpenSSL.

Also, an interesting talk: LibreSSL: The first 30 days, and what the Future Holds from BSDCan: <https://www.youtube.com/watch?v=oM6S7FEUfkU>

comment 4y ago · link · parent

Yup. Using NetNewsWire.

comment 4y ago · link · parent

Chess is immortal, not because its inventor left clear instructions how to make chess boards and pieces, but because the rules are well understood. To extrapolate it to video games it wouldn’t be about preserving the source code, but having a good understanding of what makes a game what it is. It’s more like all the different versions of Doom or Mario, which do not really share code.

comment 4y ago · link · parent

BTW how do you test a personal workstation backup? I don’t have backup workstations to rotate between by backing one up, restoring on the other, working and then cycling between them in this manner. How do you test the restore procedure without risking destruction of the original?

comment 4y ago · link · parent

I stand corrected. As I’ve double-checked now, unfortunately “UTC” is ambiguous in that it may refer both to the time standard and the time zone. In this case one can say that Unix time is based on UTC the time standard, but not the time zone. Although given that in Unix time every day has the same number of seconds and instead the clock is sometimes slowed down, while in UTC there is an additional 61st second, can we truly say that it’s UTC-based? I’d say it’s its own standard derived from UTC. Maybe that’s being too pedantic.

comment 4y ago · link · parent

Unix time is not UTC-based. It counts the number of seconds passed since a certain point in time, which may be described as date and time expressed in any time zone you like. It just so happens that in UTC it is easiest to remember for a human what this point was, since you get a lot of zeroes at the end.

Edit: I’m not entirely correct here, as aside from UTC the time zone, there is also UTC the time standard. See below.

1
242526
55