19 Jan 2024 |
infinisil | Oh man | 14:05:02 |
@sofo:matrix.org | I heard my message tho xD | 14:05:11 |
| confus joined the room. | 14:06:11 |
nasser |  Download image.png | 15:01:46 |
@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 | * 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 | * 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 | Nice! | 15:39:11 |
@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 | * Not sure about if traceValSeq is what i should use here. But it seems to work so lol. | 15:40:50 |
| AkechiShiro joined the room. | 22:42:36 |
22 Jan 2024 |
| maka_77x joined the room. | 03:06:29 |
25 Jan 2024 |
Feeds | New post in Nix Hour Playlist: The Nix Hour #60 [compiling packages from source] | 14:21:39 |
26 Jan 2024 |
infinisil | @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 joined the room. | 12:50:54 |
infinisil | Backlink: https://matrix.to/#/!KqkRjyTEzAGRiZFBYT:nixos.org/$TzhEW9QGueiHJwR2lk1xCYZb6Y-beLd974I0IbA2vyE?via=nixos.org&via=matrix.org&via=tchncs.de | 12:51:20 |
infinisil | 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 |