!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

380 Members
This is the official channel for documentation in the Nix ecosystem. The documentation team meets here. More information: https://nixos.org/community/teams/documentation Video conference: https://jitsi.lassul.us/nix-documentation Meeting notes scratch pad: https://pad.lassul.us/p-Y8MjU2SdSD5qO1fnpCPA Past meeting notes: https://discourse.nixos.org/search?q=documentation%20team%20meeting%20order%3Alatest 72 Servers

Load older messages


SenderMessageTime
2 May 2024
@nick_kadutskyi:matrix.org@nick_kadutskyi:matrix.org joined the room.17:16:19
@hbjy:matrix.orgHayden joined the room.20:42:00
@nick_kadutskyi:matrix.org@nick_kadutskyi:matrix.org set a profile picture.21:19:12
3 May 2024
@stablejoy:matrix.org@stablejoy:matrix.orgI have a question about possible reordering of sections? I'm doing the nix language tutorial and its about this: After the https://nix.dev/tutorials/nix-language#attribute-set-argument comes the default value part section, followed by the additional attributes part. Why is default value part between? Perhaps the additional attributes part would make more sense right after the attribute set argument because it effectively addresses the counterexample by introducing the ellipsis? As stated in the additional attributes part: Unlike in the previous counter-example, passing an argument that contains additional attributes is not an error.08:55:30
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @stablejoy:matrix.org
I have a question about possible reordering of sections? I'm doing the nix language tutorial and its about this: After the https://nix.dev/tutorials/nix-language#attribute-set-argument comes the default value part section, followed by the additional attributes part. Why is default value part between? Perhaps the additional attributes part would make more sense right after the attribute set argument because it effectively addresses the counterexample by introducing the ellipsis? As stated in the additional attributes part: Unlike in the previous counter-example, passing an argument that contains additional attributes is not an error.
Sure, doesn’t sound wrong. I don’t have a strong preference here, feel free to make a suggestion that reads somewhat fluently. :)
09:06:39
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @stablejoy:matrix.org
Oh I see now, its like describing two directions. The assignment is describing direction from value to variable and the binding from identifier to value?
That’s helpful insight. I chose “assign” because it’s not just programmer jargon but also makes sense in everyday life. You “assign someone to a task”, things like that. You wouldn’t “bind a task to someone”.
09:11:41
@stablejoy:matrix.org@stablejoy:matrix.org
In reply to @fricklerhandwerk:matrix.org
That’s helpful insight. I chose “assign” because it’s not just programmer jargon but also makes sense in everyday life. You “assign someone to a task”, things like that. You wouldn’t “bind a task to someone”.
Oh. I guess you could assign a task to someone who is bound by oath to you
10:21:07
@toonn:matrix.orgtoonn I think the point is more that "to assign" is more commonly understood than "to bind." 10:36:08
@kiike:matrix.orgEnric Morales joined the room.15:51:13
@stablejoy:matrix.org@stablejoy:matrix.org
In reply to @toonn:matrix.org
I think the point is more that "to assign" is more commonly understood than "to bind."
Can one say then you assign a value to a variable and you bind an expression to a variable. The second is said in nix repl help. Also binding functions vs assigning values?
16:05:27
@toonn:matrix.orgtoonn You bind to identifiers rather than values. 16:52:22
@toonn:matrix.orgtoonn In most languages functions aren't first-class values so a different term is useful to distinguish what you do with them. 16:52:54
@toonn:matrix.orgtoonn But in Nix functions are just values. 16:53:02
@qyriad:katesiria.orgQyriad
In reply to@toonn:matrix.org
I think the point is more that "to assign" is more commonly understood than "to bind."
Worth noting that Rust uses bind for their let construct, instead of assign, which seems to get by fine
16:58:39
@toonn:matrix.orgtoonn Sure, the reasoning is probably that Nix is more likely to be touched by non-programmers. 17:11:11
@stablejoy:matrix.org@stablejoy:matrix.org I made a yt channel and am making recordings while going through all nix dev tutorials. 17:46:58
@stablejoy:matrix.org@stablejoy:matrix.orghttps://youtu.be/YdrS3at-O9k?si=AttmjkwlTAFhAcBG17:47:35
4 May 2024
@pennae:matrix.eno.space@pennae:matrix.eno.space left the room.20:59:32
6 May 2024
@stablejoy:matrix.org@stablejoy:matrix.orghttps://github.com/NixOS/nix.dev/pull/97406:33:20
@stablejoy:matrix.org@stablejoy:matrix.org the issue remains in the icat.nix 06:34:00
@stablejoy:matrix.org@stablejoy:matrix.org is the lib supposed to stay throughout the tutorial? 06:34:28
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @stablejoy:matrix.org
is the lib supposed to stay throughout the tutorial?
Replied in the PR thread
07:29:26
@stablejoy:matrix.org@stablejoy:matrix.org
In reply to @fricklerhandwerk:matrix.org
Replied in the PR thread
I made all the changes and updated the text a bit.
08:16:36
@stablejoy:matrix.org@stablejoy:matrix.orgoh nice I actually recorded an episode of fixing this :D08:19:15
@charles:computer.surgeryCharles changed their display name from Charles ⚡️ to Charles.17:01:07
@nick_kadutskyi:matrix.org@nick_kadutskyi:matrix.org changed their display name from nick_kadutskyi to nickkadutskyi.17:33:24
@nick_kadutskyi:matrix.org@nick_kadutskyi:matrix.org left the room.17:35:34
@nickkadutskyi:matrix.org@nickkadutskyi:matrix.org joined the room.17:38:24
@nickkadutskyi:matrix.org@nickkadutskyi:matrix.org changed their display name from nickkadutskyi to Nick Kadutskyi.17:39:32
8 May 2024
@fricklerhandwerk:matrix.orgfricklerhandwerkHey everyone, today is the first documentation office hour. I'm hanging out in https://jitsi.lassul.us/nix-documentation08:02:59

Show newer messages


Back to Room ListRoom Version: 6