Post AcMwbVolnRWDVmFI7U by mo8it@fosstodon.org
 (DIR) More posts by mo8it@fosstodon.org
 (DIR) Post #AcMwbVolnRWDVmFI7U by mo8it@fosstodon.org
       2023-12-01T14:22:40Z
       
       0 likes, 1 repeats
       
       #AOC: I did part 2 of day 1 using nom 😋It could have been easier with regex, but I wanted to learn nom and I am sure that my implementation is BLAZINGLY FAST. Wanna start a performance war? 😂https://codeberg.org/mo8it/advent-of-code-2023/src/branch/main/day1/src/bin/part2.rsFor people familiar with nom: Can I tell it to keep searching until being able to parse something and only then fail?Currently, I call the parser repeatedly after skipping one char after the other, but I don't like this :/#RustLang #Rust #AdventOfCode #AOC2023