4 ms·
insane... absolutely insane and what a wonderful article. love it when the author shows step by step how they get to their goal. You have really know all aspect
by thrownaway954 7y ago
insane... absolutely insane and what a wonderful article. love it when the author shows step by step how they get to their goal. You have really know all aspects of the programming language and ecosystem in order to do what this dude did. i'm impressed.
- gregmac 7y agoEven with a lot of knowledge, I suspect a lot of this still took a lot of trial-and-error. For example: > Turns out that besides the obvious minimum that a managed developer would expect, there’s also a minimum that the CoreRT compiler needs to compile the input. > Let’s skip to the chase and add what’s needed: There's under a hundred lines here, but figuring it out by (re)running the compiler to get one error at a time would probably take a few hours. If the author happens to read this: How long did it take to figure this all out? And great job! I'll definitely be referring back to this for some upcoming work I'm doing where minimizing the footprint would be useful (not to this extreme of course but there's some gems in here for sure).
- MStrehovsky 7y agoI spent more time doing the Snake logic than adding the soup of weird things around it to make it small. I had the weird things lying around from when I did an EFI boot application in C# last year: https://github.com/MichalStrehovsky/zerosharp/tree/master/efi-no-runtime https://github.com/MichalStrehovsky/zerosharp/tree/master/ef... I won't lie - being one of the architects of the CoreRT ahead of time compiler helped too :)