!hArdrCQjixoTCqafnk:matrix.org

Nix Hour

180 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/2276738 Servers

You have reached the beginning of time (for this room).


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.orgSofie (AWAY)

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 (AWAY) *

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 (AWAY) *

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 (AWAY) 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 (AWAY) * 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

Show newer messages


Back to Room ListRoom Version: 10