Part 2 was very hard for me, only solved it on day 19. My basic idea sounds similar to what you described, working backwards from the last output to the first output, step by step building up the value register a must have had initially. It helps to understand exactly what the program does on every turn, because it's not quite as simple as the example program, which just chops 3-bit numbers off the end. I'll leave it vague to not spoil too much.
glad you're enjoying them! Today was probably a fine day for regex: clear indication for each number (one per line, no overlaps), etc. Also probably fine to split_whitespace and grab the last item for each line too -- play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a25f82e7ab93528c4e5d9768d1a11f93
I have 64gb and I ran out because I use a lot of heavy creation tools (photoshop, davinci resolve, blender, substance painter, etc) and it had been 72 days since a reboot so the system performance was degrading over time.
@@chrisbiscardi whoa, interesting stuff! I currently have 16GB, but am considering upgrading to a lot more RAM (along with everything else). The new M4 mac mini is petite, but higher configurations tax way too much for additional storage and RAM.
Part 2 was very hard for me, only solved it on day 19. My basic idea sounds similar to what you described, working backwards from the last output to the first output, step by step building up the value register a must have had initially.
It helps to understand exactly what the program does on every turn, because it's not quite as simple as the example program, which just chops 3-bit numbers off the end. I'll leave it vague to not spoil too much.
Thanks
Really enjoying the vibe and content of your videos. With nom, you even made me want to kind of re-learn regex...
glad you're enjoying them! Today was probably a fine day for regex: clear indication for each number (one per line, no overlaps), etc. Also probably fine to split_whitespace and grab the last item for each line too -- play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a25f82e7ab93528c4e5d9768d1a11f93
This problem is day 17, btw.
how much memory do you have?
and why do you run out of it?
I have 64gb and I ran out because I use a lot of heavy creation tools (photoshop, davinci resolve, blender, substance painter, etc) and it had been 72 days since a reboot so the system performance was degrading over time.
@@chrisbiscardi whoa, interesting stuff! I currently have 16GB, but am considering upgrading to a lot more RAM (along with everything else). The new M4 mac mini is petite, but higher configurations tax way too much for additional storage and RAM.