!hArdrCQjixoTCqafnk:matrix.org

Nix Hour

179 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/2276740 Servers

Load older messages


SenderMessageTime
19 Jan 2024
@kadokusei10:matrix.orgkadokusei10Iā€™m terribly sorry but I will not be able to watch live today as I have to wake up extra early tomorrow m(_ _)m13:23:10
@infinisil:matrix.orginfinisilNo problem!13:55:08
@sofo:matrix.orgSofie infinisil: No sound on stream FYI 14:04:36
@infinisil:matrix.orginfinisilOh man14:05:02
@sofo:matrix.orgSofieI heard my message tho xD14:05:11
@confus:matrix.orgconfus joined the room.14:06:11
@nasser:synapse.nasser.spacenasserimage.png
Download image.png
15:01:46
@sofo:matrix.orgSofie

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.orgSofie *

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.orgSofie *

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.orgSofie Not no clue about if traceValSeq is what i should use here. But it seems to work so lol. 15:40:42
@sofo:matrix.orgSofie * 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.orgBryan 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.orgBryanI 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

Show newer messages


Back to Room ListRoom Version: 10