bjorng
Erlang Core Team
Note: This topic is to talk about Day 5 of the Advent of Code 2019.
There is a private leaderboard for elixirforum members. You can join it by following this link and entering the following code:
39276-eeb74f9a
Trending in Challenges
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
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
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
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
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
bjorng
Here is my solution.
Aetherus
I cheated again
Very ugly code:
https://github.com/Aetherus/advent_of_code/blob/master/2019/day05.rb
sb8244
This one tripped me up quite a bit! I originally separated the “registers” from the program itself, on day 2, but code is data and I had to make them the same map.
https://github.com/sb8244/advent-of-code-2019/blob/master/lib/5.ex
aaronnamba
Here is my day 5, it’s not pretty.
I got stuck debugging “assembly” for quite some time because the last test case was returning nil instead of 999 for < 8.
Eventually, I gave up debugging and submitted anyway and it worked.
sasajuric
Here’s my solution.
Aetherus
No cheat this time:
https://github.com/Aetherus/advent_of_code/blob/master/2019/day05.exs
I wonder is there a way to call private functions dynamically.
xfix
Making heavy use of higher-order functions. I even have functions to modify higher order functions. Worked the first time, somehow.
xfix
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
Aetherus
But what if I wanna call private functions with different arities? I guess I need to unify them.
Aetherus
Very intriguing. I’m gonna try that too.