Live data from Hacker News

TypeScript types can run DOOM [video]

youtube.com

51–60 of 391 posts

Re: TypeScript types can run DOOM [video]

#52

I hope he learned something useful while doing it and it seems like he did, because, although regarding all the comments here I'll likely be alone in my assessment, I just see a massive waste of time & effort? He described it as "a brutal year-long journey of 18 hour days" and he didn't bootstrap a company, he wrote Doom in Typescript types...?! The "epic" doom music underlying his story just makes it seem even more…

You could say the same about art. Artists put lots of time and effort into creating unuseful things to inspire others. Just like here!

Re: TypeScript types can run DOOM [video]

#53
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…

Those interviews select for the type of person that believe it is worthwhile to dump tons of time into studying minutia to succeed at those types of interviews.

The purpose of a system is what it does, after all.

Re: TypeScript types can run DOOM [video]

#54

I hope he learned something useful while doing it and it seems like he did, because, although regarding all the comments here I'll likely be alone in my assessment, I just see a massive waste of time & effort? He described it as "a brutal year-long journey of 18 hour days" and he didn't bootstrap a company, he wrote Doom in Typescript types...?! The "epic" doom music underlying his story just makes it seem even more…

> don't want to crash the party

> I just see a massive waste of time & effort

Kinda seems like you do wanna "crash the party". I disagree that this is a "waste of time" of course, the value I see here is manyfold:

1. Learning how to do self-directed learning, managing time, etc

2. Learning, at an expert level, about dozens of complicated (not to mention in-demand) CS subdomains

3. Doing something that nobody has attempted, and few people could realistically accomplish

4. Having fun on the journey of taking a ridiculous idea from conception through to a truly functional implementation

5. Sharing something you've built with the world

It is, of course, not everyone's cup of tea, but if someone wants to spend a not insignificant fraction of their life building something unique (and beautiful, in its own way) and sharing it with the world, to the detriment of quite literally nobody else, I support them in their adventure.

Re: TypeScript types can run DOOM [video]

#56
post #33

Earlier quoted context omitted.

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…

If I heard him correctly he stated that it takes A LOT to just render a single frame. It's not playable. It can run DOOM, but you can't actually play it.

"A lot" is an understatement, rendering the screen at ~320p took 12 days.

Re: TypeScript types can run DOOM [video]

#58

Typescript is for me one of the most overengineered programming languages. Why did JS not follow the way python and php did? Integrate types in the main language but make it optional.

When typescript came out, you were seen as weird for wanting such a thing. I once had a VP of engineering dm me to tell me to stop discussing typescript in the company dev channel around 2015 (if you're reading this, that was a dick move). Nowadays you're kinda odd man out if you don't want types. So the idea of adding types even optional ones probably wouldn't have gone down well. The closest we ever came was es4 which of course never landed: https://evertpot.com/ecmascript-4-the-missing-version/
Post reply on HN