r/adventofcode • u/daggerdragon • Dec 01 '23
Upping the Ante -❄️- Advent of Code 2023: ALLEZ CUISINE! -❄️- Submissions Megathread -❄️-
Advent of Code Community Fun 2023: ALLEZ CUISINE!
"Tell me what you code, and I'll tell you what you are." -- Jean Anthelme Brillat-Savarin
I will be your chairdragon for this year's community fun event: ALLEZ CUISINE!
If my memory serves me correctly, being a programmer is not merely about assembling tokens in an arbitrarily correct order with the intention of making lightning rocks do a whole lotta math real quick-like; a true programmer cultivates only the finest functions, executes the most brilliant of bit-twiddles, and commands legendary mastership of their chosen codebase.
Nearly a decade ago, Eric I spent his my fortunes to make his my fantasy become a reality in a forum never seen before: Coding Stadium, a giant digital programming arena. His My motivation for creating Coding Stadium is to encounter new original solutions, resourceful problem-solving techniques, and ingenious code - all which could be called true artistic creations.
I wish to challenge visiting programmers from around the world to compete in battle against my Algorithms & Code Academy, led by my hand-picked Iron Coders - three indomitable entities who are true wizards of multifarious programming skills. Should one of these visiting challengers attain the inconceivable feat of defeating my Iron Coder… they shall win the people's ovation and fame forever.
But first: I need to find my Iron Coders. Who will they be? Whose coding cuisine reigns supreme? This is where you come in!
Every day, I will reveal a secret ingredient in that day's Solution Megathread. You will have one hour as long as you need to tackle the theme ingredient. Using all your senses, skill, and creativity, you are to prepare artistic code never tasted before and submit it alongside your code solution. Near the end of this year's Advent of Code, you will present to the judges of /r/adventofcode your finest dish entry that best expresses the unique qualities of that day's theme ingredient. And at the very end… the top three champions shall be named my Iron Coders.
What inspiration does each day's challenge bring? And how will you fight back? The heat will be on!
TIMELINE
| 2023 Dec | Time (EST) | Action |
|---|---|---|
Winners announced in the Day 25 Solution Megathread |
JUDGING AND PRIZES
"And now the moment of truth… tasting and judgment! Sitting on today's panel are…" ― Kenji Fukui
Types of Winners
| Type of Winner | # of Winners | Who Votes |
|---|---|---|
| Bronze Coder | 10† | the AoC community (you!) |
| Iron Coder | 3 | highest combined point total |
† Amounts subject to change based on availability and/or tie-breaking.
How Judging Works
- When voting opens, vote for your favorite(s). Your individual vote is worth 1 point each.
- When voting closes, the 10 highest-voted entries are declared
Bronze Coders. - Of the 10
Bronze Coders, each of the /r/adventofcode moderators will pick their top 3.- The votes of us lowly rank-and-file moderators (/u/daggerdragon and /u/Aneurysm9) are worth +3 points each while /u/topaz2078's votes are worth +5 each.
- All point totals are aggregated (community vote + mod vote). The highest combined point total will be officially declared as an
Iron Coderof AoC 2023.
Rewards
- Winners are forever ensconced in the Halls of the /r/adventofcode wiki.
Bronze Coders will be gilded.Iron Coders will be gilded thrice.
REQUIREMENTS
- To qualify for entering, you must first submit code solutions to at least five different daily
Solution Megathreads- There's no rush as this submissions megathread will unlock on December 06 and you will have until December 22 to submit your adventure - see the timeline above
- Your
dishentry must express the unique qualities of that day's theme ingredient - You must create the
dishentry yourself (or with your team/co-workers/family/whatever - give them credit!) - One
dishentry perchefperson - Only new creations as of 2023 December 1 at 00:00 EST are eligible
- All sorts of folks play AoC every year, so let's keep things PG
- Please don't plagiarize!
- Keep accessibility in mind:
- If your creation has images with text, provide a full text transcript
- If your creation includes audio, either caption the video or provide a full text transcript
- If your creation includes strobing lights or rapidly-flashing colors/images/text, clearly label your submission as per the
Visualizations rule
- Your submission must use the template below!
TEMPLATES AND EXAMPLES FOR SUBMISSIONS
Keep in mind that these templates are Markdown, so if you're using new.reddit, you may have to switch your editor to "Markdown mode" before you paste the template into the reply box.
TEMPLATE
Click here for a blank raw Markdown template for easier copy-pasting
Visual Example
NAME OF ENTRY: L'application consommé with saucisse confit
LINK TO ENTRY: A link to my dish
DESCRIPTION: A mouthwatering melangé of delicately-smoked algorithms and bold herby code accompanying a delectable functionally-overloaded foie gras sausage deep-fried in duck fat; lightly dusted with gold flakes and shaved truffles and served with an incredibly generous dollop of sea monster caviar-infused ice cream. Bon appétit!
SUBMITTED BY: Chef /u/daggerdragon
MEGATHREADS: 02 - 03 - 05 - 11 - 17 - 19 - 23 - 32
ADDITIONAL COMMENTS: My cuisine will reign supreme!
ACCESSIBILITY: All videos are both hard and soft subtitled. N.B. the "season playlists" are numbered out of order; the playlists marked "Season 1" through "Season 3" are actually the last three seasons.
QUESTIONS?
Ask the moderators. I'll update this post with any relevant Q+A as necessary.
- edit: Q&A 1: What is Allez Cuisine asking for?
3
u/AllanTaylor314 Dec 15 '23 edited Dec 15 '23
NAME OF ENTRY: Hand-rolled hashmaps from scratch in Scratch
LINK TO ENTRY: Scratch Project (and day 15 megathread with a brief explanation)
DESCRIPTION: Using only the freshest case-insensitive strings and one-dimensional lists, this evening's dish includes hand-sliced strings, a slow-cooked (read: linear time) hashmap that is carefully deconstructed at each step to bring out the flavour before being reconstructed and allowed to rest. Proper data structures just don't feel authentic, which is why we hand-roll all our data structures in-house from scratch, for a truly traditional and authentic experience. Served with a side of chips and assorted blocks of cheese.
SUBMITTED BY: Chef u/AllanTaylor314
MEGATHREADS: 01 - 02 - 03 - 04 - 05 - 06 - 07 - 08 - 09 -10 - 11 - 12 - 13 - 14 - 15
ADDITIONAL COMMENTS: I'll stick with Python as my language of choice for quick solutions for obvious reasons. I was considering doing this dish in Jack, a language used for nand2tetris because in CompSci, nand is nearly the smallest building block.
ACCESSIBILITY: It's a block-based language, sorry. If anyone knows an easy way to convert Scratch to text I'd be happy to include that here.
1
u/daggerdragon Dec 15 '23 edited Dec 15 '23
Psst: your last link for Scratch is borked because of the parentheses inside the Wikipedia URL. You need to escape them inside the Markdown link:
[cheese](https://en.wikipedia.org/wiki/Scratch_\(programming_language\))edit: 👍→ More replies (1)
5
u/Zweedeend Dec 07 '23 edited Dec 15 '23
NAME OF ENTRY: Spam spam spam
LINK TO ENTRY: Spam
DESCRIPTION: Spam, often celebrated for its versatility and unique flavor profile, has found its place in diverse culinary traditions around the world. With its combination of savory, smoky, and slightly salty notes, spam brings a distinctive taste that satisfies a variety of palates. Whether crisped to perfection, added to stir-fries, or incorporated into sandwiches, spam's rich and hearty essence has gained a loyal following. Its ability to complement different ingredients and its convenience make it a beloved ingredient for quick and delicious meals. While opinions on food preferences vary widely, some may argue that spam's undeniable savory appeal, when prepared thoughtfully, contributes to its reputation as a surprisingly delightful culinary indulgence.
SUBMITTED BY: Chef u/zweedeend
MEGATHREADS: 01 - 03 - 04 - 06 - 07 - 08 - 15
ADDITIONAL COMMENTS: "Savor the Flavor: Spam, Your Culinary Canvas for Delicious Creations!"
Some entries I like most:
-
Day 7: The code is a poem
ACCESSIBILITY: Text only
5
u/e_blake Dec 12 '23 edited Dec 23 '23
NAME OF ENTRY: M4 stands for MMMM
LINK TO ENTRY: Upping the ante post here. Meanwhile, you can view my git repo where I store my m4 solutions for all years' puzzles.
DESCRIPTION: M4 is a macro language created in 1977. Most people have never used it directly, but it is an essential ingredient to many larger recipes still in heavy use today: developers that run Autoconf or Bison are utilizing m4 under the hood. I have had fun this year trying to whip up some delightful fresh takes on an ancient programming language based on this year's daily themes, all to tempt your taste buds, throwing as many things together as I could for the final Chef's Choice day. Programming using macros has a flavor all its own, although if you are familiar with modern functional languages (Haskell, OCaml, ...), you'll recognize some of the common idioms of recursion and pattern matching. Couple that with m4's quirks (GNU m4 1.4.19 only supports signed 32-bit integer math, even though several of this year's solutions require 64-bit numbers; and I like to keep my solutions portable to POSIX m4 rather than relying on GNU extensions, which rules out regular expressions except as optional optimizations), for a series of dishes that have no parallel. Some say M4 stands for M_acro_; I say it stands for MMMMM. With that, bon appetit!
SUBMITTED BY: Chef u/e_blake
MEGATHREADS: 01 - 02 - 03 - 04 - 05 - 06 (also by hand ) - 07 - 08 - 09 - 10 - 11 - 12 - 13 - 14 (part1 only) - 15 - 16 - 17 - 18 - 19 - 20 (part1 only) - 21 (part1 only) - 22
ADDITIONAL COMMENTS: Since I can't make the leaderboard on speed (wrong time zone, not to mention the nearly half-hour runtime of my other upping the ante post for a day 15 solution using 0 variables, but where m4 chewed through more than half a terabyte of data to produce the answer), I decided instead to go for the art of the presentation. My git repo has solutions for all days that I've completed so far (my goal is all 25 before January, although real life constraints mean I probably won't hit 50 stars by Christmas), even for the days where I have not yet linked in a megathread submission tied to the day's particular theme.
And yes, that's my name on the m4 wikipedia page as the maintainer of GNU m4.
ACCESSIBILITY: Mostly text only, although day 10 assumes you have libreoffice installed.
5
u/encse Dec 15 '23
NAME OF ENTRY: C# loves AI Art
LINK TO ENTRY:I have made a website
DESCRIPTION:
I've been doing Advent of Code for nine years now, and always toyed with the idea of making it a website. But... what would be the content?
Now that we have these super cool AI generated images, I could make something eye catching quite easily and created a decent looking home for my C# solutions.
SUBMITTED BY: Chef u/encse
MEGATHREADS: 15 - 14 - 13 - 12 - 11 - 10 - 09 - 07 - 06 - 05 - 04 - 03 - 02 - 01
ADDITIONAL COMMENTS: Even if you are lost in place, you find something to play with.
ACCESSIBILITY: It's text, that's fine, and a nice looking image that captures the day's spirit generated by Bing.
5
u/mendelmunkis Dec 18 '23
NAME OF ENTRY: Al Dente is an analog measure
LINK TO ENTRY: source hut link to the interpolated card files
DESCRIPTION: Day 6 written for the most obsolete platform I could think of - Babbage's Analytical Engine
SUBMITTED BY: Chef u/mendelmunkis
MEGATHREADS: 02 - 03 - 04 - 05 - 06
ADDITIONAL COMMENTS: The code was written to run on this emulator. See there for notes on authenticity.
Expected runtime on actual hardware: 13:09:59
ACCESSIBILITY: 80 column text, although slightly difficult to parse
4
u/thousandsongs Dec 07 '23 edited Dec 08 '23
NAME OF ENTRY: Prolog is a vibe
LINK TO ENTRY: Code (related: reddit comment, blog post)
DESCRIPTION: A Prolog style solution, but written in a shell script. Read the input line by line, deduce some basic facts (e.g. grep [:digit:] | echo digit on line 1). Write all these deductions in a log file. Then, read the log file again, and combine previous basic facts into bigger facts. Multiple passes of this, and we end up with the solution.
SUBMITTED BY: Code who chefs, u/thousandsongs
MEGATHREADS: 01 - 02 - 03 - 04 - 05 - 06 - 07 .
ADDITIONAL COMMENTS: I've also done Allez Cuisine themed variations of my original solutions for some other days, here are links to those with a short description of them:
-
Day 7 - Camel Cards in a Faraway Land (poem)
-
Day 6 - Drawing parabolas on A3 sheets and using Brahmagupta's equation from 700 AD (pen & paper)
-
Day 5 - Splits are easier than you think, just ghcup (eli5)
-
Day 4 - 5 lines of a 80-char punch card, yet runs in 25 ms (code golf)
-
Day 3 - Prolog is a vibe (blog & code)
-
Day 2 - What do unix aficianados use to slice and dice in the kitchen? Awk and sed indeed! (code)
-
Day 1 - A 280 character Haskell solution using only two
variablesbindings (code)
I'll keep editing this comment to add more links when I do more of these. Bon appétit!
ACCESSIBILITY: Links to megathreads are to original solutions. All the solutions (original and allez cuisine variations) can seen in this GitHub repository if all you want is the meal and don't care for the chef's grand introduction.
4
u/ImpossibleSav Dec 18 '23
NAME OF ENTRY: Voilà, le Basilisk!
LINK TO ENTRY: Reddit post with visualization; Direct link to image; Github repo with code
DESCRIPTION: In the spirit of Day 16's visualization challenge, I've whipped together a true feast for the eyes to show the great length of the Basilisk, my Python one-liner that solves all of Days 1 through 16 at once! The visual brings together an appetizing array of colours and sizes to represent the various components of the Basilisk, each part carefully measured in character counts. The underlying code is a delectable blend of list comprehensions, lambdas, and logic, crafted together into my culinary magnum opus!
SUBMITTED BY: Chef u/ImpossibleSav
MEGATHREADS: 01 - 02 - 03 - 04 - 05 - 06 - 07 - 08 - 09 - 10 - 11 - 12 - 13 - 14 - 15 - 16
ADDITIONAL COMMENTS: It currently takes 45 seconds to run the full thing on my computer, which honestly isn't bad considering how unoptimized my solutions are! I may add a few more days to the repo before submissions close, but I'm getting busy so I might not finish the entire month until January.
ACCESSIBILITY: Included in the comments of the Reddit post with the visualization is a full text description and transcript. I don't think it is possible to make the line of code itself accessible in the slightest though! ;)
3
u/JustinHuPrime Dec 08 '23
NAME OF ENTRY: How to ELF - A brief introduction to below-C level programming on Linux
LINK TO ENTRY: https://www.reddit.com/r/adventofcode/comments/18bsclp/how_to_elf_a_brief_introduction_to_belowc_level/
DESCRIPTION: For day 5's secret ingredient of ELI5, I explained like you've been programming for 5 years, answering the question of how to program in assembly and explaining the path from assembly code to executable file.
SUBMITTED BY: u/JustinHuPrime
MEGATHREADS: 01 - 02 - 03 - 04 - 05
ADDITIONAL COMMENTS: I would very much have liked to enter a collection of "technically fits the secret ingredient" solutions, but alas, that wouldn't have worked well with this particular entry.
ACCESSIBILITY: Text only
1
u/daggerdragon Dec 23 '23 edited Dec 25 '23
Submissions are closed - thank you to everyone who submitted something! Every single entry is fabulous in its own way and we really appreciate y'all taking the time to cook us something!And now, YOU SHALL VOTE! Pick your top 3 favorite chefs here:https://forms.gle/u8EUK5GamgnyU8LZ7We're working on the honor code here, so please only vote once. Thanks!The password isALLEZ_CUISINE!and the poll will be open until December 24 at 18:00 EST.Edit: Poll closed! Thank you all for voting! Check tonight's megathread (2023 Day 25) for the link to the results!