--- Log opened Sat Nov 28 00:00:40 2020 |
00:16 | | Datawalke [NSkiwiirc@Nightstar-as7dq0.pa.comcast.net] has joined #code |
00:17 | | Datawalke [NSkiwiirc@Nightstar-as7dq0.pa.comcast.net] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
00:23 | | Kindamoody is now known as Kindamoody[zZz] |
00:43 | | macdjord|slep [macdjord@Nightstar-re5.7if.45.45.IP] has joined #code |
00:43 | | tripflag [ed@Nightstar-7pe1df.clients.your-server.de] has joined #code |
00:43 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code |
00:43 | | Yossarian [soryu@Nightstar-d7h8ki.org] has joined #code |
00:43 | | Reiver [quassel@Nightstar-ksqup0.co.uk] has joined #code |
00:43 | | gnolam [lenin@Nightstar-ik80lk.priv.bahnhof.se] has joined #code |
00:43 | | iospace [quassel@Nightstar-50v6q2.members.linode.com] has joined #code |
00:43 | | McMartin [mcmartin@Nightstar-c25omi.ca.comcast.net] has joined #code |
00:43 | | Pink [uid208117@Nightstar-h2b233.irccloud.com] has joined #code |
00:43 | | jeroud [sid10043@Nightstar-h2b233.irccloud.com] has joined #code |
00:43 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
00:43 | | ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code |
00:43 | | sshine [simon@Nightstar-3bh0ea.eta.solutions] has joined #code |
00:43 | | Mahal [sid171286@Nightstar-0bi4dv.irccloud.com] has joined #code |
00:43 | | Kizor [moryok@Nightstar-e0a4sm.utu.fi] has joined #code |
00:43 | | jerith [jerith@Nightstar-ip7ar2.slipgate.net] has joined #code |
00:43 | | crystalclaw [crystalclaw@Nightstar-12q9ui.xyz] has joined #code |
00:43 | | [R] [rstamer@genoce.org] has joined #code |
00:43 | | VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code |
00:43 | | ServerMode/#code [+oqoaoooaoaoaooaooao macdjord|slep Vornicus Vornicus Reiver Reiver gnolam iospace McMartin McMartin jeroud jeroud ToxicFrog ToxicFrog sshine jerith jerith crystalclaw [R] [R]] by *.Nightstar.Net |
00:44 | | Pink is now known as NSGuest13138 |
00:48 | | * McMartin makes cranky grumble noises, is obligated to do some Perl hacking. |
00:50 | <~Vornicus> | well justified |
00:50 | <&McMartin> | I can't even blame Zombie Steve |
00:50 | <&McMartin> | This is the fault of POSIX symlinks |
00:52 | <&McMartin> | (Trying to get UQM 0.8 rc1, as built on my macOS 10.15 machine, to run on my macOS 11.1 machine.) |
00:52 | <~Vornicus> | they finally decided enough 10? |
00:53 | <&McMartin> | Yup, Big Sur is macOS 11, and apparently part of the delay in the release post-Catalina was enough to mean there was also never a publically released 11.0 |
00:54 | <&McMartin> | The introduction of Apple Silicon (which I am *not* trying to get working here) is as good an excuse as any to remember what number comes after 10 |
00:54 | <&McMartin> | And since they spent twenty years having a big mad at people calling it Oh Ess Ecks |
00:54 | <&McMartin> | Now they have an excuse to insist on "macOS" |
00:54 | <&McMartin> | We should call it Oh Ess Ecks Eye to just to spite them. |
00:55 | <~Vornicus> | yes |
01:04 | | catalyst_ [catalyst@Nightstar-tsem1k.dab.02.net] has joined #code |
01:05 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
01:05 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
01:08 | | catalyst_ [catalyst@Nightstar-tsem1k.dab.02.net] has quit [Ping timeout: 121 seconds] |
01:30 | <&ToxicFrog> | It's DEFMACRO TIME |
01:46 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed] |
01:48 | | Degi [Degi@Nightstar-ceb5pf.pool.telefonica.de] has quit [Ping timeout: 121 seconds] |
01:54 | | Degi [Degi@Nightstar-ers83v.pool.telefonica.de] has joined #code |
02:21 | | celticminstrel [celticminst@Nightstar-5pqf1t.dsl.bell.ca] has joined #code |
02:21 | | mode/#code [+o celticminstrel] by ChanServ |
03:27 | | NSGuest13138 [uid208117@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity] |
04:03 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [The TLS connection was non-properly terminated.] |
04:51 | | VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed] |
04:51 | | VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code |
04:51 | | mode/#code [+ao VirusJTG VirusJTG] by ChanServ |
05:31 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code |
05:31 | | mode/#code [+qo Vorntastic Vorntastic] by ChanServ |
06:18 | | celticminstrel [celticminst@Nightstar-5pqf1t.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
07:47 | | Kindamoody[zZz] is now known as Kindamoody |
08:20 | | FLHerne [flh@Nightstar-6tv.748.10.86.IP] has joined #code |
08:28 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
08:54 | | ErikMesoy [Bruker@Nightstar-hcpkod.bb.online.no] has quit [Connection closed] |
08:55 | | ErikMesoy [Bruker@Nightstar-hcpkod.bb.online.no] has joined #code |
10:03 | | FLHerne [flh@Nightstar-6tv.748.10.86.IP] has quit [Ping timeout: 121 seconds] |
11:24 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code |
11:28 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [[NS] Quit: -a- Connection Timed Out] |
11:28 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
12:27 | | Kindamoody is now known as Kindamoody|out |
13:21 | | Tamber [tamber@furryhelix.co.uk] has quit [Connection closed] |
13:21 | | Tamber_ [tamber@furryhelix.co.uk] has joined #code |
13:33 | | celticminstrel [celticminst@Nightstar-jls2aq.dsl.bell.ca] has joined #code |
13:33 | | mode/#code [+o celticminstrel] by ChanServ |
13:43 | | FLHerne [flh@Nightstar-6tv.748.10.86.IP] has joined #code |
13:55 | | Tamber_ is now known as Tamber |
13:55 | | mode/#code [+o Tamber] by ChanServ |
14:59 | <&jerith> | ========================================================= |
14:59 | <&jerith> | Ran 14 tests in 4.440 seconds, 14 successes, 0 failures |
15:00 | | FLHerne [flh@Nightstar-6tv.748.10.86.IP] has quit [Ping timeout: 121 seconds] |
15:02 | <@celticminstrel> | ? |
15:02 | <&jerith> | My lua solutions to adventofcode 2015. |
15:03 | <&jerith> | Down from "Ran 14 tests in 82.956 seconds, 14 successes, 0 failures" |
15:05 | <&jerith> | Most of the improvement was from getting rid of piles of string manipulation in hot loops. |
15:08 | <~Vorntastic> | Oh, yeah, strings in lua are generally a bad idea. It's very aggressive with interning |
15:12 | <&jerith> | In one case I switched from `tostring(x) .. "," .. tostring(y)` to `x + y*1000` for keys in a giant table. |
15:12 | <&ToxicFrog> | Yeah, that'll do it |
15:13 | <&ToxicFrog> | Using numbers as table keys is very fast, using strings means they get interned and then the string pointer is used as the key |
15:13 | <&ToxicFrog> | So it's very fast if you're re-using a key but creating the string in the first place is expensive |
15:13 | <&jerith> | In another, I switched hashing libraries (from `md5` to `luagcrypt`) and compared raw bytes instead of converting to hex. |
15:14 | <&ToxicFrog> | (successive string concatenation is also expensive compared to appending string fragments to a table and then calling string.join() at the end) |
15:14 | <&jerith> | ToxicFrog: I was *rebuilding* the same keys all over the place, which was adding over a minute to total runtime. |
15:15 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code |
15:15 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
15:15 | <&ToxicFrog> | Yep. |
15:18 | <&ToxicFrog> | (in circumstances like this I typically use a nested table keyed on [x][y] rather than composite keys, which is probably slower than x+y*1000 but faster than building string keys) |
15:19 | <&jerith> | If I'd skipped the string, I'd've probably gone with nested. |
15:22 | <&jerith> | But the output I need is "sum of all values in matrix" and rewriting that logic from "loop over `ipairs()` and add" to handle nested tables was more work than I wanted to put in. |
15:23 | <&ToxicFrog> | Fair |
15:50 | | catalyst_ [catalyst@Nightstar-gv0vhm.dab.02.net] has joined #code |
15:52 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
15:59 | <&jerith> | I'm hating lua less than I expected to, which is nice. |
16:03 | <&[R]> | How's that counting from 1 going? |
16:03 | <&jerith> | It'll never be my favourite language, but it's really quite pleasant to use given its niche. |
16:06 | <&jerith> | [R]: No problem at all, because all the tooling's designed around it. |
16:06 | <~Vornicus> | it's mixing that's the problem |
16:06 | <~Vornicus> | and ... okay I'll be honest I have no idea how they decided to use 1 when most of the languages you'll be embedding it in use 0 |
16:07 | <&jerith> | Probably because their niche is scripting stuff for non-programmers. |
16:07 | <&[R]> | Yeah... that aspect seems drunk |
16:08 | <~Vornicus> | (I use lua a lot lately. the things that annoy me most are global-default and "adjustment") |
16:09 | <&jerith> | Yeah, global-default is pretty bad. |
16:10 | <&jerith> | But I've installed luacheck and now emacs is full of angry underlines wherever I forget `local`. |
16:11 | <&jerith> | Aside from global-default, the thing that annoys me the most is the verbosity of function defs. |
16:22 | | Kindamoody|out is now known as Kindamoody |
17:09 | <&ToxicFrog> | How do you mean? |
17:09 | <&ToxicFrog> | And yeah, Lua is descended from Sol, a non-turning-complete language for data scientists; it inherited the 1-indexing from that. |
17:10 | <&ToxicFrog> | That said, IMO they should have switched to 0-indexing in Lua 4 or 5; those broke compatibility with everything anyways, after all. |
17:12 | <&ToxicFrog> | But yeah, function defs in Lua do not strike me as particularly verbose? |
17:14 | <&ToxicFrog> | `function` is only two characters longer than `(defn)` and doesn't need the shift key, after all~ |
17:23 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
18:21 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity] |
18:26 | | FLHerne [flh@Nightstar-6tv.748.10.86.IP] has joined #code |
18:48 | <@celticminstrel> | I'm more surprised that Lua's the only major language using 1, honestly. |
18:49 | <@celticminstrel> | I think Pascal does use 1 by default but who uses Pascal anymore? |
19:08 | <&[R]> | VB does both |
19:08 | <&[R]> | Because MS canm |
19:08 | <&[R]> | Because MS can't be sane |
19:17 | <&McMartin> | BASIC was always like that, all the way back to Dartmouth |
19:18 | <&McMartin> | It's secretly 0 indexed but pretends very hard that it is 1-indexed. |
19:18 | <&McMartin> | Pascal lets you define arrays indexed by arbitrary enums, including any continuous integer range you want, IIRC. |
19:48 | <&jerith> | ToxicFrog: "function", "end", and "return" (if necessary) are all long enough that I usually can't call something with an inline lambda in one line. |
19:50 | | catalys69 [catalyst@Nightstar-rvl3st.dab.02.net] has joined #code |
19:52 | | catalyst_ [catalyst@Nightstar-gv0vhm.dab.02.net] has quit [Ping timeout: 121 seconds] |
20:24 | <&ToxicFrog> | jerith: oh, yeah |
20:24 | <@celticminstrel> | Yeah, IIRC Pascal lets you set the starting index to anything, but doesn't it default to 1 if you don't specify a start? |
20:25 | <@celticminstrel> | To be fair, my knowledge of Pascal is derived exclusively from example code in the old Macintosh Toolbox reference. I'ev never actually coded in Pascal myself. So, I could be wrong. |
20:26 | <&ToxicFrog> | I actually ended up defining something like: |
20:26 | <&ToxicFrog> | function f(src) return assert(loadstring('return function(' .. src:gsub(' => ', ') return ') .. ' end'))() end |
20:26 | <&ToxicFrog> | So that for stuff that doesn't need to close over its surroundings I can do f'x,y => x*y' or the like |
20:26 | <@celticminstrel> | Pfft |
20:26 | <&ToxicFrog> | You can extend that to closures using the debug API but I've never bothered |
20:26 | <@celticminstrel> | Nice hack |
20:28 | <@celticminstrel> | f[[x,y => x*y]] to make it look extra unique. |
20:28 | <@celticminstrel> | (Also useful if you need quotes in the lambda body.) |
22:00 | | FLHerne [flh@Nightstar-6tv.748.10.86.IP] has quit [Ping timeout: 121 seconds] |
22:43 | | FLHerne [flh@Nightstar-6tv.748.10.86.IP] has joined #code |
22:51 | < ErikMesoy> | Memtest found nothing wrong, I have kept getting occasional OOM browser errors, but I have narrowed it down since then and it semingly always happens when I have a twitter infinite scroll page (e.g. an account feed, but not a tweet) open for a while. |
22:51 | < ErikMesoy> | I guess that'll teach me not to look a twitter. :-) |
23:18 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds] |
23:30 | | catalyst` [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
23:31 | | Kindamoody is now known as Kindamoody[zZz] |
23:32 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
--- Log closed Sun Nov 29 00:00:42 2020 |