首页

71 条评论

notfed3 个月前
&gt; &quot;It was a brutal year long journey of 18 hour days&quot; [to run doom in TypeScript types]<p>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.<p>Congrats on this amazing achievement.
评论 #43189892 未加载
评论 #43189430 未加载
评论 #43196644 未加载
评论 #43191611 未加载
评论 #43189343 未加载
flanbiscuit3 个月前
&quot;But I&#x27;m not one of those fancy 10x developers. Instead of a master of craftsmanship, I&#x27;m more a master of close-enough-manship&quot;<p>I definitely relate to this comment.<p>and he also says &quot;It was a brutal year long journey of 18 hour days&quot;<p>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 until they figure things out. You&#x27;ll probably find a lot more of those than the unicorns
评论 #43191840 未加载
评论 #43194769 未加载
评论 #43189552 未加载
评论 #43193850 未加载
评论 #43191872 未加载
评论 #43195050 未加载
评论 #43192090 未加载
评论 #43193828 未加载
评论 #43190854 未加载
评论 #43193395 未加载
dfabulich3 个月前
A 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. <a href="https:&#x2F;&#x2F;github.com&#x2F;MichiganTypeScript&#x2F;typescript-types-only-wasm-runtime">https:&#x2F;&#x2F;github.com&#x2F;MichiganTypeScript&#x2F;typescript-types-only-...</a><p>What I don&#x27;t understand is how this thing does keyboard input.<p>At 3:42, the video simply says, &quot;And, yes, there&#x27;s a way to do keyboard input,&quot; without elaborating on how. What sorcery is <i>that</i>? There must be <i>something</i> outside the type system translating keyboard input into TypeScript types…??
评论 #43186365 未加载
评论 #43185941 未加载
评论 #43185945 未加载
sangeeth963 个月前
Blew my mind! Dimitri talks about it in the video but I love the mention of how this project came to be[0]:<p>&gt; This engine was built to service a project that aimed to demonstrate why Doom can&#x27;t run in TypeScript types. Well. The funny thing is.. It can.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;MichiganTypeScript&#x2F;typescript-types-only-wasm-runtime">https:&#x2F;&#x2F;github.com&#x2F;MichiganTypeScript&#x2F;typescript-types-only-...</a>
评论 #43190056 未加载
acemarke3 个月前
I 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&#x27;ve ever seen done with code. Absolutely legendary feat! (And also an incredible amount of persistence.)
评论 #43185889 未加载
dgunay3 个月前
I am at the same time both amazed and utterly unsurprised that this was possible, given all the hullaballoo about TypeScript&#x27;s type system being Turing complete. Having the grit to actually go through with it though? Bravo.
评论 #43192274 未加载
Rzor3 个月前
If there&#x27;s one top story HN deserves today, it has to be this. Absolutely insane and incredibly inspirational.
评论 #43185122 未加载
aylmao3 个月前
At this point the easiest way to know if a system is Turing complete is to check if someone has ported DOOM to it haha<p>Very impressive!
评论 #43186815 未加载
评论 #43187173 未加载
vardump3 个月前
Doom compiled to just 177 TB (terabytes) of TypeScript types. Amazing on many levels.
评论 #43187302 未加载
评论 #43192015 未加载
评论 #43186252 未加载
sys133 个月前
Not only is Dimitri an amazing engineer - he&#x27;s also great at building community and event&#x2F;video production. Michigan Typescript meetups and videos have a level of polish that goes over and above
评论 #43186261 未加载
kamilafsar3 个月前
That&#x27;s pretty insane Dimitri. If you like stuff like this I really recommend Dimitri&#x27;s TypeScript challenges series: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;playlist?list=PLOlZuxYbPik180vcJfsAM6xHYLVxrEgHC" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;playlist?list=PLOlZuxYbPik180vcJfsAM...</a>
bilekas3 个月前
This shouldn’t be possible.. Typescript devs have lost their collective minds and I’m totally here for it.<p>Edit : TS not front end
评论 #43188376 未加载
评论 #43191485 未加载
joshuakgoldberg3 个月前
Nothing will ever top this for typescript types. This is the pinnacle. An entire virtual machine and system memory with garbage collector in types.<p>Turing Completeness is one level, but being able to run Doom is the real test of whether a programming environment is complete and robust. Absolutely stunning to see TypeScript&#x27;s type system get there.
评论 #43185961 未加载
评论 #43188043 未加载
评论 #43189919 未加载
g4zj3 个月前
Can someone help direct me toward an understanding of what it means for something to be &quot;run in&#x2F;by TypeScript types&quot;?<p>A short explanation or link to a resource would really be helpful. :)
评论 #43188146 未加载
评论 #43188147 未加载
评论 #43204111 未加载
syrusakbary3 个月前
Hats off to the creator big way.<p>Really amazing stuff, and impressive dedication. To the author: if you would like to work on challenges of similar caliber, ping me (I&#x27;m Syrus, from Wasmer)
评论 #43188099 未加载
stevage3 个月前
Wow.<p>I still don&#x27;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?
评论 #43189653 未加载
评论 #43189451 未加载
评论 #43189868 未加载
ajkjk3 个月前
I wonder if there are any small changes&#x2F;improvements to TS that would make this orders-of-magnitude more efficient to run? It would be fun to go implement some random TS feature with the secret sneaky goal of making it run Wasm better.
评论 #43187055 未加载
goodoldneon3 个月前
To be clear, it&#x27;s running in TypeScript types only -- not JavaScript. Absolutely insane
breatheoften3 个月前
I wonder if with 177TB you could implement DOOM in a regex ... (plz don&#x27;t try unless you want to be on top page of hackernews in a year!)
评论 #43190045 未加载
TechDebtDevin3 个月前
Your only miss is that you should be selling that &quot;Types&quot; Doom themed shirt.
评论 #43188024 未加载
pmkary3 个月前
I had once built a type checker for a query language within the TypeScript type system, I thought I have reached the limits. Actually showed it to the TS team and they felt the same. This is like something my mind could never had even swallowed, let alone be able to ever build! Nice job!
ramesh313 个月前
Brilliant. The TS type system is a true marvel of modern software engineering. Its a shame that it hasn&#x27;t just been developed into a proper fully fledged runtime at this point. Something like Deno is the closest we&#x27;ll get it seems.
评论 #43195088 未加载
ejones3 个月前
Amazing work. I&#x27;m interested in the choice of WASM - presumably any target that can run DOOM could&#x27;ve been used? Of which there are innumerable choices I assume. Was it for symbolic reasons or genuinely the most useful target?
评论 #43187917 未加载
评论 #43186739 未加载
评论 #43186728 未加载
4gotunameagain3 个月前
Throughout the video and while appreciating this unbelievable feat I kept thinking &quot;how could someone have the motivation necessary to tackle such an insurmountable undertaking&quot; ?<p>And then he said it: &quot;All I wanted was the specific reason DOOM can&#x27;t run in a type system but every time I hit a roadblock I always came up with some ridiculous workaround. I clung to that belief that it couldn&#x27;t work and that doubt fuelled me the whole time.&quot;<p>Beautiful. I wonder if I can trick myself to one time attempt the impossible.
internetter3 个月前
Out of curiosity, could the learnings&#x2F;toolings from this project have real improvements to more &quot;practical&quot; TypeScript?
评论 #43194118 未加载
ourmandave3 个月前
Microsoft Solitaire is apparently the most installed program.<p>Doom must be the most ported.
alex_suzuki3 个月前
Try to fit <i>that</i> in a context window! Absolutely amazing.
评论 #43186489 未加载
qwertox3 个月前
Plus three months of recording&#x2F;cutting&#x2F;editing the video. Well done.
评论 #43186699 未加载
koakuma-chan3 个月前
I wish tsc didn&#x27;t take eternity to run though.
评论 #43188328 未加载
kgeist3 个月前
The next challenge could be making TypeScript types run an LLM. I wonder how their performance would compare to that of Excel sheets.
khazhoux3 个月前
It should have been obvious this was achievable once you realize that a monad is merely a monoid in the category of endofunctors!
franky473 个月前
The subtle Devin Townsend references in the video were a super nice touch, Dimitri is literally a Power Nerd.
评论 #43188463 未加载
nokeya3 个月前
Bad Apple time!
评论 #43192182 未加载
Kuraj3 个月前
What the FUCK
dang3 个月前
Related: <i>MichiganTypeScript: A WebAssembly runtime implemented in TypeScript types</i> - <a href="https:&#x2F;&#x2F;github.com&#x2F;MichiganTypeScript&#x2F;typescript-types-only-wasm-runtime">https:&#x2F;&#x2F;github.com&#x2F;MichiganTypeScript&#x2F;typescript-types-only-...</a><p>(via <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43185174">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43185174</a>, but we merged that thread hither)
breadwinner3 个月前
I hope the TypeScript team at Microsoft sees this and goes: &quot;What have we done! We have created a monster... we need to tame and simplify this beast. Or at the very least stop adding more features.&quot;
user20933 个月前
About time some good news!
nicetryguy3 个月前
Incredibly good video editing, unbridled insantiy, cheers!
评论 #43188738 未加载
big_paps3 个月前
This is top bloat and reminds me of the fever-dreams as a child with walls and walls of senseless work… impressive but also sad somehow.
评论 #43196063 未加载
bobsmooth3 个月前
As someone that&#x27;s unfamiliar with typescript, can someone explain exactly what was accomplished here?
AdieuToLogic3 个月前
A Turing complete[0] language can do just about anything any other Turing complete[0] language can do, even if the language used is a language&#x27;s own type system.<p>Mad respect for the author. This is a non-trivial achievement indeed.<p>Bravo!<p>0 - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Turing_completeness" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Turing_completeness</a>
cod1r3 个月前
i envy dimitri&#x27;s ambition and capabilities. i want to be able to dedicate that much effort and more into something I&#x27;m passionate about. mostly personal discipline&#x2F;skill issues but MAJOR props to dimitri and this awesome project.
评论 #43187298 未加载
johnniedegen3 个月前
it&#x27;s cool you can use it as engine for your own doom-like games in ts
评论 #43280174 未加载
replete3 个月前
What are the minimum system requirements in order to run this at 30fps?
评论 #43194154 未加载
wildpeaks3 个月前
I&#x27;m crying of laughter, it&#x27;s magnificent
AndreasMoeller3 个月前
This was the best thing I saw all day
vid3 个月前
The big question is, would the author lose interest if they were working on something mission critical?
评论 #43195472 未加载
pulkitsh12343 个月前
Apparently, this guy tried to apply to BigTech to get a job but was rejected.<p>&gt; &quot;I was looking for a job during working on this and absolutely got some disappointing rejections, and one was because of my lack of skillset on things like this in a big tech company&#x27;s interview. I literally failed the technical screening. Oh well.&quot;<p>I mean... I don&#x27;t have words...how f*cked up is the interview process ??
undebuggable3 个月前
Honestly every time I worked on TypeScript codebase and the type definition &quot;any&quot; started popping out more and more often, I felt I&#x27;m starring into the abyss.
评论 #43186644 未加载
评论 #43192797 未加载
mohas3 个月前
Stop this madness!
thebeardisred3 个月前
&quot;Man demonstrates Turing completeness of TypeScript in the most extreme manner possible.&quot;
porsager3 个月前
And yet it&#x27;s still not possible to type tagged template literals...<p><a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;TypeScript&#x2F;pull&#x2F;49552#issuecomment-2276391450">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;TypeScript&#x2F;pull&#x2F;49552#issuecomm...</a><p>Insane achievement nonetheless!
juhanakristian3 个月前
This is amazing!
lerp-io3 个月前
idk why ppl do this to themselves, likes?
einpoklum3 个月前
I&#x27;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.<p>I mean, there all sorts of feats and achievements one could choose as one&#x27;s goal, which would also be impressive, but would be more useful to users and&#x2F;or software developers, than this. I&#x27;m just thinking of all of those times I wanted to suggest a software tool to someone and went &quot;ungh, if there was only some FOSS which did that&quot; - and there wasn&#x27;t, or at least, it wasn&#x27;t assebled from pieces into something usable. Then I think about spending a person-year on this and I get frustrated.<p>Sorry, but those are my 2 cents.
评论 #43194302 未加载
评论 #43192190 未加载
xnavra503 个月前
Insane.
whoisthisguy3 个月前
mad respect! you are a legend.
danbruder3 个月前
it is so beautiful
Zamicol3 个月前
The big lesson from 1936 Turing:<p>Anything can run DOOM...<p>...as long as it&#x27;s Turing complete.
steezeburger3 个月前
Is the background music the music from Batman Beyond? lol
评论 #43194174 未加载
AlienRobot3 个月前
Yeah of course it can it&#x27;s just j...<p>Jesus christ.
harha_3 个月前
These typescript fanatics never fail to make me feel disgusted by what they&#x27;ve done...
评论 #43193623 未加载
zeroq3 个月前
From YT comment section:<p>&gt;&gt; @TimMattison &gt;&gt; If this guy goes for a big tech interview they&#x27;re still going to ask him how to invert a binary tree<p>&gt; @MichiganTypeScript &gt; So actually in the &quot;why&quot; video, you&#x27;re going to hear about exactly that! I was looking for a job during working on this and absolutely got some disappointing rejections, and one was because of my lack of skillset on things like this in a big tech company&#x27;s interview. I literally failed the technical screening. Oh well.
评论 #43187216 未加载
评论 #43188673 未加载
ravenstine3 个月前
One of the top comments in the video:<p>&gt; If this guy goes for a big tech interview they&#x27;re still going to ask him how to invert a binary tree<p>The industry&#x27;s hiring process is so messed up that this is completely believable.<p>&quot;We&#x27;ve decided to prioritize other candidates, as you are strong in the fundamentals but lack the kind of experience in Vue that we&#x27;re looking for.&quot;
评论 #43187271 未加载
评论 #43188892 未加载
评论 #43187083 未加载
评论 #43186892 未加载
评论 #43188411 未加载
评论 #43188513 未加载
评论 #43187628 未加载
评论 #43187983 未加载
评论 #43187891 未加载
评论 #43186943 未加载
评论 #43187592 未加载
评论 #43187442 未加载
R3Y-P2U-jz3PVKd3 个月前
I hope he learned something useful while doing it and it seems like he did, because, although regarding all the comments here I&#x27;ll likely be alone in my assessment, I just see a massive waste of time &amp; effort? He described it as &quot;a brutal year-long journey of 18 hour days&quot; and he didn&#x27;t bootstrap a company, he wrote Doom in Typescript types...?! The &quot;epic&quot; doom music underlying his story just makes it seem even more comical to me.<p>Maybe it&#x27;s just me, don&#x27;t want to crash the party. Carry on
评论 #43186524 未加载
评论 #43188144 未加载
评论 #43186478 未加载
评论 #43189658 未加载
评论 #43186987 未加载
评论 #43195616 未加载
评论 #43186506 未加载
评论 #43191343 未加载
评论 #43186454 未加载
theThree3 个月前
Can anyone explain to me what is &quot;TypeScript types“?
vivzkestrel3 个月前
imagine how amazing it would be if every major browser tomorrow suddenly dropped support for JS entirely and said that they only run typescript now. It will be a hard but absolutely mind blowing transition
评论 #43186092 未加载
评论 #43194357 未加载
评论 #43186053 未加载
Ericson23143 个月前
Not to be a grouch, but I feel like this could be way more optimized
评论 #43186694 未加载
评论 #43186986 未加载
sim04ful3 个月前
I know the following comment is discouraged from hackernews but these are extenuating circumstances:<p>Yoooo WTAF
ulrischa3 个月前
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.
评论 #43186588 未加载
评论 #43186446 未加载
评论 #43186470 未加载
layer83 个月前
I wonder if there will come a time when the HN audience will stop being amazed that some system is Turing complete, or that any Turing-complete system can run Doom (barring resource constraints). Maybe I’ve just seen it too often. The fact that TypeScript’s type system is Turing-complete was shown back in 2017 [0], and then of course you can run Doom on it.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;TypeScript&#x2F;issues&#x2F;14833">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;TypeScript&#x2F;issues&#x2F;14833</a>
评论 #43186787 未加载
评论 #43186821 未加载
评论 #43186904 未加载
评论 #43186848 未加载
评论 #43186861 未加载
评论 #43186764 未加载