code logs -> 2020 -> Wed, 02 Dec 2020< code.20201201.log - code.20201203.log >
--- Log opened Wed Dec 02 00:00:46 2020
00:05 catalyst [catalyst@Nightstar-hr17iu.dab.02.net] has quit [Ping timeout: 121 seconds]
00:08 catalyst [catalyst@Nightstar-hr17iu.dab.02.net] has joined #code
01:08 Kindamoody is now known as Kindamoody[zZz]
01:37 Degi_ [Degi@Nightstar-n9ugh0.pool.telefonica.de] has joined #code
01:40 Degi [Degi@Nightstar-hj4m3l.pool.telefonica.de] has quit [Operation timed out]
01:40 Degi_ is now known as Degi
01:46 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
01:50 catalyst_ [catalyst@Nightstar-q3udsl.dab.02.net] has joined #code
01:52 catalyst [catalyst@Nightstar-hr17iu.dab.02.net] has quit [Ping timeout: 121 seconds]
01:53 catalyst_ is now known as catalyst
05:17 celticminstrel [celticminst@Nightstar-jls2aq.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
05:17 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code
05:17 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
05:21
<&jerith>
AoC day 2 done.
05:22
<&jerith>
(My brain decided 06h30 was an entirely reasonable time to be awake (it is not) so I was around for the unlock.)
05:34
<&McMartin>
Heh.
05:34
<&McMartin>
My Rust parsers leave something to be desired
05:38
<&jerith>
I used `nom` for parsing back in 2018.
05:41
<&jerith>
I can't remember if that's before or after the update that cleaned up its internal use of macros.
05:42
<&jerith>
Either way, I always end up with a "parser tools" module of some kind full of conveniences. In the Rust/nom case, this involved a lot of little wrapper macros for common things.
05:43
<&jerith>
Also, I see there's a pending invite to you for access to my (private) adventofcode-2018 github repo if you want to see what I did there. :-)
05:45
<&McMartin>
I looked at it years ago and decided I didn't want to take a framework wholesale like that.
05:46
<&McMartin>
And yeah, this involved things like heavy use of split().collect() and then doing nonsense like chars() iteration to make sure I can count indices into a string.
05:46
<&McMartin>
I would probably have made more sense to turn strings into Vec<u8>s and then get random access
05:47
<&jerith>
Maybe #aocspoilers for details involving particular problems?
05:47
<&jerith>
Although you managed to skirt around those without actually hitting them. ;-)
05:49
<&jerith>
I decided early on (maybe even as early as 2016) that I was going to use a parsing library as one of my very few external deps.
05:53
<&jerith>
(On the basis that otherwise I'd be reinventing a lot of stuff, and parsing input is not the interesting part of the problem anyway.)
06:32
<&McMartin>
I actually appreciate the low-grade hurly-burly of file access and string manipulation for this.
06:33
<&McMartin>
It's the kind of byte-level nonsense that Rust is supposed to be able to do as effectively as C/C++/etc.
06:33
<&McMartin>
(Though it turns out in practice, the rigid format of the input files gives C some comically unfair advantages)
06:43 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
06:43 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
06:43 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
08:20 catalyst_ [catalyst@Nightstar-3j04n3.dab.02.net] has joined #code
08:24 catalyst [catalyst@Nightstar-q3udsl.dab.02.net] has quit [Ping timeout: 121 seconds]
08:35
< catalyst_>
what can you do in C that's so much faster?
09:51 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
09:54 catalyst_ [catalyst@Nightstar-3j04n3.dab.02.net] has quit [Connection reset by peer]
10:06
<&McMartin>
scanf makes parsing Advent of Code inputs trivial despite scanf being broadly useless
10:10 Kindamoody[zZz] is now known as Kindamoody
10:44 FLHerne [flh@Nightstar-6tv.748.10.86.IP] has joined #code
11:08
< Yossarian>
can't sleep, maybe I should code
11:08
< Yossarian>
McMartin: what is Advent of Code?
11:14
<~Vorntastic>
Adventofcode.com
11:15
<~Vorntastic>
A series of increasingly challenging programming challenges running through December until Christmas
11:42 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds]
11:51 catalyst [catalyst@Nightstar-3j04n3.dab.02.net] has joined #code
11:51 catalyst_ [catalyst@Nightstar-3j04n3.dab.02.net] has joined #code
11:51 catalyst [catalyst@Nightstar-3j04n3.dab.02.net] has quit [Connection closed]
11:56
< Yossarian>
Okay, another newb question... I haven't written any real code in a long time and let alone on Linux. It's about documentation with libraries or libdev entries in repo...
11:57 Kindamoody is now known as Kindamoody|afk
11:57
< Yossarian>
Usually, if you compile one, you ought to get manpages or something, yes?
12:00 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
12:01 catalyst_ [catalyst@Nightstar-3j04n3.dab.02.net] has quit [Ping timeout: 121 seconds]
12:02 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
12:02 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection closed]
12:05
< Yossarian>
I'm looking for the documenation of fucntions for codec2 and I can't find it.
12:06
< Yossarian>
or curses
12:07
< Yossarian>
/usr/share/doc is looking light, too
12:11
< Yossarian>
or is codec2 so simple they don't provide these things? https://github.com/drowe67/codec2/blob/master/src/codec2.h
12:20 FLHerne [flh@Nightstar-6tv.748.10.86.IP] has quit [Operation timed out]
12:20
< Yossarian>
I mean ncurses has an ncurses-doc package
13:02 FLHerne [flh@Nightstar-6tv.748.10.86.IP] has joined #code
13:27 Degi [Degi@Nightstar-n9ugh0.pool.telefonica.de] has quit [Ping timeout: 121 seconds]
13:31 Degi [Degi@Nightstar-n9ugh0.pool.telefonica.de] has joined #code
13:41 celticminstrel [celticminst@Nightstar-jls2aq.dsl.bell.ca] has joined #code
13:41 mode/#code [+o celticminstrel] by ChanServ
13:59
<&[R]>
Yossarian: did you compile it yourself or get it from a debianoid repo?
14:00
<&[R]>
Because debian likes to slice every package it can into as many parts as it can. So you might be missing -doc or -man packages
14:01
<&[R]>
`man ncurses` will bring up ncurses documentation (It's on disc0 if you don't have them locally)
14:55 celticminstrel [celticminst@Nightstar-jls2aq.dsl.bell.ca] has quit [Ping timeout: 121 seconds]
14:56 celticminstrel [celticminst@Nightstar-26ueug.dsl.bell.ca] has joined #code
14:56 mode/#code [+o celticminstrel] by ChanServ
15:08 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:08 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:44 FLHerne [flh@Nightstar-6tv.748.10.86.IP] has quit [Ping timeout: 121 seconds]
16:47 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:04 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code
18:06 catalys21 [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
18:06 catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection reset by peer]
19:15 mac [macdjord@Nightstar-re5.7if.45.45.IP] has joined #code
19:15 mode/#code [+o mac] by ChanServ
19:18 macdjord|slep [macdjord@Nightstar-re5.7if.45.45.IP] has quit [Ping timeout: 121 seconds]
19:45 macdjord|slep [macdjord@Nightstar-re5.7if.45.45.IP] has joined #code
19:45 mode/#code [+o macdjord|slep] by ChanServ
19:48 mac [macdjord@Nightstar-re5.7if.45.45.IP] has quit [Ping timeout: 121 seconds]
20:04 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
20:04 mode/#code [+o Reiv] by ChanServ
21:16 Kindamoody|afk is now known as Kindamoody
21:43 FLHerne [flh@Nightstar-6tv.748.10.86.IP] has joined #code
22:03 catalys21 [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [[NS] Quit: -a- Connection Timed Out]
22:04 catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code
23:50 Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds]
--- Log closed Thu Dec 03 00:00:47 2020
code logs -> 2020 -> Wed, 02 Dec 2020< code.20201201.log - code.20201203.log >

[ Latest log file ]