code logs -> 2019 -> Mon, 02 Dec 2019< code.20191201.log - code.20191203.log >
--- Log opened Mon Dec 02 00:00:31 2019
00:22 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
00:22 mode/#code [+o himi] by ChanServ
01:57 * McMartin looks at what he'd need to get off the ground to do AoC in Rust
01:58
<&McMartin>
Wow, feeling it *even less* now
01:58
<&McMartin>
And looking at nom just makes me want to fire up gcc again and experiment with mpc
01:59 Degi [Degi@Nightstar-smds8h.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
02:02 Degi [Degi@Nightstar-vrqfbc.dyn.telefonica.de] has joined #code
03:21 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has quit [Ping timeout: 121 seconds]
05:35 Derakon is now known as Derakon[AFK]
05:58 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
05:58 mode/#code [+o himi] by ChanServ
05:59 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code
05:59 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
06:25 celticminstrel [celticminst@Nightstar-2kik29.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:32
<&jerith>
Ooh, starting with the interpreter early this year.
07:33
<~Vorntastic>
Wild
07:41
<&jerith>
McMartin: I pushed last year's Rust code to https://github.com/jerith/adventofcode-2018 and added you as a collaborator in case that helps at all.
07:42
<&jerith>
That uses nom 4 which means more macros, but for the parsers we're likely to need here that's not a big deal.
07:44
<&jerith>
(Not trying to convince you or anything, just providing some reference material you can look it if you want.)
07:49
<&McMartin>
Yeah. The problem for me here is that there's an idiomatic, single-file parser-combinator library in C that I've been meaning to put through its paces.
07:49
<&McMartin>
I should probably do that with this!
07:49
<&McMartin>
nom is reminding me I wanted to do that
07:50
<&jerith>
Ah, excellent.
07:50
<&jerith>
"I want to do this other thing instead" is always better than "I want to do anything but this thing". :-)
07:50
<&McMartin>
Specifically: https://github.com/orangeduck/mpc
07:50
<&McMartin>
Well
07:51
<&McMartin>
I *do* also want to write like three documents.
07:56 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
07:56 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
07:56 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
11:55
<&[R]>
Yay! I officially RTSL'd a FOSS mod to use a completely undocumented feature!
12:02
<&[R]>
Also fuck graddle and its default paths: `vim src/main/java/rebelkeithy/mods/metallurgy/core/metalsets/OreInfo.java`
12:03
<~Vorntastic>
What
12:07
<&[R]>
Probably not that big of a deal on this paticular project
12:08
<&[R]>
But graddle's defaults want the source code to be in src/main/java/
12:08
<&[R]>
Which is at least two more directories deep than it should be
12:10
<@TheWatcher>
They're probably thinking "it's java, you're already going to have a directory tree bigger than Yggdrasil, so why not?"~
12:32 celticminstrel [celticminst@Nightstar-2kik29.dsl.bell.ca] has joined #code
12:32 mode/#code [+o celticminstrel] by ChanServ
12:37
<&[R]>
Gods sometimes I hate minecraft
12:38
<&[R]>
So, if I set the item ID to 5999, it becomes 6255 ingame (which is sort of expected)
12:38
<&[R]>
5988 becomes 6244 (also expected)
12:39
<&[R]>
6010 and 6020 both become 31999
12:40
<&[R]>
Now, you're probably wondering why the 11 number gap. Well, that ID is actually for 11 IDs all sequential
12:40
<&[R]>
6255 + 1 == 6256 as expected (generally the math works at that point
12:40
<&[R]>
But 31999 + 1?
12:40
<&[R]>
That's 31995 of course.
12:40
<@TheWatcher>
Naturally.
12:43
<&[R]>
+2 is 31993; +3 is 31994; +4 is 31992; +5 is 31991; +6 is 31990, and it continues to decrement by 1
12:49
<~Vorntastic>
What the hell
12:50
<&[R]>
Okay, 4999 also does the same thing
12:50
<&[R]>
I've also found that other items are getting similar treatment
12:50
<&[R]>
So I think it's ontological to the item ID
12:50
<&[R]>
Which means something is ignoring the ID that was requested
12:55
<&[R]>
... and that number is basically just directly fed into the Item constructor
12:55
<&[R]>
Which has zero documentation on it
12:55
<&[R]>
Yay...
12:56
<@TheWatcher>
\o/
12:56 * TheWatcher facepalm
12:58
<&[R]>
I found out how to fix it!
12:58
<&[R]>
Rename the item!
12:58
<&[R]>
Bear in mind, there is exactly one argument to Item's constructor: an int which is the item ID
13:00
<~Vorntastic>
What
13:01
<&[R]>
I think FML or MCP are caching the value which is clearly some kind of "we got junk data at one point" value
13:01
<&[R]>
Eitherway, it's really stupid
13:03
<&[R]>
I have no idea where it's even storing something like that though
13:14
<&[R]>
Hmm, it isn't the game registry thing either
13:33
<&[R]>
Something to play with when I get back from work
13:58 celticminstrel is now known as celmin|away
14:37
<@sshine>
if ( $cvtype == 0 || $cvtype == 2 ) { # code of the day
14:38
<@sshine>
close by: if ($search->dates > 0 && $search->dates < 999) { # going and looking at what database field 'dates' is, it's an int. clearly.
14:39
<@sshine>
I like how 998 is the upper value. we all know what happens when $search->dates reaches 999... >_<
14:40
<@sshine>
the guy who wrote this is pretty smart. I mean, he's had patches merged into git at some point. I think this is the effect of company culture.
14:48 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
14:48 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:25
<@gnolam>
If test builds had been named, I would have named today's "Lemmiwinks". It was all about escaping a colon...
15:33 jeroud [sid10043@Nightstar-6br85t.irccloud.com] has quit [Connection closed]
15:34 jeroud [sid10043@Nightstar-6br85t.irccloud.com] has joined #code
15:34 mode/#code [+ao jeroud jeroud] by ChanServ
15:38 Kindamoody[zZz] is now known as Kindamoody
16:07 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Client exited]
16:08 Kimo|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
16:08 mode/#code [+o Kimo|autojoin] by ChanServ
16:08 Kimo|autojoin is now known as Kindamoody
16:39 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
16:41 Derakon[AFK] is now known as Derakon
17:00 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
18:17 * Vornicus blings
20:50 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
22:44 Kindamoody is now known as Kindamoody[zZz]
23:05 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
23:12 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
23:12 mode/#code [+o himi] by ChanServ
--- Log closed Tue Dec 03 00:00:32 2019
code logs -> 2019 -> Mon, 02 Dec 2019< code.20191201.log - code.20191203.log >

[ Latest log file ]