Odin’s latest refinements show a commitment to developer ergonomics that many systems languages overlook. However, celebrating 8x8 matrices in 2026 feels like a modest milestone for a language aiming to redefine modern low-level programming.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Two new features in the latest Odin releaseAdded:
A new release of the Odin programming language is out. This is the May 2026 release. Let's have a look at two new features in this release. These are the release notes and these are the two features that we're going to look at in this video. Let's start with the native array casting semantics.
Previously, this is how this used to work. If you wanted to cast an array of for example free integers that looks like this then you would use lin al for example you could do this you could use lin alf32 and then you would get out an array uh that consists of uh floats instead. If we run this we see it prints v2 here.
What you can do now instead is just cast it straight away. So you just type the type you want like this. F42 V1. Delete that. Run it and it just works. This is a very handy feature in Odin because you often use fixed arrays uh to represent positions or directions in two or three dimensional space if you're making a game or some kind of visualization software. And in those cases you might have a you know defined a separate type that is equivalent to this. So then maybe you would have something like uh vec 3 is uh three f32s and then maybe you have a uh integer version as well. So maybe you have something like this and then you know you could just as well just put these here. Actually you don't even need this bracket like that and you run it and it still works fine. Something to keep in mind here is that this operation is sort of equivalent to a loop. Uh it has complexity O N. So if you do this on a tiny array like this with just three elements then you know it's very cheap. But if you have thousands of elements, then you could you could see as a loop that goes through and makes a one new array of the type you're casting two and then it you know it it goes through that and casts each element. So just be aware of that that this is if you're doing this on a big array what's what's actually happening. Uh therefore you know you will probably end up using this a lot for these kind of small arrays such as the ones you use for vectors and positions. And it's also important here to to realize that this kind of cast only works on fixed arrays. It doesn't work on things that are for example slices that can be of any size and that are quite often referred to some other data in memory that's not on the stack or something like that. So you know fixed arrays in Odin they they had they live on the stack and they behave just like normal stack variables which is why the casting sort of makes sense. But if you you can't do this if it's a slice or a dynamic array or something like that.
Okay, let's look at the second one here.
Increase matrix limits from 16 to 64 elements allowing for up to matrix 88T.
What this means is that matrices in Odin now have higher capacity. If you make a matrix for example like this you do a 2x2 matrix of 32-bit numbers and you put in four numbers into it like that and then you print it you know that that will work fine. You want three four like that. In the past the maximum here was if if we just declare a zero matrix like this. In the past the maximum was this 4x4 total number of 16 numbers. Now the matrix um like the maximum size of the matrix is 8 by8 64 numbers. Some people might be like but why can't you you know make 200 by 200 because you know there are legit use cases for really big matrices. Uh you quite often use them to solve linear uh equation systems. Note that these matrices they live on the stack so they need to be quite small like this is just a just like you know an integer lives on on the stack and takes stack space. This matrix also does that. And if you just put in 200 by 200 then you would first of all you would blow up the stacks. You would have to dynamically allocate it. And these are two kind of you know the optimizations you would want for a a matrices like you know those kind of huge matrices that solve these huge equation systems for example.
You probably want different optimizations and stuff there anyway.
So, so it's quite good that they're not the same. And it's the same thing, you know, if you look in C++ for example, the matrix libraries for doing like 3D math for robotics and games and stuff, those libraries are usually not the same library that you use for doing uh like mathematical analysis. You use two different kind of libraries there. And that's the same thing because they they they have these different problem domains. So so the the solution to the problem and the optimization you can put in for it is different. You don't necessarily want to mix them up. But anyways, so now we can do 8 by8 uh which is still, you know, it's a 64 uh uh values that this matrix can store instead of 16, which is still not too big to put on the stack, for example. Uh and so you could use this for example if you want a 6x6 matrix and you want to take an inverse of it. Now you can if you want to if you want to learn more about the Odin programming language then you can read my book which is called understanding the Odin programming language. It has a big chapter on for example manual memory management. So it's great if you're coming from some other language that does not do manual memory management and you want to learn about that stuff. Read more about the book on his website, odinbook.com.
Okay, that's it.
Related Videos
Agentforce NOW AMA: Build with React and Salesforce Multi-Framework
SalesforceDevs
490 views•2026-05-28
How agent o11y differs from traditional o11y — Phil Hetzel, Braintrust
aiDotEngineer
450 views•2026-05-28
WEB TECHNOLOGIES UNIT-2 | Degree 4th sem BCOM Computers web technologies unit-2 full explanation💯✅
LearnwithSahera
1K views•2026-05-29
More tests are always better? How to use AI to identify tests that bring little value
Alliance4Qualification
335 views•2026-05-29
Search Algorithms Explained in 60 Seconds! 🤖💨
samarthtuliofficial
218 views•2026-06-01
People of Game of Thrones using JavaScript DOM
AltCampus
296 views•2026-05-30
Introduction to Problem Solving Part - 1 | Lecture 1 | Intermediate DSA
ascensionix
107 views•2026-05-29
🚀 BCS613C Compiler Design | Module 1 to 5 Schema Evaluation 🔥 | VTU 6th Sem 💯 #VTU #bcs613c #exam
Pranavaa-y4y
104 views•2026-06-02











