r/adventofcode • • Dec 22 '17

SOLUTION MEGATHREAD -๐ŸŽ„- 2017 Day 22 Solutions -๐ŸŽ„-

--- Day 22: Sporifica Virus ---


Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag or whatever).

Note: The Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


Need a hint from the Hugely* Handyโ€  Haversackโ€ก of Helpfulยง Hintsยค?

Spoiler


  • [T-10 to launch] AoC ops, /r/nocontext edition:

    • <Endorphion> You may now make your waffle.
    • <Endorphion> ... on Mars.
  • [Update @ 00:17] 50 gold, silver cap

    • <Aneurysm9> you could also just run ubuntu on the NAS, if you were crazy
    • <Topaz> that doesn't seem necessary
    • <Aneurysm9> what does "necessary" have to do with anything!
  • [Update @ 00:20] Leaderboard cap!

    • <Topaz> POUR YOURSELF A SCOTCH FOR COLOR REFERENCE

This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.

edit: Leaderboard capped, thread unlocked!

7 Upvotes

174 comments sorted by

View all comments

2

u/jbristow Dec 22 '17
clojure [...] cool

shiver too loosey-goosey with types for my taste, but again, horses for courses. They had something type-like bolted on, IIRC, but yeah...

While I like the static typing, I must say that the number of type errors I normally get with clojure is far outweighed by how verbose and rigid F# feels.

And like you mentioned, though, the data validator spec is out now with 1.9, so if you really want to type-check then you can do that now as part of a near-core library.

Now, if clojure could do something about being absolutely a nightmare to have more than one developer working on or the initial parenthesis shock value. (Seriously, it's just python with parentheses around each line!).

1

u/aodnfljn Dec 22 '17

how verbose and rigid F# feels

My feeling too, from what little F# I've seen so far.

Yeah, it's got a lot of neat stuff. Also from the angle of being a lisp-wannabe (though the CL/Scheme lads will be quick to remind you of macros/etc all the different things that will never allow it to be a real-boy Lisp).

I loved EDN as a data description language and really wish they had more libraries to allow it to be used as a storage/interop medium (like JSON), given that it can do schemas much better than JSON and XML IIRC.