adventofcode

Happy Advent 2020! Please put answers in the pinned threads or create one if it does not exist yet. | https://github.com/adventofcode-clojurians/adventofcode-clojurians | Join the private leaderboard with code 217019-4a55b8eb
bhauman 2016-12-08T06:27:00.000134Z

crickets

fellshard 2016-12-08T06:32:34.000135Z

Finished, then refactored, ended up much later than I'd hoped. πŸ˜›

fellshard 2016-12-08T06:32:40.000136Z

But pretty straightforward all things said

fellshard 2016-12-08T06:33:57.000137Z

Nice rect!

mnespor 2016-12-08T06:37:46.000138Z

That's an elegant parserβ€”have you built a DSL before?

fellshard 2016-12-08T06:37:48.000139Z

Seeing your parse reminds me I have an unhealthy obsession with regexes 😞

fellshard 2016-12-08T06:39:35.000140Z

For whatever reason I match on the entire instruction instead of just targeting the obvious bits

fellshard 2016-12-08T06:40:05.000141Z

mnespor, yours is perfect amount of detail, hahah. Just the matching bit in the instruction, then conveniently pulling the two ints out - no more and no less

fellshard 2016-12-08T06:40:55.000142Z

You're also whipping around those core matrix functions, I need to look into that lib

mnespor 2016-12-08T06:41:23.000143Z

yeah, I spent an hour reading the core/matrix docs, then 15 minutes solving the problem πŸ˜•

fellshard 2016-12-08T06:41:33.000144Z

Heheh :<

fellshard 2016-12-08T06:41:42.000145Z

Still, once you know those, this ends up being super compact

mnespor 2016-12-08T06:42:02.000146Z

It came in handy a lot last year, but I've forgotten everything since then

samueldev 2016-12-08T14:49:18.000147Z

todays problem looks fun

samueldev 2016-12-08T14:49:20.000148Z

im excited to give it a go

πŸ˜„ 2
spfeiffer 2016-12-08T17:46:13.000149Z

I see i have to hurry up and catch up on the 2015 problems to get to the 2016 ones. Perhaps i should cancel sleeping ☺️

πŸ‘Œ 2
bhauman 2016-12-08T19:09:16.000150Z

I think getting to know core.matrix could probably be helpful in the coming problems. But it doesn't seem to provide much help for last nights problem. numpy and pandas both have a huge advantage for problems like this.

mnespor 2016-12-08T19:15:39.000152Z

or J :troll:

fellshard 2016-12-08T19:19:21.000153Z

Should've used APL...

bhauman 2016-12-08T19:19:35.000154Z

lol

andrew.sinclair 2016-12-08T19:46:21.000155Z

I would love to see someone's answers in J

bhauman 2016-12-08T20:14:55.000156Z

there are answers in J on the reddit thread

andrew.sinclair 2016-12-08T20:25:05.000159Z

yay Thank you πŸ˜‰

samueldev 2016-12-08T22:34:44.000160Z

did anyone use https://github.com/mikera/core.matrix today?

samueldev 2016-12-08T22:35:29.000162Z

oh snap @bhauman mentioned it a few hours ago

mnespor 2016-12-08T22:41:12.000163Z

I did!

samueldev 2016-12-08T22:41:37.000164Z

@mnespor were you better off for having done so? πŸ™‚

mnespor 2016-12-08T22:42:00.000165Z

Not really

samueldev 2016-12-08T22:42:03.000166Z

bahahaha

mnespor 2016-12-08T22:43:16.000167Z

pm was handy for checking my work, however