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.

ok, so, you know how the standards (C/POSIX) allow malloc(0) to return NULL?

i went to refresh my memory after a discussion of a security issue today and as best as i can tell, no commonly used OS has ever had malloc(0) return NULL, including historical ones¹. windows, glibc, musl, BSDs, all return a non-NULL pointer to some object

¹nabijaczleweli.xyz/content/blo

0

おっさんにとっての参政党が維新や国民民なのね。外国人は差別しないが日本語が普通に出来て日本の常識を身に着けてない人に仕事は任せられない。人権は大事かもしれないけどそれだとビジネスが回らない。こういう思考回路。

0

 今日読んでた漢文の入門書に、「わらびから採れるわらび粉だけで作られるわらび餅は現在では希少ですが、作られてはいます(おいしいです)」(齋藤希史・田口一郎『漢文の読法』)というくだりがあって、どうしても「(おいしいです)」と書かなければならなかったのだなと思い、しみじみしました。

0
0
0

昨日の投稿について、ずっと考えて、やっぱりコメント返しをすることにした。政治的投稿の無いアカウントが排外的なコメントしてくるって相当やばいですよね…
ああいう人らに何が響くのかわからない。人間扱いされるより日本人でいたいんだって🤷🏻‍♂️

コメントしたのは以下の文

日本人が貧しいと思うならそれは政治の失敗です。外国人を叩いてパイの奪い合いをさせて得をするのは社会保障を削りたい政府でしょう。外国人も税金を納めてます。わざわざ帰化までしてくれるのは御の字でしょう。海外支援も外交面で日本の利益に繋がります。外国人を敵視するのは治安を悪くすることに繋がります。愛国心を煽るのは戦争への布石です。戦争は金儲けがしたい一部の人達によって悪いのはあいつらだと仕掛けて始まります。

0
0
0
0
0
0

Poll: Once I get my handmade assembler set up tomorrow, what should I do first?

(Note: I have already made my decision and will absolutely not listen to your opinion. But I'm still curious to hear it.)

I made a game boy ROM! It draws a stylized rule 110 cellular automata. It is generated by this code:

codeberg.org/mcc/nil-macro/src

Note "generated"; all code runs at compile time! This just generates the bytes of a Game Boy format tileset and tilemap, to be included in the rom; the actual drawing is all done by the GBDEV.IO tutorial sample code.

Below you can see the thing taking shape, its current form in bottom right (colors didn't turn out *quite* how I wanted…):

A grid of plain trianglesA big blocky rule 110 cellular automataStrange glitchy pixel scratches hugging the left side of the screenA cool swoopy stylized pyramid oddly reminiscent of the rule 110 image from before
0
1
0
2

Interesting take on the current state of , though this video does not address iOS/MacOS/iPadOS 26's low contrast translucent glass bubble whatever-they-call it icon theme. I'm just glad the razor-thin fonts and ultra-flat theme of iOS 7 is history.
youtube.com/watch?v=WEyFfV_qzE

0
0
1
0
0
0

People who deal with nvidia GPUs on Linux for computation: do you have a favorite stress test program that will reliably make marginal GPUs fail (eg, drop off the PCIe bus)? I thought I had found one but then it failed to consistently reproduce our problem (while people here can frequently do it but only with opaque SLURM jobs that we can't really pick up and use for diagnostics, plus graduate students are busy people).

0
0
0
0

Remember: It's not "AI", it's surveillance tech. It's gathering all your personal information and activities and putting them into one big funnel. Companies may not *know* why they're making this big funnel yet, but they'll monetize it eventually. And whether the companies monetize the data funnel or not, the NSA will still be (is certainly already) drinking every drop.

USGOV spliced the fiber between Google's data centers 15 years ago, of COURSE they've got a tap on the OpenAI API queries now!

0
0
0

 河合ゆうすけが今度はブラジル系を標的にしているの、それこそ日本のヒップホップ業界にはAceとかSATORUとかブラジルルーツのラッパーも多いんだから、差別主義者に対して団結前夜したらどうなんだい?とは思ってしまうな。

0

 河合ゆうすけが今度はブラジル系を標的にしているの、それこそ日本のヒップホップ業界にはAceとかSATORUとかブラジルルーツのラッパーも多いんだから、差別主義者に対して団結前夜したらどうなんだい?とは思ってしまうな。

0
0
0
0
0
0
0
0
0
0
0

看穿越文主角纯手工制作粗制阿司匹林,想到以前在实验室制备乙酰水杨酸,很基础的必修课程,但这个技术最开始是一家初创医药公司辛辛苦苦用各种药品乙酰化试出来的,阿司匹林乙酰化之后大大降低了胃肠道反应,成为它家第一个赚钱产品,这个公司就是如今的业界巨头拜耳。
乙酰水杨酸大获成功,它家再接再厉,把吗啡也乙酰化了,想要重复阿司匹林的奇迹去掉吗啡的副作用……
然后做出了它家第二个产品,二乙酰吗啡,也就是……海洛因(。 :ablobcatknitsweats:

0
0
0
1
0
0
0
7
0
0
0

黃暐瀚:「不是我變綠了,是你變紅了。」
他發文🔽
1、台灣在中華民國治下是獨立國家
2、我是台灣總統
3、中華民國是我們的國家,台灣也是我們的國家。

引來大量白藍罵賴清德民進黨,綠營側翼
結果黃暐瀚公布:是馬英九說的🤣

黃偉瀚不愧是資深馬迷,只有馬迷才記得那麼清楚🤣不要再說他是綠的了。他要切心了

0
1
1