AoC-2022
MiniScript code for the Advent of Code 2022 challenges (by JoeStrout)
minimicro-sysdisk
Contents of the /sys disk for the Mini Micro virtual computer (by JoeStrout)
Our great sponsors
- Revelo Payroll - Free Global Payroll designed for tech teams
- SonarLint - Clean code begins in your IDE with SonarLint
- Onboard AI - Learn any GitHub repo in 59 seconds
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
AoC-2022 | minimicro-sysdisk | |
---|---|---|
8 | 6 | |
0 | 17 | |
- | - | |
10.0 | 8.3 | |
9 months ago | 3 months ago | |
MAXScript | MAXScript | |
The Unlicense | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
AoC-2022
Posts with mentions or reviews of AoC-2022.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-25.
-
Advent of Code (in MiniScript), Day 25
The challenge did inspire some ideas for new libraries and library functions. Over the course of the month, I created an aoc module with a variety of general utility functions that may make their way into the standard Mini Micro library; as well as a search module, which will probably end up as its own repo.
-
Advent of Code (in MiniScript), Day 16
I'm using the list.combinations method (in my AoC module) to find all the different ways we can form setA (my valves) by taking n of the goodValves. Then, we find setB (the elephant's set) by simply removing each of mine from a copy of the full set.
-
Advent of Code (in MiniScript), Day 9
Oh, but I promised some pretty graphics, didn't I? Since I'm doing all this in Mini Micro, those are easy to add (you can see the code here). The GIF at the top of this post shows the movement of the rope for the Part B example. And here's the start of its motion for my real input file... though the full input makes it wander much longer, and much further from the origin. Enjoy!
-
Advent of Code (in MiniScript), Day 8
Once again, my starter program did me no good; nor did I need any of the stuff I've been gathering in my custom aoc module, or even the standard /sys/lib modules. The solution was plain, unadorned MiniScript. ❤️
-
Advent of Code (in MiniScript), Day 5
Given the libraries I had, I don't see how. However, I may add some new tricks to my aoc module. Maybe I should have a "select" method that grabs a subset of a sequence (string or list) given a list of indexes. I could use this on each line to convert the raw input, like [Z] [M] [P], into just the letters, like ZMP (by doing line = line.select(range(1, line.len, 4))). Then I'd have a list of strings like:
-
Advent of Code (in MiniScript), Day 4
If you want to join me, please do! I'm posting all the code on GitHub, including my little lib/aoc module. I encourage you to join us on Discord too, where we can strategize and commiserate. See you there!
minimicro-sysdisk
Posts with mentions or reviews of minimicro-sysdisk.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-26.
-
Announcing MiniBASIC
This might be of interest if you already know BASIC, and want to quickly bang out a game or utility. MiniBASIC provides a good set of high-resolution drawing commands, suitable for making plots, graphs, and diagrams. It also has access to all the data on the built-in /sys disk, including stock images, sounds, and a complete English word list! And, being completely cross-platform, Mini Micro (and so MiniBASIC) runs identically on any desktop computer (and soon mobile devices, too). So if BASIC is already in your wheelhouse, MiniBASIC offers a great way to take advantage of these Mini Micro features.
-
Advent of Code (in MiniScript), Day 13
So as usual, I come away with a realization for something that really ought to exist in MiniScript: an efficient sort algorithm that takes a comparison function as an argument. I'll code this up soon, and who knows, it might even find its way into a future version of /sys/lib/listUtil.
-
Advent of Code (in MiniScript), Day 12
One lesson learned is that I should always validate my function inputs. Had my findPath function simply checked that it was being passed two 2-element lists, I would have caught my error right away and fared much better. Grabbing code from somewhere else is no excuse; the first thing I should have done is examined the parameters, and added a quick qa.assert to me sure I call it correctly.
-
Advent of Code (in MiniScript), Day 8
Once again, my starter program did me no good; nor did I need any of the stuff I've been gathering in my custom aoc module, or even the standard /sys/lib modules. The solution was plain, unadorned MiniScript. ❤️
-
Advent of Code (in MiniScript), Day 5
My code for this one came out considerably longer than in previous days, despite havng a separate (prepared ahead of time) aoc module and all the other modules in Mini Micro's /sys/lib folder to lean on. So I'll present it in sections.
What are some alternatives?
When comparing AoC-2022 and minimicro-sysdisk you can also consider the following projects:
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021 and 2022 in Scala
advent-of-code-jq - Solving Advent of Code with jq
Farmtronics - Stardew Valley mod that adds a Home Computer and Bots to the game
Starfarer
minibasic - BASIC interpreter for Mini Micro
minimicro-editor-themes - Custom colors (themes) for the built-in code editor in Mini Micro