bjorng

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

Showing Posts 1 to 4

bjorng

bjorng OP

Erlang Core Team

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

sasajuric

Author of Elixir In Action

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

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 a X or Y value. And I don’t know why … This is frustrating :slight_smile:

lud

lud

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 -1 in the input and just wait in receive instead of doing something like after 0 -> -1

— All posts loaded —

Where Next? Top

Trending in Challenges Top

Other Trending Topics Top

JesseHerrick
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
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
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
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews