this post was submitted on 02 Dec 2024
22 points (100.0% liked)
Nix / NixOS
1829 readers
1 users here now
Main links
Videos
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
@F04118F
If I can make the time, I will. But I know @ellyse is doing it. ๐ ๐ฉโ๐ป
She did one last night live on stream.
https://ohai.social/@ellyse/113482901348671949
@gavin @F04118F yup! thats a link to a 2019 AoC, but here's my video for day 1 this year https://www.youtube.com/live/P/_3rUzAN0vw
the code is here: https://github.com/ellyxir/advent/_of/_code/tree/main/2024/nix/day01
i looked at your solution, good work!
Your code looks awesome, I'm definitely going to steal some ideas from that, especially the
lib.pipe
really cleans up a lot of unnecessary bindings I did.Doing a
with import ./utils.nix
is also a lot cleaner than nesting let statements.You can also use the pipe operators; but they are still experimental features.
foo (bar (baz x))
=x |> baz |> bar |> foo
=foo <| bar <| baz <| x