Live data from Hacker News

TypeScript types can run DOOM [video]

youtube.com

211–220 of 391 posts

Re: TypeScript types can run DOOM [video]

#211
post #203
post #179

> "It was a brutal year long journey of 18 hour days" [to run doom in TypeScript types] This is some serious dedication for what at first blush may sound to many to be a completely unserious, or even useless, achievement. But I say to those people: a DOOM proof is just as worthy of praise as any other academic mathematical proof, and has the advantage of being verifiable by laymen. Congrats on this amazing achievemen…

[flagged]

He wanted to do it. Didn't hurt anyone. Why criticize?

Re: TypeScript types can run DOOM [video]

#212

Earlier quoted context omitted.

Doom is Turing complete ( https://calabi-yau.space/blog/doom.html ), so it's just a matter of building the appropriate map.

(author here) _yes I realize how ridiculous what I'm about to say is considering the project I just shared_ but I actually strongly disagree, haahah. there's this thing I learned of called "the turing tarpit". my position is that just because something could theoretically be done with infinite time and infinite resources, doesn't mean you can even approach the throne of doing it for real in a human lifetime. And if I…

[deleted]

Re: TypeScript types can run DOOM [video]

#213
I'm sorry to rain on this parade, but I fail to see the merit of spending so much effort - and writing so much code, generating so much data, working 18hr days etc. - to render Doom in TypeScript type-checker.

I mean, there all sorts of feats and achievements one could choose as one's goal, which would also be impressive, but would be more useful to users and/or software developers, than this. I'm just thinking of all of those times I wanted to suggest a software tool to someone and went "ungh, if there was only some FOSS which did that" - and there wasn't, or at least, it wasn't assebled from pieces into something usable. Then I think about spending a person-year on this and I get frustrated.

Sorry, but those are my 2 cents.

Re: TypeScript types can run DOOM [video]

#214

Honestly every time I worked on TypeScript codebase and the type definition "any" started popping out more and more often, I felt I'm starring into the abyss.

There are valid use cases for any (such as type constraints). Playground with example here: https://tinyurl.com/5ahs366a

In your example, I'd use Record instead

Re: TypeScript types can run DOOM [video]

#215
post #35
post #22

Not 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

In the YouTube comments he stated nonetheless that he still bombed big tech interviews, specifically the technical portion, probably because of some ridiculous LeetCode problem he did not memorize beforehand. It just goes to show how these procedures do not effectively determine who is actually a good engineer or programmer. If this guy can't land a job while achieving this, then something is not quite right with the…

OTOH he points out that he learnt an enormous amount during this project specifically, so probably much more employable now.

Re: TypeScript types can run DOOM [video]

#216

Wow. I still don't quite understand what it means to run Doom in the type system. I can sort of get how you might trick it into doing some calculations and generating some ASCII art. But how do you get tsc to access the audio system or load files etc?

At 17TB, trillions of types, and a year of 18h days my guess is he got very creative.

Re: TypeScript types can run DOOM [video]

#217

Wow. I still don't quite understand what it means to run Doom in the type system. I can sort of get how you might trick it into doing some calculations and generating some ASCII art. But how do you get tsc to access the audio system or load files etc?

At 17TB, trillions of types, and a year of 18h days my guess is he got very creative.

*177TB, according to the video.

Re: TypeScript types can run DOOM [video]

#218
post #203
post #179

> "It was a brutal year long journey of 18 hour days" [to run doom in TypeScript types] This is some serious dedication for what at first blush may sound to many to be a completely unserious, or even useless, achievement. But I say to those people: a DOOM proof is just as worthy of praise as any other academic mathematical proof, and has the advantage of being verifiable by laymen. Congrats on this amazing achievemen…

[flagged]

what's with hn being filled with assholes lately?

Re: TypeScript types can run DOOM [video]

#219

"But I'm not one of those fancy 10x developers. Instead of a master of craftsmanship, I'm more a master of close-enough-manship" I definitely relate to this comment. and he also says "It was a brutal year long journey of 18 hour days" I think people are looking for those unicorn 10x devs that are like Good Will Hunting for code, but forget that there are those devs that might not get things right away but never stop…

Those are the unicorns

Re: TypeScript types can run DOOM [video]

#220
post #23

Earlier quoted context omitted.

I haven't checked the DOOM one, but for the Pong example, the keyboard input is prerecorded. As in the sequence of the keyboard key press are sequenced in a TS array[0]. [0]: https://github.com/MichiganTypeScript/typescript-types-only-...

yep! exactly this! like how a tool assisted speedrunner works

That's also how the Doom demos worked right? :D
Post reply on HN