Write portable code

Write portable code in C++ — with three ready prompts, from the immediate task to the lasting pattern.

3prompt heights
Open it in the interactive atlas →

3 ready prompts

Written for the moment this actually comes up.

Improve — make it easier to accept

+
Before I drop this into the repo, make it easy for a reviewer to judge portability: list any…
Before I drop this into the repo, make it easy for a reviewer to judge portability: list any remaining system calls or extensions, move endian, alignment, and path handling into a tiny portability layer with clear names, surface ABI-sensitive choices at the top, and flag anything that requires compiler-specific flags or headers that will break cross-compilation.

Decide — diagnose the stuck moment

+
I just built the feature branch on my Windows dev box and MSVC errors out on alignas usage and a…

I tried building on Windows and it failed at compile with alignment attributes.

I just built the feature branch on my Windows dev box and MSVC errors out on alignas usage and a pragma I copied from Linux. The team is James on build infra and Maria who owns release builds. I’m worried this hides an ABI difference or a lost dependency I cannot see from here. Is this likely a header/attribute mismatch or a deeper compatibility bug, and what do I do first to unblock the Windows build without disturbing the Linux CI?

Become — change the pattern

+
We keep losing time when a change that works on my Linux machine breaks Windows or macOS builds.…

Each cross-platform change triggers one frantic weekend fixing build breaks.

We keep losing time when a change that works on my Linux machine breaks Windows or macOS builds. The pain points are platform-specific headers strewn through the code, implicit assumptions about sizes and endianness, and ad-hoc compiler flags added by whoever made the quickest fix. Which habits should I make the team adopt so we stop shipping platform debt and shorten those weekend firefights?

Next to this one

Other programming language work people do in C++.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.