* infinisil
is trying to fix the channel/connection closing problem that's been eating messages for so long
jcrben has quit [Quit: Ping timeout (120 seconds)]
ma27 has quit [Quit: WeeChat 2.2]
jcrben has joined #nixos-chat
polyzen is now known as dmc
pita has quit [Ping timeout: 246 seconds]
pita has joined #nixos-chat
<gchristensen>
infinisil: are you pinging?
<gchristensen>
heartbeat*
<infinisil>
I am not
<gchristensen>
turn on heartbeats
<infinisil>
How do?
<gchristensen>
Network.AMQP?
<infinisil>
Ahhh
<gchristensen>
coHearbeatDelay (Just 5) or something
<infinisil>
"If Nothing, the value suggested by the broker is used."
<infinisil>
Setting it to 5 anyways
<gchristensen>
I forget the default, but yeah, heartbeats are nice
<infinisil>
Tbh, the problem will just be that I'm not restarting the connection when it gets closed for some reason
<infinisil>
I think
<infinisil>
But I'll use this oportunity to refactor all that code
<infinisil>
gchristensen: Something I'm not so sure about (I read through the docs of rabbitmq a bit now): I have to create a queue and get an autogenerated queue name I then bind this to the exchange for messages and can then receive stuff.
<gchristensen>
yeah
<infinisil>
But now my bot goes offline for a bit and comes back on
<infinisil>
offline = connection gets lost
<infinisil>
How can I process the missed messages?
<gchristensen>
you can't, by design
<infinisil>
Hmm..
<infinisil>
Okay so I'll just start it really quickly again
<infinisil>
But that's meh
<gchristensen>
you could start it and then kill the old one :)
<infinisil>
I'd only start it once I realize the connection is lost, at which point messages could already be lost
<gchristensen>
you really don't want to respond to old messages, though, for an IRC bot
<infinisil>
I'll just do a whole bunch of logging to hopefully find what's even causing the lost connection
<infinisil>
gchristensen: If the messages are <10ms old then maybe I do
<infinisil>
Eh anyways
<infinisil>
gchristensen: Can you join #bottest for a second?
Lisanna has joined #nixos-chat
endformationage has joined #nixos-chat
<infinisil>
Haha: "Laplace used the rule of succession to calculate the probability that the sun will rise tomorrow, given that it has risen every day for the past 5000 years. One obtains a very large factor of approximately 5000 × 365.25, which gives odds of 1826251:1 in favour of the sun rising tomorrow. "
<gchristensen>
my brother did a thesis on schmavity: the idea that historic performance gives no indication of future performance, and thus we have no specific basis to believe gravity won't be inverted by the time we wake up.
<infinisil>
Hah
<ottidmes>
what would be good options names for lib and lib overlays? there already exists a lib, which I believe to be outdated, but it might be in use by some
<ottidmes>
hmm, nevermind, I dont think that approach is even going to work
Synthetica has quit [Quit: Connection closed for inactivity]
lassulus_ has joined #nixos-chat
lassulus has quit [Ping timeout: 268 seconds]
lassulus_ is now known as lassulus
endformationage has quit [Ping timeout: 240 seconds]
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos-chat
<ekleog>
even better when there were actually no deleted comments \o/
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos-chat
pie__ has quit [Remote host closed the connection]
pie__ has joined #nixos-chat
<gchristensen>
hah
rawreraw has quit [Ping timeout: 252 seconds]
ma27_ has quit [Quit: WeeChat 2.2]
__monty__ has joined #nixos-chat
ma27 has joined #nixos-chat
ma27 has quit [Quit: WeeChat 2.2]
ma27 has joined #nixos-chat
ma27 has quit [Quit: WeeChat 2.2]
ma27 has joined #nixos-chat
rawreraw has joined #nixos-chat
drakonis has joined #nixos-chat
drakonis has quit [Read error: Connection reset by peer]
pie___ has joined #nixos-chat
jD91mZM2 has quit [Ping timeout: 250 seconds]
pie__ has quit [Ping timeout: 264 seconds]
jD91mZM2 has joined #nixos-chat
endformationage has joined #nixos-chat
<andi->
<3 nixos crosscompilation.. Started out with building an openbmc inspired thing for the supermicro board and the ast2400 on it.. Can't wait for the development board to arrive.
<gchristensen>
incredible
pie__ has joined #nixos-chat
<elvishjerricco>
andi-: Wasn't there some problem with the user management script failing to cross compile? How did you solve that?
pie___ has quit [Ping timeout: 268 seconds]
<andi->
elvishjerricco: I am waaaaay more low-level right now
<andi->
uboot, kerne
<andi->
+l
<andi->
I do not plan to run NixOS on that box since it would not have enough RAM/CPU/Disk/… anyway
<joepie91>
andi-: pft, anything can run NixOS if you're brave enough
<joepie91>
see: not-os
<joepie91>
:P
<sphalerite>
joepie91: but that's *not* nixos
<joepie91>
lol
Synthetica has quit [Quit: Connection closed for inactivity]
jD91mZM2 has quit [Quit: WeeChat 2.2]
<gchristensen>
"The Finnish equivalent of 'we're fucked' is literally we're sbmerged in piss'" hmm they've got a good thing going there
sir_guy_carleton has joined #nixos-chat
<qyliss>
I mean we have “up shit creek” and stuff
rawreraw has quit [Ping timeout: 250 seconds]
<ottidmes>
beside "we are fucked" we also have "to the moon" :P
<__monty__>
infinisil: Is it just me or was day 7 pretty darn hard?
<infinisil>
__monty__: It totally was!
<infinisil>
I even tried to do it as fast as possible, bugs ensured
<__monty__>
I assume you beat 3s?
<infinisil>
Yeah, it's pretty much instantaneous for me
<infinisil>
Wait
<infinisil>
Yeah
<infinisil>
10-20ms
<infinisil>
__monty__: Yours takes 3s to run? Part b?
<__monty__>
Both, but I do runghc rather than compile.
<__monty__>
Maybe it doesn't optimize or something?
<infinisil>
There are some instances where it doesn't optimize certain things, could be really fast when compiled