code logs -> 2019 -> Tue, 19 Feb 2019< code.20190218.log - code.20190220.log >
--- Log opened Tue Feb 19 00:00:34 2019
00:17 Degi [Degi@Nightstar-pb0ntp.dyn.telefonica.de] has quit [Connection closed]
00:36 macdjord|slep is now known as macdjord
01:40 * McMartin pulls down some docs for a variant Commodore video chip.
01:43 Kindamoody is now known as Kindamoody[zZz]
03:39 catalyst [Jessikat@Nightstar-5dv16h.cable.virginm.net] has quit [Connection closed]
04:07
<&McMartin>
Unfortunately for me, many of these docs are in German
04:07
<&McMartin>
Fortunately, though, the German word for "high impedance" is "hochohmig" and I find this implausibly charming
04:07
<&McMartin>
"High-ohm-ish"
04:34
<&McMartin>
"Did you mean: Der TOD hat keinen Buszugriff"
04:34
<&McMartin>
No, no I did not.
04:34
<&McMartin>
But that is awesome.
04:34 Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [[NS] Quit: beroot]
04:37 Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code
04:37 mode/#code [+o Alek] by ChanServ
05:06 Derakon is now known as Derakon[AFK]
05:10 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
05:10 mode/#code [+qo Vornicus Vornicus] by ChanServ
05:39 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
05:44 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
06:23 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
07:14 macdjord is now known as macdjord|slep
07:14 macdjord|slep [macdjord@Nightstar-grpbnp.mc.videotron.ca] has quit [[NS] Quit: Deep inside, every housecat believes themself to be just a temporarily embarrassed tiger.]
07:23 macdjord [macdjord@Nightstar-grpbnp.mc.videotron.ca] has joined #code
07:23 mode/#code [+o macdjord] by ChanServ
07:53 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
07:55 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
07:55 mode/#code [+o Reiv] by ChanServ
08:09 Callidus [MakerDusk@Nightstar-pc7srk.cable.rogers.com] has joined #code
08:18 Kindamoody[zZz] is now known as Kindamoody
09:39 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
09:40 mode/#code [+qo Vornicus Vornicus] by ChanServ
10:22
< simon_>
*spending 5 minutes convincing new developer that his AJAX route shouldn't return HTML, but JSON*
10:26
<&[R]>
:/
10:28
<&[R]>
Then 30 minutes later their idiot-disease resurfaces and you have the exact same discussion?
10:33
<@TheWatcher>
... why is he trying to return html anyway?
10:48
< simon_>
TheWatcher, because then his AJAX success handler can just tack the result on to the DOM.
10:51
<@TheWatcher>
Ahwell, we've all done dumb things sometimes - hopefully the lesson will stick
11:09
< ErikMesoy>
And if not, apply stick to developer?
11:57 You're now known as TheWatcher[d00m]
12:00 Callidus [MakerDusk@Nightstar-pc7srk.cable.rogers.com] has quit [[NS] Quit: Leaving]
12:13 Kindamoody is now known as Kindamoody|afk
12:22 Degi [Degi@Nightstar-5facp8.dyn.telefonica.de] has joined #code
12:49 Degi [Degi@Nightstar-5facp8.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
13:49 Degi [Degi@Nightstar-5facp8.dyn.telefonica.de] has joined #code
13:50
<&ToxicFrog>
This is extremely cool (a memory allocator that reduces physical memory usage by merging partially allocated pages): https://arxiv.org/pdf/1902.04738.pdf
13:58
< simon_>
TheWatcher[d00m], yeah, this guy has a bad habit of laughing when I propose something he could improve. I initially disregarded it as a nervous laughter, but when he eventually tacked on a "that's fucking dumb", I've shifted to a more authoritarian attitude towards him. sadly it works. now he's relieved when I say "meh, just hack that."
13:59
< simon_>
I bet that's how women in tech feel like most of the time... :/
14:06 You're now known as TheWatcher
16:10
<~Vornicus>
arg, block scope + forced local for loop variables = sadness. http://pastebin.starforge.co.uk/29 in Lua: can you find a nicer way to do this than with curr_face?
16:47 Kindamoody|afk is now known as Kindamoody
17:03 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
18:25
<&ToxicFrog>
Ok, so to make sure I understand what this is doing -- it scans the contents of the face_heirarchy to find the face containing the point, then recurses into the children of that to find the subface containing it, etc, until it finds a face with no children, which is the containing face?
18:26
<~Vornicus>
well, it scans the children of face_hierarchy[1], recurses, etc
18:28
<~Vornicus>
But yeah. (face_hierarchy is a list here, not the root of the tree, and children index into face_hierarchy, as opposed to using pointers, which suck for reasons having to do with needing to do things to *everything* later, which means either traversal or having an array)
18:32
<&ToxicFrog>
Vornicus: http://pastebin.starforge.co.uk/30
18:34
<&ToxicFrog>
✨ tail recursion ✨
18:34 * Vornicus examines
18:36
<~Vornicus>
Oh I see. I was wondering why you're passing true_on on, and it's because you don't get it back in the leaf node.
18:36
<&ToxicFrog>
Yeah.
18:36
<&ToxicFrog>
There might be a more convenient way to structure this where you end up calling that on the leaves, hmm
18:36
<~Vornicus>
All right let's try this one
18:36 * ToxicFrog tinkers
18:37
<&ToxicFrog>
wait, no, should not get nerdsniped while in the middle of code reviews
18:37
<~Vornicus>
thank you for reviewing my code~
18:37
<&ToxicFrog>
Anyways, IMO the explicitly recursive version is clearer; the iterative version is just the recursive version with the arguments pulled out into their own variables
18:38
<~Vornicus>
yeah it makes a decent amount of sense
18:40
<~Vornicus>
and after including the `end` for your `if`, tests are green
18:40
<&ToxicFrog>
Whoops
18:41
<~Vornicus>
yeah it ain't C-shaped
18:48
<~Vornicus>
it'd go something like... try it on myself; if it doesn't work return false, if I've got children loop over with recursion and return the first one that comes back truthy, if I don't have children return my own data
18:49
<~Vornicus>
I need to remember inner functions are a thing
18:52
<&ToxicFrog>
It doesn't need to be inner, you could declare it as an external local function and pass fh in explicitly, but when it's just used as a helper function and never meant to be called directly I prefer to put it inside the function it helps.
19:28
<~Vornicus>
There.
19:29
<~Vornicus>
http://pastebin.starforge.co.uk/31
19:33
<&ToxicFrog>
Note that that version is no longer tail-recursive and requires O(depth of face heirarchy) space.
19:35
<~Vornicus>
I'll live
19:35
<&ToxicFrog>
Ok. I wasn't sure how much of a concern that was.
19:36
<~Vornicus>
the face hierarchy is O(log (number of points in the mesh)) or so deep
19:37
<~Vornicus>
and I'm not breaking a thousand points typically
20:24 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
20:47 mac [macdjord@Nightstar-grpbnp.mc.videotron.ca] has joined #code
20:47 mode/#code [+o mac] by ChanServ
20:49 macdjord [macdjord@Nightstar-grpbnp.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
21:49 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
21:49 mode/#code [+o himi] by ChanServ
21:55 Degi [Degi@Nightstar-5facp8.dyn.telefonica.de] has quit [Connection closed]
22:20
<&McMartin>
For those of you who use VSCode, this extension has just crossed my desk and may be of broader interest: https://marketplace.visualstudio.com/items?itemName=mechatroner.rainbow-csv
22:45 Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [[NS] Quit: brb]
22:46 Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code
22:46 mode/#code [+o Alek] by ChanServ
22:49 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
22:50 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code
22:50 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
23:30 catalyst [Jessikat@Nightstar-5dv16h.cable.virginm.net] has joined #code
23:52 Kindamoody is now known as Kindamoody[zZz]
--- Log closed Wed Feb 20 00:00:35 2019
code logs -> 2019 -> Tue, 19 Feb 2019< code.20190218.log - code.20190220.log >

[ Latest log file ]