gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
alcymd has quit [Ping timeout: 272 seconds]
sir_guy_carleton has joined #nixos-chat
lassulus_ has joined #nixos-chat
jtojnar has joined #nixos-chat
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
jtojnar has quit [Ping timeout: 252 seconds]
jtojnar has joined #nixos-chat
matthewbauer has quit [Ping timeout: 240 seconds]
matthewbauer has joined #nixos-chat
matthewbauer has quit [Ping timeout: 252 seconds]
Lisanna has quit [Quit: Lisanna]
<sphalerite> jasongrossman: thank you :)
<jasongrossman> c
jackdk has joined #nixos-chat
sir_guy_carleton has quit [Ping timeout: 268 seconds]
lopsided98 has quit [Ping timeout: 240 seconds]
lopsided98 has joined #nixos-chat
jackdk has quit [Ping timeout: 244 seconds]
__monty__ has joined #nixos-chat
jasongrossman has quit [Read error: Connection reset by peer]
jasongrossman has joined #nixos-chat
jasongrossman has quit [Ping timeout: 252 seconds]
nckx has quit [Ping timeout: 240 seconds]
nckx has joined #nixos-chat
Synthetica has quit [Quit: Connection closed for inactivity]
jasongrossman has joined #nixos-chat
Synthetica has joined #nixos-chat
sphalerite has quit [Ping timeout: 250 seconds]
sphalerite has joined #nixos-chat
<andi-> will it finish or will it be terminated? :) https://hydra.nixos.org/build/82179994/nixlog/4/tail
* sphalerite wonders if there is a human who can remember C's function pointer syntax
<samueldr> neat!
jtojnar has quit [Remote host closed the connection]
Lisanna has joined #nixos-chat
jtojnar has joined #nixos-chat
<infinisil> sphalerite: Having seen Haskell type syntax, anything else doesn't make any sense anymore
<sphalerit> infinisil: sure, but even go or rust syntax is just worlds better than C as far as referring to functions/procedures is concerned
<infinisil> I'm a bit concerned about go's syntax regarding the new proposal
<infinisil> The contracts thing
<infinisil> Goddamnit
<infinisil> Try finding the go contracts proposal by searching for "go contract" or similar
<gchristensen> samueldr: so what is next on the release process?
<samueldr> go figure (heh), search engine company's project, totally ungooglable
<samueldr> gchristensen: looking at the PR that fixes the last blocker, then it should be good to go AFAIK
<gchristensen> yay!
<infinisil> Example of proposed syntax: "func Keys(type K, V Equal(K))(m map[K]V) []K"
<samueldr> hmmm, k
<samueldr> (sorry, first thing that popped in mind seeing that many k and m together)
<infinisil> Heh
<LnL> sphalerit: blocks in objective-c are even worse
<infinisil> Another gem: "func Transform(type T1, T2)(lst *List(T1), f func(T1) T2) *List(T2)"
<infinisil> Compare that to Haskell: [T1] -> (T1 -> T2) -> [T2]
<sphalerit> C++ lambdas are pretty bad too
<gchristensen> hmm I think I could make the docs I'm writing link to the definition...
<samueldr> gchristensen: that would be lovely
<samueldr> hey, in case anyone's curious, #47842 is the PR; I'll be taking a closer look this evening after work. (pretty limited scope, but now's not the time to test it in full)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/47842 (by peterhoeg, 13 hours ago, open): nixos system-activation: support activation scripts run in a user context
<jasongrossman> Fastly++
<{^_^}> Fastly's karma got increased to 1
<gchristensen> http://gsc.io/nixpkgs-docs/html/#function-library-attrsets.mapAttrsRecursive check out that link
Lisanna has quit [Quit: Lisanna]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-chat
matthewbauer has joined #nixos-chat
<samueldr> nice!
<samueldr> ("that link" I think isn't the one written here, but the link inside the documentation linking to the function)
jasongrossman has quit [Ping timeout: 246 seconds]
<gchristensen> :)
<gchristensen> samueldr: do you have display/formatting suggestions for that?
<gchristensen> it looks pretty lame as-is, and I don't want to do it for all those functions without feeling like it is pretty good
matthewbauer has quit [Ping timeout: 264 seconds]
<samueldr> I'll need to dig into docbook shenanigans to know what could be done
<gchristensen> well if you just have ideas on what it looks like, I can try and map to docbook
jtojnar has quit [Read error: Connection reset by peer]
<samueldr> is this all manually mapped?
<gchristensen> to line locations?
<samueldr> yeah
<gchristensen> oh dear no
<samueldr> good
<gchristensen> :)
<samueldr> I didn't really doubt, but just had to know for sure
<samueldr> already, a good thing would be to write on the same line *what* this filename + line number is, something like "Location in <nixpkgs>: ..."
<gchristensen> and then to bring in the link in the docs, you use <xi:include href="./locations.xml" xpointer="lib.attrsets.mapAttrsRecursive" />
<samueldr> whew!
<samueldr> for a tool initially made to browse hypertext document, it sure has issues browsing that hypertext document
<samueldr> (the gist)
<gchristensen> lol.
matthewbauer has joined #nixos-chat
matthewbauer has quit [Ping timeout: 240 seconds]
<gchristensen> s/ion/ed/
Lisanna has joined #nixos-chat
Lisanna has quit [Client Quit]
<samueldr> yeah, looks more like "something"
<samueldr> not a floating link
<gchristensen> I wonder if putting the type signature in the title is too much / obscuring it too much
<gchristensen> ehhh I should stop futzing and get it merged :)
<LnL> did you create w pr already? can't remember
<{^_^}> #47837 (by grahamc, 19 hours ago, open): nixpkgs: Start documenting library functions in XML
<LnL> let's get that in then :)
* gchristensen can't stop tinkering
<LnL> you don't have to
<gchristensen> right. right.
<LnL> also how would you create a stable link to the implementation?
<LnL> not sure if the commit available
<gchristensen> commit isn't certain to be available :/
<gchristensen> I could use commit if possible, and a branch reference if not?
<LnL> what branch? :p
<LnL> but yeah, a fallback might be fine
<LnL> I'm just not sure if the commit is available in hydra builds
<gchristensen> release-${nixpkgs.lib.trivial.release}
<LnL> but probably, channels must be doing something similar
<gchristensen> yeah it is available
<gchristensen> (ish)
<gchristensen> LnL, samueldr: is it critical I link to the hash, or is linking to the branch sufficient?
<gchristensen> if it isn't sufficient, I won't include this linking part in this PR
<LnL> well, it's pretty unlikely for something to move files
<gchristensen> a few lines off isn't a big deal I think
<LnL> yeah, slightly confusing but there's a reasonable chance it's still on screen
jtojnar has joined #nixos-chat
<gchristensen> I can easily add some mild smarts
<gchristensen> I'll go that route first
Lisanna has joined #nixos-chat
__monty__ has quit [Quit: leaving]
<gchristensen> ehhh it is very annoying to add mild smarts, so I'm only going to do good-enoughlinks
<samueldr> gchristensen: the hash will cause issues with local builds
<gchristensen> bingo :)
<samueldr> the release branch will always match
<samueldr> tough with varia according to local changes
<samueldr> (I had the though process earlier today)
<samueldr> thought*
* samueldr is more tired from the cycle commute than expected
<samueldr> (to prevent hijacking #nixos-dev) LnL those URL paths suspiciously look like nix store paths
<LnL> yes :D
<samueldr> I'm wondering how worrying it could be :)
<LnL> it's a separate store
<samueldr> yeah, I was writing "coming from you it probably is fine"
<LnL> nix-store --store 'local?root=/path/to/prefix' --add-fixed sha256
<LnL> this way I can upload files using nix
matthewbauer has joined #nixos-chat
<emily> cute
<samueldr> can't see any reason to change anything there
<samueldr> so yeah, looks good
<gchristensen> guhhh using the release name makes broken URLs for unstable
<gchristensen> since that says 19.03
<samueldr> gchristensen: just had a slow cache
<samueldr> it may be too late to diagnose :/
<samueldr> do you perchance have a new poke-and-prod-fastly-diagnostics.sh?
<samueldr> though now I'm doubting since *nothing* loads
<gchristensen> no I don't
<samueldr> I think gremlins are doing something weird here
<samueldr> this SSL TCP connection with my own server works fine for chatting, 17ms lag which is nominal
<samueldr> but uh, can't load sites :/ so probably not a fastly issue
<samueldr> gremlins! I say
* samueldr turns it off and on again hoping it will help
<samueldr> it helped
jackdk has joined #nixos-chat
matthewbauer has quit [Remote host closed the connection]
jtojnar has quit [Ping timeout: 268 seconds]