!hArdrCQjixoTCqafnk:matrix.org

Nix Hour

169 Members
Discussions and notifications for the weekly Nix Hour, a Nix Q&A Lecture by Tweag: https://discourse.nixos.org/t/the-nix-hour-a-weekly-nix-q-a-lecture-by-tweag/2276736 Servers

Load older messages


SenderMessageTime
19 Jan 2024
@confus:matrix.orgconfus joined the room.14:06:11
@nasser:synapse.nasser.spacenasserimage.png
Download image.png
15:01:46
@sofo:matrix.org@sofo:matrix.org

Had some fun simplifying the code.

rec {
  lib = import <nixpkgs/lib>;
  interweave = item: elems: [item] ++ (lib.intersperse item elems) ++ [item];

  digits = ["0" "1" "2" "3" "4" "5" "6" "7" "8" "9"];

  tracingPipe = value: funcs:
    lib.pipe value (interweave lib.traceValSeq funcs);

  result = tracingPipe "123a45" [
    lib.stringToCharacters
    (lib.filter (char: lib.elem char digits))
    (map (char: lib.toInt char))
  ];
}
15:34:04
@sofo:matrix.org@sofo:matrix.org *

Had some fun simplifying the code from today's hour.

rec {
  lib = import <nixpkgs/lib>;
  interweave = item: elems: [item] ++ (lib.intersperse item elems) ++ [item];

  digits = ["0" "1" "2" "3" "4" "5" "6" "7" "8" "9"];

  tracingPipe = value: funcs:
    lib.pipe value (interweave lib.traceValSeq funcs);

  result = tracingPipe "123a45" [
    lib.stringToCharacters
    (lib.filter (char: lib.elem char digits))
    (map (char: lib.toInt char))
  ];
}
15:34:19
@sofo:matrix.org@sofo:matrix.org *

Had some fun simplifying the tracing pipe from today's hour.

rec {
  lib = import <nixpkgs/lib>;
  interweave = item: elems: [item] ++ (lib.intersperse item elems) ++ [item];

  digits = ["0" "1" "2" "3" "4" "5" "6" "7" "8" "9"];

  tracingPipe = value: funcs:
    lib.pipe value (interweave lib.traceValSeq funcs);

  result = tracingPipe "123a45" [
    lib.stringToCharacters
    (lib.filter (char: lib.elem char digits))
    (map (char: lib.toInt char))
  ];
}
15:36:23
@infinisil:matrix.orginfinisilNice!15:39:11
@sofo:matrix.org@sofo:matrix.org Not no clue about if traceValSeq is what i should use here. But it seems to work so lol. 15:40:42
@sofo:matrix.org@sofo:matrix.org * Not sure about if traceValSeq is what i should use here. But it seems to work so lol. 15:40:50
@akechishiro:matrix.orgAkechiShiro joined the room.22:42:36
22 Jan 2024
@maka_77x:matrix.orgmaka_77x joined the room.03:06:29
25 Jan 2024
@feeds:integrations.ems.hostFeeds New post in Nix Hour Playlist: The Nix Hour #60 [compiling packages from source] 14:21:39
26 Jan 2024
@infinisil:matrix.orginfinisil @room The next Nix hour is in 1h15! Today we're talking about Compiling packages from source. If you have any questions about this topic, you can either ask them in this issue or ask them live in the chat on the livestream 12:45:57
@bryan.bennett:matrix.org@bryan.bennett:matrix.org joined the room.12:50:54
@infinisil:matrix.orginfinisilBacklink: https://matrix.to/#/!KqkRjyTEzAGRiZFBYT:nixos.org/$TzhEW9QGueiHJwR2lk1xCYZb6Y-beLd974I0IbA2vyE?via=nixos.org&via=matrix.org&via=tchncs.de12:51:20
@infinisil:matrix.orginfinisil Bryan: Honestly last week was the most fun episode so far for me, I kind of want to do more random programming puzzles! 12:51:50
@infinisil:matrix.orginfinisilBut it's also kind of really not what Nix is made for 😅12:52:01
@9hp71n:matrix.orgghpzin joined the room.12:52:43
@bryan.bennett:matrix.org@bryan.bennett:matrix.orgI didn't think I would've enjoyed it as much as I did, but I was exposed to some bits of nix that I hadn't seen much use for yet. I'm presently building out a deploy-rs "bundle" for a bunch of hosts and the iteration/mapping was eye opening. I've been able to abstract away some simple bits from a ~30 host db cluster so that I don't have to type it out (and can represent the internal structure better). Thanks for that - but I do TOTALLY understand that it isn't really what nix is built for.12:54:08
@infinisil:matrix.orginfinisilI guess we could do some puzzles here and there :D12:56:30
@kadokusei10:matrix.orgkadokusei10 infinisil: Thanks for the last 4 weeks! I got to watch live 3 out of 4 times (only missed last week) and I enjoyed the experience very much! 15:03:25
@getpsyched:matrix.orggetpsyched joined the room.15:10:53
@infinisil:matrix.orginfinisilAwesome, glad to have you! Hopefully again in the future when the timing happens to align :D15:34:34
@infinisil:matrix.orginfinisilOh just noticed that it's really hard to read the chat text with the transparency 😅15:36:19
@infinisil:matrix.orginfinisilWill try to improve this next time :)15:36:26
@infinisil:matrix.orginfinisilOr maybe not have the chat overlay at all15:36:34
@infinisil:matrix.orginfinisilThere's live chat replay on youtube at least15:36:44
27 Jan 2024
@kadokusei10:matrix.orgkadokusei10That huge heart icon also appears in the live chat interface and hides some of the text. I wonder if we use it wrong (can it really be that the heart icon is intended to hide the text at all times?)00:19:42
@infinisil:matrix.orginfinisilI might just do some http element hiding client-side next time haha02:27:47
28 Jan 2024
@lord-valen:matrix.orglord-valen joined the room.18:30:19
30 Jan 2024
@tinwood:matrix.orgAlex (tinwood) changed their display name from tinwood to Alex K (tinwood).15:27:00

Show newer messages


Back to Room ListRoom Version: 10