Thursday, December 3, 2026

Memoization

Computers can patiently grind through lots of tiny little calculations. They can remember a massive number of things. In the information age, they have access to an unbelievable amount of data, spread all over the world.

This allows them to both act as a store of knowledge and to instruct other machines, such as printers or robots, on how to complete physical tasks. They are conduits for communication between spread-out groups of people.

As they became smaller and more interconnected, they have become essential to our daily lives.

Of all of their features, the ability to collect and collate massive amounts of physical data is the strongest. They offer humanity the ability to build on our past experiences in order to make our future lives considerably better. We can use the knowledge they amass to prevent or mitigate our mistakes from the past.

The core of this is to not only get a physical imprint of the world around us, but also to augment that with enough information to build expected trajectories. In that way, we can see if things are getting better, or worse, or cycling, or spinning out of control. Collective knowledge is the bedrock of our technical sophistication.

That is, modern life is less harsh than in the past simply because we’ve been able to leverage lots of technologies to change our environment enough in order to make it less harsh.

If you live in a house, you are no longer subject to the smallest of whims from almost all weather. As we learned to build better houses, we are able to withstand a wider range of weather events. Since we’ve been doing this for a very long time, we’ve built up the knowledge and skills to build more houses faster that are more likely to survive more and more weather events. And we often have long-established building codes that codify that past understanding and give some assurances that it will be implemented nearly as best as possible.

Which is to say that we can get better outcomes and futures when we base our actions on learning from the past.

At a large scale, this is the true power of computers. That they have the ability to help us progress into better futures. We need that capability first, before we can leverage the machines to direct physical work or control lots of communication. It is the root of all other computer abilities.

In the past, we’ve too often cheated at capturing data from reality. It is a difficult and expensive task, so we more often just wing it and cobble together fragments of the information we need, often in a somewhat disorganized fashion. That might get us simple capabilities faster, but it is missing out on the real strength of the computers. We don’t want millions of programs that capture tiny slivers of reality, then try to piece them back together in a meaningful way. We want well-engineered ways to capture as much as we need, as correctly as possible, so that we can combine all of this in order to get deeper, more insightful knowledge.

That is, you don’t want to be jumping around between all these slivers and different software tools, in order to gradually figure out the answers to your questions, one little step at a time. You want to formulate the question, then produce an answer with the largest swatch of knowledge that you have available to you. That is the answer that not only knows a few facts, but also takes into account a massive amount of history, in order to correctly give you the best chance you can have at making a strong decision that will withstand the test of time.

That sounds difficult, but there is nothing about the underlying abilities of the machines that says that they cannot perform such a task. It’s just that our history of software development has generally shied away from building things of such grand ambition that they would be able to perform these types of tasks. We have billions of lines of code now, possibly trillions, but they are all so fragmented, inconsistent, and non-standard that while they serve very tiny goals, they do not work together collectively to lift up our lives.

A good example would be “What should I eat for dinner?” 

A simple question, but it spans a vast space. Your choices could be influenced by such diverse issues as your current health needs, what you have in the kitchen, how close the store is, how much money you can spend, what you prefer to eat, and more. We could have a health history and some biometrics on the body, which would narrow down the choices to meals that would help in some way. It is possible to keep track of the inventory from the kitchen, even if it is approximate in a few ways. Your banking information and current preferences can be digitized. So, instead of an app that randomly issues recipes from the web, all this information could be collected and used to arrive at a much better choice. Food that would fit your budget, not take too long to prepare, and aid in your life choices.

It may seem like we are moving closer towards this with tools like LLMs, but they are more likely moving in the opposite direction. The training data is general-purpose, and the information sources out there are only going to get more fragmented now and harder to access. Siloing knowledge for money is popular, but it makes the information far less useful.

The idea isn’t to dynamically search a mass amount of stuff, but rather to go the other way and consolidate the knowledge in a more localized format. You’d rather not have your information stored in some AI model, and you really don’t want to have to pay for dozens of different services to manage it for you. It’s your information; it should not be monetizable against you. So, it might work if you had a personal LLM and local agents that stored all of the information they collected about and around you, locally, so that you were the only one who could access it. But it would only be of real value if the mechanics were precise, deterministic, and accurate. Any form of hallucination or sycophantic behaviour would devalue the decisions, leading to worse outcomes.

That would be true not just of individuals, but all organizations as well.

We can imagine a kinda omnipresent magic 8 ball, where you ask a question and the answer you get is based on history and a whack load of local data. These types of computers would know everything about the circumstances, but share almost none of it. They’d understand general knowledge but also historic precedence. Their decisions would factor all of that into the choice and would be able to justify why that choice was more appropriate, given the circumstances.

All of that starts with doing a much better job of capturing data. In a sense, we don’t need a lot of overlapping but independent systems; we just need access to rather precise, shareable data pools. Self-standing, large, up-to-date knowledge bases that are modelled to correctly mirror the world around them. We don’t want a list of users for a system; for example, we just want the privileges of a lot of different identities and a way to match a request to one of those. A big database in a company that says which employees are allowed to access what type of stuff. Not the specific stuff; there is too much of that to manage properly, but the different types, where the types are categorized by the variations in the need to access it. A company could just have plebs and execs, for example, although that is way too simple. But there would not be thousands of categories either, since that would indicate very serious process problems in that organization.

Large data pools would be easier to vet, clean and keep up to date. They show up contradictions and overlaps a lot better. Their arrangement would dictate their scope. An enterprise data pool should obviously not be accessible outside of the enterprise.

These pools would be standardized, shareable, and entirely independent of any apps, systems, programs, etc. You wouldn’t write code to go to the database and deal with your deranged schema; you’d write code that interacted with a pool to pull out some specific knowledge. Then you traverse or interact with that knowledge structure in a way to answer specific context inquiries.

A dinner app would pull from a bunch of local pools, grind through the options and filters, and arrive at a stronger answer. A corporate pool could cross-reference a few inventories with the account or client details. We could have current and historic pools as well. The data models would be strong enough and wide enough to make that easy. “Split off any accounting info older than 7 years into the archive pool,” and not only would it be done, but it would be done with enough transactional integrity to ensure that the data isn’t lost or corrupted in any way. The pools would support a great deal of cross-references and synchronization primates as well. Similar to how we deal with source code repos. You collected the stuff; you should be able to trust what you collect, even if the other things built on top were rather buggy.

I often think the problem is that we got carried away with creating software as massive lists of instructions. Yes, that is the way the computer works, but it is not what we need from them, and it is not their strengths. What we need is for these machines to remember as much as they can, and allow us to use that knowledge in the midst of making decisions which will make our lives better in both the short and long term. And we need that knowledge to remember and learn from the massive number of mistakes in the past to help us find ways of avoiding those fates. Even if the machines are not intelligent, that does not mean we cannot use them to augment our own intelligence without having to give up any autonomy over our lives. I don’t want a program to decide what I am having for dinner; I want it to make meaningful suggestions based on a vast array of data that will not only help me fulfill my hunger, but also consider other issues better, like time, money or health. I know junk food is easy, but what I need is help with making a much better choice, given my personal circumstances.

Thursday, November 26, 2026

Emergent Properties

Kurt Gödel’s first Incompleteness Theorem very roughly states that there will be things that are true in a formal system that are unreachable from its base mechanics.

These are often called emergent properties.

The underlying idea is that as the interactions of the formal system build on each other and more things get considered, new relationships will dynamically form, seemingly out of nowhere.

A while ago, I was playing around with creating an algorithm for graph isomorphism (GI). It had been proven that the problem was at least pseudo-polynomial, so it seemed like a fun idea to try and create a polynomial algorithm for it.

It’s a simple problem in practice: you have two graphs, and you want to see if they are the same graph.

Graphs have an odd quality: they contain information about how the nodes connect to each other, but without any reference to physical location. So, the same graph can be rearranged in any number of crazy ways, and if there are enough nodes, it becomes difficult for even a person to catch on. 

You can get a polynomial traversal through a graph, but you never know what the same starting point is for both graphs. Because of that, you’d have to go through all possible combinations of starting points; it’s fully exponential. So, it would take a very long time to brute force a comparison, particularly if the graph is quite large.

But I had an idea. So I came up with a clever algorithm for it.

For small graphs, it worked perfectly. But as I increased the testing size, I quickly hit a size where it failed. When I investigated, I found an emergent property. A place where two different graphs looked oddly identical to each other in my algorithm, but were not the same graph. I had made an assumption based on the smaller graphs that broke when the graphs got larger. I quickly patched the code and went back to testing.

A little later on, I found another emergent property. It was similar. Again, I patched it, but I was getting worried. And then later again, I did tests on massive graphs and watched it fail for another brand new reason. At that point, I clued in and called it a day.

There was going to be an infinite number of these emergent properties, each appearing one after another, but getting farther apart. I knew how to code an algorithm for any graph less than a specific size, but I did not know how to do it for all graphs.

As I was thinking about it, it seems to me that primes are a possible example too. You have this identity, nothing, and an operation. When you apply the operation to the identity, a new prime appears, then another one. You can treat those new objects the same as the original identity. As you keep going, it flip-flops. You get a prime, then a ‘desert’ of composites, then a new prime, and so on. The deserts permute in size, but always keep getting larger, although all of the smaller ones seem to repeat as well. Primes, then, are emergent properties, although in this case: emerging objects, and we know there will be an infinite number of them. At some really huge numbers, there is a massive desert, but it is finite. There is also a desert of size 1 relatively close by to it.

Given that we know that emergent properties exist for all sufficiently complex formal systems, we can start to wonder about neural nets. They are complex entanglements of their relationships and weights, roughly based originally on our own’s brain’s structure.

But our brains run on a biological base, which seems like it might be intrinsically ‘informal’. That is, our own mechanics do glitch from time to time in unexpected ways. We are obviously built to work around that, but it seems possible that that characteristic might be the root of attributes like creativity. We’ll accidentally connect two things that should not be connected. Oops. Then somehow we work through that at a higher level, causing us to come up with interesting new things. That, mixed with our complex mixed-media internal models and lots of contradictions, seems to drive the human experience.

Neural nets running on a computer, however, are strictly bounded by formality. They can only do and expect what is inherent in their construction. But it seems that their mechanics are complex enough that we might also expect emergent properties. So, would we see higher-level behaviours such as ‘intelligence’ and ‘creativity’ emerging above?

Emergent properties are a new dynamic relationship forming that essentially adds on top of what is already there. It disproves assumptions, but it is constructive. It’s not that far away from what Douglas Hofstadter was getting at in Strange Loops, where the effects of a person's presence on another are, in a sense, part of that person. Your memories of someone are a part of them, part of the impact they have on the world. So long as other people remember them, they have not entirely disappeared into the backdrop.

I could almost see intelligence emerging in this way, but it would have to be there as a means of adding or amending existing weights and relationships. Intelligence affects change; it lifts up the behaviours somehow. The model knows something, but then, in fully understanding it, it derives a new conclusion which is written out and used for future results.

Creativity, on the other hand, at least seems accidental. A flaw of some type. You maybe could probabilistically recreate it, but you’d still need some self-healing behaviours on top to really mimic humans.

If we add in this notion that the data model buried in LLMs is just nested traversals through extended word relationships within sentences, then we can kinda see that even if emergent properties exist, it is tied to the underlying objects. That is, at best, inference could use one of these properties to get to a better traversal, but ultimately it is just rearranging the words in a sentence. Any sort of intelligence is buried far in advance in the underlying model data. It is, however, scary that we could amplify the underlying models, then add in secondary mechanics that could really start showing advanced capabilities. But at least they are still dragged down by formality. In that sense, maybe the very best AGI can ever do is a formal mimicry of our informal existence. Even if we ran it on flaky informal hardware, it would still require hugely sophisticated recovery capabilities, so it would still be severely limited.

So, overall, while emergent properties do surprising things to formal systems, the properties that we see as humans seem to come directly and only out of our own informal construction. Roger Penrose had suggested this in his book The Emperor's New Mind, but at the time I didn’t fully appreciate what he was trying to say. All sorts of unexpected things can happen in an informal system; it is not strict, although still limited by the boundaries of physics.

What kinda interests me is whether or not emergent properties follow specific patterns. If there are a finite number of patterns, it seems like Hilbert’s dream is back on. Maybe we really can fully formalize all formal systems. Seems unlikely; the patterns themselves probably have emergent properties, so it may just be turtles all the way up.

But even if we could formalize them, while that takes away some of the mystery, there will always be informal systems. In that sense, maybe we can only understand the depth of the world, just not its breadth? We’d have to deal with endless meta-patterns in that case.

Thursday, November 19, 2026

Analysis

Analysis for software projects is the act of gathering, curating, and collating enough detailed information about a set of given problems that people would like to use software to solve. If it is complete enough, then it can be used as the sole reference for people creating designs for these solutions. It has all of the answers to all of the questions that a designer will have.

All software systems are anchored by the data that they collect.

The usage of these systems is confined within the boundaries of the data that they have access to. In that sense, this data sets the foundation on which any other features or functionality are built.

If there is a problem for which one wants to use software to solve it, then obviously the first and foremost thing that needs to be done is to figure out what data is necessary.

Data comes in two basic forms: a) you collect it directly from people, b) you cross-reference it from somewhere else.

So analysis goes through each and every datum and tries very hard to list it out with proper names, some understanding of expected frequency, location, properties, etc.

The more you know about the data, the smoother the development process will be.

For some data, it is not worth collecting literally; you can get it from relatively easy computations based on other raw data. So, the analysis needs to specify any ‘derived’ data necessary and how to compute it from the underlying raw data.

Since the software is a ‘solution’, it is important to understand how people will use it in order to solve their problems. Most of the time it is not ‘log in and click a button’. It is a considerably more complex ‘workflow’ where the users leverage specific functionality in a bunch of features, over a multi-step process in order to make decisions or create specific artifacts that they share.

The analysis needs to list out all of the known workflows, in as much detail as possible. When there are misfits with using the software, they begin and end in these workflows. That is, if it is only possible to do half the work in the system to accomplish something, then the system isn’t a particularly tight fit. If you can do it all and there is just one button to press, it is really tight, but if there is a lot of functionality in the system, the problem switches to being able to find that button, not pressing it.

Presenting data for decisions is straightforward, but then minimizing the navigation after that decision is critical too. If someone decides that the data indicates a specific action, it would be best if the button to trigger that action was presented at the same time, or at least very close by. So, presentations need to be linked back to their lists of expected actions. That is, you need to know why the data needed to be presented in order to wire up the navigation for the decisions.

Creating new artifacts is similar. They are essentially manually triggered derived data, but the tools to create and edit them can be very complex. The tools need to be arranged in a way that matches the expected usage for creating stuff. And more importantly, the tools should leverage as much of the existing data as they can; the user should not have to retype things, just rearrange them.

For cross-referenced data, there are usually performance vs. quality decisions that need to be made. If you grab the data early and keep it around, there is a chance it can get stale before you update it. That would be worse than if the process of using or presenting the data is really slow. So, there are accuracy expectations for all cross-reference data that need to be taken into account.

The analysis of a set of problems should give enough details about people dealing with those problems that a solid design can be produced. Analysis is nearly timeless. If the business does not change, the “business logic” within does not change either, even if the system gets reimplemented with many different technologies over the years. So, the descriptions, references, tables, etc. in the document should not reference, rely on, or be tied to any technology. In order to deal with a problem, you need to collect data and work with it in the following ways. It’s the ‘what’ portion of the issues, where the design document is the ‘how’.

For example, you might need to know a derived metric like the ‘yield’ of a given bond in the financial markets. There are many different ways to calculate that, all based on the bond’s prospectus. The yield is a real number, which for many technologies is represented using floating-point variables, although there are lots of other ways of representing it.

Analysis should really only be done once for a new line of business, then updated over the years and decades as the underlying domain changes. In this sense, it is independent of any sort of software implementation, and the work to keep it up to date should be disconnected from any IT initiatives. A business should be constantly working through its own analysis in order to keep its own line of business operating as well as possible. If that were done, then software projects would start at ‘design’ instead of ‘analysis’, which would likely take less time and improve their quality.