gchristensen changed the topic of #nixos-borg to: https://www.patreon.com/ofborg https://monitoring.nix.ci/dashboard/db/ofborg?refresh=10s&orgId=1&from=now-1h&to=now "I get to skip reviewing the PHP code and just wait until it is rewritten in something sane, like POSIX shell. || https://logs.nix.samueldr.com/nixos-borg
<infinisil> jtojnar: No more crashes for you!
<infinisil> > hi[
<{^_^}> error: syntax error, unexpected ')', at (string):10:12
<jtojnar> hopefully, the update fixed them all
<infinisil> If this channel had colors enabled we would have the actual highlighting, but whatever
<jtojnar> but this is still nicer to read
<infinisil> #bottest has colors :)
<infinisil> Yeah
<infinisil> Definitely
<Dezgeg> > builtins.unsafeGetAttrPos "abort" builtins
<{^_^}> (no output)
<Dezgeg> does that nuke the state?
<infinisil> My code is as general as can be with escape codes, it won't miss any, and the ones it doesn't know about will just be silently dropped
<infinisil> Dezgeg: ">:r" nukes the state :)
<Dezgeg> I mean does segfaulting it nuke it as well?
<infinisil> Hmm
<infinisil> I don't think so
<infinisil> It runs nix-instantiate, and just reports the error if it exits with non-0
<Dezgeg> ok
<ekleog> > builtins.abort "test"
<{^_^}> evaluation aborted with the following error message: 'test'
<ekleog> >:l
<{^_^}> :l needs an argument
<ekleog> >:s
<{^_^}> All scopes: pkgs
<ekleog> can't remember the commands to check whether it nuked the state, but anyway here is probably not the right place :)
<infinisil> The state is: A list of bindings from variables to nix statements, viewable with >:v
<infinisil> And a set of imported scopes, viewable with >:s
<infinisil> >:v
<{^_^}> All bindings: _show eatmyram lib nixpkgs pkgs rev
<infinisil> >:s
<{^_^}> All scopes: pkgs
<ekleog> looks like it didn't :)
<infinisil> > rev
<{^_^}> "1a7a886234b4cf638c0d6ebd42016333edffb428\n"
<ekleog> > with builtins; let f = x: seq (genList (_: trace "hello world" 0) 65536) (f x); in f 1
<{^_^}> (no output)
* ekleog sad, only 30s
<ekleog> (but isn't it supposed to say it crashed?)
<ekleog> > with builtins; let f = x: seq (genList (_: trace "hello world" 0) 655360) (f x); in f 1
<{^_^}> (no output)
<ekleog> (locally I get an abort with Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS)
<infinisil> > red "This should be red!"
<{^_^}> "This should be red!"
<infinisil> Oh right, no colors in this channel
* infinisil votes to turn colors on
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos-borg
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-borg
jtojnar is now known as jtojnarZzZz
cransom has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 268 seconds]
sphalerite_ is now known as sphalerite
jtojnarZzZz has quit [Read error: Connection reset by peer]
jtojnarZzZz has joined #nixos-borg
jtojnar has joined #nixos-borg
jtojnarZzZz has quit [Read error: Connection reset by peer]
Dezgeg has quit [Ping timeout: 255 seconds]
Dezgeg has joined #nixos-borg
orivej has joined #nixos-borg
orivej_ has joined #nixos-borg
orivej has quit [Ping timeout: 255 seconds]
<gchristensen> infinisil: for now, please do bot testing elsewhere -- it has made for quite a lot of scrollback now that i'm back
<infinisil> Yeah, I mostly do it in #bottest
<infinisil> This here is a fraction of it!
<gchristensen> :o:D
<infinisil> gchristensen: Where have you been btw?
<gchristensen> two weeks ago, on a consulting trip these past five days, to see my mother be installed as minister in her church.
<infinisil> I see :O
<gchristensen> soon, another consulting trip ...
<infinisil> Nix consulting, right?
<gchristensen> yeah
<gchristensen> of course =)
<infinisil> Nice, am jealous
<gchristensen> it is pretty good, but still work
<gchristensen> (but I like it better than not nix work! :D)
<samueldr> lately, my work contract is split between two projects/clients, and one is working with nix... turns out I like nix :)
<samueldr> (I mean, I already knew, but not at work!)
<gchristensen> :D
<infinisil> Turns out, nix is actually pretty useful, for all kinds of things!
<gchristensen> ok I'm going to go back to bed and nap another hour or so.
<samueldr> yes! I had some bits where I initially reached to $NOT_NIX to do something, and then realized: nix can do that, and better
<infinisil> gchristensen: Alright, wanted to ask you something but I guess I'll do that later
<infinisil> samueldr: An example?
<samueldr> oh, dumb stuff, like making a symlink fark from nix derivations
<samueldr> symlink farm*
<samueldr> or forest, or uh, watchamacallit
<samueldr> I initially was going to do it using a simple script
<infinisil> Ah, the trivial builders, heh
<samueldr> configuration file management
<samueldr> big old ''...'' strings are useful, and nix helps with conditionals
<infinisil> Yeah
<samueldr> oh wow, I did my symlinks like a dunce, manually
<infinisil> Nice, I hope to be able to work with nix too at some point at work (currently still studying, never had a job)
<infinisil> samueldr: You didn't use trivial-builders.nix? :O
<samueldr> I know nix enough to be dangerous, and that's it!
<samueldr> my bog-standard linux experience and integration skills help hide that fact
<samueldr> well, I know more than what I think, but those builders and the libs still are, how can I put it... opaque? blurry? hidden?
<samueldr> not the most discoverable, imo
<infinisil> Yeah they really are..
<infinisil> Always discovering new stuff in nixpkgs
<infinisil> Did you know there are tests for the module system? I didn't some time ago
<samueldr> maybe, it depends which tests you're talking about :)
<infinisil> nixpkgs/lib/tests/modules.sh
<samueldr> I might have seen a reference some time ago, but it didn't register
Dezgeg has quit [Ping timeout: 265 seconds]
<gchristensen> infinisil: what was your question?
<infinisil> Good morning :)
<infinisil> The {^_^} backend seems to be not working for minutes at a time, randomly
<gchristensen> 19:00 :)
<gchristensen> interesting ...
<gchristensen> I wonder if you're trying to connect over ipv6 and that is broken -- I've seen that before
<infinisil> When it happens, my bot disconnects and also the !m command in #nixos doesn't work, so it's not just mine
<gchristensen> O.o
<gchristensen> wait, !m? I don't do !m
<infinisil> Oh haha
<infinisil> Anyways, I don't get any messages when i restart the bot when it happens, for a couple minutes occasionally
<infinisil> but then it randomly starts working again
<gchristensen> weird
<gchristensen> ok well next time can you send me messages with the timestamsp?
<infinisil> gchristensen: you mean you just wanna know when it happens or send an actual timestamp in the rabbitqm messages?
<gchristensen> just let me know exactly when it happens
<gchristensen> I'll try and correlate it to other activity