
Christoph Nakazawa - Athena Crisis, Jest, Yarn, MooTools, Metro
devtools.fm: Developer Tools, Open Source, Software Development
00:00
Immutable Data Structures: The Smartest Way to Build a Turn Based Game
The whole game is built using immutable data structures because it's basically, you know, a turn based game and anytime you make a change, you execute an action and then you get a new game state back. And so I was able to get super nerdy on like, okay, immutable, everybody says immutable JS sucks. Can I make a faster implementation of immutable map? It's really fast to add or remove or change something because you're not recreating that entire thing in memory. There's a lot of stuff that I learned about how browsers really work. So there's definitely an element of trying to do this with an engine in a way if you wanted to do the Web TPU
Transcript
Play full episode