code logs -> 2016 -> Sat, 23 Jul 2016< code.20160722.log - code.20160724.log >
--- Log opened Sat Jul 23 00:00:18 2016
00:01 thalass is now known as Thalass|TF2
00:08
<@celticminstrel>
...what do watermelons have to do with locks?
00:10
< catadroid>
The spelling is important
00:10
<@celticminstrel>
Ohhh.
00:10
<@celticminstrel>
XD
00:11 Derakon[AFK] is now known as Derakon
00:11 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
00:12 * ToxicFrog pokes util.flags with a stick
00:17 Shady [ShadyGuru@Nightstar-8v9css.leh.ptd.net] has quit [[NS] Quit: Yay, he's gone]
00:35 catadroid` [catadroid@Nightstar-h7agdk.dab.02.net] has joined #code
00:39 catadroid [catadroid@Nightstar-e0sppa.dab.02.net] has quit [Ping timeout: 121 seconds]
00:45
<&ToxicFrog>
Huh
00:46
<&ToxicFrog>
I think this is the first stack trace I've gotten out of lua that's completely, legitimately useless
00:46
<&McMartin>
...gratz?
00:46
<&ToxicFrog>
luajit: bad argument #2 to '?' (function expected, got nil)
00:46
<&ToxicFrog>
stack traceback:
00:46
<&ToxicFrog>
[builtin#21]: at 0x00447210
00:46
<&ToxicFrog>
[C]: at 0x00404980
00:46
<&Derakon>
Haha.
00:46
<&Derakon>
That is not very helpful, no.
00:50
<&McMartin>
Start looking for one-argument built-in functions that need two arguments?
00:51
< catalyst>
Pray to the moon?
00:53
<&ToxicFrog>
Found it!
00:53
<&ToxicFrog>
This is what happens when you forget to pass an error handler to xpcall() but also call it in tail position so the stack frame gets thrown away
00:54
<&ToxicFrog>
It can't figure out what name you called the function as
00:54
<&McMartin>
That was less than ten minutes! Not bad at all
00:56 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving]
01:15 Thalass|TF2 is now known as Thalass
02:05 Derakon is now known as Derakon[AFK]
02:21 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has quit [[NS] Quit: /exit]
02:25
<&ToxicFrog>
Argh.
02:25 * ToxicFrog tracks down an issue with log messages from program startup not being logged
02:26
<&ToxicFrog>
So, it used to be that stuff logged before argument parsing just got dropped
02:27
<&ToxicFrog>
I did some reworking; it loads the minimum possible, then does a permissive parse to pick up (among other things) --log-level and --log-to
02:27
<&ToxicFrog>
Then it loads everything else so that all the flags are registered and then does a strict parse.
02:28
<&ToxicFrog>
But this causes --log-to to get parsed twice, which means it re-open()s the log file with mode 'w'.
02:30
<&McMartin>
argh, everything is terrible
02:31 * McMartin hives off his entire branch he's been working on all week, because it's achieved nothing but demonstrate a huge set of overly-strict preconditions within the rest of the codebase.
02:31
<&McMartin>
Time to go fix *those*.
03:11 * Vornicus finds himself researching simplex noise.
03:12
<~Vornicus>
ascii this is your fault
04:36 macdjord|slep [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
04:36 mode/#code [+o macdjord|slep] by ChanServ
04:39 mac [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
04:57 Turaiel is now known as Turaiel[Offline]
05:15 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection reset by peer]
05:23 epopamek [epopamek@Nightstar-dmt.gh6.143.175.IP] has joined #code
05:27
<&McMartin>
OK, the case of the "36 failed attempts to log into your account since last successful login" has been cracked
05:27 epopamek [epopamek@Nightstar-dmt.gh6.143.175.IP] has quit [Ping timeout: 121 seconds]
05:27
<&McMartin>
This IDE I've been experimenting with has really narrow git integration and assumes certs have already been set up.
05:32
< Pink>
I have heard that before, vorn.
06:02 Derakon[AFK] is now known as Derakon
06:07 celticminstrel [celticminst@Nightstar-nhhr58.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:28 Derakon is now known as Derakon[AFK]
07:05 catadroid [catadroid@Nightstar-0kehdu.dab.02.net] has joined #code
07:09 catadroid` [catadroid@Nightstar-h7agdk.dab.02.net] has quit [Ping timeout: 121 seconds]
07:18 Kindamoody[zZz] is now known as Kindamoody
09:32 catadroid [catadroid@Nightstar-0kehdu.dab.02.net] has quit [[NS] Quit: Bye]
09:51 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
10:39 Kindamoody is now known as Kindamoody|afk
11:47 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Connection closed]
13:14 ErikMesoy [Erik@Nightstar-hq72t5.customer.cdi.no] has quit [Ping timeout: 121 seconds]
14:11 Netsplit Deepthought.Nightstar.Net <-> Krikkit.Nightstar.Net quits: @PinkFreud, @ToxicFrog
14:13 Netsplit over, joins: @PinkFreud, &ToxicFrog
14:29 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
14:29 mode/#code [+qo Vornicus Vornicus] by ChanServ
14:33 celticminstrel [celticminst@Nightstar-nhhr58.dsl.bell.ca] has joined #code
14:33 mode/#code [+o celticminstrel] by ChanServ
14:54 ErikMesoy [Erik@Nightstar-hq72t5.customer.cdi.no] has joined #code
14:55 mode/#code [+o ErikMesoy] by ChanServ
14:57 Syka [the@Nightstar-74m3hl.net] has joined #code
15:07 Syka [the@Nightstar-74m3hl.net] has quit [[NS] Quit: Lost terminal]
16:02 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
16:55 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving]
18:08 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has joined #code
18:08 mode/#code [+o ion] by ChanServ
18:12 Turaiel[Offline] is now known as Turaiel
18:23 * jerith tries to figure out a factorio program.
18:24
<&jerith>
As inputs, I have a chest with an iron plate count and a chest with a copper plate count.
18:26
<~Vornicus>
ooh, factorio
18:26
<~Vornicus>
these plates are of course actually in the chest yes
18:26
<&jerith>
As outputs, I want a line that says "copper ore" if iron+X>copper, otherwise "iron ore", and a second line that says "copper ore" if iron>copper+X, otherwise "iron ore".
18:27
<~Vornicus>
and X is coming out of a constant combinator?
18:27
<&jerith>
Either that or hardcoded.
18:29
<&jerith>
The idea is that if I have too much of one or the other, my furnaces only smelt the one I have less of. If I have about the same amount of each, half my furnaces smelt one and the other half smelt the other.
18:29
<~Vornicus>
Right.
18:29
<&jerith>
I'm pretty sure I can do this with two arithmetic combinators and four decision combinators.
18:30
<~Vornicus>
this 13.x or 12.x
18:30
<&jerith>
0.13.9.
18:32
<&jerith>
(I don't think 0.12.x has enough functionality to actually do this.)
18:32
<&jerith>
I *really* want to base my decision on the logistic network data, but I haven't been able to figure out how to get that into combinators.
18:33
<&jerith>
So I'll satisfy myself with using these boxes for now.
18:34
<&jerith>
I was hoping to do it with two arithmetic and two decider combinators, but I don't think that's actually possible.
18:34
<~Vornicus>
feels like you should be able to do it with two decision combinators
18:34
<~Vornicus>
heh
18:40
<&jerith>
There doesn't seem to be a way to ask for the maximum signal or whatever.
18:40
<&jerith>
So I'd have to make that out of a pair of deciders or something.
18:41
<&jerith>
Hrm.
18:43
<&jerith>
I could use a pair of arithmetic combinators to take the average of two values.
18:43
<&jerith>
Then I can use a decider to pass along any signal with a value larger than that average.
18:44
<&jerith>
That gives me a "max" for the cost of two ariths and a decider.
18:44 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has quit [[NS] Quit: disconnected]
18:48
<&jeroud>
That, along with my threshold logic, comes to a total of six ariths and two deciders.
18:49
<&jeroud>
Which is more expensive than the other thing.
18:52 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has joined #code
18:52 mode/#code [+o ion] by ChanServ
18:52 * jeroud resists the urge to design a neural network made of deciders, because there's no way automate weight adjustment.
18:57 ion_ [Owner@Nightstar-6grqph.vs.shawcable.net] has joined #code
18:57 mode/#code [+o ion_] by ChanServ
18:57 ion_ [Owner@Nightstar-6grqph.vs.shawcable.net] has quit [[NS] Quit: debug]
18:59
<&jeroud>
It would be nice to have a way to set various combinator parameters from the outside.
19:00
<&jeroud>
Then you could blueprint a circuit and have one place to say "look at these signals".
19:00
<&jeroud>
(Instead of configuring each component by hand.)
19:03 * jeroud resists the urge to build a thing that reads some kind of signal expression and outputs an optimal combinator circuit.
19:03
<&jeroud>
It's probably not all that hard to do, actually.
19:04 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has quit [Connection closed]
19:05 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has joined #code
19:05 mode/#code [+o ion] by ChanServ
19:06 Derakon[AFK] is now known as Derakon
19:06
<&jeroud>
I've just figured out how to do the max thing with one arith and one decider, but I need an extra combinator as an isolation buffer to make it work.
19:06
<&jeroud>
I think.
19:07
<~Vornicus>
does it *have* to output copper ore or iron ore? what if they output other signals?
19:08
<&jeroud>
I'd need another component to translate back into the signal I need.
19:08
<&jeroud>
This is going to set filters on inserters.
19:09
<~Vornicus>
oh I see. I thought it was pulling in ore from two different
19:09
<&jeroud>
My inputs are plate and my outputs are ore.
19:09
<~Vornicus>
like, two belts, one with copper and one with iron on it, that you then fill onto the furnace system
19:10
<~Vornicus>
so you could just turn on the inserters.
19:10
<&jeroud>
I have one belt with both ores on it and select which to insert into the furnaces.
19:11
<&jeroud>
I could just switch the inserters, but then I need twice as many.
19:13
<&jeroud>
At the moment, I have filter inserters that decide if they're on or off by comparing iron plate to copper plate in the logistics network.
19:13
<&jeroud>
But that's either all one or all the other.
19:14
<&jeroud>
I want the three state system.
19:15
<&jeroud>
It would be nice if the decider let one choose between two outputs.
19:16
<&jeroud>
But then that wouldn't play nicely with every/any/each.
21:07 * Tamber ponders.
21:07
<@Tamber>
Reason: "Internal error on microcontroller board" Solution: "Change or change main-board"
21:30
<&ToxicFrog>
Hmm.
21:31
<&ToxicFrog>
This is the place where (binding) would be really, really handy.
21:31
<&ToxicFrog>
Sadly, Lua doesn't have it.
22:23 mac [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
22:24 mode/#code [+o mac] by ChanServ
22:26 macdjord|slep [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
23:22 Kindamoody|afk is now known as Kindamoody
23:45 mac [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [Connection reset by peer]
23:45 mac [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
23:45 mode/#code [+o mac] by ChanServ
23:47 Kindamoody is now known as Kindamoody[zZz]
--- Log closed Sun Jul 24 00:00:34 2016
code logs -> 2016 -> Sat, 23 Jul 2016< code.20160722.log - code.20160724.log >

[ Latest log file ]