!hArdrCQjixoTCqafnk:matrix.org

Nix Hour

166 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/2276735 Servers

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


SenderMessageTime
19 Jan 2024
@infinisil:matrix.orginfinisilOh man14:05:02
@sofo:matrix.org@sofo:matrix.orgI 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.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

Show newer messages


Back to Room ListRoom Version: 10