Categories
code thoughts

Dissecting The Trend

It’s no doubt that AI is the current hotness. Behind the recent rise of AI is LLM, an extremely fancy next-token predictor. When fed a massive amount of data to train-on, it works extremely well at passing off as “intelligent.” Under that AI magic is just Linear Algebra and Calculus hiding in a trench coat.

I implement a fundamental component of today’s LLM in a JS React app to wrap my head around the math and algorithm:

Neural Network

Fig 1. Neural Networks – Linear Algebra and Calculus teaming up to solve crime equations.

Categories
code hacks

Forcing Linux To Use Software OpenGL

If for whatever crazy reason, you want to force Linux to use a Software OpenGL implementation, simply run this command before launching your application:

export  LIBGL_ALWAYS_SOFTWARE=1

I needed to do this to run Godot Engine on an old laptop that had no hardware OpenGL implementation, and it works like a charm.

Categories
code game development thoughts video

DevLog 01. Design and Prototyping

When developing a game, it’s important to figure out the fun factor. During the critical design phase, it’s always a good idea to get your idea into a playable form. This is where prototyping comes in. The goal is to quickly create something tangible and get an idea of the “feel” of the game. From there we can tweak and improve or trash it altogether. Don’t focus on making it beautiful. Focus on making it playable!