bjorng
Erlang Core Team
Advent of Code 2021 - Day 1
This topic is about Day 1 of the Advent of Code 2021.
We have a private leaderboard (shared with users of Erlang Forums):
https://adventofcode.com/2021/leaderboard/private/view/370884
The entry code is:
370884-a6a71927
Trending in Challenges
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #performance
- #security










First Post!
bjorng
Here is my solution in Elixir:
https://github.com/bjorng/advent-of-code-2021/blob/2e585397128f38c3f249623b6392a73fd46e1b87/day01/lib/day01.ex
And over at the Erlang Forums is my solution in Erlang:
Most Liked
code-shoily
Here’s mine:
advent_of_code/day_01.ex at master · code-shoily/advent_of_code (github.com)
Observations:
chunk_byandchunk_while-s document. Everytime something needs chunking, I reach out forchunk_byand end up usingchunkorchunk_everychunk_every’s:discardAetherus
My solution using
chunk_every/4Part 1
Part 2
josevalim
My solutions for day 1 can be found here: https://github.com/josevalim/aoc/blob/main/2021/day-01.livemd
I used Livebook and I solved using different styles: enum, nx, and recursion. You can find the streaming here: Twitch
Last Post!
rugyoga
part 1:
https://github.com/rugyoga/aoc2021/blob/main/day1.exs
part 2:
https://github.com/rugyoga/aoc2021/blob/main/day1b.exs