Showing posts with label AI evolution. Show all posts
Showing posts with label AI evolution. Show all posts

Thursday, April 23, 2026

The Evolution of AI and Programming (Series)

The Evolution of AI and Programming

This is a fourt-part tetralogy exploring the evolution of AI and programming:

  1. The first part offers an overview of AI’s development over time. 
  2. The second shares my personal journey with computers through programming languages. 
  3. The third reflects on my experience with AI, revealing both its remarkable possibilities and its limitations as a companion and thinking partner. 
  4. The fourth explores the future of AI, from tools to intelligence: examining AGI, embodied AI, and the delicate balance between innovation, risk, and human wisdom.

I hope you’ll enjoy reading it as much as I enjoyed writing it.

The tetralogy serie in 4 parts
From the origins of artificial intelligence to the next stage of intelligence itself, this series explores how we built AI and how it may transform the way we think, create, and live.

Part 1 — The Quiet Power of Ideas

The story begins with ideas. Long before AI became practical, it existed as theory—waiting for data and computation to bring it to life.

Read Part 1 →

Part 2 — From Spaghetti Code to Thinking Machines

A personal journey through programming languages, tracing the evolution from early code to natural language interaction with machines.

Read Part 2 →

Part 3 — At the Edge of Intelligence

At the frontier of AI, we encounter its limits. Understanding these boundaries reveals why humans must remain in the loop.

Read Part 3 →

Part 4 — The Future of AI: The Next Stage of Intelligence

An essay exploring the future of AI, from past technologies and AGI debates to embodied AI, creativity, consciousness, continual learning, opportunities, and risks.

Read Part 4 →

Together, these essays form a reflection on progress: how ideas become systems, how systems shape our thinking, and how responsibility remains human.

— A journey in understanding, by Dave Huynh

Wednesday, April 22, 2026

Part 2 - From Spaghetti Code to Thinking Machines

 A personal journey through programming languages — and how we learned to communicate with computers

Every programmer’s journey is, in some sense, a story about communication. Not communication between people, but between human intention and machine execution. Over the decades, this dialogue has evolved—from rigid instructions written line by line to something closer to conversation. Looking back, the history of programming languages mirrors this gradual shift.

From Spagetti Code to Thinking Machines

My own journey began with BASIC in high school. It was a simple and accessible language, and for many students, it was the first encounter with programming. Yet BASIC came with its own limitations. The heavy use of GOTO statements often led to what programmers called “spaghetti code”—programs that were difficult to follow, tangled in logic, and hard to maintain. Still, compared to low-level programming such as Assembly language, BASIC was a major step forward. It allowed us to focus less on machine instructions and more on problem-solving.

The next stage introduced more discipline. With languages such as Fortran and Pascal, I learned to structure programs using functions and procedures. Programming was no longer just a sequence of instructions; it became a form of organized thinking. Pascal, in particular, trained the mind to think like a machine. Variables had to be declared explicitly, as if they were boxes storing values. If you wanted to preserve a value, you had to store it before assigning a new one. Every step had to be precise, logical, and ordered.

Then came C—a powerful and efficient language. It offered speed and flexibility, but at a cost. Code written in C could be difficult to read, especially when written by others. Documentation became essential. Without clear explanations, debugging could turn into a long and frustrating process. Finding a small bug might take hours or even days. Yet when the bug was finally found, the sense of satisfaction was unmistakable. It was not just about fixing the code; it was about understanding the system more deeply.

The introduction of object-oriented programming marked another important shift. Languages such as C++ and Java provided tools to manage complexity by organizing code into objects and classes. This approach allowed programmers to model real-world systems more naturally.

A useful way to understand object-oriented programming is through familiar objects in everyday life. Consider a car. To drive it, you only need to know how to use the gas pedal, the brake, and the steering wheel—the “methods” of the car. There is no need to understand the details of the engine or how it works internally—the “data” inside the object. The complexity is hidden, allowing the user to focus on interaction rather than implementation.

This idea of encapsulation is also similar to how a biological cell works. A cell interacts with its environment through inputs and outputs, while its internal processes remain hidden. In the same way, objects in programming expose only what is necessary and keep their internal state protected.

By organizing systems into well-defined objects, object-oriented programming makes debugging and maintenance easier. Problems can be isolated within specific components, making large systems more manageable and robust. The focus gradually moved from writing instructions to designing structures.

Today, we are witnessing yet another transformation. With the rise of AI systems and code-generation tools, programming is entering a new phase. The programmer no longer needs to specify every step in detail. Instead, one can describe the problem in natural language, and the system generates the code. The interaction begins to resemble a conversation rather than a set of commands.

This shift reflects a deeper change in how humans communicate with machines. In the early days, interaction was limited to keyboards and precise syntax. Every character mattered, and every mistake resulted in failure. Over time, interfaces improved—first with structured languages, then with graphical interfaces using the mouse. Now, with AI, communication is moving toward natural language, where intention matters more than syntax.

Looking back, the evolution of programming languages is not just about technology. It is about abstraction—the gradual removal of barriers between human thought and machine execution. Each generation of tools has brought us closer to expressing ideas directly, without having to translate them into the rigid logic of machines.

Yet something important remains. Even as AI systems write code, the responsibility for clarity, correctness, and intent still belongs to the human. Understanding how systems work, how errors arise, and how solutions are structured remains essential. The tools have changed, but the discipline of thinking has not.

Final Thought
From spaghetti code to structured programming, from objects to intelligent systems, the journey of programming reflects a deeper movement: the gradual alignment between human language and machine understanding. In the beginning, we learned to think like machines. Today, machines are beginning to understand us. The future of programming may not be about writing code, but about expressing ideas clearly—so that both humans and machines can bring them to life.



Footnotes

  1. BASIC and “spaghetti code”: Early programming in BASIC often relied heavily on GOTO statements, which could create unstructured and hard-to-maintain code.
  2. Structured programming: Languages such as Pascal and Fortran introduced functions and procedures, encouraging clearer and more modular program design.
  3. C language: Known for its performance and control over system resources, but often criticized for reduced readability and safety compared to higher-level languages.
  4. Object-oriented programming (OOP): A programming paradigm that organizes software design around data (objects) and behavior (methods), emphasizing encapsulation and modularity.
  5. AI-assisted programming: Modern tools can generate code from natural language prompts, shifting the role of programmers from writing syntax to describing intent.

Monday, April 6, 2026

From Counting Words to Discovering Meaning

How the evolution of AI is blurring the line between invention and discovery

Keywords: AI evolution, word2vec, transformers, emergence, invention vs discovery, artificial intelligence philosophy

Artificial intelligence is often described as one of humanity’s greatest inventions—an engineering triumph built from code, data and silicon. Yet, as modern systems grow more capable, a quieter and more unsettling question has begun to surface: did we truly invent AI, or did we stumble upon something that was already there, waiting to be uncovered?

The answer lies not in abstract philosophy alone, but in the technical evolution of AI itself. From the earliest language models to today’s transformers, the story of AI is not just one of design, but of discovery—of patterns that emerge beyond our explicit intentions.

The age of counting: Bag-of-Words 1

Early language models treated words with a kind of mechanical innocence. In the bag-of-words approach, a sentence was reduced to a simple count of terms. Order, nuance and meaning were discarded. A sentence became a list; language became arithmetic.

This was clearly an invention. Engineers defined the rules, the representations and the limitations. The system did exactly what it was told—and nothing more. There was no ambiguity, and certainly no surprise.

But this simplicity came at a cost. The model could not distinguish between “the cat chased the dog” and “the dog chased the cat.” It counted, but it did not understand.

From counts to vectors: Word2Vec 2

The next leap introduced something more subtle. With Word2Vec, words were no longer treated as isolated tokens, but as points in a high-dimensional space. Instead of counting words, the model learned relationships between them.

During training, the system adjusted numerical vectors so that words appearing in similar contexts would be positioned closer together. No human labeled dimensions such as “royalty” or “gender.” Yet, after training, remarkable patterns emerged.

One of the most famous examples is almost poetic in its simplicity:

king – man + woman ≈ queen

No engineer explicitly programmed this relationship. It was not written into the code. It arose from the structure of language itself, captured through data and optimization.

At this moment, the narrative begins to shift. We are no longer merely building systems—we are uncovering structures embedded within language. The model becomes less like a tool and more like a lens.

The transformer era: Attention3 and emergence5

The arrival of the transformer4 architecture marked another turning point. With the introduction of attention mechanisms, models gained the ability to weigh relationships between words dynamically, capturing context in a far more sophisticated way.

Unlike earlier models, transformers do not process language sequentially. They examine entire sequences at once, identifying patterns across long distances in text. This allows them to generate coherent paragraphs, summarize documents and even engage in conversation.

Yet, with this power comes opacity. These systems operate as black boxes. We design the architecture and define the training process, but we do not fully understand how specific internal representations lead to specific outputs.

In other words, we build the machine—but we do not fully grasp what it learns.

Invention vs. discovery

This brings us to a growing debate within the AI community. There are, broadly speaking, two perspectives.

The invention view holds that AI is a human creation, no different in principle from a steam engine or a computer chip. Models are the result of engineering decisions, mathematical optimization and computational power. Nothing mystical is involved.

The discovery view, however, suggests something more intriguing. It proposes that intelligence—at least in part—is a structure that exists within data and mathematics. By building neural networks, we are not simply inventing intelligence, but discovering how it manifests.

The behaviour of modern models lends weight to this second perspective. When systems learn relationships that were never explicitly programmed—when they generalize, abstract and recombine ideas—we are witnessing phenomena that feel less like construction and more like revelation.

A hybrid reality

Perhaps the most accurate conclusion lies between the two extremes. AI is, undeniably, an invention in form. Humans design architectures, write code and supply data. But what emerges within these systems often resembles discovery.

We create the conditions under which patterns can appear—but we do not dictate the patterns themselves.

This duality is not entirely new. Scientists did not invent gravity, but they built the tools to understand it. Likewise, AI may be less like a machine we constructed and more like a telescope we aimed inward—toward the structure of language, thought and knowledge.

Final Thought: the quiet shift

The evolution from bag-of-words to Word2Vec to transformers tells a deeper story than technological progress. It reveals a gradual shift in our role—from builders of rigid systems to explorers of emergent ones.

We began by counting words. We ended up uncovering meaning.

And somewhere along that journey, the question changed. Not “What can we make machines do?” but “What have we just found?”

In the end, AI may not be a monument to human control, but a mirror reflecting structures that were always there—waiting patiently, until we learned how to see them.


Footnotes

  1. Bag-of-Words (BoW): A simple technique in natural language processing where a text is represented as a collection of word counts, ignoring grammar and word order. Each document is converted into a vector of frequencies, making it easy to process mathematically, but limited in capturing meaning.
  2. Word2Vec: A neural network-based method that represents words as dense vectors in a continuous space. It learns these representations by predicting surrounding words (context), allowing words with similar meanings to have similar vector positions. This enables semantic relationships such as “king – man + woman ≈ queen.”
  3. Attention Mechanism: A technique that allows a model to focus on different parts of a sentence when processing language. Instead of treating all words equally, the model assigns different levels of importance (weights) to words depending on context, improving understanding of relationships in text.
  4. Transformer: A neural network architecture introduced in 2017 that relies heavily on attention mechanisms. Unlike earlier models, transformers process entire sequences of text in parallel rather than step-by-step, enabling better performance on tasks such as translation, summarization and text generation.
  5. Emergence (in AI): The phenomenon where complex behaviors or capabilities arise from simple rules and large-scale training, without being explicitly programmed. In modern AI systems, abilities such as reasoning or abstraction often appear as emergent properties.

These techniques illustrate how AI evolved from simple counting methods to systems capable of capturing meaning, relationships and context—blurring the boundary between engineered design and discovered structure.


References & Further Reading

  • Geoffrey Hinton (often referred to as “the godfather of AI”) has suggested that neural networks may be revealing something fundamental about how intelligence itself works, rather than merely implementing human-designed rules.
  • Ilya Sutskever, co-founder of OpenAI, has argued that large neural networks do not simply memorize data, but discover underlying representations within it—structures that were not explicitly programmed.
  • David Deutsch, physicist and philosopher, has long maintained that knowledge is not merely constructed, but can be discovered, aligning with a broader view that intelligence may reflect deeper truths about reality.

These perspectives reflect a growing shift in how leading thinkers interpret artificial intelligence—not only as an engineered system, but as a window into the nature of knowledge and cognition itself.

Jensen Huang and the Company He Built

Personal Reflection | Technology & Life On the departure of a technology pioneer, the immigrant dream, and the human side of extraord...