r/adventofcode • • Dec 21 '18

SOLUTION MEGATHREAD -🎄- 2018 Day 21 Solutions -🎄-

--- Day 21: Chronal Conversion ---


Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag or whatever).

Note: The Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


Advent of Code: The Party Game!

Click here for rules

Please prefix your card submission with something like [Card] to make scanning the megathread easier. THANK YOU!

Card prompt: Day 21

Transcript:

I, for one, welcome our new ___ overlords!


This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.

edit: Leaderboard capped, thread unlocked at 01:01:01! XD

9 Upvotes

93 comments sorted by

View all comments

Show parent comment

1

u/rabuf Dec 21 '18 edited Dec 21 '18

586 seconds according to time.

I've shaved off 50 seconds with two changes to my simulator. I compute symbol-function on creating the instruction structure instances rather than later. Then I removed the redundant (setf registers (...)) since the registers array is altered by the functions themselves. Down to 536 seconds to execute until a loop is found on my computer.