<samueldr>
(which can now be replaced by the more gamified and quantifiable ++
<gchristensen>
> builtins.readFile /etc/passwd
<{^_^}>
access to path '/etc/passwd' is forbidden in restricted mode
<samueldr>
ah, gchristensen, there were strong tentatives in #bottest the oteher day
<samueldr>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 2
<gchristensen>
neat
<samueldr>
AFAIK, the only issue with the implementation is how it will gobble up memory and cpu cycles, which could cause low-levels DoS in how it is ran
<gchristensen>
> r
<{^_^}>
undefined variable 'r' at (string):31:9
<samueldr>
there's some kind of per-channel namespacing
<samueldr>
and private messages too
<samueldr>
and you can decrease your karma
<samueldr>
samueldr++
<{^_^}>
samueldr's karma got decreased to -1
<samueldr>
(I've been following the progress, looks like a fun thing)
<infinisil>
gchristensen: I have a set a cgroups limit of 100MB memory and 50% CPU :)
<infinisil>
or 200MB, can't remember
<infinisil>
It still can eat all the swap, but I don't know how I could prevent that
<samueldr>
oh, so if the nix subprocess b0rks, the whole bot is killed?
<infinisil>
Why would it?
<infinisil>
cgroups doesn't kill anything, it just limits it
<infinisil>
almost as if there actually was only 100M and half the CPU power
<infinisil>
as far as i know at least
<samueldr>
oh
<samueldr>
neater
<samueldr>
I thought it would work with the OOM thing
<infinisil>
the out-of-memory thing being?
<infinisil>
Ah just killing it i assume
<samueldr>
yeah, the oom killer of the kernel
<samueldr>
> Specify the absolute limit on memory usage of the executed processes in this unit. If memory usage cannot be contained under the limit, out-of-memory killer is invoked inside the unit.
<{^_^}>
error: syntax error, unexpected IN, expecting ')', at (string):31:78
<samueldr>
oh, quoting text is going to be... more painful
<infinisil>
Oh..
<infinisil>
It should say "This doesn't look like nix at all!"
<samueldr>
I must be the only one who does that, otherwise it would have been noticed
<infinisil>
Nah I'd also quote with >
<samueldr>
maybe >> to nix?
<infinisil>
Meh, the very rare annoyance of an unexpected error message isn't worth it imo
<gchristensen>
I disagree
<samueldr>
I, too, would tend to say that that kind of noise would be grinding, just like, uh, PR merge taking three messages *says he shamefully*
<gchristensen>
there are hundreds of cases of messages starting with a >
<infinisil>
#haskell also uses > as a prefix for their eval bot and I haven't seen anybody complain
<infinisil>
And I think some time ago an idris bot was working in #idris which used > too
gchristensen has left #nixos-borg ["WeeChat 1.9.1"]
gchristensen has joined #nixos-borg
<gchristensen>
>.>
<{^_^}>
error: syntax error, unexpected '.', at (string):31:9
<infinisil>
Alright, looking through my logs, I found 8 instances in April of people using `> ` as a prefix for their messages
<gchristensen>
the prefix isn't > :)
<infinisil>
Huh?
<gchristensen>
the prefix isn't `> `
<infinisil>
Yeah I can change it to `> `, which should eliminate all those >.<
<infinisil>
Oh #zsh is also using the > prefix
<infinisil>
#bash is using #
<samueldr>
what's the most nix-like sign?
<samueldr>
the function call operator?
<samueldr>
( )
<infinisil>
sign?
<infinisil>
You mean on what nix can be recognized?
<samueldr>
yeah
<samueldr>
(and the space was a joke!)
<infinisil>
Heh yeah
<samueldr>
: (when spaced) defines functions, would ": " cause issues?
<infinisil>
> { x ? 10, y }: text: "${text}: ${toString (x + y)}"
<{^_^}>
<LAMBDA>
<infinisil>
This is very nixy and couldn't be another language :P
<infinisil>
Hmm
<infinisil>
Every repl uses >, that's why it's so nice
<infinisil>
and fitting
<infinisil>
haha, how about ${
<infinisil>
${1 + 1}
<infinisil>
>1+1
<infinisil>
Alright I changed it to only trigger on "> " for now
<infinisil>
> 1+1
<infinisil>
Or not at all!
<infinisil>
Um gchristensen it's happening right now
<infinisil>
Oh wait
<infinisil>
maybe not, disregard
<infinisil>
> "it just took a while to start"
<{^_^}>
"it just took a while to start"
<infinisil>
I'll go to bed, good night :2
<infinisil>
>.<
<gchristensen>
> builtins.exec "echo hi"
<{^_^}>
attribute 'exec' missing, at (string):31:9
jtojnar has quit [Ping timeout: 248 seconds]
jtojnar has joined #nixos-borg
cransom has joined #nixos-borg
orivej_ has quit [Ping timeout: 250 seconds]
MichaelRaskin has quit [Quit: MichaelRaskin]
FRidh has joined #nixos-borg
orivej has joined #nixos-borg
FRidh has quit [Read error: Connection reset by peer]
FRidh has joined #nixos-borg
Dezgeg has joined #nixos-borg
<Mic92_>
> ?
<{^_^}>
error: syntax error, unexpected '?', at (string):31:9
<makefu>
> x = 1+1
<{^_^}>
x defined
<makefu>
> x
<{^_^}>
2
<infinisil>
gchristensen: My bot randomly exited today at 17:18:23 (1:30h ago)
<infinisil>
I haven't added more logging messages, i don't have any more descriptive error, just this time :