I hope you liked the video, make sure to discuss below, or if you have any ideas or questions about these cellular automata then comment away below! I read all comments that I receive :) And feel free to share the video around! Make sure to also check the description of the video for the links to all the code, papers and featured videos, as well as discussion on a few extra nuances on these cellular automata! Also don't worry, there will be mechanical engineering content in the future - I simply want to work on some of my other hobbies as well!
@zach4505 Жыл бұрын
If someone were to ask me what a neural network looks like while it's being trained, I would say it looks something like this.
@centarian25596 ай бұрын
Is there anywhere I can download the program that runs multi-layered Lenia? I have a few ideas for interactions that I want to test out but I can't find anywhere I can download the programs.
@BirdbrainEngineer6 ай бұрын
@@centarian2559 I am not sure if there is a simulation program that has Lenia capability built in yet. What I created in this video was a Rust crate/library called "lenia_ca" which, when set up correctly, would simulate the interactions. However, all the graphical display was something I just botched together and used the core library with. While both, the core library and my botched together graphical display are available as source code on GitHub (check the video description), as it stands right now, you'd need to manually insert all the parameters yourself in the code and compile the program (in release mode for better performance) and run it to see the result. I'm not sure if I'll be up for making a proper program with a gui for simulating Lenia at this time... maybe when I am travelling around US next year it'd be something fun to tinker at during the long rides.
@no-lifenoah78612 ай бұрын
Have you ever watched TodePond?
@bluebunnexyt Жыл бұрын
truly a production quality video, gives me nature documentary vibes, and made the content readily understandable imo. very well done!!
@Skaffa10 ай бұрын
i was thinking the same
@simplifyitofficial Жыл бұрын
This video gave me goosebumps about what a computer is capable of with a simple set of rules. I don't know why no one talks about it. You gave me a very big inspiration. Thank you
@dannyhefer679111 ай бұрын
Imagine a simple set of rules and 15 billion years... I can't help but think about non-darwinian evolution and such, link all that to the origin of life, and wonder about... well, many things.
@CanalRD2 ай бұрын
i'm doing a research project on my computer sicence engineering course about lenia and it's really beatiful the possibilities of it
@KILLERMANKILLERMANKILLERMAN2 ай бұрын
I have a feeling that you’re an evil Ai taking notes from this..
@PunmasterSTP Жыл бұрын
This was incredible! I've always been a fan of artificial life, though ultimately I haven't delved too deeply into it. This video was one of the best introductions to Conway's Game of Life and cellular automata in general, and I hope it gains a lot more exposure. Keep up the fantastic work!
@Tanvir13379 ай бұрын
This is one of the most beautiful thing I've ever seen in my life. And the most beautiful thing I've seen in this year so far.
@samuelthecamel Жыл бұрын
This is such an underrated video. It's super high quality, it explains everything you need to know from the basics, and it shows just how cool these simulations are!
@Alayric Жыл бұрын
Nice. I've been interested in Lenia for a few years but never really dug into it or made my own. I'm learning Rust and I intended to develop my own to practice, and saw yours is in Rust! 👍 Kudos for crediting everything (borrowed videos and music) in the description, not everyone does that.
@BirdbrainEngineer Жыл бұрын
Have fun with Rust and the coding! If you want to make an efficient algorithm then make sure to use fast-fourier-transform based convolution ;)
@ekkekrosing8454 Жыл бұрын
I used to be really interested in lenia and artificial life simulations. At that time there barelt was any videos about the topic This video is a godsend for anyone who is interested in Lenia, keep up the good work!
@puffdaslvmpy551911 ай бұрын
I'd like to see this simulation scaled up to a degree similar to the scale between single biological cells in the real world and large multicellular organisms or even small animals. I wonder what kind of larger more complex organisms this simulation could produce?
@qedas3495 Жыл бұрын
I'm very glad I stumbled on this video because KZbin is recommendeding everything related to Conway's game of life, your channel seems to be very interesting
@BirdbrainEngineer Жыл бұрын
Thanks!
@PunmasterSTP Жыл бұрын
I saw a video by @neatai6702 a while ago where he determined that Conway's Game of Life is a hugely popular search term, so there's definitely some consistent visibility.
@graydhd8688 Жыл бұрын
Holy moly this is so amazing!!!! This was utterly fascinating, and the way you presented the math, with little footnotes saying what things are, I didn't tune out at the symbols lol- I actually was able to understand what they were! I wish 'complicated' math were presented that way more often. With footnotes of their use. I'm good with following logical operations, I just have no logical operations for the calc symbols in my noggin.
@Boombox_r23 күн бұрын
This is hands down the best video I have ever seen on youtube. The quality is incredible and I love everything about it. You deserve way more subscribers than you have.
@PLeonTube Жыл бұрын
Jajajah! You are the first programmer I see confessing you write spaghetti code! Kudos for your hard work. Beautiful contribution, indeed!
@KitCollin-e4j Жыл бұрын
I think I went through my own mental computational evolution through this video. Even more reason to continue learnings more areas of math. My brain is exploding with ideas now thank you.
@Briskbreeze256 Жыл бұрын
This is gonna blow up I'm sure. This video is fantastic!!
@BirdbrainEngineer Жыл бұрын
We shall see, KZbin seems to have absolutely nuked the impressions for this video some hours ago... never seen it be this extreme haha... We'll see, maybe the algorithm decides to pick it up again at some later date :P
@PunmasterSTP Жыл бұрын
Yeah fr!
@LegendLength Жыл бұрын
@@BirdbrainEngineer It's a popular field in general (voxel manipulation). People seem to love videos about the topic when they can find them. Seems to be a real emerging field (i'm working on a 3d one).
@BirdbrainEngineer Жыл бұрын
@@LegendLength Well, usually you'd want to know how to manipulate the voxels; With Lenia and many other similar cellular automata, we are unable to predict what the end state after x+1 (+1 because the only step we *can* predict is the next step) steps is. Stephen Wolfram would even say that such systems are "computationally irreducible", meaning there exists no algorithm to predict the end state that can avoid simulating the system step-by-step. Maybe chaos theory can shine some light on the properties of cellular automata in the future. Or perhaps we are just wrong about computational irreducibility, that'd be exciting.
@LegendLength Жыл бұрын
@@BirdbrainEngineer Here i'll be using bit manipulation on the voxels. So it's similar to game of life in that it's just blind processing. But you get the advantage that a bitwise instruction is just one clock cycle. So comparably fast to image kernels etc..
@vyldim340110 ай бұрын
History channel vfx after 12 AM:
@teacupanimates Жыл бұрын
im happy to see a lenia video that isnt 2 years old! thank you!
@SnowmansApartment Жыл бұрын
this is really cool. Wasn‘t aware there was much beyond the game of life. This makes me want to give this a try :)
@BirdbrainEngineer Жыл бұрын
It's certainly a nice programming exercise with a satisfying end result! I have also added Bert Chan's online version of "Basic Lenia" in the description.
@EnriquePage91 Жыл бұрын
I am super stoked to see this new video on my latest obsesion - Lenia. What I am not so happy about is the fact that I was planning on making my own video on the GLSL code I’ve been working on, and you’ve clearly beaten me to it… DARN!!! Hahaha anyway. Cheers. About to press play - can’t wait to see what you come up with and I’m sure we can both agree, Bert Chan is incredible. And so is Lenia.
@EnriquePage91 Жыл бұрын
What an incredible video - congratulations! I am so happy there is now more material on Lenia on KZbin thanks to you. Especially considering the super high quality of the editing. 10/10 thanks for this 🙏🏼 I hope see more in the future !
@BirdbrainEngineer Жыл бұрын
The code is written in pure Rust, it is completely CPU based, just quite heavily multi-threaded, compiled with optimizations for performance... and my cpu is a fairly beefy Ryzen 7 7700X. A GPU based solution will certainly be faster, so go for it! I was going to make a gpu based Lenia library some time in the future... maybe... I have some ideas I want to try out, and making a gpu based Lenia would certainly aid in that.
@PunmasterSTP Жыл бұрын
I'd say you should still go for it. The more widely Lenia is ported and the more it gets shared on KZbin, the better!
@echtertill Жыл бұрын
Totally underrated video... I LOVE it ❤
@Desslosh Жыл бұрын
Woah, great video. I specially like your voice and the way you narrate. You made it completely epic.
@Desslosh Жыл бұрын
I forgot to mention, I really like that you synced the movements and cuts with the music. That's great level of detail, and must have taken a lot of time.
@PunmasterSTP Жыл бұрын
@@Desslosh Yeah, for how good the quality of this video is, it deserves many more views than it currently has.
@TonyTheTrain Жыл бұрын
I've been familiar with game of life for a while now and it didn't really "hook" me. I see why its so cool. This video was great. Given input constraints and a feed back loop on the "rules" based on the outcome, this could become the basis for a type of nueral network.
@desolatedsouls Жыл бұрын
2:03 That's it. The video is a masterpiece. Amazing progression!
@streetos7 ай бұрын
Please mix your music lower, it's way too loud compared to your voice
@no-lifenoah78612 ай бұрын
Tode is still asleep!
@Pihlalorjoone24 күн бұрын
I agree, a bit of music is ok, but do not make it as loud as a commercial on youtube...
@Kram10327 ай бұрын
I think Asymptotic Lenia is a great idea for making Lenia more real-life-plausible. There is another very nice variant, Flow-Lenia, which makes Lenia far more robust and also seems to me to at least partially tackle one problem Asymptotic Lenia has. It introduces mass conservation of sorts. I would love to see those two variants combined into one to see if something even more plausible emerges. If we managed to implement full mass conservation, it'd potentially become possible to literally simulate Lenia in a petridish with carefully balanced reagents.
@taureanwooley Жыл бұрын
An oscillating microscope using the equations was more intense in understanding the usage of the Conway game to explain something "!bigger!"
@chrisjudge705 Жыл бұрын
GENIUS video, hyper many multi-dimensional thanks for this video. Best wishes from Berlin
@haoranwang3408 Жыл бұрын
DOPE! SO interesting! "Smooth" makes them look alive!
@zergosssss Жыл бұрын
amazing video, i don't often leave a comment, but your video did deserve one +1 sub
@Woltvint10 ай бұрын
Amazing video! I have to try some of these out for myself.
@vindi167 Жыл бұрын
I have never heard of Lenia but now I'm REALLY interested.
@tom-on Жыл бұрын
so when does this become sentient
@BirdbrainEngineer Жыл бұрын
Who knows, first we need to agree on a rigorous definition of sentient, which, as you can imagine, is a difficult and unsolved problem.
@flameofthephoenix8395 Жыл бұрын
Likely once it starts benefiting humans.
@segasonic495215 күн бұрын
Add AI that learns within the game, then boom, got Brain now
@FelixNielsen10 ай бұрын
I am certainly blown away by this, and that's saying so, but there is a problem, I think. Comparing Lenia to gAme of life, if a bit like comparing comparing an intergalactic space ship to a bicycle. They both fall into the category of transportation, but comparable they are not, not really. However, I've seen a number of advanced automatas and this is without a doubt the most impressive, in terms of the least complex in relation to the complexity of the result, apart from game of Life, naturally. I very much enjoyed the video, it was very well done and you've got yourself a new sub.
@neithanm Жыл бұрын
I wish we could simulate simplified versions of basic organics like aminoacids and... see something magical happen.
@Thats_A_Dummy_Name Жыл бұрын
One more generalization would be truly mindbending: Rules which are itself spatial and allowed to be altered by other rules. This way evolution could truly take over. Rules can then dominate other rules and would dominate the population. Other rules which are less strong would die out.
@BirdbrainEngineer Жыл бұрын
That's a nice idea... although quite difficult to implement, and the simulation would get a fair bit slower (as well as much more memory intensive)... dramatically so if we allow the kernels to change over time as well. In addition, at that point Lenia is like a single layer of a weird convolutional neural network haha. Currently the next generalization that will end up generalizing Lenia to the point where it is the superset of all life-like cellular automata, is to enable the growth functions to have any number of inputs, as opposed to just a single convolution's output.
@Thats_A_Dummy_Name Жыл бұрын
@@BirdbrainEngineer totally agree. The perspective to have rules which act as genes are worth all the troubles. 🤗
@PunmasterSTP Жыл бұрын
Yes I had the exact same idea! I thought about simulations of chemical reactions where the individual reaction rules could "diffuse" across the grid, but I'm not sure how widely something like that has been implemented, or if it's been implemented in a cellular automata system.
@OlafKeller6 ай бұрын
That was AMAZING. Thank you! Subscribed.
@TheJunglist Жыл бұрын
Loved this video, thank you!
@scally934110 ай бұрын
A lot of these really look like quantum fields, atomic electron clouds, or even larger atomic structures and living cells. I have a feeling Lenia and related (potentially more advanced) methods will prove very useful in learning more about the natural world. How wild would it be to use machine learning or AI to iterate these systems and solve for specific problems inside this problem space? Imagine optimizing for traveling "organisms", or optimizing for the growth of one at the expense of another. So much possibility lies in the emergence created by such systems.
@BirdbrainEngineer10 ай бұрын
kzbin.info/www/bejne/o4TcZa1uo6l_pNE
@Olisha.S Жыл бұрын
This blew my mind. I want to go program it now 😅
@BLoudermilk Жыл бұрын
Excellent video! Are you using manim? Your production quality is astounding
@BirdbrainEngineer Жыл бұрын
I did not use manim, as it would have meant learning the library and the last time i wrote any python was like 4 years ago. I did think about it though, and if i make videos that have mathy parts in it in the future, I may have to learn it.
@noobyplayz284011 ай бұрын
this is the third video in a row that started with conways game of life im gonna overload from information about it at this point
@BirdbrainEngineer11 ай бұрын
It's the most classic cellular automaton and understanding at a good level how Conway's Game of Life works is sort of needed to really understand the next steps taken and why they are a generalization of cellular automata, and how cellular automata are tied to continuous automata. Since this video attempts to give a basic understanding of these steps to arrive at a generalized cellular and/or continuous automaton like SmoothLife or Lenia, then it was necessary to include it. In the future, it will not be included, unless I decide to make a rework of this video or maybe one day a video talking about all of the different types of cellular and continuous automata and how they relate to one-another.
@AKA-f7p Жыл бұрын
Why gliders look similar to Ptychopariida
@mr.duckie._.10 ай бұрын
Lenia doesn't feel like life, it feels more like HORRORS BEYOND MY COMPREHENSION 10/10
@stefanguiton Жыл бұрын
Excellent work
@cloudedarctrooper11 ай бұрын
Particle lenia looks like what you might see under a microscope... That is... Incredible...
@Known_as_The_Ghost9 ай бұрын
My guy's gonna program an entirely new universe.
@deathbyseatoast8854 Жыл бұрын
a cool exercise in seeing emergant properties for sure.
@bitnertinkers Жыл бұрын
Awesome really like your videos!!!
@Aguyplayinggamez3 ай бұрын
Fax fr 🗣️🗣️🗣️🗣️: This is the game of life,this is the game of life,the game of life,the game of life,Conway's game of life
@theuniversevoyager Жыл бұрын
Giving continuous values to cells makes me wonder if the cellular automaton would also be useful for simulating quantum effects. Have you considered this?
@BirdbrainEngineer Жыл бұрын
I certainly was not the first one to wonder it back when I first thought about it... It should be possible to simulate certain kinds of wave functions, but I'm not sure it would be in any way "useful". Having said that, something I have wondered about regardless, is whether simulating wave-functions and interactions between them through cellular automata, we could learn/discover something... some process, some quality, some value which would have an analog in real quantum mechanics and hasn't been discovered just yet...
@Edward-pw6zz Жыл бұрын
awesome video!
@MrCoillote Жыл бұрын
this look so microorganic, diatom like ! beautifull !
@miettoisdev5 ай бұрын
by the way, thumbs way up high for implementing it in Rust 🖤
@isaacgoicovich5182 Жыл бұрын
Incredible video!
@tiagotiagot Жыл бұрын
Could the channels also be made continuous, a spectrum instead of a collection of channels? Would this change introduce any interesting possibilities?
@BirdbrainEngineer Жыл бұрын
I'm not sure what you mean by continuous channels?
@tiagotiagot Жыл бұрын
@@BirdbrainEngineer Just like how space and time were made continuous, make it spectral instead of RGB.
@BirdbrainEngineer Жыл бұрын
@@tiagotiagot Well... first problem is how to assign source channel(s) for the convolutions? I can think of only 2 possibilities - you have only a single output channel (and a continuum of "convolution channels") or you have an output channels per convolution channel. You'd then need to make *all* of the parameters (with the exception of *dt*) free parameters. The kernel generation would probably have to be constrained to always be a radially symmetric kernel, that way you can define the look of a kernel based on a polynomial in range [0..1]. You are then able to set all of the channels continuously by providing the free parameters based on polynomials (probably defined in range [0..1] to match with the rest of inner-workings of Lenia). (If you yourself want to take on this project then I have some optimizations for this as well) So yes, in theory it is possible to make the channels continuous... the problem is that adding channels is relatively expensive in terms of computation. Eg. the single channel 3d Lenia examples run on my rather beefy pc at around 1 to 2fps (and that's with a field size of 100x100x100). This could be sped up somewhat by the use of a GPU, though GPU computing brings it's on strict problems. When making a 2d computable version of this smooth-channel-Lenia, each channel you end up generating to increase the channel gradient smoothness, is like an increase of resolution in the third dimension - actually a bit worse than that, even. So with current desktop computation power you can certainly say goodbye to real-time simulation of such a system, which would make finding potentially interesting sets of parameter polynomials a fairly time- and energy consuming ordeal. Maybe one day far in the future I would tackle this system... For now, the next Lenia system I tackle is going to be one which fixes causality in any continuous-time cellular automaton.
@1msirius3 ай бұрын
RIP John Conway, it's one of the first programme I wrote
@miettoisdev5 ай бұрын
what in the actual fuck this is precious stuff right here
@AlexandHuman Жыл бұрын
I believe it heard somewhere that there are people who think that all of the rules of physics came to be what they simply because it is what "survived" that is, at one point, all iterations of all the rules were thrown together in one big melting pot, metaphorically. What "survived" out of all of those interactions and such was we what understand to be physics, or science as a whole to put it broadly. What if you took a huge open Lenia field and did a similar thing? It would be hell to simulate, but if it works, one could find a set of rules that fit nicely together.
@BirdbrainEngineer Жыл бұрын
Maybe you are thinking of constructor theory, which is somewhat adjacent to cellular automata. Humans have a tendency to explain the theory of everything based on the best knowledge available- and what is "trendy" at the time. My personal opinion on the matter is that whatever process conjures reality is infinite in complexity and while our models can describe reality better and better as new theories come along, it would never be the real theory of everything.
@ericstorm4613 Жыл бұрын
Awesome video quality!
@rafakliber91479 ай бұрын
love the video. quick q tho: at 10:4 i am unsure why the sum goes over i. I get that you convolve a select channel j per each kernel k. Then you take the growth function of the result. for each Gk you multiply by a weight coefficient Wk. each weight belongs to one channel i tho, you do not sum over all weights, right? (also otherwise the indicies dont really work out)
@BirdbrainEngineer9 ай бұрын
I am not good with mathematical notation, and I do remember that while making the video I was not sure how exactly to really represent the whole algorithm, but I guess you might be right that the i does not belong under the sum there, as the result is for the i-th channel in the first place. My mind works much better with algorithmic way of thinking rather than with mathematical notation... I straight out get a headache every time I need to make sense of mathematical notation in papers for something haha.
@alexkizer639Ай бұрын
Incredible.
@descriptionsuchandsuch470910 ай бұрын
Wow really great Video about such a cool topic. As your program is written in Rust, would it ne possible to use the gpu through wgpu somehow?
@BirdbrainEngineer10 ай бұрын
It's certainly possible to use the gpu to speed up the calculations a bit, but I have not figured it out yet... maybe I'll get to it this year, probably not, though, as this year's Cellular Automata video is going to be about advancing the field of study a bit/making a proposition.
@GerardCalvo Жыл бұрын
Great video and the visuals are fantastic! What tools/libraries did you use to create the 3D visualizations (2D and 3D)? It really feels like a documentary!
@BirdbrainEngineer Жыл бұрын
The simulations were done with a simple visualizing program I wrote (can be found on my GitHub, link in the description... but it is pretty difficult to use, didn't mean it to be used by others really), and I simply recorded the output from the simulation with OBS. For the 3D examples I exported each frame as a collection of 2D slices saved as .png files, then used a python script in Blender to make it into an OpenVDB file, which I then immediately open again inside Blender. I then used volumetric shaders to give the simulations a bit of color/flair based on the values of the voxels and placed some lighting to get a satisfying representation of the simulations.
@TimScarfe Жыл бұрын
Nice video!
@BirdbrainEngineer Жыл бұрын
Thanks!
@JacobNax Жыл бұрын
It's fine that its spaghetti. It's a concept after all that looks very promising. I wonder what can be achieved with "Fine Tuning". I would also try to go the data oriented way to make it even faster for cpu to read millions of cells very fast by utilizing the cpu cache when you are making deterministic reads every time step.
@BirdbrainEngineer Жыл бұрын
The algorithm uses FFT to calculate the convolution over the whole field at once. I also used the multi-threaded version of the FFT function provided by the library. The growth function is then applied by a multi-threaded iterator iirc, and considering these libraries are the go-to libraries to use in rust for these purposes, then I would imagine cache locality has been thought about in the implementations of the libraries. The best way to make it faster is to use a GPU, which would probably give an order of magnitude improvement in the speed.
@MisterQuacker9 ай бұрын
Great video good soul! Enjoy your day
@Error422win17 күн бұрын
What if you stacked every step of the game of life on top of each other, what about smoothlife? Maybe even lenia
@BirdbrainEngineer17 күн бұрын
You would get what's called a "block universe". A full record of how the simulation ran. would be encoded in the added dimension. If you check my channel's banner, then that shows a block universe of Conway's Game of Life.
@finefreefine9994 Жыл бұрын
Smooth life with activation functions is so similar to a neural network. Seems like cellular automata supersede neutral networks, kinda makes sense to me.
@BirdbrainEngineer Жыл бұрын
The Author of the Expanded Lenia paper points out that the cellular automata approaches that of a convolutional neural network. The big difference from neural networks is that there is no long-term memory(weights) in cellular automata, only the current activations, nor is there any bias. It would be possible to add both of those to make a (even) more generalized version of Lenia functionally equivalent to a single layer of a convolutional neural network. But I am not entirely sure about what would happen to these solitons. If the weights and biases were at first initialized to a single/similar value respectively at first, then the solitons would probably appear but get more unstable over-time as the weights and biases get updated - could think of this like leaving some sort of pheromone trails. If the weights and biases were initialized to random values at the start, then no solitons would probably exist, as the weights and biases would dominate the simulation and the averaging effect of a convolution operation would mean that the activations would be roughly the same everywhere.
@dipooktama9355 ай бұрын
from creating a pixelated lifeforms, into a digital quasar lifeforms
@ojcg_ Жыл бұрын
Gorgeous video.
@itryen7632 Жыл бұрын
I was hoping that someone would make another video on this.
@olhoTron8 ай бұрын
You did it in Rust eh... now I feel compelled to do it in glorious Go!
@BirdbrainEngineer8 ай бұрын
Go for it! :D
@Sagitarria Жыл бұрын
I love this. I am curious, though about if there’s anything similar that respects conservation of matter and energy.
@Sagitarria Жыл бұрын
just found flow lenia and particle lenia both attempts at tracking
@BirdbrainEngineer Жыл бұрын
Yes, flow lenia, and particle lenia that is based off of flow lenia guarantee conservation of "mass" (or however much is possible with floating point errors anyways).
@Sagitarria Жыл бұрын
well it's all very good in all of the forms. I'm doing my PhD on applying eMergy analysis to gis models of watersheds and have been looking for inspiration on pattern formation PDEs that are able to be consistent with eMergy accounting. there might be something here@@BirdbrainEngineer
@BirdbrainEngineer Жыл бұрын
Fascinating stuff! I'm not sure what kinds of patterns you require but some things to consider when using any kind of Lenia for soliton (when dealing with cellular automata we call any bounded and stable pattern a soliton) generation is that a single ruleset, meaning the shape of the kernel(s) & the activation function(s), usually generates only a handful of different looking solitons. Now, with Flow/Particle Lenia there's technically an infinite set of different looking solitons as you can just keep adding "mass" and it will end up with something that must necessarily look somewhat different from what was there before... but the overall structure and behaviour of the solitons would remain self-similar as far as I am aware. So, to get different looking solitons and variants of them, you'd need to seed plenty of different looking rulesets. Something to consider as well is that most variants of Lenia are computationally quite demanding, so it may or may not fit with your specific needs for an algorithm.
@Sagitarria Жыл бұрын
i'd love to see a lit review with the core papers. I'll have to spend some time investigating. thank you. what I'm up to will probably not use Lenia specifically and instead just do convolutions of GIS data. @@BirdbrainEngineer
@academyofuselessideas Жыл бұрын
pretty cool... though, i wouldn't call this system cellular automatas anymore since they are not too discrete (although, one could argue that anything written in a computer is discrete)... One can think of this systems as different universes with the rules of physics given by the update rules. Under that light, I wonder if one can come up with some sort of measure of "life". For example, one could measure some sort of entropy of the states of the system, and define life as those entities that delay the reduction of entropy... it would be interesting if one come up with some measure like that.
@BirdbrainEngineer Жыл бұрын
Lenia is a type of continuous automaton. While the "Continuous Lenia" system itself is technically not a "cellular automaton" due to its fundamentally continuous space-time and definition by differential equations, the way we simulate Lenia is by using "Discrete Lenia", which most certainly is a cellular automaton. The two systems are never quite equal to one-another but can become arbitrarily similar. These differences do actually manifest themselves to an observable degree, especially when pushing the timestep of the Discrete Lenia to be extremely small. I believe already at *dt=0.0001*, the hallmark Lenia glider(_Orbium unicaudatus_) ceases to be stable over long periods of time in the most basic Lenia instance. As for measuring entropy and other values, it's one way to detect whether the simulation has entered a steady-state. Usually we'd simply use the total "mass" of the simulation as opposed to entropy but one could use entropy too. So, if the total mass/entropy has ceased to increase/decrease, or if it has a periodic oscillation, then it means the simulation has entered a steady state. These steady states can be one of three outcomes - The values have died out and you only have "nothingness". The pattern has "exploded" and filled the whole space. A soliton has appeared. The latter of which of course is the most interesting event usually. If it will ever be proven that Lenia is Turing complete, then there's also the possibility that the mass/entropy never settles and remains chaotic (halting problem). Of course, in bounded space (like how we simulate these things), there can never be endlessly chaotic systems, they would eventually settle(either as a a proper steady-state or a loop over time), but it could take longer than the lifetime of the universe to get there :P
@academyofuselessideas Жыл бұрын
@@BirdbrainEngineer Thank you so much for your detailed answer... all this is very thought provoking! 🤯
@NextGenAge5 ай бұрын
Why doesnt this video have a billion videos?
@josesantos2603 Жыл бұрын
Could you make a video about 4d, 5d Lenia?
@BirdbrainEngineer Жыл бұрын
It's quite literally simply a generalization of dimensions. Which is to say that the dimensionality of the field and the kernel does not matter, as long as they match. The reason why there aren't that many 3d or higher dimensional Lenia simulations done is because it is computationally very demanding. Firstly, for example the 3d variant ran at basically 1fps on a 100x100x100 field... that's a small field size and already it is rather difficult to compute. Of course using a gpu for the computation would speed it up by a factor of 10 perhaps. (granted you have a solid gpu). In addition, storing the field (and kernels if you use FFT based convolution like one should) starts to take up an immense amount of memory. I store each pixel as a 64bit floating point number... technically it would be just about good enough to use a 32bit floating point number, so lets assume that. Say we have a 5d field with a very modest 200 pixels for each side, that'd be 200^5=320.000.000.000 total pixels. Multiply that by 4 to get the number of bytes we need to store and we get that simply a single channel of the field takes up 1.28 terabytes of data! This does mean that as it stands right now, simulating 5d Lenia is basically only possible with a supercomputer. In addition, it becomes more and more difficult to find stable patterns at higher dimensions. Reason being, there's just so many more degrees of freedom that things tend to either only die out or immediately become chaotic.
@privateprivate186511 ай бұрын
What about Is life with consciousness/ self awareness
@BirdbrainEngineer11 ай бұрын
Well, what even is consciousness and self awareness? If we quantify what we mean by those concepts and draw a line between what is conscious and self aware and what is not, then we would be able to say whether Lenia creates conscious and/or self aware entities. Of course, the answer is that we would probably not consider these solitons conscious nor self aware just like we don't call a single molecule or elementary particle conscious nor self aware.
@kal0reese3 ай бұрын
lenia is what i see when i shut my eyes just right
@BirdbrainEngineer3 ай бұрын
Hahaha, same... Though usually it's more... sharp geometric shapes for me :P Though for-real, while working on this project, I did see proper lenia-like stuff when closing eyes to go to sleep haha.
@guguxz Жыл бұрын
Which area of mathematics studies these things?
@BirdbrainEngineer Жыл бұрын
Conway's Game of Life is very much tied to "Automaton theory". And while continuous automata share some characteristics with discrete automata, I don't think there is a formal field of study for continuous automata (may it be simply continuous space, continuous time, continuous space-time or any other more complex automata). I suppose since the truly continuous versions of some continuous automata can be described as differential equations, then mathematical analysis also comes to mind.
@BirdbrainEngineer10 ай бұрын
@@r3d570n3 Game theory would have something to say about it if the "resources" were limited (eg. maybe game theory has some insights into how flow- and particle Lenia work), but generally I don't think that things learned from game theory can be applied well to understanding the dynamics of cellular automata like Lenia.
@AKiwiBird11 ай бұрын
There should be a full spectrum of different kernels there can be, and somehow new ones can be added by the simulation
@BirdbrainEngineer11 ай бұрын
Changing a kernel of a channel globally is technically not too difficult, it would simply mean that the simulation would run 2x slower due to having to re-run the FFT on the kernel as well. Making kernels local (so different parts of a single channel could have different kernels) is computationally extremely expensive, as using FFT based convolution would no longer be the effective route, and you'd have to use the plain old multiplying and adding kind of convolution on each pixel. The memory complexity would also increase a fair bit then, as you'd most certainly have to store the kernel at a given pixel position as a set of parameters instead, so at least a 4x increase in memory usage. Adding channels on runtime is possible (though computationally gets demanding once you start to have dozens of channels), but for it to be "interesting" you'd need to also figure out in what way the new channel's activation function is generated, how to update the weights of the other channels and so on... So, while technically not impossible, it's kinda hard and computationally demanding.
@AKiwiBird11 ай бұрын
@@BirdbrainEngineer Oh that's too bad. (damn you really do read every comment)
@BirdbrainEngineer11 ай бұрын
There are not that many comments coming in (yet, anyways), so I can keep up haha.
@Karmicinnovations Жыл бұрын
Kernerls of accoustic vibrations from ohm like shapes from salt with on speaker
@BirdbrainEngineer Жыл бұрын
Do you mean standing sound waves as demonstrated here? kzbin.info/www/bejne/raetcpqoiqd5atk
@the_linguist_ll11 ай бұрын
Can Lenia run doom? (Jokes aside, used this a couple of years ago, and loved it)
@BirdbrainEngineer11 ай бұрын
That's actually a very interesting question, because it comes down to asking whether Lenia is "Turing complete" or not. So far nobody has proven either way, but if it is... then yes, there's some way to set up a Lenia simulation to produce the possibility to play Doom haha.
@secretadmirateur5979 Жыл бұрын
Man it’s amazing!
@milune777 Жыл бұрын
Great video!
@Valgween9 ай бұрын
pretty cool but is it possible to build a computer in Lenia that runs Doom.
@BirdbrainEngineer9 ай бұрын
Someone already asked that some weeks ago haha... The answer is... Both! A certain Lenia ruleset can simulate Conway's game of life, which is Turing complete, therefore in that case Lenia itself is also Turing complete and could compute anything that could ever be computed, including Doom. At the same time, there are some rulesets that are trivially not Turing complete (eg. The ruleset that would simply simulate diffusion/blurring). For any given ruleset, there is no known way to easily tell whether the ruleset is Turing complete or not. If somebody could figure it out, it'd be extremely big news and very useful outside of the field of cellular- and continuous automata as well.
@Valgween9 ай бұрын
thanks didn't expect a serious answer for my not so serious comment.
@BirdbrainEngineer9 ай бұрын
@@Valgween Haha, sorry, this kind of computer science is something I just have to nerd out over. And it's not every day you get to let someone know of a frontier of humanity's knowledge that is tied to one of your interests! :D
@echtertill Жыл бұрын
Thanks to the YT Algorithm for showing me this
@TheEngineeringMonkey3 ай бұрын
Good to see artificial life prefers the trilobite too lol
@iamrons Жыл бұрын
pls tell me where can i play lenia
@BirdbrainEngineer Жыл бұрын
Since Lenia is mostly used as a topic of research for certain fields of study, then usually it is expected that one will construct their own, either by building it from ground up or compiling/running source code available on GitHub (there are a few repositories to choose from). As far as I am aware, there are no programs or web-pages that have implemented a comprehensive Lenia simulator. That being said, here's a javascript version, which simulates a rather small sized channel and only has some pre-determined kernels and rules. It is also only the "Standard Lenia" system, not the expanded one. chakazul.github.io/Lenia/JavaScript/Lenia.html There are also a few Shadertoy examples made, with a couple different variants in each one (requires changing a number in the shader code on the site), for example www.shadertoy.com/view/7lsGDr
@Neptune1857 ай бұрын
Where do you code in?
@BirdbrainEngineer7 ай бұрын
VS Code
@Neptune1857 ай бұрын
@@BirdbrainEngineer thanks
@dafoex5 ай бұрын
I need to find a new programming project to prevent my skills getting rusty (har har). Maybe this could be it if I can wrap my head around the maths. I was half tempted to learn another language (I was looking at Lua) while I was at it, but maybe that's a step too far.
@BirdbrainEngineer5 ай бұрын
Is it too far? Depends how good your programming skills are/were. The nice thing about cellular automata is that there's a whole spectrum of implementation difficulties... While on one side of the scale, Conway's Game of Life is suitable as a beginner level difficulty, then on the other side, implementing multi-channel and multi-dimensional Lenia in an efficient manner is most certainly an intermediate to advanced level difficulty. I had programmed a little bit in Rust before I took this project. The main goal for me with this project was to learn how to code in Rust... and it certainly did help me learn the language nicely.
@whatitmeans Жыл бұрын
nice video, hope you could extend it further on why the shapes resembles the color patterns shown by cuttlefish, and also, Are you aware of this paper?: "Emergent Bioanalogous Properties of Blockchain-based Distributed Systems", Oleg Abramov et al. Orig Life Evol Biosph. 2021 Jun.... I think it deserves his own video, the conclusions give me shivers.
@danthiel86239 ай бұрын
interesting
@pncka2 ай бұрын
We are but cellular automata running on the grand computer of universe with the parameters of quantum physics.
@Atomchild Жыл бұрын
This needs to be sonified.
@BirdbrainEngineer Жыл бұрын
I guess something could be done based on the fourier transforms of the different channels but I'd wager most of the time it wouldn't sound all that good.
@kero-eg Жыл бұрын
"We get this" viewers get a shock❤
@um_idkw7 ай бұрын
this video is almost a year old ^^
@BirdbrainEngineer7 ай бұрын
Yeah... life is too busy to make videos unfortunately :/ I'll probably make another cellular -continuous- space-time automata video this year though... but after summer
@quarticle5762 Жыл бұрын
very nice! the mechanism kind of reminds of neural networks
@BirdbrainEngineer Жыл бұрын
They are similar indeed, but the way the operations are actually applied end up being the difference.
@Karmicinnovations Жыл бұрын
Mygod have we docoded life?
@SpeedyMcMichaelАй бұрын
i read the title as alogarithms instead of algorithms
@micah-e4e3 күн бұрын
The 2nd one probably simulates quantum mechanics
@BirdbrainEngineer3 күн бұрын
If by 2nd one you mean smooth-life, then so would Lenia, as Smooth-life is a subset of Lenia :P As far as I know however, no, neither Smooth-life or standard Lenia could simulate quantum mechanics because they are non-linear systems while the Schrödinger equation is a linear system. In a way you could think of it this way - most cellular automata, including all of the ones shown here, "destroy" information about what came before (making them impossible to simulate in reverse, only to guess states that came before), whereas quantum mechanics can be simulated forwards or backwards (apart from the act and moment of measurement; The measurement problem is one of the most important unsolved problems in physics today).