My favorite prompt for speeding up C++ project build times: Find headers that are included by many translation units and are expensive to compile and try to isolate them.
Most big codebases will have a few killer headers.
(cc @DanielLockyer)
1
25
Green Lightning retweeted
Cognitive radius:
The most interesting change AI brings to software work is not faster coding. It is the expansion of context or range... what I call radius.
For decades the job was defined by the limits of what one person could hold in their head. You tended to specialize. You got good at one or two systems, one or two types of problems because keeping more than that coherent was expensive. Context switching hurt. Onboarding to a new project took days or weeks.
Simply issuing a pull request to a new open-source repository took days. You had to learn the conventions. Learn the code base. Find out how to test it. Find out how to run benchmarks.
With a good model and the right tools, you can load a large amount of relevant information into the session: the structure of several repositories, the conventions of different teams, recent issues, design decisions, performance constraints, the history of related libraries. You can ask questions across them, generate changes that stay consistent with local style, and keep more projects alive at once without the usual collapse in quality.
The unit of work stops being “the project I am currently deep in” and becomes something closer to “the set of projects I can keep coherent right now.”
This is not the same as having an assistant write code for you. It is more. The gain comes from the ability to hold and operate on a larger working set. You still decide what matters. You still check the results. What changes is how much of the surrounding system you can bring into focus at the same time.
The practical consequences are already visible for people who treat this as a skill rather than a novelty:
•You can enter a codebase you have not touched in months and become useful again in an hour instead of a day, because the model can reconstruct the local idioms and the reasons behind them from the history and tests.
•You can maintain consistency across languages or frameworks. The cost of switching is lower when the model carries the surface details.
None of this is automatic. The model does not magically expand your capacity. You have to learn how to feed it the right context, how to structure the questions so the answers stay grounded, and how to verify the parts that matter. The people who get the most out of it treat the model as a high-bandwidth interface to a larger set of information.
Most discussion of AI in programming still focuses on the speed of generating individual functions or on the fear that juniors will not learn. Those are real topics, but they miss the larger shift. The constraint that shaped the profession for a long time, the limited amount of context a single developer could keep active, has loosened. What you can usefully own has grown. Learning to operate at that new scale is the part that is still under-discussed and under-practiced.
The cognitive radius of a engineer is the distance (in projects, technologies, or time) over which they can still produce consistent, well-informed work. AI has increased that radius.
To my great personal satisfaction, if you request a .env, .git or .php file on any of my sites (that are not built with PHP), you will get instanly banned at the IP level.
I know it's not #security relevant, but it just feels nice showing a tiny "you are not welcome here" sign.
18
Assuming all allocations succeed, can the following function still crash? Why?
#cpp #cplusplus #programming #question
1
14
Green Lightning retweeted
First order effect: AI makes it easier to write code, lowering the cost of software development.
Second order effects: AI changes the culture and politics around software. AI challenges copyright. AI rewards individual initiatives.
Second order effects will trump the first order effects.
AI is not about writing code faster. It is a social disruption, a proper revolution.
Green Lightning retweeted
Whenever you get a bout of imposter syndrome: remember that there are many people way more incompetent than you:
Replying to @astuyve
Oh god:
The p384 private keys are randomly selected integers between 1 and 256, the private keys are effectively all-zeroes apart from the last byte
There’s so many ideas packed into just this one level, which makes it really fun!
Took me 1.5 hours, but I this is my favorite puzzle so far. I honestly can't even imagine what goes into designing something like this.
Like, what is the process? Do you come up with the gimmick first? How you make it not obtuse? How do you place "WHOA" moments strategically???
3
19
AI is revolutionizing the software industry, but ultimately it is our choice as software developers how we use this superpower. You can also spend tokens to make your code simpler, faster and more robust.
13
Green Lightning retweeted
I’ve been back and forth on this but I do think we’re living through one of the most amazing times in human history. It’s like the industrial revolution on steroids.
my main concerns is accumulation of power and regulatory capture, which we should all fight against.
but in terms of the possibilities, man things are crazy exciting right now
what a time to be alive
Recently I was doing a course and I did the exercises myself and then let the AI grade my code. It provided immediate personal feedback and additional insights beyond doing the exercise. Great way to learn!
Wrong advice for junior developer: look at the AI generated code, since you need to mature as a programmer. Right advice: save time with AI coding and write by hand "get-better" programs: interpreters, games, ray tracers, ...
37
Codex refused to do a code review because of cybersecurity concerns (codebase written mostly by claude)… wtf?
39
Made some 3d printed extension cord mounting brackets!
printables.com/model/1852157…
#3dprinting #functionalprint #brennenstuhl #extensioncord #mountingbracket
26
Green Lightning retweeted
you guys don't know this but I was deep into rubik's cube as a kid (you can search my name online).
so I wanted to see if @typesafeai Jev could solve the rubik's cube by itself.
it turns out it can lol, and it does it just like a human would


















