--- Log opened Thu Jun 28 00:00:25 2018 |
00:05 | | ErikMesoy [Bruker@Nightstar-hq72t5.customer.cdi.no] has quit [Ping timeout: 121 seconds] |
00:18 | | Teth [caius@Nightstar-qn38sl.res.rr.com] has quit [Ping timeout: 121 seconds] |
00:37 | | Degi [Degi@Nightstar-8maogd.dyn.telefonica.de] has quit [Connection closed] |
00:44 | | celticminstrel [celticminst@Nightstar-jocbi5.dsl.bell.ca] has joined #code |
00:45 | | mode/#code [+o celticminstrel] by ChanServ |
01:22 | | Derakon[AFK] is now known as Derakon |
01:31 | | Teth [caius@Nightstar-qn38sl.res.rr.com] has joined #code |
01:33 | | ErikMesoy [Bruker@Nightstar-dnouap.customer.cdi.no] has joined #code |
01:49 | <@macdjord> | ErikMesoy: Alright, I graphed it in AutoCAD, and found that (0,0) is, in fact, the only solution for which all 4 ropes remain taut. Here's what happens: |
01:49 | <@macdjord> | Initially, with all buckets equally heavy, the table is level. As soon as you add extra weight to one bucket, the table will start to tip towards the heavy bucket while swinging sideways to keep the center buckets' ropes' taut; the opposite bucket will be lifted up by the table with its rope slack. For any given level of weight imbalance, there is one and only one angle of tip for which the force diagram balances, and this is the angle |
01:49 | <@macdjord> | at which the table will hang. |
01:49 | <@macdjord> | There is a particular angle - what that angle is depends on the width of the table relative to the length of the ropes - which gets the heavy bucket as low as it is possible to get while keeping those three ropes taut and all the buckets on the table. As you add weight to the heavy bucket, the angle of tilt will approach asymptotically this angle. |
01:49 | <@macdjord> | Eventually, you will reach a level of weight where the vertical force exerted on the middle buckets' ropes' on the buckets they are attached to exceeds the weight of the buckets. (Note: the ropes will be pulling at an angle, but only the vertical component of the force counts.) At this point these buckets will lift off and start hanging freely from their ropes instead of resting on the table. This change in the center of mass will cause |
01:49 | <@macdjord> | the table to suddenly tilt much more sharply. However, the liftoff of the middle buckets decouples the side swing from the tilt angle; no longer must the table swing further sideways the more steeply it tilts to keep those middle ropes taut. So the table will also suddenly reduce how far off center it has swung. |
01:49 | <@macdjord> | As the weight of the heavy bucket further continues to increase, the angle of tilt of the table will asymptotically approach vertical. (I am, of course, assuming infinite friction; a bucket can be lifted by its rope, but otherwise will never slide, fall off, or spill, no matter what the angle.) |
01:51 | | macdjord is now known as macdjord|walk |
03:11 | | macdjord|walk is now known as macdjord|fude |
03:18 | | macdjord|fude is now known as macdjord |
03:21 | | McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [Ping timeout: 121 seconds] |
03:23 | | McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code |
03:23 | | mode/#code [+ao McMartin McMartin] by ChanServ |
04:15 | | celticminstrel [celticminst@Nightstar-jocbi5.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.] |
04:29 | | Vornicus [Vorn@Nightstar-sjaki9.res.rr.com] has joined #code |
04:29 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
05:17 | | Derakon is now known as Derakon[AFK] |
05:48 | | ErikMesoy1 [Bruker@Nightstar-dnouap.customer.cdi.no] has joined #code |
05:48 | | ErikMesoy [Bruker@Nightstar-dnouap.customer.cdi.no] has quit [Connection closed] |
05:50 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Ping timeout: 121 seconds] |
05:53 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
05:53 | | mode/#code [+o Alek] by ChanServ |
06:28 | | Kindamoody[zZz] is now known as Kindamoody |
06:33 | <~Vornicus> | aaaarg it's because the description of how generic for is used is wrong. what the hell |
06:33 | <&McMartin> | ? |
06:33 | <~Vornicus> | or at the very least so unclear as to be wrong |
06:33 | <~Vornicus> | Trying to write an iterator in lua http://www.lua.org/manual/5.1/manual.html#2.4.5 |
06:34 | <&McMartin> | Aha |
06:34 | <&McMartin> | Sadface |
06:36 | <~Vornicus> | ...and I don't even know where exactly it's failing |
06:36 | <~Vornicus> | Printing just before it returns shows that the variables are correct |
06:38 | <~Vornicus> | what the hell |
06:40 | <&McMartin> | https://ppltoast.wordpress.com/2018/05/11/a-small-look-into-the-gamecubes-copy-filter/ |
06:41 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
06:49 | | Kindamoody is now known as Kindamoody|afk |
07:05 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Connection closed] |
07:09 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
07:09 | | mode/#code [+o Alek] by ChanServ |
07:11 | | Vornicus [Vorn@Nightstar-sjaki9.res.rr.com] has quit [Ping timeout: 121 seconds] |
07:13 | | Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code |
07:18 | | Vornicus [Vorn@Nightstar-sjaki9.res.rr.com] has joined #code |
07:18 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
07:23 | | Vornicus [Vorn@Nightstar-sjaki9.res.rr.com] has quit [Ping timeout: 121 seconds] |
08:17 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Ping timeout: 121 seconds] |
08:20 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
08:20 | | mode/#code [+o Alek] by ChanServ |
08:49 | | ErikMesoy1 is now known as ErikMesoy |
08:49 | | mode/#code [+o ErikMesoy] by ChanServ |
09:23 | | macdjord [macdjord@Nightstar-grpbnp.mc.videotron.ca] has quit [[NS] Quit: Pie Jesu Domine (*thunk*), Donna Eis Requiem (*thunk*).] |
09:26 | | macdjord [macdjord@Nightstar-grpbnp.mc.videotron.ca] has joined #code |
09:26 | | mode/#code [+o macdjord] by ChanServ |
09:32 | | Degi [Degi@Nightstar-8maogd.dyn.telefonica.de] has joined #code |
10:23 | | Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code |
10:51 | | ErikMesoy1 [Bruker@Nightstar-hq72t5.customer.cdi.no] has joined #code |
10:52 | | ErikMesoy [Bruker@Nightstar-dnouap.customer.cdi.no] has quit [Ping timeout: 121 seconds] |
11:16 | | Vornicus [Vorn@Nightstar-sjaki9.res.rr.com] has joined #code |
11:16 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
11:27 | | macdjord [macdjord@Nightstar-grpbnp.mc.videotron.ca] has quit [[NS] Quit: Pie Jesu Domine (*thunk*), Donna Eis Requiem (*thunk*).] |
11:32 | | macdjord [macdjord@Nightstar-grpbnp.mc.videotron.ca] has joined #code |
11:32 | | mode/#code [+o macdjord] by ChanServ |
12:27 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Connection closed] |
12:31 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
12:31 | | mode/#code [+o Alek] by ChanServ |
12:35 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Connection closed] |
12:39 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
12:39 | | mode/#code [+o Alek] by ChanServ |
12:42 | <&ToxicFrog> | Vornicus: paste code? |
12:42 | <&ToxicFrog> | I can confirm that the description of generic for given in the manual is correct. |
13:23 | < Vorntastic> | I figured out what was happening eventually. It was going one step too far before failing out with null |
13:24 | < Vorntastic> | Nil gosh |
13:25 | <&ToxicFrog> | Aah |
13:25 | <&ToxicFrog> | (also, if you're implementing iterators, coroutine.wrap may be of use for some of them) |
13:27 | < Vorntastic> | What I really fucking want is pythons iterator power which is overwhelming by comparison |
13:39 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Connection closed] |
13:40 | <&ToxicFrog> | ...how so? |
13:41 | <&ToxicFrog> | Python iterators are just a bit of syntactic sugar for what coroutine.wrap does, and are equivalent in power |
13:41 | <&ToxicFrog> | (which is to say: they are a very restricted subset of what you can do with lua coroutines, but with syntax optimizations to make it easier to write iterators with them) |
13:43 | | Kindamoody|afk [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Ping timeout: 121 seconds] |
13:44 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
13:44 | | mode/#code [+o Alek] by ChanServ |
13:46 | < Vorntastic> | Honestly the big one is everything already has iter in Python. I don't get map or filter or ... Anything like that natively in Lua and so things I'd do in one line in Python are now like ten lines across half a dozen functions. |
13:49 | < Vorntastic> | Well. Not that extreme. But it's always a lot more work to get anything done and the result is never something I'm at all proud of |
13:49 | | * ToxicFrog nods |
13:50 | <&ToxicFrog> | Lua is pretty minimalist and doesn't come with nearly the degree of batteries Python does. You can implement most of this stuff but the set of builtins is, by design, pretty sparse. |
13:51 | <&ToxicFrog> | There's a reason I wrote this and use it in most of my projects: https://github.com/toxicfrog/luautil |
13:53 | <&ToxicFrog> | If you can target 5.2 it adds the __pairs metamethod; if not you can wrap pairs() in 5.1 to support __pairs and/or __next |
13:55 | < Vorntastic> | I'm aiming at whatever luajit it is that love2d uses |
13:56 | <@TheWatcher> | 5.1 I believe |
13:57 | <&ToxicFrog> | Aah, ok. luajit is 5.1, but with features from 5.2/3 that don't break existing 5.1 code backported. |
13:57 | <&ToxicFrog> | (there's a compile-time option to enable some backported features that do break existing code, but I don't know if love2d sets it) |
13:58 | <&ToxicFrog> | http://luajit.org/extensions.html -- look for "extensions from lua 5.2" |
13:58 | <&ToxicFrog> | if table.pack exists and math.mod doesn't, it was built with LUAJIT_ENABLE_LUA52COMPAT |
13:58 | < Vorntastic> | It is super duper frustrating to have to, every time, build a fresh table to send to a different function because you can't create an iterator and expect it to get all the way to the place you'd use it |
13:59 | < Vorntastic> | Oh thank fuck bitops |
14:01 | <&ToxicFrog> | Why can't you? Just calling APIs that expect tables rather than iterators? |
14:20 | < Vorntastic> | Partially. But also partially I can't write my own that can handle either without way too much work |
14:25 | < Vorntastic> | 90+% of "this doesn't run" for me is I fucked up a loop" |
14:26 | <&ToxicFrog> | Comedy option: set __call == pairs on every table |
14:27 | <&ToxicFrog> | (apropos of this, Python's default list/map iteration behaviour pisses me off every time) |
14:40 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Connection closed] |
14:44 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
14:44 | | mode/#code [+o Alek] by ChanServ |
14:57 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Connection closed] |
15:01 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
15:01 | | mode/#code [+o Alek] by ChanServ |
16:32 | <~Vornicus> | fucking finally. https://imgur.com/a/jeMkA8r |
16:32 | <&ToxicFrog> | that's a lot of triangles |
16:42 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Ping timeout: 121 seconds] |
16:45 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
16:45 | | mode/#code [+o Alek] by ChanServ |
16:49 | <~Vornicus> | And that's not even all the triangles. There's all sorts of hidden ones - I use the ones that I calculated previously for recursive descent to find the containing triangle |
16:49 | | Kindamoody|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code |
16:50 | | mode/#code [+o Kindamoody|autojoin] by ChanServ |
16:50 | | Kindamoody|autojoin is now known as Kindamoody |
16:53 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Connection closed] |
16:58 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
16:58 | | mode/#code [+o Alek] by ChanServ |
17:12 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Connection closed] |
17:13 | | Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity] |
17:15 | <@abudhabi> | How practical is VNC on a mobile device? I mean, using a tablet or whatnot to connect to a proper machine. |
17:16 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
17:16 | | mode/#code [+o Alek] by ChanServ |
17:21 | <~Vornicus> | and now, to get the voronoi diagram |
18:03 | | macdjord is now known as macdjord|slep |
18:11 | <~Vornicus> | this is a little bit annoying; the diagram contains several infinite polygons but I need to chop them off at the boundary of the zone. |
18:14 | <~Vornicus> | ...I suppose I could cheat. I need to tag points *anyway*, so I can probably do this by generating the triangulation including the reflections of the original point set across the various edges |
18:15 | <~Vornicus> | and then only generating the polygons that are from the original point set. |
18:37 | <~Vornicus> | nh, dislike |
18:44 | <@gnolam> | Gargh. |
18:45 | <@gnolam> | I like this hardware manufacturer's APIs. They are the best in the business. |
18:46 | <@gnolam> | But why the hell is this API so incredibly inconsistent in regards to strings? |
18:46 | <@gnolam> | Sometimes they're good old char *. Sometimes they're unsigned char *. |
18:46 | <&[R]> | Does that matter? |
18:46 | <@gnolam> | This inconsistency is even between /getters and setters/. |
18:47 | <&[R]> | At least they're all C-strings, and not a mix of those and pascal strings. |
18:47 | <@gnolam> | So the getter might be char *, and the setter might be unsigned char *. |
18:50 | <~Vornicus> | also why is this hull not convex arg |
20:53 | <~Vornicus> | also holy shit my triangulator is a dog. |
21:22 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Ping timeout: 121 seconds] |
21:25 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
21:25 | | mode/#code [+o Alek] by ChanServ |
22:20 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code |
22:20 | | mode/#code [+o Reiv] by ChanServ |
22:33 | | Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
23:00 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Ping timeout: 121 seconds] |
23:03 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
23:03 | | mode/#code [+o Alek] by ChanServ |
23:11 | | Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds] |
23:33 | | Jessikat [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving] |
23:35 | | ErikMesoy1 is now known as ErikMesoy |
23:35 | | mode/#code [+o ErikMesoy] by ChanServ |
23:46 | | Omega [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code |
23:46 | | Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [NickServ (RECOVER command used by Omega)] |
23:46 | | Omega is now known as Alek |
23:46 | | mode/#code [+o Alek] by ChanServ |
--- Log closed Fri Jun 29 00:00:26 2018 |