Stream: advent of code

Topic: Streaming


view this post on Zulip Georges Boris (Dec 04 2023 at 16:23):

Hey folks - I'm gonna spend like 35min setting up Roc on a NixOS machine and trying out AoC day 1. If anyone wants to tag along - feel free to join me :)

view this post on Zulip JRI98 (Dec 04 2023 at 16:34):

This might be a good start https://github.com/roc-lang/roc/blob/main/BUILDING_FROM_SOURCE.md

view this post on Zulip Anton (Dec 04 2023 at 16:34):

@John Murray found a new approach you could try out:

nix-shell -p steam-run
steam-run <downloaded-roc-binary>

view this post on Zulip Anton (Dec 04 2023 at 16:35):

No need to build from source anymore :)

view this post on Zulip joshi (Dec 04 2023 at 16:36):

I also patched the binary myself for AoC: https://gitlab.com/arkandos/aoc/-/blob/2023/flake.nix?ref_type=heads
The hashes might be wrong since the last nightly update, but that's an easy fix :smile:

view this post on Zulip Anton (Dec 04 2023 at 16:40):

Some excerpts from my vscode setup from configuration.nix (for 23.05):

configuration.nix parts

view this post on Zulip Georges Boris (Dec 04 2023 at 16:43):

hitting my head against the wall in public by trying out random paths quickly :sweat_smile:

view this post on Zulip Georges Boris (Dec 04 2023 at 16:50):

decide to prep things better upfront so I can have Roc running on my NixOS (maybe after lining things up I can do it on camera just for the sake of it)

view this post on Zulip Georges Boris (Dec 04 2023 at 16:59):

managed to get everything working in 10min after not doing it in public :) (building from source was pretty straightforward on nixos tbh...)

view this post on Zulip Anton (Dec 04 2023 at 17:13):

I'm planning on adding a dedicated NixOS section to https://www.roc-lang.org/install to make things easier in the future.

view this post on Zulip John Murray (Dec 04 2023 at 18:16):

The steam run approach is great to try it out

If you want to include roc in a flake (which builds from source) i have this example https://github.com/JRMurr/AdventOfCode2023/blob/main/flake.nix

which sets up the lsp for https://github.com/ivan-demchenko/roc-vscode-unofficial via export ROC_LSP_PATH=${rocFull}/bin/roc_ls

view this post on Zulip Richard Feldman (Dec 05 2023 at 16:46):

here's a first: @Loris Cro solving Advent of Code in both Roc and Zig on stream! :smiley:

https://twitter.com/croloris/status/1732074738611089562

view this post on Zulip Anton (Dec 05 2023 at 16:47):

Cool :)

view this post on Zulip Marten (Dec 08 2023 at 17:11):

Hey, I'm streaming solving day 8 with Roc ^^

view this post on Zulip Marten (Dec 08 2023 at 17:11):

https://twitch.tv/whiletruu


Last updated: Jul 06 2025 at 12:14 UTC