infinisil changed the topic of #nix-lang to: Channel for discussing Nix as a language - https://nixos.org/nix/manual/#chap-writing-nix-expressions - Logs: https://logs.nix.samueldr.com/nix-lang/
Dotz0cat_ has quit [Ping timeout: 240 seconds]
Dotz0cat has joined #nix-lang
rajivr has joined #nix-lang
Dotz0cat has quit [Ping timeout: 240 seconds]
Dotz0cat has joined #nix-lang
Dotz0cat_ has joined #nix-lang
Dotz0cat has quit [Ping timeout: 240 seconds]
rmdashrf has quit [Quit: ZNC 1.8.2+deb1~bpo10+1 - https://znc.in]
rmdashrf has joined #nix-lang
globin has quit [Ping timeout: 240 seconds]
globin has joined #nix-lang
chvp has quit [*.net *.split]
kalbasit[m] has quit [*.net *.split]
chvp has joined #nix-lang
kalbasit[m] has joined #nix-lang
jtojnar has quit [Ping timeout: 246 seconds]
kalbasit[m] has quit [Ping timeout: 258 seconds]
chvp has quit [Ping timeout: 258 seconds]
mvnetbiz_ has quit [Ping timeout: 244 seconds]
cwslimy[m] has quit [Ping timeout: 244 seconds]
siraben has quit [Ping timeout: 244 seconds]
colemickens has quit [Ping timeout: 265 seconds]
cwNovusOrdoSeclo has joined #nix-lang
__monty__ has joined #nix-lang
jtojnar has joined #nix-lang
mvnetbiz_ has joined #nix-lang
JJJollyjim has joined #nix-lang
kalbasit[m] has joined #nix-lang
awaxa has joined #nix-lang
chvp has joined #nix-lang
colemickens has joined #nix-lang
siraben has joined #nix-lang
Dotz0cat_ has quit [Ping timeout: 265 seconds]
srhb has quit [Remote host closed the connection]
manveru has quit [Remote host closed the connection]
manveru has joined #nix-lang
srhb has joined #nix-lang
<sterni> infinisil: regarding #97310, I have experimented with this and have come to the conclusion that the only way to implement something lib lib.hexByte is to have a lookup table in a list
<{^_^}> https://github.com/NixOS/nixpkgs/issues/97310 (by berbiche, 23 weeks ago, closed): Newly introduced YAML formatter does not allow hexadecimal escapes (or other escapes) in strings
<infinisil> sterni: Yeah I implemented a version of this like that
* infinisil tries to find it
<sterni> I've done this as well
<infinisil> Not quite, but similar
<infinisil> I used a raw file
<sterni> which is when I found out that nix string literals can contain everything except unescaped " and \0
<infinisil> Yeah same lol
<sterni> infinisil: riight that is probably nicer
<infinisil> Well they can contain "
<infinisil> ''"''
<sterni> oh yeah
<infinisil> But just escaping it works too, "\""
<infinisil> It's still a " in the end
<sterni> yes
<sterni> just was referring to the fact what I later found out that you don't have to escape linebreaks to \n and similarly \r can also be in the strings
<sterni> different to JSON I think
<sterni> I guess we'll have to sneak in lib.hexByte when no one is looking :p
<sterni> also i've uploaded the broken version of course -.-
<infinisil> sterni: Here's mine: https://paste.infinisil.com/F5BABMtBhc.nix, and the `bytes` file: https://paste.infinisil.com/lBVLTlzAmY
<infinisil> Also contains hex conversion
<sterni> wait it's all lookup tables? always has been
<sterni> although nix has at least some bitwise capabilities
JJJollyjim has quit [Ping timeout: 258 seconds]
pingiun_ has joined #nix-lang
pingiun has quit [*.net *.split]
pingiun has joined #nix-lang
pingiun has quit [Max SendQ exceeded]
colemickens has quit [Ping timeout: 244 seconds]
Dotz0cat has joined #nix-lang
Dotz0cat has quit [Ping timeout: 256 seconds]
colemickens has joined #nix-lang
Dotz0cat has joined #nix-lang
rajivr has quit [Quit: Connection closed for inactivity]
Dotz0cat_ has joined #nix-lang
Dotz0cat has quit [Ping timeout: 265 seconds]
WilliButz has quit [*.net *.split]
samueldr has quit [*.net *.split]
samueldr has joined #nix-lang
WilliButz has joined #nix-lang
samueldr has quit [Max SendQ exceeded]
samueldr has joined #nix-lang
Dotz0cat_ has quit [Ping timeout: 256 seconds]
Dotz0cat has joined #nix-lang
Dotz0cat has quit [Ping timeout: 256 seconds]
Dotz0cat_ has joined #nix-lang
__monty__ has quit [Quit: leaving]
Dotz0cat_ has quit [Ping timeout: 272 seconds]