code logs -> 2024 -> Thu, 18 Apr 2024< code.20240417.log - code.20240419.log >
--- Log opened Thu Apr 18 00:00:39 2024
00:10 Vornicus [Vorn@Nightstar-tai.093.243.23.IP] has quit [Connection closed]
00:19
<&[R]>
Love getting rocked by a bug in a system level library
00:19
<&[R]>
recvp() returns a pointer to the next message in the buffer, and removes that item from the buffer
00:20
<&[R]>
Great, love it
00:20
<&[R]>
What does it return when the buffer is empty though?
00:20
<&[R]>
A non-NULL pointer of course
00:20
<&[R]>
Where does that pointer point to?
00:21
<&[R]>
Segfault-ville
00:21
<&[R]>
Is there a function to check the queue size? Nope.
00:23 [R] [rms@Nightstar-d7h8ki.org] has quit [The TLS connection was non-properly terminated.]
00:24 [R] [rms@Nightstar-d7h8ki.org] has joined #code
00:24 mode/#code [+ao [R] [R]] by ChanServ
00:24
<&[R]>
https://termbin.com/ahqnu
00:24
<&[R]>
Not sure how much got through
01:12 Degi_ [Degi@Nightstar-iev4m5.pool.telefonica.de] has joined #code
01:13 Degi [Degi@Nightstar-l3abn7.pool.telefonica.de] has quit [Ping timeout: 121 seconds]
01:13 Degi_ is now known as Degi
01:24
<@celticminstrel>
Wonderful!
01:25
<&[R]>
Yeah, loved trying to debug that
01:26
<&[R]>
Started diving into the library, discovered that the bulk-API is actually the main API and the single call stuff is just a wrapper
01:26
<&[R]>
Wasn't happy about that
01:27
<&[R]>
(bulk API being a way to just feed it an array of commands)
01:31
<@celticminstrel>
…is that a normal way to write an API?
01:31
<@celticminstrel>
Wouldn't "bulk" normally be based on "single" if anything?
01:31
<&[R]>
Not at this level
01:31
<@celticminstrel>
Or they're totally separate and neither is a wrapper of the other.
01:32
<&[R]>
If you were writing an RPC API that had a bulk mode, this would be sane
01:32
<@celticminstrel>
Hmm, okay.
01:32
<&[R]>
But this is a statically linked coroutine library
01:32
<&[R]>
Except this is a subsection of said coroutine library
01:33
<&[R]>
That being said, it's based on Alef, and how that influenced the plan 9 standard library, which this emulates to the point where the documentation literally points to the plan 9 man pages
01:34
<&[R]>
(libtask for the curious)
01:53 McMartin [mcmartin@Nightstar-n6bm7f.sntcca.sbcglobal.net] has joined #code
01:53 mode/#code [+ao McMartin McMartin] by ChanServ
04:50
<&[R]>
I learned a new makefile build rule trick today!
04:50
<&[R]>
build/%.o: src/%.c
04:50
<&[R]>
Puts the .o in build/ when the .c is in src/
07:01 Kindamoody [Kindamoody@Nightstar-pqh9gl.tbcn.telia.com] has quit [Client exited]
07:03 Kimo|autojoin [Kindamoody@Nightstar-pqh9gl.tbcn.telia.com] has joined #code
07:03 mode/#code [+o Kimo|autojoin] by ChanServ
07:05 Kimo|autojoin is now known as Kindamoody
10:57 Reiver [quassel@Nightstar-ksqup0.co.uk] has quit [[NS] Quit: Reblooting.]
14:40 Vornicus [Vorn@Nightstar-tai.093.243.23.IP] has joined #code
14:40 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:52 Vornicus [Vorn@Nightstar-tai.093.243.23.IP] has quit [Connection closed]
16:55 Emmy [Emmy@Nightstar-qo29c7.fixed.kpn.net] has joined #code
19:26 Reiver [quassel@Nightstar-ksqup0.co.uk] has joined #code
19:26 mode/#code [+ao Reiver Reiver] by ChanServ
20:40 Vornicus [Vorn@Nightstar-tai.093.243.23.IP] has joined #code
20:40 mode/#code [+qo Vornicus Vornicus] by ChanServ
--- Log closed Thu Apr 18 21:56:31 2024
--- Log opened Thu Apr 18 21:56:42 2024
21:56 TheWatcher [chris@GlobalOperator.Nightstar.Net] has joined #code
21:56 Irssi: #code: Total of 28 nicks [16 ops, 0 halfops, 0 voices, 12 normal]
21:56 mode/#code [+o TheWatcher] by ChanServ
21:56 Irssi: Join to #code was synced in 18 secs
22:47 Emmy [Emmy@Nightstar-qo29c7.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
--- Log closed Fri Apr 19 00:00:35 2024
code logs -> 2024 -> Thu, 18 Apr 2024< code.20240417.log - code.20240419.log >

[ Latest log file ]