Earlier quoted context omitted.
Well we haven't implemented a web browser capable of running javascript in the typescript type system yet. Quick, someone tell this author it's not possible.
Doom is Turing complete ( https://calabi-yau.space/blog/doom.html ), so it's just a matter of building the appropriate map.
TypeScript types can run DOOM [video]
31–40 of 391 posts
Re: TypeScript types can run DOOM [video]
#32Re: TypeScript types can run DOOM [video]
#33A WASM runtime in TypeScript types is impressive in its own right, but I think I can dimly see how it could work with a lot of effort. https://github.com/MichiganTypeScript/typescript-types-only-... What I don't understand is how this thing does keyboard input. At 3:42, the video simply says, "And, yes, there's a way to do keyboard input," without elaborating on how. What sorcery is that ? There must be something out…
If I had to guess, it's a file with an array of keys pressed (or unpressed) at some time interval (say 0.1 seconds). Then a VS code extension can append to the array every 0.1 second along with any key-press states at that time. The compiler updates the game state whenever this array gets updated. However, I'm guessing this is why we see a demo of pong and not doom. Doom probably just can't keep up with this. No idea…
Re: TypeScript types can run DOOM [video]
#34Doom compiled to just 177 TB (terabytes) of TypeScript types. Amazing on many levels.
Re: TypeScript types can run DOOM [video]
#35Not only is Dimitri an amazing engineer - he's also great at building community and event/video production. Michigan Typescript meetups and videos have a level of polish that goes over and above
Re: TypeScript types can run DOOM [video]
#36Yoooo WTAF
Re: TypeScript types can run DOOM [video]
#37I got to watch Dimitri posting internal updates about his progress on this, and it has been utterly mindblowing. This is genuinely one of the most amazing things I've ever seen done with code. Absolutely legendary feat! (And also an incredible amount of persistence.)
Where can we see these updates?
Re: TypeScript types can run DOOM [video]
#38Re: TypeScript types can run DOOM [video]
#39A WASM runtime in TypeScript types is impressive in its own right, but I think I can dimly see how it could work with a lot of effort. https://github.com/MichiganTypeScript/typescript-types-only-... What I don't understand is how this thing does keyboard input. At 3:42, the video simply says, "And, yes, there's a way to do keyboard input," without elaborating on how. What sorcery is that ? There must be something out…