What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

Bikeshed color query

In Rust, I want to create a vector of length `size.x` and I want to initialize every member to a new object of type SmolBitmap. Is there a cleaner/more idiomatic/"better" way of doing it than

let mut visited:Vec<_> = (0..size.x).map(|_|SmolBitmap::new()).collect();

0
1
0
0

The other day I learnt that enabling syncookies in pf on OpenBSD lights up your server like a Christmas tree. Or in other words, it made the server respond to _every_ incoming tcp syn packet with syn/ack, making the bots scanning the internet think the port was open, even though the final ack would be dropped when rules were then evaluated. This increased scanning by a lot! Or so it seemed to me at least.

The reason for this experimentation was I got to experience what I think was a tiny syn-flood attack, and I was trying things to see what I could do to mitigate on my end.

I'll maybe write more about this after the holidays.

0
0

i wonder if anything wrote about that thing in the middle, like where it devolves into terrible abstract pseudosmart "thinking". what's that and why does it still recover into a good answer in the end

0
0
0

it's funny to read claude thinking mode output. when it works well, it's always - starts with a few paragraphs that directly make sense - starts writing down some concrete ideas and directions - ... - "the emerging framework centers on actionable insights..." - ... but somehow comes out good

0
0
0
0

Dare to be inconvenienced.

We have been trained to prioritize "seamless" experiences over ethical ones. But every convenience has a hidden cost, whether it is labor rights, environmental impact, or the erosion of privacy.

Efficiency is a metric for machines, not for a meaningful life. When we stop choosing products solely for their convenience, we reclaim our agency. We choose local over global, human over algorithm, and sustainable over instant.

What would happen if we stopped using services that do very little good for society, even if it means taking the long way around?

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
0
0
0
0

Friends, I feel like maybe :tootcat: should (nay, is meowally compelled to) toss a chunk into this:

.meow — Next Round gTLD Application

It sounds excellent. Any reason not to? (...aside from them using ... though at the moment, I can't even remember why Kickstarter has a red flag in my brain.)

(h/t to @FrozenTrout for drawing this to my attention, and to @HarenaHarena :ferret: :kfgreen: for drawing to my attention the fact that @FrozenTrout had drawn it to my attention ^.^)

0
0
0
0
0
0
0
0
0

RE: hachyderm.io/@dotmeow/11574761

Supported! Not just for the sake of the queer community, but I want to see it succeed for the sake of the internet as a whole. There has been talk about non-profit gTLDs but every time people say "it's too hard". If this can work it can be a model for communities to guarantee for themselves web addresses that can not be taken away or price-gouged.

0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0