« first day (4438 days earlier)      last day (496 days later) » 

1:57 AM
Hah! the exception message now reads: `TypeError: value '\x1b[0m' cannot be transformed to bool, ...`
Looks like someone is parsing colorized command output.
 
 
3 hours later…
5:01 AM
cbg \o been a while, busy with work and the pandemic, but finally got back into the groove of aoc this year, hopefully i can finish it this time around. happy holiday room6 :D
 
 
7 hours later…
11:48 AM
Hi, @MooingRawr! It's good to see you again.
 
 
4 hours later…
3:48 PM
@MooingRawr indeed, long time no see. Glad to see that you're well :)
 
4:03 PM
@PM2Ring @roganjosh heyo, long time no see :D hope everything is well with yall.
 
4:15 PM
Yeah, not too bad thank you. Just plodding on :)
 
 
5 hours later…
9:13 PM
what is (1j, -1j) (found on wim's solution but curious)
 
I can't answer the exact question, but do you know about complex numbers in Python?
 
I was asking about the j. Thanks
Never knew that existed
lol that just makes me more confused as to how that solution works
 
complex numbers are a poor man's 2d vectors
 
I've never used them myself in Python and IIRC I've looked at some AOC solutions in the past where they're been hacky/smart in solving a problem vs. other approaches
 
@Aran-Fey i haven't seen them in math class since we learnt about them in geometry
 
9:26 PM
wim does tricks with them. I don't know how necessary they are for his overall goal but he's usually a frontrunner in terms of problem solution time, so I guess there's a niche that works for him
 
How do they work in 2D vectors?
The variable names make it so much easier to understand his code
 
Too much of my engineering past being called up here, sorry. I've blocked it all out. Andras would probably be the person you'd need here
 
Complex numbers are inherently 2D vectors. You've got the "real" dimension (regular number part) and the "imaginary" dimension (j number part).
So the vector (12, 46) can be encoded as 12 + 46j, for example.
 
9:43 PM
Or, MM, of course. I think I blocked him out out my mind when it was suggested last year that a good way to learn Rust would be to try AoC in the language. I started today and the outcome is embarrassingly simple but I'd totally forgotten the borrow checker hitches after not actually writing it for so long
(Totally kidding, <3 misterMiyagi and it was a great suggestion)
 
One of the important tricks is that 90-degree rotations are just multiplication by 1j
So you have a linear space (do arithmetic with real and imaginary parts independently, just like two components of 2d vectors of the usual kind), plus other algebraic structures which aren't available for 2d vectors. Such as multiplication as an operation that gives you another "vector".
 
 
1 hour later…
11:05 PM
interesting
I remember learning about 12 + 46i vectors now
 

« first day (4438 days earlier)      last day (496 days later) »