3 ms·
Yeah, there's a reason why people who make the AOC leaderboard overwhelmingly use Python. It's very efficient for small-ish tasks like AOC. I'm really liking N
by auxym 4y ago
Yeah, there's a reason why people who make the AOC leaderboard overwhelmingly use Python. It's very efficient for small-ish tasks like AOC.
I'm really liking Nim as a hobby these days. It has a very powerful macro system, which might interest OP. Nim macros basically normal nim code, executed at compile time by an interpreter built-in the compiler, which can directly manipulate or generate Nim AST.
Macros aren't exactly easy to read or write (again, it consists of manipulating AST nodes directly), but they can generate any amount of boilerplate code you need.
- cb321 4y agoPersonally, FWIW, I find shifting gears from Nim to Python to bring back a lot of Py-verbosity..but I used to think Python was pretty terse. { Also, Python is often gratuitously (some might say grotesquely) run-time resource inefficient. }