Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
LukeShu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
80 ms
·
781.
▲
by
LukeShu
8y ago
A use-case I've long wanted it for is better "--help" messages. If you want to tell the user how to invoke the program again, argv[0] is the right thing: Given: #include <stdio.h> int main(int argc, char
782.
▲
by
LukeShu
8y ago
I'm a fan of reading code. I would generally describe a GNU/Linux distro as being a "giant pile of shell scripts". That's a little less true with init scripts generally now being systemd units. But that's wh
783.
▲
by
LukeShu
8y ago
Don't all of those arguments also apply to libraries and museums?
784.
▲
by
LukeShu
8y ago
By "breaks symlinks", he means that if you run `sed -i` (without `--follow-symlinks`) on a symlink, then it will turn the symlink in to a regular file. GNU sed has `--follow-symlinks` which adjusts this behavior to edit the targe
785.
▲
by
LukeShu
8y ago
GNU sed has `--follow-symlinks` to have `sed -i` avoid turning symlinks in to regular files.
786.
▲
by
LukeShu
8y ago
This was originally submitted with a title something like "Mental Models the DuckDuckGo founder finds useful", and the mods have apparently changed it to the title on Medium. I think that in instances like this, who "I"
787.
▲
by
LukeShu
8y ago
I suspect that Firefox is relying on modern-ish GPU features to make things "fast", but Mesa is straining the CPU to emulate those features, which are missing from your older GPU. (Software going "I'll use the GPU, that
788.
▲
by
LukeShu
8y ago
Several discussions of Die Hard being a Christmas movie happen in the show Brooklyn Nine-Nine, as Jake Peralta (Andy Samberg) is obsessed with the movie.
789.
▲
by
LukeShu
8y ago
Lightspeed Systems' web filter does DPI to determine if the connection setup actually resembles HTTPS.
790.
▲
by
LukeShu
8y ago
Have you actually tried this? I expect that it wouldn't work very well. There's a bit of common wisdom of "don't do TCP over TCP"; the reason WireGuard uses UDP is that UDP faithfully forwards-up-the-stack the unr
791.
▲
by
LukeShu
8y ago
You don't go with an Intel GPU because you want a powerful GPU, you go with an Intel because you want a reliable GPU that will never give you any problems, ever. With an AMD or something else, maybe it's more powerful, and works f
792.
▲
by
LukeShu
8y ago
https://github.com/Debian/dcs
793.
▲
by
LukeShu
8y ago
The spec says: > For signed integers, the operations +, -, , /, and << may legally overflow and the resulting value exists and is deterministically defined by …* It does not go on to define the overflow values; that gets to
794.
▲
by
LukeShu
8y ago
32 bit ARM is still very common.
795.
▲
by
LukeShu
8y ago
The FSF's core message is "users deserve source code." Apple does not give users the iPhone source code. It's as simple as that.
796.
▲
by
LukeShu
8y ago
I should have said "in the USA".
797.
▲
by
LukeShu
8y ago
Apparently, the 10.7→10.8 update is when macOS switched from GNU grep to FreeBSD grep.
798.
▲
by
LukeShu
8y ago
Interesting. What does `type grep` say? Is it possible that it's /usr/local/bin/grep from homebrew/macports/…, and that /usr/bin/grep is BSD grep? I found a comment claiming that prior to
799.
▲
by
LukeShu
8y ago
Campaigning actually involves fairly little persuasion; very little fighting over that last one-to-five percent. It's mostly identifying which half of the people are already your side's followers, and encouraging/motivating
800.
▲
by
LukeShu
8y ago
I was surprised to read that some versions of cat (apparently BSD Net/2 and derivatives) have special code for sockets . What does cat do with sockets!? Well, AF_UNIX sockets are sockets with paths in the filesystem. You must either
801.
▲
by
LukeShu
8y ago
I don't believe that macOS grep was ever GNU grep. I believe that macOS always used a BSD variant of grep.
802.
▲
by
LukeShu
8y ago
In the earliest references, it was "concatenate". It wasn't until 7th edition UNIX (1979) that "catenate" was given. References: - 1971 draft (pre 1st edition) of the paper that would become the well-known 1974 CAC
803.
▲
by
LukeShu
8y ago
Well, the FSF defines "“proprietary software” as synonymous with nonfree software."[1] But that's kind of a cop-out answer. "Proprietary" means that the copyright holder retains certain rights, rather than granting
804.
▲
by
LukeShu
8y ago
> "you should ask them if proprietary is better [than Commons Clause]." Neither is better, because they are the same. Commons Clause is proprietary. If a piece of FOSS that I used became proprietary, I would fork (or use a
805.
▲
by
LukeShu
8y ago
With IBM's mechanical switches, it's the same mechanism causing actuation and tactile feedback. With some modern mechanical switches, they're separate mechanisms, which means that they can disagree slightly. For example, wi
806.
▲
by
LukeShu
8y ago
I used to work at a startup that made physical robots. The robot generated several GBs of data every time it turned on. You're correct, most of that data wasn't looked at most of the time. But every now and then, someone would
807.
▲
by
LukeShu
8y ago
For the same reason read(3) returns EBADF if you pass it a bad file descriptor. Why doesn't the libc wrapper around the syscall just abort() if I give it a bad file descriptor? In systemd-networkd, the "asserts" assert the p
808.
▲
by
LukeShu
8y ago
The icecream shop is actually "Emack and Bolio's". This leads me to believe that Bolio was named for the icecream shop (punning Emacs~Emack's), but that Emacs was not named for the icecream shop. (Emack and Bolio'
809.
▲
by
LukeShu
8y ago
That's what systemd does. For instance, the article uses a couple of asserts in dhcp6_option_parse_domainname(). By the time that function is getting called, the values should have already been validated, and the asserts (which are a
810.
▲
by
LukeShu
8y ago
> doesn't invent DSLs Systemd didn't invent a DSL. It uses the existing config language from D-Bus (whether or not you think that's a good language is another matter). > uses proper architecture with clearly defined
More ›