Damus
Laurent Bercot profile picture
Laurent Bercot
@Laurent Bercot

Grumpy Frenchman, C/Unix addict, author of s6 and other software at skarnet.org.

Good tech (so, probably not the tech you're thinking about), energy transition and climate change, leftist politics, psychology and self-improvement, pillow philosophy, songwriting and production, mechanisms of storytelling, video games as an art medium, shitposting.

Relays (1)
  • wss://relay.ditto.pub – read & write

Recent Notes

Artemis · 1w
You gotta love how quickly Medical Assistance in Dying goes from merciful relief for people who are dying painfully to "are you disabled? We'd like to rid society of the burden of having you in it. In...
Laurent Bercot profile picture
@nprofile1q... It's difficult to express my hatred and disgust for people who offer death to disabled people rather than, oh I don't know, work towards creating a better social assistance network.

I am a fervent, staunch, absolute supporter of medical assistance in dying. I know exactly how dehumanizing and horrific a painful end of life is, and I believe with all my heart that a staple of civilized society should be that people can go with dignity whenever they want to.

And at the same time, I realize how easily this can be weaponized to get rid of people we don't want to support, because coercion is so easy, and there are a lot of folks out there who are masters of working around consent to get their way. And a lot of the time, it is this perspective, the fear that assistance in dying can be abused, that blocks leftists from supporting it. I disagree with the conclusion they're drawing, I still think dying assistance should be supported, but the fear is very legitimate.

So... it's yet another case of, we can't have nice things because assholes will abuse it. Fuck them with a rusty chainsaw to the deepest bowels of Hell.

(Edit: better phrasing)
1
Я⊛ḶḶ model ‽‽‽ · 1w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0jkeeqdl7q22gw8ax79e4r84e6smhz2wk3ew80ph06nljukle83ql7euty nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq37ruf9lq7ue3fh35p5sltcpsrsvkdfk6vuxtmaglzqd024t3w7ms93nmr0 archeological evidence suggests that 'differently abled' members of th...
note109u5w...
Laurent Bercot profile picture
@Haelwenn /элвэн/ :triskell: The 2030s are probably when we'll start seeing a serious decrease in oil and/or rare earths, so I think tech shit will be the least of our problems. Or it might be the worst, if all the power is still concentrated in the hands of the few, but given how it's going at the moment, there are good chances the shift will happen before we run out.

Cyberpunk has never felt more real, to be honest. 😓
Haelwenn /элвэн/ :triskell: · 1w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0jkeeqdl7q22gw8ax79e4r84e6smhz2wk3ew80ph06nljukle83ql7euty nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqf67qrzm95xe497g0jda70x6uxwr9ru2...
Laurent Bercot profile picture
@Haelwenn /элвэн/ :triskell: @navi You can't use getopt since the first argument can be negative and kill does not enforce a -- at the end of the options.

You need to parse the command line unconditionally interpreting the last word as an argument and doing a limited getopt on the start. And if you get kill -1 -2 -3 then it's ambiguous.

I would love to toss the -signum usage, but it's so fossilized by history that you can't. kill -9 -1 is the common definition of a nuke, and kill -s KILL -1 just doesn't pack the same punch.

If you want another example, try implementing test following the exact specification. It's a true horror show.
1
Haelwenn /элвэн/ :triskell: · 1w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0jkeeqdl7q22gw8ax79e4r84e6smhz2wk3ew80ph06nljukle83ql7euty nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqf67qrzm95xe497g0jda70x6uxwr9ru2j39sg38axfj4ff05c979q3gaasw Yeah, you can't use getopt to parse it entirely, so either you break you...
navi · 1w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqysufjjd485tftr4wy2a83fqyqvtfq0yn820gl8vl6hcsdz8uv2hsu08m52 for the kill one though If the first argument is a negative integer, it shall be inte...
Laurent Bercot profile picture
@navi @Haelwenn /элвэн/ :triskell: it's one of the reasons why I'm so reluctant to implementing some kind of coreutils (beyond the obvious reason that it's huge work): it's a place that carries a lot of historical weight that overrides good practices and habits that were identified and standardized later.

kill is a prime example: kill -1 -1 is a valid command, and the former -1 doesn't mean the same thing as the latter.

😱

And it's like this every time. No wonder new implementations have so many CVEs. coreutils is full of pitfalls.
2
Haelwenn /элвэн/ :triskell: · 1w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0jkeeqdl7q22gw8ax79e4r84e6smhz2wk3ew80ph06nljukle83ql7euty nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqf67qrzm95xe497g0jda70x6uxwr9ru2j39sg38axfj4ff05c979q3gaasw Well for kill(1) one probably could just toss out the kill [-signum|-sig...
navi · 1w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0jkeeqdl7q22gw8ax79e4r84e6smhz2wk3ew80ph06nljukle83ql7euty nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqysufjjd485tftr4wy2a83fqyqvtfq0yn820gl8vl6hcsdz8uv2hsu08m52 i know it's historical, but i still want to know who thought `-$num` w...
navi · 2w
honestly if software were well designed and had sane configuration defaults, we wouldn't really need (basic, port-filtering only) firewalls basically "why is anything listening on a port in a public ...
Laurent Bercot profile picture
@navi even in 2000 when I learned about configuring a router I was like... why do people keep talking about packet filtering on unused ports? if a port is unused then by definition no service is running, so that's not what's dangerous, right?

Yeah. I wasn't thinking of random shit that listens on ports you don't know, because my naive ass thought that every self-respecting sysadmin actually knew what was running on their machine.

I still think that, I just think there really aren't many self-respecting sysadmins.
1
Haelwenn /элвэн/ :triskell: · 2w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0jkeeqdl7q22gw8ax79e4r84e6smhz2wk3ew80ph06nljukle83ql7euty nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqf67qrzm95xe497g0jda70x6uxwr9ru2j39sg38axfj4ff05c979q3gaasw Well, I can understand the poor sysadmins who have to deal with stuff li...
Laurent Bercot profile picture
Hot take: anyone who believes there is no artistic value in programming is someone whose judgement about code I do not trust or value. Not on the artistic side, and not on the engineering side either.