Michael Doornbos
About
CV
Projects
PGP Key
X
Still having fun doing these #AdventOfCode puzzles in the morning. I changed the delimiter from "|" to a zero since old computers don't always have that character. Part one was a lot of data, but the PET got through it pretty quickly. #commodore
▸
Dec 8, 2021
▸
Michael Doornbos
▸
1 words
https://videopress.com/v/jZ1Gargo?resizeToParent=true&cover=true&preloadContent=metadata
← Something interesting I like to do on these long calculations is to compare machines to the fastest Commodore computer, the PAL VIC-20. In this case, the VIC-20 finished 48 minutes sooner than the NTSC C64. Very scientific of course 😉 #commodore
For #AdventOfCode Day 8 Part 2, figured it out in Python first to wrap my brain around how to do it iteratively. After an "ah ha" moment in sorting the unique segments it clicked. Python: 0.04 seconds and PET: 25 minutes.I could refactor it to be faster but not bad. #commodore →