Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 49,257 posts.

Any topic
Any year
27183

Initialization in C++ is Seriously Bonkers

I was recently reminded of why I think it’s a bad idea to teach beginners C++. It’s a bad idea because it is an objective mess—albeit a beautiful, twisted, tragic, wondrous mess. Despite the current state of the community, this post is not a polemic against modern C++. This post is partly a follow-up on Simon Brand’s…

27186

Bizarre Talmudic Scenarios

On this page of Talmud we read of a very bizarre case: יבמות נד, א  אָמַר רַבָּה: נָפַל מִן הַגָּג וְנִתְקַע — חַיָּיב בְּאַרְבָּעָה דְּבָרִים, וּבִיבִמְתּוֹ לֹא קָנָה. בְּנֵזֶק, בְּצַעַר, בְּשֶׁבֶת, בְּרִפּוּי. אֲבָל בּוֹשֶׁת לָא מִיחַיַּיב, דְּאָמַר מָר: אֵין חַיָּיב עַל הַבּוֹשֶׁת עַד

27194

Adobe's Source Code Pro Font

Source Code Pro is a new font released by Adobe. It does wonders for technical fixed width and source code text readability. I highly recommend to use this font with your text editor, terminal and other software development tools (Especially if your eyes are getting old like mine). UPDATE 2: I am not sure how

27197

Own Constant Folder in C/C++

I was talking with someone today that really really wanted the sqrtps to be used in some code they were writing. And because of a quirk with clang (still there as of clang 18.1.0), if you happened to use -ffast-math clang would butcher the use of the intrinsic. So for the code: __m128 test(const __m128 vec) { return…

27202

Personality Basins

Personality basins are a mental model that I use to reason about humans within their environment: from modelling why people are they way they are, how they change over time, how mental illnesses and addiction function along with how we should look for their cures, and how the attention economy optimizes itself to…