Reserved identifiers in C
You aren't supposed to create identifiers that match these patterns, if you're trying to write portable, future-proof C code. But you probably are. We all are.
Because these rules aren't nice, and you won't be warned that you've broken one.
Is it worth it?
Adapted from http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2625.pdf
Cosmopolitan C Library: "build-once run-anywhere c without devops"
https://justine.lol/cosmopolitan/index.html
Purports to create small ~40kb executables that run on Linux, Mac, Windows, FreeBSD, and OpenBSD. In the same binary.
AoC 2020 day 13, part 2, can't solve
I don't know how to solve this problem. Is there some bit of math knowledge about prime numbers I'm missing? I don't know much about number theory.
I've never had to look at a hint for an AoC day before, and I don't want to start now, so I might drop out.
I don't recognize any of the people on the Merveilles leaderboard who are still participating.
Question: what's the best classic Macintosh programmer's text editor that has multiple undo, and won't hog the memory on an 8mb RAM System 7 or 6 computer?
BBEdit 3 and later are too slow and use too much memory. QUED/M I could only find a demo version of 2.7.2 for, and 3.0 doesn't work in Mini vMac (copy protection shenanigans?)
What was the first (known) maths mistake?
Beer, multiple numbering systems, accounting, civilization
AoC day 9 wasn't exciting, but at least it wasn't tedious :) I did this one as soon as it was posted, using my C++ starter file, but it mostly got in the way, because the problem was simple. Should have just used C for this one 😅
(Days 7 and 8 were the only other two I did right as they were posted, and they were harder problems. I had used C++ on those two days, but not the others.)
AoC 2020 Day 7 solution: https://gist.github.com/randrew/f976e711e852ad3378fb63becc1dc61f
(00:35:37)
┌┐┌┐·┌┐┌┐
└┘└┘·└┘└┘ ᴬᴹ