frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Tiny C Compiler

https://bellard.org/tcc/
81•guerrilla•2h ago•33 comments

SectorC: A C Compiler in 512 bytes

https://xorvoid.com/sectorc.html
165•valyala•6h ago•30 comments

Speed up responses with fast mode

https://code.claude.com/docs/en/fast-mode
101•surprisetalk•6h ago•99 comments

Brookhaven Lab's RHIC concludes 25-year run with final collisions

https://www.hpcwire.com/off-the-wire/brookhaven-labs-rhic-concludes-25-year-run-with-final-collis...
40•gnufx•5h ago•43 comments

The F Word

http://muratbuffalo.blogspot.com/2026/02/friction.html
90•zdw•3d ago•41 comments

You Are Here

https://brooker.co.za/blog/2026/02/07/you-are-here.html
48•mltvc•2h ago•58 comments

Software factories and the agentic moment

https://factory.strongdm.ai/
123•mellosouls•9h ago•257 comments

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
873•klaussilveira•1d ago•267 comments

Hoot: Scheme on WebAssembly

https://www.spritely.institute/hoot/
163•AlexeyBrin•11h ago•29 comments

Stories from 25 Years of Software Development

https://susam.net/twenty-five-years-of-computing.html
121•vinhnx•9h ago•15 comments

FDA intends to take action against non-FDA-approved GLP-1 drugs

https://www.fda.gov/news-events/press-announcements/fda-intends-take-action-against-non-fda-appro...
48•randycupertino•1h ago•46 comments

First Proof

https://arxiv.org/abs/2602.05192
87•samasblack•8h ago•61 comments

Show HN: A luma dependent chroma compression algorithm (image compression)

https://www.bitsnbites.eu/a-spatial-domain-variable-block-size-luma-dependent-chroma-compression-...
24•mbitsnbites•3d ago•1 comments

Show HN: Browser based state machine simulator and visualizer

https://svylabs.github.io/smac-viz/
7•sridhar87•4d ago•3 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
257•jesperordrup•16h ago•84 comments

Al Lowe on model trains, funny deaths and working with Disney

https://spillhistorie.no/2026/02/06/interview-with-sierra-veteran-al-lowe/
76•thelok•8h ago•16 comments

Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version

https://github.com/Momciloo/fun-with-clip-path
45•momciloo•6h ago•7 comments

Start all of your commands with a comma (2009)

https://rhodesmill.org/brandon/2009/commands-with-comma/
542•theblazehen•3d ago•198 comments

I write games in C (yes, C) (2016)

https://jonathanwhiting.com/writing/blog/games_in_c/
157•valyala•6h ago•139 comments

The AI boom is causing shortages everywhere else

https://www.washingtonpost.com/technology/2026/02/07/ai-spending-economy-shortages/
227•1vuio0pswjnm7•12h ago•359 comments

Microsoft account bugs locked me out of Notepad – Are thin clients ruining PCs?

https://www.windowscentral.com/microsoft/windows-11/windows-locked-me-out-of-notepad-is-the-thin-...
65•josephcsible•4h ago•81 comments

Reinforcement Learning from Human Feedback

https://rlhfbook.com/
105•onurkanbkrc•11h ago•5 comments

Selection rather than prediction

https://voratiq.com/blog/selection-rather-than-prediction/
21•languid-photic•4d ago•5 comments

72M Points of Interest

https://tech.marksblogg.com/overture-places-pois.html
45•marklit•5d ago•6 comments

Unseen Footage of Atari Battlezone Arcade Cabinet Production

https://arcadeblogger.com/2026/02/02/unseen-footage-of-atari-battlezone-cabinet-production/
131•videotopia•4d ago•43 comments

Coding agents have replaced every framework I used

https://blog.alaindichiappari.dev/p/software-engineering-is-back
287•alainrk•11h ago•466 comments

A Fresh Look at IBM 3270 Information Display System

https://www.rs-online.com/designspark/a-fresh-look-at-ibm-3270-information-display-system
54•rbanffy•4d ago•15 comments

France's homegrown open source online office suite

https://github.com/suitenumerique
667•nar001•10h ago•290 comments

Where did all the starships go?

https://www.datawrapper.de/blog/science-fiction-decline
114•speckx•4d ago•159 comments

Learning from context is harder than we thought

https://hy.tencent.com/research/100025?langVersion=en
215•limoce•4d ago•123 comments
Open in hackernews

Precompiled headers and why Squid won't be using them (2023)

https://squidproxy.wordpress.com/2023/10/10/precompiled-headers-and-why-squid-wont-be-using-them/
16•mooreds•3mo ago

Comments

o11c•3mo ago
This blog post has a few inaccuracies, so the situation isn't as bad as it seems. (It is still annoying and requires thought though).

I'm just going to ignore the part where Clang apparently sabotages itself by requiring `-include-pch`. You really shouldn't be using Clang in production because it has all sorts of hard limitations so I am not at all surprised at hitting another one; even if this particular one gets fixed, you'll still run into several others, whether you realize it or not (since usually it silently does the wrong thing). Your `./configure` should already be detecting "is this an actually-working GCC" anyway, so you can use that as the condition before you enable the PCH logic at all.

The "can only use one PCH per compilation" limitation also exists in GCC and is well-documented there since I started using it (maybe in 2010?), but as noted it is not a major limitation. Assuming you're practicing sufficient rigor for your build process, you basically have 3 options: only one PCH for the whole project, one PCH per directory-ish (assuming each directory is a semi-independent part of the project; this is probably sanest), or try to precompile all headers (this has performance implications for whenever you edit a header).

The "build vs src" purity problem has a simple solution - just use `-I` to specify an "overlay" include directory that is in the build directory, and have your PCH-making rule specify that in the first place. That's it.

aw1621107•3mo ago
> You really shouldn't be using Clang in production because it has all sorts of hard limitations

Wait, do you mean you shouldn't be using Clang PCHs in production, or shouldn't be using Clang in production at all?

o11c•3mo ago
At all. Clang has a lot of footguns, and filing bugs about "regression compared to GCC" does not actually get them fixed.

Remember, the whole point of Clang is so that people can make their proprietary compiler forks. Everything else, including quality, is secondary.

nuudlman•3mo ago
Do you have any specific examples here?

While no compiler is perfect (e.g., pointer provenance), one could just as easily argue that Clang has higher quality—most modern C/++ tooling is built on it, sanitizers are brought up in Clang and sometimes ported to GCC later, all of the modern safety work is in Clang (-Wbounds-safety, the various thread safety approaches, lifetime analysis, Sean’s borrow checked C++, Fil-C). The Clang static analyzer has also been used in production for over a decade, whereas -fanalyzer is still experimental and limited to C, …

I have the feeling that the bugs that aren’t being fixed are either because the bug report is unactionable (3yr old Ubuntu Franken-clang is slower than than 3yr old franken-gcc) or because the problem is very non-trivial (e.g., you can find recent discussion about enabling dependence analysis by default, the aforementioned pointer provenance issues stemming from C, ABI/lowering warts around large _BitInt)

NickGerleman•3mo ago
PCHs give a sour taste in my mouth after working on a project which very liberally added commonly imported headers to a huge one. In practice, it meant each TU was indirectly including many more headers than needed, and it was harder for humans (or IDEs) to reason about the real dependency chain. While builds were faster, they also started using much more memory.

You also can end up needing to rebuild the world, if touching a header that is part of the PCH, even if it isn’t really needed by all the targets.

Modules and header units were supposed to solve these a lot more cleanly, but is still not well supported.

mayoff•3mo ago
I hate cmake but this is something cmake does well in my experience. I had to write a Godot 4 plugin and Godot has many many header files. I made a project header that #included all the Godot headers, and a single target_precompile_headers directive in CMakeLists was enough to get it working on Mac and Linux (and I think on Windows but I didn’t need to run it on Windows).
limoce•3mo ago
Do C++ modules solve this problem?
o11c•3mo ago
C++ modules solve exactly one of the problems - the "one pch limit" one - at the cost of introducing several more. Certainly they are not more compiler-independent!
pjmlp•3mo ago
Kind of, the current problem is they aren't fully mature, you great a good experience with VC++ and clang (vLatest), alongside MSBuild/CMake/ninja.

VS IDE tooling is stil kind of broken because they rely on EDG instead of VC++, and fixing module intelisense has been low priority for EDG, and MS as well as I would assume a $4 trillion valued company would care about their suppliers.

Clion has better support on that regard.

GCC is still not fully there, and Apple clang, well Apple is happy with module header maps for their Swift/Objective-C integration, so lets see.

pyuser583•3mo ago
Wow I didn’t know Squid is still around. Not the kind of software that gets much publicity.
pjmlp•3mo ago
Naturally they don't care about Windows and then blame precompiled headers.

Traditionally they always sucked on UNIX systems, the only place I have been able to fully enjoy the improvements they bring to the table has been in PC systems, since Windows 3.x, across OS/2, and Borland/Microsoft compilers ever since.

Additionally, on my C++ hobby coding, since I am on Windows, I am fully into modules.

xonre•3mo ago
Tl;dr: it's an autoconf problem

Article also misses: comparing speed of full rebuilds. Pch gives massive speedup on edit-compile-debug cycle or when several modules can share a single pch.