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.

0
0
0
0
0
0
0

neat piece of invisible infrastructure: the Rust portable-atomic crate

your platform doesn’t support a particular type of atomic natively? not a problem, this crate gives you an implementation anyway

how? well there’s a global lock, you see. or, rather, 67 global locks, and which one gets used depends on the address of the atomic mod 67.

but, that’s kinda inefficient, so you wouldn’t want to use it unless it’s your only choice, right?

so they have a bunch of platform specific implementations, such as “let’s detect at runtime if cmpxchg16b is supported” or “this is a microcontroller so if we read it within one instruction we’re fine, and otherwise just disable the interrupts”

and as a result you can just use it and not really think about it, because in 99% of cases it’s gonna do the same thing as what you’d end up with if you bothered to optimize it manually

the ratio of elaborate internals to unassuming API surface is so great here you could easily blink and miss the fact that someone is pulling off heroic feats to make this happen

0
0
0
0
1
0
1
0

[川普執政亮紅燈 民調:美國71%民眾認為國家正失控⸺中央社](cna.com.tw/news/aopl/202601220)

"美國「新聞週刊」(Newsweek)報導,「經濟學人」與「輿觀」於1月16日至19日期間以網路訪問方式,對1722名美國成年公民進行調查,並依全國基準進行加權,抽樣誤差為正負3.2個百分點。

調查顯示,71%的受訪者表示,美國現在已經失控,只有18%的受訪者認為,目前情勢「受控」,另有11%不確定。

即使在共和黨人之中,調查結果也對川普不樂觀,其中有50%表示,美國正在失控,但有38%認為情勢可控,有13%尚不確定。"

0

neat piece of invisible infrastructure: the Rust portable-atomic crate

your platform doesn’t support a particular type of atomic natively? not a problem, this crate gives you an implementation anyway

how? well there’s a global lock, you see. or, rather, 67 global locks, and which one gets used depends on the address of the atomic mod 67.

but, that’s kinda inefficient, so you wouldn’t want to use it unless it’s your only choice, right?

so they have a bunch of platform specific implementations, such as “let’s detect at runtime if cmpxchg16b is supported” or “this is a microcontroller so if we read it within one instruction we’re fine, and otherwise just disable the interrupts”

and as a result you can just use it and not really think about it, because in 99% of cases it’s gonna do the same thing as what you’d end up with if you bothered to optimize it manually

the ratio of elaborate internals to unassuming API surface is so great here you could easily blink and miss the fact that someone is pulling off heroic feats to make this happen

0
1
0
0
0
1

A few days ago I posted, "you may have had your anger stolen from you as a child. If so, you should find it & get it back."

I'm entirely serious about that. A lot of us were trained as kids that the people in charge of us could be angry, but we needed to be quiet & submissive in the face of "authority".

No. Your anger is yours. Your anger is powerful. Find it. Harness it. Direct it.

It was taken from you because it gives you power.

0
0
0
0
1
1
0
0
0
0
1
1
1
1
3
3
1

Winners have been announced for this year’s Public Domain Film Remix Contest! Congrats to filmmaker Andrea Hale for her winning submission, “Rhapsody, Reimagined” 🎩🎷👯

This year’s contest received more than 270 submissions from creators worldwide. 🌐

🔗 View “Rhapsody, Reimagined” & all of the winners, honorable mentions, finalists & submissions here ⤵️
blog.archive.org/2026/01/21/20

🔗 And thanks to NPR for shining a light on these fantastic creators! ⤵️
npr.org/2026/01/21/nx-s1-56777

Screenshot of an NPR article titled "Public domain contest challenges filmmakers to remix Betty Boop, Nancy Drew and more," featuring a still from the 1930 film King of Jazz.
0

crowdsource advice-seeking on latex/markdown

I started writing this book project using zettlr in markdown, because that seemed like the best way to incorporate many citations from a wild variety of journals/books/articles. But I am now having serious problems trying to integrate files.

Latex is hard but I know it quite well, I just don't have a latex editor that I like that's reliable (I'm not doing this on overleaf, it's just me, no sharing needed).

Recs? Advice? I'm running Ubuntu.

0
0
0
1
3
3
1
0
1
0
1
1
0
0
0
0
0
0
0

First week! I’ve been floating in the for all of 7 days now 🍴
Couple observations: Mastodon requires thinking - it’s just quite abstract. But I’ve actually enjoyed the tinkering and the leaning curve. Also, individual servers with specific rules and customs scared me at first, but I’m beginning to think that’s quite a wonderful setup which also solves a lot of issues from mainstream social.

Photo of ‘stars’. Must be a Kusama installation.
0
1
1

from fdisk(8)

DOS MODE AND DOS 6.X WARNING
Note that all this is deprecated. You don’t have to care about things like geometry and cylinders on modern operating systems. If you
really want DOS-compatible partitioning then you have to enable DOS mode and cylinder units by using the '-c=dos -u=cylinders' fdisk
command-line options.

... did people in the past partition their disks with circular geometry?? what???

0
0
0
0
1

Hi everyone. First time posting to .

I’ve been communicating with other people on the internet since 1990. I remember being very excited about working out how to post photos to Twitter from my Windows CE phone by using email.

After gradually retreating into messaging apps over the past ten years and becoming more anonymous on the web it feels strange to be stepping back into a more public and open space.

It feels nice. Like fresh air on your face.

0