code logs -> 2020 -> Fri, 22 May 2020< code.20200521.log - code.20200523.log >
--- Log opened Fri May 22 00:00:23 2020
00:03 Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
00:03 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
00:57 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
01:04 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
01:38 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
01:39 Kindamoody is now known as Kindamoody|zZz]
01:40 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
02:56 Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
02:57 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
03:10 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
03:10 mode/#code [+o mac] by ChanServ
03:13 macdjord|slep [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
03:27
<&McMartin>
ffs
03:28
<&McMartin>
OK, that's why Golang doesn't use multiple returns.
03:28
<&McMartin>
You have to do `for ok, val := obj.Next(); ok; ok, val = obj.Next()` to actually make it iterate right.
03:29
<&McMartin>
This is dumb
03:29
<&McMartin>
I'm still doing it. I'm feeling stubborn.
04:09 Degi [Degi@Nightstar-j638eh.dyn.telefonica.de] has quit [Operation timed out]
04:12 Degi [Degi@Nightstar-ree4q0.dyn.telefonica.de] has joined #code
04:17
<&McMartin>
https://github.com/microsoft/gw-basic
04:23
<&[R]>
I guess Bill Gates is going to starve to death now
04:24
<&McMartin>
Eh, Apple IIgs has been dead for ages
04:25 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
04:26 Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
04:46 Attilla [uid13723@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
05:24 celticminstrel [celticminst@Nightstar-nuu42v.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
05:30 Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
05:31 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
06:10 Vorntastic [uid293981@Nightstar-ks9.9ff.184.192.IP] has joined #code
06:10 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
06:46
<&McMartin>
Oof. Lessons learned elsenet
06:46
<&McMartin>
When using a mutex to have two threads synchronize their memory accesses
06:46
<&McMartin>
For best results, these two threads should be locking and unlocking the same mutex.
06:46
<~Vorntastic>
Uh oh
06:46
<~Vorntastic>
Hahaha
06:46
<~Vorntastic>
Yeah, uh
06:46
<~Vorntastic>
That... Helps
06:46
<&McMartin>
That got an "Oh, thank fuck" when that popped up
06:47
<&McMartin>
Since it was also only producing a race on Windows!
07:25 Kindamoody|zZz] is now known as Kindamoody
07:53
< catalyst>
I suppose that's just a tex
07:53
< catalyst>
if you're missing the mu
07:57
< catalyst>
does this syntax feel alright? assert_float_eq!(a, b, abs <= Complex { re: 0.5, im: 1.0 });
07:57
< catalyst>
assert_float_eq!(a, b, abs_all <= 1.0);
07:57
< catalyst>
where _all means 'use a uniform threshold across all fields'
08:00
<~Vorntastic>
What language is this
08:01
<~Vorntastic>
... specifically what language is this that lets you use <= like that
08:01
< catalyst>
Rust
08:01
< catalyst>
that's a macro
08:02
< catalyst>
think Lisp macro with more syntax constraints and less eval
08:02
< catalyst>
rather than CPP macro
08:02
<~Vorntastic>
I see. Okay that feels ... Vaguely sane
08:02
< catalyst>
I just think it looks better than : or = on this circumstance
08:03
< catalyst>
I wanted to be able to specify both a per-field epsilon and also a uniform one for all fields
08:03
<~Vorntastic>
I don't know how much curry power you have in rust but it feels like I'd want to be able to have a comparator with preset constraints
08:04
< catalyst>
the per-field is more general since it applies to tuples and such
08:04
< catalyst>
oh huh
08:04
< catalyst>
that's an interesting idea
08:04
< catalyst>
I mean, this is expressed via traits
08:05
< catalyst>
so your could just call the methods directly and put them in a lambda and that would work
08:05
< catalyst>
you could*
08:05
<~Vorntastic>
With the understanding that I don't know anything at all about rust
08:06
< catalyst>
let cmp = |x| float_eq!(a, b, ulps_all <= x);
08:07
<~Vorntastic>
Neat okay victory
08:07
< catalyst>
oh, maybe I should have written that differently
08:07
< catalyst>
let cmp4 = |a, b| float_eq!(a, b, ulps_all <= 4);
08:08
< catalyst>
the macros can actually have multiple chained tests
08:08
<&McMartin>
Oh hey. It turns out that when writing code on the x86_64 instead of the 6502, 255 and -1 are different numbers
08:09
< catalyst>
float_eq!(a, b, abs_all <= 0.00001, ulps_all <= 4);
08:09
< catalyst>
hm! maybe that last comma could be an ||
08:09
<~Vorntastic>
Oh hey
08:09
< catalyst>
since that's more expressive
08:10
< catalyst>
and it *does* shortcut
08:11
< catalyst>
McMartin: they do tend to be
08:27 mac is now known as macdjord|slep
09:26 Attilla [uid13723@Nightstar-2dc.p8m.184.192.IP] has joined #code
09:27 mode/#code [+o Attilla] by ChanServ
10:57 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
11:44 catalyst_ [catalyst@Nightstar-8iecqq.dab.02.net] has joined #code
11:46 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Ping timeout: 121 seconds]
13:29 celticminstrel [celticminst@Nightstar-nuu42v.dsl.bell.ca] has joined #code
13:29 mode/#code [+o celticminstrel] by ChanServ
13:56 catalyst [catalyst@Nightstar-nt1moe.dab.02.net] has joined #code
13:59 catalyst_ [catalyst@Nightstar-8iecqq.dab.02.net] has quit [Ping timeout: 121 seconds]
15:58 Attilla [uid13723@Nightstar-2dc.p8m.184.192.IP] has quit [[NS] Quit: Connection closed for inactivity]
16:24 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
16:24 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
16:24 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
16:41 catalyst [catalyst@Nightstar-nt1moe.dab.02.net] has quit [[NS] Quit: -a- Connection Timed Out]
16:41 catalyst [catalyst@Nightstar-nt1moe.dab.02.net] has joined #code
17:29 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
17:31 Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
17:49 Vorntastic [uid293981@Nightstar-ks9.9ff.184.192.IP] has quit [[NS] Quit: Connection closed for inactivity]
18:38 Kindamoody is now known as Kindamoody|afk
20:04 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
20:04 mode/#code [+qo Vornicus Vornicus] by ChanServ
20:28 catalyst [catalyst@Nightstar-nt1moe.dab.02.net] has quit [Ping timeout: 121 seconds]
21:27 catalyst_ [catalyst@Nightstar-8hn676.dab.02.net] has joined #code
21:34 McMartin [mcmartin@Nightstar-c25omi.ca.comcast.net] has quit [Connection closed]
21:34 McMartin [mcmartin@Nightstar-c25omi.ca.comcast.net] has joined #code
21:35 mode/#code [+ao McMartin McMartin] by ChanServ
22:04 Kindamoody|afk is now known as Kindamoody
23:57 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
--- Log closed Sat May 23 00:00:24 2020
code logs -> 2020 -> Fri, 22 May 2020< code.20200521.log - code.20200523.log >

[ Latest log file ]