WLOG - blog something different

tags: ai arduino bass games godot i2c linux plan9 random rv web werc zig
The importance of balancing trees
link | random | Sat Jun 18 18:44:42 CET 2023 No.17

Now, regarding developing structures, let’s talk about balancing trees.

Sometimes it is not just a problem of a difference in proportion of branches, but an unsuitable root node. So, what to do?

First, prepare a replacement root node.

Alternative root node

Link the new root node to the tree structure.

New root node linking

Make sure all the connections are updated.

Protecting root node connections

Do proper testing and inspection. Multiple tests over time are preferred.

Inspecting root node connections

There’s nothing wrong with some application of exception handling.

Protecting root node connections

The goal is for the new root node to properly support the structure and handle the load.

Linked new root node


The importance of debugging trees
link | random | Sat Apr 1 08:20:50 CET 2023 No.8

Today’s lesson, or more accurately a rant, on the topic of developing services and products leveraging usage of trees.

Tree structures are great! Efficient at traversing and storing. Not to mention representing hierarchical structure.

But there is a risk when implementing trees. The bugs are hard to find.

Bug hidden in tree leaf

It is specially important to debug your trees early in development or the bugs might grow exponentially.

Big bug in a tree structure

On a tangent, it is downright annoying when you find a bug in a random number generator.

Big bug in a tree structure

If the last joke did not register, I suggest reading The Botany of Desire, to get a better understanding of the world of random mutations, specially regarding apple related development.


What is replacing who
link | ai, random | Mon Mar 13 15:41:17 CET 2023 No.6

No doubt, we live in interesting times. Scary times. Uncertain times even.

It is easy to fall down the hype rabbit hole. And who knows, this might completely miss the mark.

Language models, convolution models, stable diffusion models, …, a new tool, by any other name. Until we learn to live with it, it will be shrouded in mystery and fear. Both potential for progress or disruption, good or bad. But let’s break down our angst to manageable chunks.

The first reaction, for far, have to generate those clickbaits somehow: is it dangerous? Is it going to replace me?

After all is said (on video or podcast) and published (by now you haven’t read any actual research, but you have read all about it on - insert “tech news” site here), it is another tool. From workers disputes during the industrial revolution, kicking (sabotaging) machinery that was taking away their work with wooden shoes (Sabo). To radio displacing Lectors to entertain workers behind a production line. This is not a new state of change. As J.M. Barrie wrote in Peter Pan (or maybe more recently known from the series Battlestar Galactica): “All of this has happened before, and it will all happen again.”. No doubt it will cause disruption and displacement of jobs as a local extreme in time. Sad, annoying, tragic even. But as a trend, this is not yet the global extreme where tools will stop being invented or improved. And we would be lying if we said we don’t like better tools, faster processes, more efficient manufacturing, … And AI is just another tool. Whether it can generate code, sermons, reports, images or videos, we’ll have to learn to use it correctly.

Let me make a point because it just so happened I misused a couple of tools and would hate to have the pictures go to waste:

Shovel broken while removing a tree stomp

The point being: use the right tool for the job. If there are better tools available to you, learn to use them, or suffer the consequences.

The second reaction, by those who gave a thought: can we trust it?

Images and video, generated with photorealistic fidelity. How will we ever trust if something is true anymore? Text generated with such a high level of confidence. How can we ever know if it is or isn’t true?

May I interest you in a subscription free appendix operation:

Dalai language model explaining the benefits of subscription free appendix operation

Just as before, this is not a new problem. What is to say a written or printed word on paper is true? As soon as the Gutenberg industrialized printing with his printing press, sharing of information became cheap and available. True or not. It’s up to you to be the judge in this transaction. Just look at the state of the internet today. How is this working out?

Just because it is the right tool, doesn’t mean it’s good:

Pick, the right tool to pick and pry away hard things, but not good enough

Just as the accountants survived the electric calculator (and spreadsheet software and programming languages and productivity frameworks and …), so we will all adjust to less manual and more intellectual work.

This was spellchecked. We don’t even think about this anymore. A rock, that has the ability to count, possibly (nowadays for sure) thanks to a neural network for grammar, has taken work away from a monk, to save me from the embarrassment of improper spelling. Or was this line crossed, then we could repeatedly print words on paper? Typed them on a typewriter? Edit them on a screen? Who knows?

The reality is, we can never stop learning! And we must not look at the knowledge and experience, now displaced with newer tools, as lost or redundant. But rather a stepping stone to the next big thing.


Something different
link | random | Mon Jan 02 14:46:49 CET 2023 No.1

It’s time for something new, something different.

It might be time in someone’s life, accumulation of experiences looking for structure, a need for a shift in perspective or just an awakened drive to learn something new.

As with any burn out, heartache, creative block, … The best remedy: try something different! Let the proverbial weight of new experiences push you again on the right path.

With that said, a journey of discovery awaits as always. But this time around, having the opportunity to do so, document it here in this form.

Toy car exhibition in Toy Museum in Stockholm in Sweden


next |