18 ms·
Very cool. I also made a language specifically for AoC, with some similarities: https://github.com/lukechampine/slouch https://github.com/lukechampine/slouch E
by nemo1618 4y ago
Very cool. I also made a language specifically for AoC, with some similarities: https://github.com/lukechampine/slouch https://github.com/lukechampine/slouch
Example of solving a (non-AoC) problem: https://youtu.be/i_zDbInYOpQ https://youtu.be/i_zDbInYOpQ
One of my big takeaways is that the "IDE" plays a big role in how fast you can solve. Recomputing the expression on every keystroke seems a little insane, but the instant feedback you get is priceless.
- ahaferburg 4y agoInsane in the best possible meaning of the word. Man, that is so cool. In my opinion AOC is a very good example for "if all you have is a hammer". For AOC you don't need to write a program that finds a solution for any possible input, you need a calculator to compute the solution for your input. This is such a calculator, and a very nice one. Suggestion: Flip the assignment operator. You keep writing an expression left to right, but then you have to scroll all the way back to the left to make a variable. This could be streamlined by making it e. g. "EXPR -> VAR_NAME" instead of "*VAR_NAME EXPR". Why don't you make a Show HN submission? I'd upvote you. :)