Fork me on GitHub
#adventofcode
<
2016-12-07
>
abarylko00:12:08

I did that too

fellshard05:12:36

Had a suspicion this was a trap. Should've recognized good ol' DFA theory in there 😛

abarylko06:12:21

Day 7 done!

fellshard07:12:03

Ahh, negative lookahead

samueldev15:12:51

good work @bhauman, glad you aren't skipping this year 😛

samueldev15:12:58

I'm trying my best to get todays problem without regex.

samueldev15:12:04

not a fan of todays problem in general

bhauman15:12:22

haven't looked at it yet - no spoilers 🙂

bhauman15:12:34

trying not ot look at this channel first

dexter16:12:34

Did it without regex but it feels a bit un-optimised. I can't help but feel like I could roll up some of the loop recurs into a reductions

samueldev16:12:48

im in the same boat @dexter, overuse of loop recur and wanting to tidy it up

fellshard17:12:30

Partition and filter do the trick in this case, but would be slower with more / longer strings, for sure.

bhauman17:12:11

just finished up mine if folks want to take a gander

samueldev18:12:03

@bhauman similar, but better, than mine 😛

samueldev18:12:20

same idea though (every? (complement contains-abba?) neg)

samueldev18:12:25

so long as I'm learning things I am happy with my solutions

samueldev18:12:31

today I learned about short-circuiting reduces via reduced

samueldev18:12:37

---* the more you know!

bhauman18:12:48

@samueldev oh for sure, the learning is the best part

bhauman18:12:26

I always try to go through the clojure cheatsheet afterward to see if I missed anything

samueldev18:12:45

ah thats a good idea, im gonna start doing that

fellshard18:12:47

If you've got a repository, post it here and I'll pin it so we can cross-pollinate ideas and problem-solving techniques 🙂

bhauman22:12:10

@mnespor really liked the simplicity of your parsing on day7

mnespor22:12:58

Thanks! It's the first time I've used positive lookahead and I'm still not sure why the first character goes into capture group 2 instead of capture group 1

bhauman22:12:40

@mnespor oh actually thats not what I'm talking about simple_smile

mnespor22:12:43

If there were a way to tell re-seq to look for overlapping matches explicitly (like python's findall) I might have done that instead

mnespor22:12:54

ha, never mind then 😄

bhauman22:12:17

I liked the initial grouping of

bhauman22:12:26

the hyper and the super

bhauman22:12:33

so simple 🙂

fellshard22:12:28

invert-aba sounds like we should flip the frequency map of 'Dancing Queen'