Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 10645

Teaching and learning resources • Re: Advent of Code 2023

$
0
0
opi5+

Racket 8.11.1, Day 11:

Part 1: 10494813
Part 2: 840988812853
cpu time: 313 real time: 313 gc time: 22
Are the times given in milliseconds? Have you posted your Racket source code anywhere?
I was without Internet for a few days (from 31st AM till 3rd PM) therefore late reply.
That explains it. Internet has been reliable here but my phone misses a local SIM card. We don't stay long because the baby kangaroo is in first grade and school resumes on January 8.

When Windows came out I tried making a GUI following Charles Petzold's book. It think it was the third edition.

https://archive.org/details/programming ... 31-3rd-ed/

That was such an experience that I've never tried my hand at creating a GUI again. Language based interfaces are easier to automate anyway.

I'm posting my code as an opportunity to share a few remarks about how it was written and works. This year I'm also testing my ARMv6 build of the Julia programming language for the Pi Zero.

For me any program that works is interesting. For example, code used in production is usually written to work rather than admired for its beauty. Thus, examining and testing how various hardware and software systems handle non-optimal code is likely more relevant than focusing only on professionally polished Advent of Code puzzle solutions.

For example, the dog developer's Pipe Maze solution also uses Dijkstra's algorithm even though it didn't turn out to be a maze after all. If not for the use of the residue formula later that would have resulted in more growling than one could imagine.

Statistics: Posted by ejolson — Thu Jan 04, 2024 12:10 am



Viewing all articles
Browse latest Browse all 10645

Trending Articles