12:09 AM
@Unionhawk I also was lazy and stubborn before I was forced to make a proper solution

somehow 18:25:34 is still top 50k for part 2
lol

@Unionhawk I think a lot of people stop doing them after a couple of days

2 hours later…
2:02 AM
@Unionhawk It's the first anti-brute-force puzzle this year, those are always lower solve rates

2:45 AM
Yeah that's true always fun to OutOfMemory and also need Int64

3 hours later…
5:24 AM
wait but why does average not work though

2 hours later…
7:09 AM
@Unionhawk Oh
I see

2 hours later…
9:06 AM
I can't see my personal AoC stats :(

1 hour later…
10:22 AM
yay! it's back

1 hour later…
11:51 AM
@Unionhawk I'm not sure that should work in every case but I can't prove it either way

2 hours later…
2:16 PM
@Ronan Average doesn't work but it's the right track
Though my finished part 1 is not really useful for part 2 so that's fun

I meant using median

I stopped at the Bingo one because I couldn't be assed to write a thing to parse the input file.

2:31 PM
@InvaderSkoodge you don't have to do every problem

I don't have to do any problems!
I'd rather play Satisfactory lol

2:46 PM
Why did I have to check chat? Now I'm doing AOC challenges
Only done through day 3 but the hardest problem was so far when I typoed and answer into the form and then spent 15 minutes trying to figure out how my code was wrong
stupid fingers

Would you rather chat have a new incremental?

@Sterno They start to fail you as you get older, eh?

@Ronan Oh, I mean. I feel like it should?
It happens to work for the test and my actual input anyway
Math is hard

@Unionhawk Yeah it seems right but I'm not 100% sure

It's for sure not useful for part 2 anyway so meh

3:03 PM
@Wipqozn Don't act like you aren't already discovering this!

Median is not always the answer, but it's closer than starting on the ends

@Sterno It's true

Part 2 didn't seem too bad, once you figure out the fuel consumption

@Batophobia nice so I just got lucky
EZ Clap
and part 2 fuel is just, \sigma(x)1->n or whatever which isn't hard but my median method doesn't even sort of work

3:54 PM
We really out here playing bingo with giant squids

@Unionhawk yea the exponential growth makes median less useful. There is a better option, though

I just spent about 20 minutes trying to figure out why I got the first half of the bingo one wrong but not the 2nd half, and it's because i didn't read closely enough and thought diagonals counted. Bah

4:10 PM
Yea, that got me as well

4:30 PM
diagonals are vertical and horizontal, they should count twice

4:47 PM
I think that tripped up a lot of people.
I almost missed it, and I even went specifically hunting for it.

5:02 PM
Headup for EU players, be very aware if you want to buy the console BOI Repentance of Isaac dlc
Apparently due to mess up between the companies that handled the original physical edition of Afterbirth and now Nicalis with the Repentance DLC, the thing currently does work only on the Nicalis digital download base game and NOT on the physical one.
This can end up in borderline scam on the Nintendo store. From what I see the page you get if you try to buy the thing directly on the switch does indeed include a warning that the DLC only works on the digital edition of the game. The web site you get from a PC doesn't seem to include that line.
Also, please be careful even if the issue is resolved. Due to past localization mess and EU physical edition AfterBirth getting huge delays, many EU stores including Amazon sold the US version.
And "obviously" because reasons games may be region free, but dlc still aren't (can make sense due to localization in some cases, much less in others).
So, even if the main issue get solved, check the region of you game before buying anything.
18th Nov, still no update AFAIK

2 hours later…
6:55 PM
1

First time getting Minecraft Java, if I try to open the launcher, it gives me this error: Minecraft Launcher is currently not available in your account. Make sure you are signed in to the Store and try again. Here’s the error code, in case you need it: 0x803F8001 I'm pretty sure I'm signed into...

A little stuck on day 5. Part 1 got the answer. Part 2 my answers works with test data but fails with the real data. Boo
Found it. I'm an idiot.
3

"works with test data but fails with real data" is a living nightmare

7:10 PM
@Sterno Oh god, that's the worst

My lanternfish part 2 answer is very very slow

7:27 PM
Mine went outofmemory so I'm surprised it's merely running slow

7:44 PM
Well, it eventually got to that point
and then even after I wrote it smarter the built-in .Sum() function in linq couldn't handle numbers that large so I had to add some numbers up in my own foreach like a peasant

8:03 PM
crab submarine part 1 done. I AM ALMOST FREE
Well, I did that the dumbest way possible, but victory is mine
(I just tried every single position and checked which was smallest)

@Sterno Yeah I did the same thing in part 2 since I was lazy
It was actually super fast, so whatever.

8:25 PM
I attacked the lanternfish with a histogram

@Sterno Sum totally works if you give it an IEnumerable<long>
although it definitely does the same thing behind the scenes
@Wipqozn Yeah I just added one small optimization and it's now less than 1 second
which I'll take
it was like 2.4 seconds earlier
I can probably optimize it a little more but that'd require me to disassemble int Sigma(int n) and I don't want to so I'm not going to

8:41 PM
@Unionhawk I did. It still complained
Well, I had a List<long> which I assume would be the same but SHRUG EMOJI

or dotnet hates you

Could be I'm using an older version of C#

Perhaps, I'm on dotnet 5.0
which I think is...
C# 9

whatever the hell .NET framework 4.5.2 is for me

Apparently C# 5

8:45 PM
@Sterno .NET 4 is 3 major versions behind .NET 5. Remember, it's: .NET 4, .NET Core 1, .NET Core 2, .NET Core 3, and then .NET 5!
Microsoft is the best at naming things.

I'm using VS 2015 for this ancient client project so just did whatever that defaulted to

@Sterno Gross

Well .net framework is parallel I think

@Wipqozn I guess VS 2015 was back when they had some free version my client could legally use. Or something
so we're locked to it unless they ever buy some licenses for their end

Oh wait they merged them I think?

8:46 PM
@Unionhawk Yes. .NET Framework was repalced by .NET Core.
It's all very confusing.

I did try to use a newer VS but with the correct target framework but it caused problems because the IDE would happily tell me things were fine that weren't

I see .NET Core used to be parallel to .NET Framework

(when I'd accidentally use newer syntax)

but now it is just .NET 5.0

Yes

8:47 PM
instead of .NET Framework 4.8 and .NET Core 3.0

and now there's .NET 6 as well
Although it might sitll be in beta? I Can't remember.

I think so
Actually it looks like it's latest as of 2021-11-08
Neat

Did anyone wathc todays Magnus vs Nepo WCC game?

so I could theoretically start using C# 10

The one where nepo made an even larger game losing blunder than last time?

8:50 PM
I had private List<long> Fish { get; set; } and Fish.Sum() was throwing ArithemeticOverlfowExceptiosn until I just wrote
public long GetFishTotal()
{
long total = 0;
foreach (var count in Fish)
{
total += count;
}
}
such formatting wow

Because I just love Magnus's reactions to the whole thing.

Look at that crazy guy over there making a dictionary when he could just use the built-in indexing of a list!
(his is probably more efficient but more characters!)

That is technically a good point
It's probably exactly as efficient
or like within margin of error

Finally around day 5 I just said "fuck it" and actually started always running against the test data first
Although those bingo diagonals (that I was doing but shouldn't have) were the worst because my solution worked with part 1 and 2 of the test data and part 1 of the real data
Today's puzzle seemed like one of the easiest because it was so easy to just brute force it
(honestly I'm not even sure what other approach to take)

for part 2 I don't either
I mean
brute force is mostly n^2
mostly

9:00 PM
I took the approach of start with the logical options and move from there until you stop being better

I always go with
if it runs in under a second it's fine

I took the approach of being lucky

Ain't no points for run-time!
(directly, anyway)

Am I the only one that uses JS for these?

9:01 PM
I score myself on it because if a future part 1 takes 30 seconds part 2 probably won't run

I'm JS all the way!

represent
It's just so easy to run it in the console on the input page

I use Python

@Batophobia yeah. now with built in bigint, programming puzzles are event easier! Well, some are. That one in project Euler that needed bigint is.

I enjoyed some Euler puzzles. They always seems much more math-based, though

9:05 PM
yeah

wait is bigint just an arbitrary integer?
with no defined maximum?

yes
no longer bound to ieee babeeeee
rounding bugs can be a thing of the past with this one weird trick

9:23 PM
@MattE.Эллен There's also Rational if you need to represent fractions

@PrivatePansy is that built in to javascript?

I don't think so, but there are definitely libraries for it

nice

9:56 PM
@Unionhawk o.0
Oh, yesterday's. Nevermind
@Wipqozn Same
Python just has so many helpful libraries

10:47 PM
I joined the advent of code but god do i have 0 programming energy at the end of my workdays

That's why I do them in the morning in place of mandatory "spacing out for about an hour" time

11:17 PM
oh ill take my spacing out (and clearing a flag if there is) hour in the morning
if its something that i preferred to working in the office is just the hour of zen while taking the bus/metro before work.