Follow

Advent of Code, spoilers 

I've decided to do at least the beginning of this year's . I'm participating on @utf8equalsX's leaderboard (join code: 544607-aee65c63) if anyone wants to play along.

I also plan to post my solutions here (under a CW), at least until I get bored or they get too long to fit in a toot.

Here's day01: (in dyalog APL)

in←⍎¨⊃⎕NGET 'input.txt' 1
f←{¯2+⌊⍵÷3}
pt1←+/f¨in
pt2←+/{(f⍵)<0:0 ⋄ (∇f⍵)+f⍵}¨in

Advent of Code, spoilers 

@codesections @utf8equalsX
I nearly forgot that the Advent of Code was about to start... I want to attempt a few puzzles with this year.

re: Advent of Code, spoilers 

@AvnSgt @utf8equalsX

> I nearly forgot that the Advent of Code was about to start... I want to attempt a few puzzles with this year.

Yeah, there's a decent chance that I'll switch to Rust once they get harder. I enjoy playing with , but I know Rust quite a bit better.

But it's just so fun to have a one-line solution and – for all its virtues – Rust doesn't really lend itself to that sort of concision

re: Advent of Code, spoilers 

@codesections
Nope. Rust requires some forethought. I like it for that reason, because it forces me to write better code upfront. I still go back though revisioning, but not nearly as much.
@utf8equalsX

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.