# Thomas Young

Upcoder blog posts

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Is There a Power Play Overhang?

DevFeed: [Is There a Power Play Overhang?](<https://devfeed.tech/articles/is-there-a-power-play-overhang-28620.md>)

Original publisher: [Read original article](<https://upcoder.com/21/is-there-a-power-play-overhang>)

Published: 2024-05-08T09:43:25Z

Content type: article

Language: en

Sources: [Thomas Young](<https://devfeed.tech/sources/thomas-young.md>)

Topics: [Frontier AI](<https://devfeed.tech/topics/frontier-ai.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [LLM security](<https://devfeed.tech/topics/llm-security.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-systems](<https://devfeed.tech/tags/agentic-systems.md>), [ai](<https://devfeed.tech/tags/ai.md>), [bias](<https://devfeed.tech/tags/bias.md>), [cognitive-bias](<https://devfeed.tech/tags/cognitive-bias.md>), [control](<https://devfeed.tech/tags/control.md>), [failure](<https://devfeed.tech/tags/failure.md>), [germany](<https://devfeed.tech/tags/germany.md>), [natural-disasters](<https://devfeed.tech/tags/natural-disasters.md>), [power](<https://devfeed.tech/tags/power.md>), [risk](<https://devfeed.tech/tags/risk.md>), [women](<https://devfeed.tech/tags/women.md>)

### AI overview

The essay argues that AI risk should be judged against a potentially different kind of system, not simply today's LLMs with added planning. Current LLMs are described as broad but error-prone "academic polymaths," while effective political actors may need strategic persistence, networking, concealment, and the ability to exploit openings--and can delegate specialized knowledge. The author reframes agency overhang as "power play overhang": a system combining stronger planning and execution with enough real-world understanding could gain influence quickly, including through human or institutional partners. Because the path is hard to predict, the essay cautions against normalcy bias and against defining danger only by current capabilities or compute thresholds. It calls for considering targeted future architectures and weighing potential benefits against risks, while treating alignment as difficult and uncertain.

### Source excerpt

This post is about risks in the development of increasingly capable AI, in particular the risk of losing control to AI and extinction risk. I'll suggest that a key question is, "When do we need to take this kind of risk seriously?" We'll look at the issue of 'agency overhang', which suggests that adding agent-like abilities to AI could result in a sudden and surprising increase in these kinds of risks. I'll draw on intuitions about humans taking administrative and political control (with reference to the 'Dictator Book Club') and rephrase agency overhang as 'power play overhang'. I'll finish by suggesting that a lot of people may be making a subtle but important mistake in imagining just one fairly specific path to dangerous AI.  Normalcy Bias From Wikipedia: Normalcy bias, or normality bias, is a cognitive bias which leads people to disbelieve or minimize threat warnings. Examples cited there include failure to react to natural disasters such as a tsunami or a volcanic eruption. In terms of effects: About 80% of people reportedly display normalcy bias in disasters.[3] Normalcy bias has been described as "one of the most dangerous biases we have". They can't do that! There's a powerful cliché, found in many books and films, in which we witness some scene early in the development of a totalitarian regime. In this cliché we see the surprise and disbelief of normal people as the regime begins to tighten its grip. A great example of this is in "The Handmaid's Tale" when, in the early episodes, many characters express disbelief at the rapid changes in society, such as women losing their jobs and bank accounts, saying things like "They can't do that!" as the totalitarian regime takes control. Other examples relate to historical events, such as: "The Lives of Others" Set in 1980s East Germany, this shows how the Stasi (secret police) gradually infiltrates every aspect of citizens' lives. "The Diary of a Young Girl" Anne Frank documents her surprise and disbelief at the in

## C/C++ Include Guidelines

DevFeed: [C/C++ Include Guidelines](<https://devfeed.tech/articles/c-c-include-guidelines-28619.md>)

Original publisher: [Read original article](<https://upcoder.com/20/cc-include-guidelines>)

Published: 2019-10-13T12:14:00Z

Content type: article

Language: en

Sources: [Thomas Young](<https://devfeed.tech/sources/thomas-young.md>)

Topics: [c/c++](<https://devfeed.tech/topics/c-c-plus-plus.md>)

Tags: [c-c-plus-plus](<https://devfeed.tech/tags/c-c-plus-plus.md>), [c-plus-plus-20](<https://devfeed.tech/tags/c-plus-plus-20.md>), [guidelines](<https://devfeed.tech/tags/guidelines.md>), [include](<https://devfeed.tech/tags/include.md>)

### AI overview

The guidelines aim to make C/C++ headers predictable to use and reduce build dependencies. Keep implementation in source files where possible, pair each source file with a clearly named header, and route linkage through that header. Make headers self-sufficient and include a source file's own header first so missing dependencies surface during compilation; order higher-level includes before lower-level ones to expose hidden dependencies. Avoid header side effects, minimize dependencies with forward declarations or implementation separation where practical, and give headers focused purposes and discoverable names. Use explicit include paths to clarify origins and reduce collisions. The author notes exceptions for constructs such as classes, templates and inlining, and describes these as pre-C++20 module guidelines; large existing codebases can adopt them incrementally.

### Source excerpt

Some (opinionated) guidelines for include file organisation in C/C++. Intro I present a list of points, probably best considered as guidelines, but which I'll refer to as rules throughout the rest of this post, since it trips off the tongue that bit more easily (or perhaps I just have some hidden authoritarian streak). I'll assume the reader knows something about writing code in C or C++, and understands at least the basics about how compilation with include files works. Sometimes I'll say things are obvious to this intended audience, where I think this is necessary for completeness. This is about an ideal way to organise code. For large existing code bases changing the code to follow all of the rules may not be straightforward but it should be possible to make some incremental steps towards the code structure I describe, resulting in some kind of incremental improvements in overall code quality. Many of the rules have exceptions, and it can interesting to explore reasons for these exceptions, as well as the reasons for the rules themselves. Modules As an aside, please note that this is a 'pre-modules' document. If you're using c++ 20 and modules the situation will be different. (At the time of writing I don't have any experience working with modules, and I'm not aware of all the details about how modules will work. I'm hoping that if we follow the rules described here, we should be reasonably well placed for moving to C++20 modules, but if that's not the case, and there are module related details that you think should be taken into account in this document, please let me know in the comments.) The rules 1. Headers are for linkage details, implementation goes in source files. 2. Each source file should have a single matching header. 3. Linkage to a source file should go only through its header. 4. Guard against repeated includes. 5. Each header should be self-sufficient. 6. Each source file includes its own header first. 7. Low level includes come after high level i

## Automatic Object Linkage, with Include Graphs

DevFeed: [Automatic Object Linkage, with Include Graphs](<https://devfeed.tech/articles/automatic-object-linkage-with-include-graphs-28618.md>)

Original publisher: [Read original article](<https://upcoder.com/19/automatic-object-linkage-with-include-graphs>)

Published: 2018-05-31T13:33:00Z

Content type: article

Language: en

Sources: [Thomas Young](<https://devfeed.tech/sources/thomas-young.md>)

Topics: [Compilers and Linkers](<https://devfeed.tech/topics/compilers-and-linkers.md>), [linker](<https://devfeed.tech/topics/linker.md>), [static linking](<https://devfeed.tech/topics/static-linking.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [test impact analysis](<https://devfeed.tech/topics/test-impact-analysis.md>)

Tags: [3d](<https://devfeed.tech/tags/3d.md>), [application](<https://devfeed.tech/tags/application.md>), [automatic](<https://devfeed.tech/tags/automatic.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [based](<https://devfeed.tech/tags/based.md>), [build](<https://devfeed.tech/tags/build.md>), [c](<https://devfeed.tech/tags/c.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [code-sharing](<https://devfeed.tech/tags/code-sharing.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [content](<https://devfeed.tech/tags/content.md>), [custom](<https://devfeed.tech/tags/custom.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dll](<https://devfeed.tech/tags/dll.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [include](<https://devfeed.tech/tags/include.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [modular](<https://devfeed.tech/tags/modular.md>), [multiple](<https://devfeed.tech/tags/multiple.md>), [object](<https://devfeed.tech/tags/object.md>)

### AI overview

The article describes a custom build system that derives each target's link inputs from include relationships: including a header with a matching source file implies a dependency on that source, and analysis expands recursively from one or more root files. This can share object files across targets and produce leaner application and test builds than broad static library groupings, reducing manual project setup and recompilation. The approach assumes disciplined header/source pairs and headers that reflect actual use; bypassed headers can cause missing links, while headers with mostly inline code can pull in unnecessary objects. PathEngine disallows conditional include directives so headers can be analyzed once, but adopting the method required code changes and a custom build system. IDE integration trades off features: external build projects support dynamic targets and shared objects but can lose IntelliSense, while generated projects retain IDE features but do not update dynamically and do not share objects.

### Source excerpt

In this post I describe an alternative approach to sharing source code elements between multiple build targets. It's based on a custom build process I implemented at PathEngine for our C and C++ code-base (but the core ideas could also be relevant to other languages with compilation to object files). We'll need to enforce some constraints on the way the source code is set up, notably with regards to header file organisation, but can then automatically determine what to include in the link operation for each build target, based on a graph of include relationships extracted from the source files. The resulting dynamic, fine grained, object-file centric approach to code sharing avoids the need for problematic static library decomposition, and the associated 'false dependencies'. Motivation We need to work with a bunch of different build targets, at PathEngine. There's a run-time pathfinding dll, for example, but also a 3D content processing dll, a 3D testbed application, and so on, with a lot of source code shared between these different targets. The code was originally split into a set of (internal) static libraries, for this purpose. based on things like theme (e.g. 'Geometry.lib') or application layer ('PathEngine_Core.lib', 'PathEngine_Interface.lib'). Different targets could then share common source code by sharing these static libraries. This worked, as far as it goes, but something didn't feel right. The libraries weren't particularly modular, for one thing, and just felt like big old bags of object files that didn't really reflect the actual structure of the underlying code. A bigger problem was that, for any kind of prototyping work, I ended up having to link in a big chunk of the PathEngine source code, even where only some small part of this was really required. Unit testing was also difficult to setup, for a similar reason. Since throwing out the static libraries and switching to an alternative approach (as described in this post), prototyping and unit test

## Static Libs Do Not Modular Make

DevFeed: [Static Libs Do Not Modular Make](<https://devfeed.tech/articles/static-libs-do-not-modular-make-28617.md>)

Original publisher: [Read original article](<https://upcoder.com/18/static-libs-do-not-modular-make>)

Published: 2017-09-23T13:12:00Z

Content type: opinion

Language: en

Sources: [Thomas Young](<https://devfeed.tech/sources/thomas-young.md>)

Topics: [Code Modularity](<https://devfeed.tech/topics/code-modularity.md>), [static linking](<https://devfeed.tech/topics/static-linking.md>), [modules](<https://devfeed.tech/topics/modules.md>), [project layout](<https://devfeed.tech/topics/project-layout.md>), [Compilers and Linkers](<https://devfeed.tech/topics/compilers-and-linkers.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [build-tools](<https://devfeed.tech/tags/build-tools.md>), [c-c-plus-plus](<https://devfeed.tech/tags/c-c-plus-plus.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [interface](<https://devfeed.tech/tags/interface.md>), [modular](<https://devfeed.tech/tags/modular.md>), [module](<https://devfeed.tech/tags/module.md>), [source-code](<https://devfeed.tech/tags/source-code.md>), [static](<https://devfeed.tech/tags/static.md>)

### AI overview

The article argues that splitting existing C/C++ source files into internal static libraries rarely creates meaningful modularity by itself. A static library is essentially an archive of object files: bundling them changes how they reach the linker, but does not hide their symbols or establish better interfaces. The build step hides little beyond the object-file list, and broad groupings such as files sharing a theme can force dependent projects to build, distribute, and maintain files they do not use. The author describes this approach as a hindrance in PathEngine, whose structure was later expressed through directories and direct object-file dependencies. Static libraries can still help with concrete build concerns such as handling many files or caching symbol indexes. Shared libraries also need deliberate interface and visibility work to provide information hiding; on Linux, the text cites `-fvisibility=hidden` as an option.

### Source excerpt

A cautionary tale about statically-linked libraries, as generated by C/C++ build tools. As a project accumulates features, and complexity, it gets harder to understand exactly what's going on, and to find your way around the source code. You need to find some way to organise the code and try and keep things manageable. A common idea, in this situation, is to group some source files together to split out as a static library. I'm going to argue that this actually does very little, in itself, to increase modularity, can have the effect of significantly increasing dependencies, and is maybe not such a good idea, after all. Break it apart? So yeah, when something gets too big to work with, it makes sense to try to break it into pieces. Given a whole bunch of source files to work with, we probably want 'pieces' bigger than individual source files, and that means grouping source files together. Perhaps there are files that can be grouped together by theme (e.g. a bunch of source files related to 'geometry'). Or perhaps some kind of layered decomposition is possible (e.g. we can identify a bunch of 'core' source files). And then we can separate this group of files from the rest of our source code by putting them in a library. Making things modular Wiktionary defines 'modular' as follows: Consisting of separate modules; especially where each module performs or fulfills some specified function and could be replaced by a similar module for the same function, independently of the other modules. Libraries are a classic archetype for a software module, and splitting our code into libraries already kind of nails the first part of that, (the bit before the semicolon), right? The bit after the semicolon is probably also worth consideration, but we can tweak the code to better address this bit, incrementally, later on, by firming up the interface, hiding implementation details, and so on. Having our source code 'consisting of modules' already feels like a good start, and a step in th