code logs -> 2017 -> Thu, 13 Jul 2017< code.20170712.log - code.20170714.log >
--- Log opened Thu Jul 13 00:00:20 2017
00:19
<&ToxicFrog>
Not declared vs. not defined
00:22
<&McMartin>
Yyyyup
00:22 * McMartin got burned last night by some kind of crazy system-specific "weak linking" thing
00:22
<&McMartin>
Where the system headers declared it but you had to define it yourself to control the behavior of fopen() et al
00:23 * McMartin solved that by noping the fuck out of it.
00:27
<~Vornicus>
what the silliness is that
00:28
<&McMartin>
Part of the OS support in RISC OS involves routines that translate pathnames from the RISC OS crazypants format to something that looks enough like a UNIX path that it can interoperate with URLs or not break C programs written by anyone else in the universe
00:28
<&McMartin>
But sometimes you want to turn that off because, say, you are reading a pathname in from the OS and don't want to mangle it because it's already fine
00:28
<&McMartin>
There's a flag variable you can set but apparently it doesn't exist by default.
00:28
<&McMartin>
I decided to instead just mangle it twice.
00:30
<&McMartin>
(By calling __unixify() on it and then passing the result to fopen())
00:31
<&McMartin>
I do know how that works in C, but I have no idea how they implemented the library to see if *the binary they were linked into* had this variable defined
00:33
<&McMartin>
Having asked that and done some quick googling, the answer appears to be "ELF has some handwavy basic support for marking symbols as weak, but interpreting that is up to the OS"
00:49
< Jessikat>
<McMartin> Where the system headers declared it but you had to define it yourself to control the behavior of fopen() et al <--- we had some code like that in one of our game libraries. I burned it to ash and salted the ground it stood upon
00:51 celticminstrel [celticminst@Nightstar-cn2je9.dsl.bell.ca] has joined #code
00:51 mode/#code [+o celticminstrel] by ChanServ
00:52
<&ToxicFrog>
I've run into that in some of the arduino libraries.
00:53
<&ToxicFrog>
It's used for "we define a default empty implementation of this function but if you want to e.g. hook into serial initialization define it yourself and your version will get called"
01:05
<&McMartin>
Yeah, I can see this for functions
01:05
<&McMartin>
This was, um
01:05
<&McMartin>
this was an int
01:06
<&ToxicFrog>
my word
01:07
<&McMartin>
I don't actually know how you signal "this integer was never defined"
01:07
<&McMartin>
With weak-linked functions that aren't implemented, the ELF loader makes it look like the symbol exists, but interpreting it as a void * results in NULL
01:08
<&McMartin>
Maybe you take its address?
01:08
<&McMartin>
(Both of these are the "no default" condition, unlike your Arduino example)
01:48 Derakon[AFK] is now known as Derakon
01:56 Turaiel[Offline] is now known as Turaiel
02:05 Jessikat [Jessica@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Connection closed]
03:55 domtron [domtron@Nightstar-qm3bf3.sub-174-196-165.myvzw.com] has quit [Connection closed]
03:56 domtron [domtron@Nightstar-qm3bf3.sub-174-196-165.myvzw.com] has joined #code
04:07 domtron [domtron@Nightstar-qm3bf3.sub-174-196-165.myvzw.com] has quit [Connection closed]
04:10 domtron [domtron@Nightstar-qm3bf3.sub-174-196-165.myvzw.com] has joined #code
04:19 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
05:03 Turaiel is now known as Turaiel[Offline]
05:04 Derakon is now known as Derakon[AFK]
06:14 domtron [domtron@Nightstar-qm3bf3.sub-174-196-165.myvzw.com] has quit [Ping timeout: 121 seconds]
06:19 celticminstrel [celticminst@Nightstar-cn2je9.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:28 domtron [domtron@Nightstar-qm3bf3.sub-174-196-165.myvzw.com] has joined #code
07:18 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
07:18 mode/#code [+qo Vornicus Vornicus] by ChanServ
07:24 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
07:39 Jessikat [Jessikat@Nightstar-7d1f86.dab.02.net] has joined #code
07:53 ricer [ricer@Nightstar-52ic2g.wechall.net] has joined #code
08:36 Jessikat` [Jessikat@Nightstar-j00nqq.dab.02.net] has joined #code
08:39 Jessikat [Jessikat@Nightstar-7d1f86.dab.02.net] has quit [Ping timeout: 121 seconds]
09:34 domtron [domtron@Nightstar-qm3bf3.sub-174-196-165.myvzw.com] has quit [Ping timeout: 121 seconds]
09:46 domtron [domtron@Nightstar-qm3bf3.sub-174-196-165.myvzw.com] has joined #code
10:19 Jessikat` is now known as Jessikat
10:33 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
10:51 You're now known as TheWatcher[d00m]
11:33 You're now known as TheWatcher
11:53 mac [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has joined #code
11:54 mode/#code [+o mac] by ChanServ
11:56 macdjord [macdjord@Nightstar-a1fj2k.mc.videotron.ca] has quit [Operation timed out]
12:03 gnolam [lenin@Nightstar-ian7gg.cust.bahnhof.se] has quit [[NS] Quit: Gone]
12:42 celticminstrel [celticminst@Nightstar-cn2je9.dsl.bell.ca] has joined #code
12:42 mode/#code [+o celticminstrel] by ChanServ
13:04 domtron [domtron@Nightstar-qm3bf3.sub-174-196-165.myvzw.com] has quit [Connection closed]
13:05 domtron [domtron@Nightstar-qm3bf3.sub-174-196-165.myvzw.com] has joined #code
13:05 domtron [domtron@Nightstar-qm3bf3.sub-174-196-165.myvzw.com] has quit [Connection closed]
13:11 Kindamoody[zZz] is now known as Kindamoody
13:37 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
13:37 mode/#code [+qo Vornicus Vornicus] by ChanServ
13:47 celticminstrel [celticminst@Nightstar-cn2je9.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
14:28 gnolam [quassel@Nightstar-f22.ckv.119.62.IP] has joined #code
14:28 mode/#code [+o gnolam] by ChanServ
15:06 Jessikat` [Jessikat@Nightstar-68nkpt.dab.02.net] has joined #code
15:08 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has joined #code
15:09 Jessikat [Jessikat@Nightstar-j00nqq.dab.02.net] has quit [Ping timeout: 121 seconds]
15:14 Jessikat` is now known as Jessikat
15:23 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has quit [Connection closed]
15:25 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has joined #code
15:32 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has quit [Connection closed]
15:36 gk_1wm_su [deep-book@Nightstar-iip.7ap.242.94.IP] has joined #code
15:37 gk_1wm_su [deep-book@Nightstar-iip.7ap.242.94.IP] has quit [RecvQ exceeded]
15:47 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has joined #code
15:49 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has quit [Connection closed]
15:52 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has joined #code
16:38 gnolam [quassel@Nightstar-f22.ckv.119.62.IP] has quit [[NS] Quit: Arriving]
17:17 Kindamoody is now known as Kindamoody|afk
19:03 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Connection closed]
19:09 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
19:17 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has quit [Connection closed]
19:17 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has joined #code
19:20 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has quit [Connection closed]
19:21 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has joined #code
19:40 gnolam [quassel@Nightstar-lv0k1q.cust-ip.bdtv.se] has joined #code
19:40 mode/#code [+o gnolam] by ChanServ
20:00 Kindamoody|afk is now known as Kindamoody
20:57 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has quit [Connection closed]
21:01 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has joined #code
21:02
<&[R]>
Holy fuck Windows
21:02
<&[R]>
The only way you could have an even more useless "group by date" feature is if you did it by seconds.
21:03
<&[R]>
Treating 2017-06-27 19:04 and 2017-06-27 19:05 as different "dates" is annoying
21:28 gnolam_ [quassel@Nightstar-lv0k1q.cust-ip.bdtv.se] has joined #code
21:31 gnolam [quassel@Nightstar-lv0k1q.cust-ip.bdtv.se] has quit [Ping timeout: 121 seconds]
21:36 Jessikat` [Jessikat@Nightstar-m5nqjr.dab.02.net] has joined #code
21:39 Jessikat [Jessikat@Nightstar-68nkpt.dab.02.net] has quit [Ping timeout: 121 seconds]
21:44 gnolam_ is now known as gnolam
21:45 mode/#code [+o gnolam] by ChanServ
21:55 Turaiel[Offline] is now known as Turaiel
22:00 PinkFreud is now known as HippyFreud
22:00 HippyFreud is now known as PinkFreud
22:53 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has quit [Connection closed]
22:53 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has joined #code
22:54 domtron [domtron@Nightstar-rcjs8g.sub-174-196-165.myvzw.com] has quit [[NS] Quit: Goodbye.]
23:18 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
23:24 gnolam [quassel@Nightstar-lv0k1q.cust-ip.bdtv.se] has quit [[NS] Quit: Z?]
--- Log closed Fri Jul 14 00:00:22 2017
code logs -> 2017 -> Thu, 13 Jul 2017< code.20170712.log - code.20170714.log >

[ Latest log file ]