bjorng
Erlang Core Team
Note: This topic is to talk about Day 23 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
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 4- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
bjorng
I went back to using my process-based Intcode machine from day 13 (with modifications). That choice made some things easier and other harder. In my first stab, to get the correct solution I needed to add a timeout of 100 ms in the NAT to ensure that all NICs were truly idle. I managed to eliminate that timeout in my polished solution.
sasajuric
I was seriously considering rage-quitting after yesterday’s challenge, but then I figured since I got this far I might as well see it through. Here’s my take. Nothing particularly fancy about it. My intcode is purely functional, and I’m invoking computers in a round robin fashion, resolving the idle state if needed. During the last edition I wrote a few enum helpers, so I ended up using one of them called non_uniques, which returns a lazy collection of elements which appear in the input enumerable more than once.
lud
I’m trying to use a process-based network, but the incode computers send messages to unexisting addresses, like
47714, which seems to be aXorYvalue. And I don’t know why … This is frustratinglud
I had a stupid pattern matching error …
Also I found that the code for part 2 with processes goes way faster if you provide an initial
-1in the input and just wait inreceiveinstead of doing something likeafter 0 -> -1