#AdVENt of Code

1 messages ยท Page 16 of 1

hazy sinew
#

yea imma just shoelace

sullen fiber
#

yea this is what i meant

#

earlier

#

by u need corner information

#

i was gonna do that with a kernel but

#

shoelace better

#

so good

steady fog
#

@real hinge do AOC for me

real hinge
#

nevefr

steady fog
sullen fiber
#

i should too

real hinge
#

I need to get interior dots location

#

I will just hardcode ig

#

it was worknig fine on example

#

yeah floodfill will cause problem in part2

#

how big grid do I even need to for t hat

#

this is insane

#

this says I have to use math

#

rather than creating a array

#

I have a idea

#

what if while going up or left I calculate the top number of dots

#

but hmm

hazy sinew
#

bro

#

if i calculate the shoelace inline it works

#

but if i put it in a fun it doesnt

#

or im just cooking

real hinge
#

AAAAAAAAAAAAAAAAAAAAAAAAA WORKING WITH RANGES IS PAIN

real hinge
#

I'd rather watch skibidi toilet than going to university

#

Or at least for specific lessons

hazy sinew
#

are u in uni already

real hinge
real hinge
hazy sinew
#

drop out

real hinge
#

Nop

#

I will end up unemployef

tranquil vapor
#

mantika loves skibidi toilet

#

he's biggest skibidi toilet fan

real hinge
tranquil vapor
real hinge
#

Yyoppp

hazy sinew
#

@sullen fiber this u

hazy sinew
#

esp compsci

sullen fiber
#

They aren't in the discord either

real hinge
#

also even though I hate university rn I believe there will be good stuff in 1-2 years

hazy sinew
#

70โ‚ฌ / month rent 3 bedroom app

hazy sinew
#

in 2 years theyll say well now you might as well just finish it

real hinge
#

at least rn

real hinge
#

thats what I believe

#

rn we have bunch of math and physics

#

but in next year we will get rid of most useless lessons

#

I will even have chance to find people like me

tranquil vapor
#

I dropped out cause it was useless and cancerous

#

i can teach myself more useful things in 1 weekend than university does in 1 month

real hinge
#

I dont go university to learn something too

sullen fiber
#

from the uiua server: most sane day 18 solution

hazy sinew
real hinge
#

I think I will skip todays part 2 too

#

runs perfectly on example but wrong in real input

#

and I have literally 0 idea whats the issue

steady fog
#

@real hinge hi

#

ujnhusk

tranquil vapor
#

you love edge cases

real hinge
#

nop

#

this year I got beaten by aoc in day 17

#

Lets see next year

tranquil vapor
hazy sinew
real hinge
hazy sinew
#

Is it off by 1

real hinge
#

nvm I solved part2

tranquil vapor
#

HOW A

#

did u solve like last year

real hinge
#

nop

#

no floodfill

tranquil vapor
#

just adding unused variable above

real hinge
#

NO

#

I AM NOT USING INSANE C

#
if ranges.iter().any(|f| (f.direction == 'U' || f.direction == 'D') && f.start.0 == x && (f.start.1 == range.end.1 || f.end.1 == range.start.1)) {
    continue;
}

the problem was this

#

even if I explain it will look dumb but basically my code was invalidating this

#

even though it shouldnt

#

idk how it didnt cause issue on example but it caused after

#

so confusing whatever

steady fog
real hinge
#

if it doesnt work add a 10000 length array to top of your code

#

it will work

steady fog
#

insane

tranquil vapor
steady fog
#

ifunny

#

ven is funny

#

@tranquil vapor youuu

#

do you know how to C

#

i need to make dynamically expanding 2d array

#

for day 18

#

it starts off as 1x1

#

first instruction digs 6 to the right

tranquil vapor
#

use different language or C++

#

or use boost

steady fog
#

whats boost

tranquil vapor
#

BDFDB port to C

steady fog
#

GUH

tranquil vapor
#

actually nvm boost is C++

#

you need to add some libraries or write ur own arraylist / linked list

steady fog
#

how do i do my own

tranquil vapor
#

write from scratch with malloc and memcpy and stuff

steady fog
#

okay

tranquil vapor
#

why do u think people don't use C

steady fog
#

idk

tranquil vapor
#

bad language

steady fog
#

everyone should use

tranquil vapor
#
#include <stdio.h>
#include <glib.h>

int main(int argc, char** argv) {
    GList* list = NULL;
    list = g_list_append(list, "Hello world!");
    printf("The first item is '%s'\n", (char *)g_list_first(list)->data);
    g_list_free(list);
    return 0;
}
#

here

steady fog
#

what is glib

tranquil vapor
#

gnome thing

steady fog
#

husk

tranquil vapor
#

it is portable

#

but made by gnome team for use with gtk

steady fog
hazy sinew
steady fog
#

what if i do

#

ii knoww

hazy sinew
#

realloc by a big number every time you add to it

steady fog
#

2m illion

hazy sinew
#

no

#

i meant like 10

sullen fiber
#

WTF

#

i^x is the same as e^(i pi/2 x)

#

insane

tranquil vapor
#

nuh uh

sullen fiber
#

yop

steady fog
#

nuh uh

tranquil vapor
#

do you mean i as in sqrt(-1)

#

or as variable

sullen fiber
#

yea

steady fog
#

guhhh do i need to make a wrapper

#

cause like

sullen fiber
#

i as in sqrt(-1)

steady fog
#

i dont have a way to pass the row and col size

#

between functions

#

to keep it neat

hazy sinew
#

or 4

sullen fiber
#

no

hazy sinew
#

or 6

#

or 8

#

or 10

#

or 12

sullen fiber
#

no

hazy sinew
#

or 14

#

wait

#

or is it just powers of 2

sullen fiber
#

no its defined for all complex values of x

hazy sinew
#

shut up

sullen fiber
#

๐Ÿ˜ญ

steady fog
#

@sullen fiber vap

sullen fiber
#

hihi

#

its honestly a sick shortcut

#

i wonder how you'd derive that

steady fog
#
typedef struct {
    bool **map;
    int width;
    int height;
} map;
``` something like this should work @tranquil vapor ?
hazy sinew
#

No

#

die

sullen fiber
#

let him grid

hazy sinew
#

please use malloc

steady fog
#

i am

#

die

#

insane

hazy sinew
#

there should never be ** in your c code

steady fog
#

wrong

#

always

tranquil vapor
#

huh

hazy sinew
#

like betaveros once said

tranquil vapor
#

malloc still just gives you a pointer

hazy sinew
#

die("wtf")

tranquil vapor
#

**map is just 2d array

hazy sinew
#

just stop using c

#

use kotlin today

#

do day 25 in c

steady fog
#

@tranquil vapor hi

tranquil vapor
real hinge
#

making real array or floodfill

#

both are terrible

#

part2 will make you hate yourself

sullen fiber
#

be based and dont use a grid

sullen fiber
hazy sinew
sullen fiber
#

oh u said c explicitly

#

my bad

warped dust
#

&mut &mut **x

steady fog
#

@warped dust

sullen fiber
#

zz

steady fog
#

vapporized

steady fog
#

@sullen fiber @solemn python @real hinge @hazy sinew

#

aoc

#

NOW

solemn python
steady fog
#

guh

solemn python
#

hm p1 seems easy

#

But it's also late here so I'm doing it tomorrow probably

#

Along with yesterday

#

And that dumb pathfinding one hopefully

steady fog
#

@real hinge Inside

real hinge
#

Tyman got kidnapped

steady fog
#

gone

solemn python
#

It's winter break

#

I'm visiting family

#

Yes Ohio is very husk worthy

real hinge
#

Yea

steady fog
#

trying to decide if i should use regex

#

to extract values

#

or string manipulation

real hinge
#

String manip

steady fog
#

okay

#

this day doesnt seem too bad

#

i actually comprehend it

teal mountain
#

part 1 is really easy, just a lot of bashing

#

part 2 is tricky but fine

teal mountain
steady fog
#

delete

teal mountain
#

should spoiler that actually mb

steady fog
#

is it only < or >

#

no like == <= >=

teal mountain
#

just > < yea

steady fog
#

good

real hinge
tranquil vapor
#

insane

#

I forgot to do yesterday

real hinge
#

you didnt do because it was hard

tranquil vapor
#

NO

#

i was very busy

tardy ore
#

nuh uh

real hinge
#

@steady fog Greetings mantikafasi,

My name is Richard, and I'm the Community Manager at FetchAI. I am currently excited to announce an extraordinary opportunity which is especially for the committed moderators of the Reddit community.

We have set aside a total of 10,000,000 $FET for an exclusive airdrop to Reddit Moderators worldwide. This initiative is our way of showing gratitude and also to inspire continued support and participation in the dynamic blockchain and AI space.

Click Here To Join Airdrop Event

Thanks for being a part in the Reddit community, and we eagerly look forward to your participation in this unique airdrop.

Apologies for any inconvenience, but our Reddit account is currently shadowbanned, and we're working to resolve this issue.

Kind regards,

Richard

Community Manager at FetchAI

real hinge
#

terrible

#

what am I missing

solar tide
real hinge
#

true

sullen fiber
#

god mornin goovnecord

sullen fiber
#

this is kinda insane

#

this has a really funny js solution actually

sullen fiber
#

OMG IT SPELLS XMAS

steady fog
#

yes

#

i rezlied that immiedelty

real hinge
#

@hazy sinew help me fix my day 17 algorithm when

hazy sinew
#

what lang

real hinge
#

rust

sullen fiber
#

oh wow

#

part 2 is super unuiuable

#

part 1 was only slightly uiuable

#

today is a typescript day

hazy sinew
#

so this is also uiuable

sullen fiber
#

no

#

i only did part 1 in day 5

#

i did the full day 5 in TS too lololol

#

||range processing|| in uiua sounds sooooo painful

#

it might just seem intimidating but be very easy

#

but TBH i dont wanna find out

solemn python
#

Today p2 doesn't seem that bad honestly

#

I'm just going to throw some recursion at it and hope it works

#

Recursion is so funny

real hinge
#

todays p2 is TERRIBLE

#

part1 is just regular xmas variable mapping and loop over

#

then part2 is whole different logic fear

solemn python
#

Yeah it's completely different but I think I know a smart way to do it

sullen fiber
#

i think its just day 5 again from the looks of it

real hinge
#

unless 300 years

steady fog
#

@real hinge

real hinge
sullen fiber
#

ok time to typescript today

real hinge
#

no uuaisu?

delicate crane
#

Not uiuable

sullen fiber
#

actually

#

this might be uiuable

#

i thought about it while doing laundry

#

ูฑู„ู’ุญูŽู…ู’ุฏู ู„ูู„ูŽู‘ูฐู‡ู it is uiuable

steady fog
#

oh lovely i cant react either

sullen fiber
#

every time i start today's part 2 i get bored and do smth else

#

bleh

#

maybe the next one will be more interesting

steady fog
#

@sullen fiber

sullen fiber
#

hi

steady fog
#

@solemn python AOC

#

HURRY

#

ok this one is evil

real hinge
#

Part1 seems easier than yesterday

#

Dont want to imagine part2

hazy sinew
#

its 1 trillion elephants i think

#

except its not detecting a loop

real hinge
steady fog
#

oh

#

I'm like confused on the flow of data in this days aoc

#

how to structure it in my code

hazy sinew
#

if you need help with part 2 i havent solved it yet but im pretty sure you just have to ||day 8 part 2 this, the last nodes connected to rx are all conj, you wait for them to all be high and then calculate||

solar tide
#

my p2 solution is taking a hot minute

#

I can't even test it

hazy sinew
#

got it

solar tide
#

there's no answer lmao

hazy sinew
#

lets go

#

the answer for me was 244465191362269 cycles

#

have fun

solar tide
#

shits just stuck bro

[๐ŸŽ„ 6:28:03 AM] โ„น [dev:watcher:change]: 2023/20/src/main.rs

hazy sinew
#

yea its too big

solar tide
#

what did you do

hazy sinew
#

look at ur input

#

notice that ||rx connects to exactly 1 inverter||

#

||that inverter connects to exactly 4 inveters||

#

solution: ||each of those 4 inverters is in a separate subgraph, they are separated into 4 subgraphs all connected via broadcast||

steady fog
#

I'm doing this in typescript

solar tide
real hinge
#

yeah today is bad

#

all modules have their own stupid rules

solar tide
#

I was doing it in typescript but saw p1 and thought why not golf it with rust

#

bad idea

hazy sinew
#

i am predicting a berlekamp massey day

steady fog
solar tide
#

I quit my watcher, time to release build

#

ok now it is doing something

hazy sinew
#

rust is cool and all but ur not bruteforcing this

real hinge
#

wait does rust have watch

#

how does it work

steady fog
#

code

real hinge
#

a single watch module requires 233 modules

#

its all back to javascript

solar tide
#

but there's cargo watch, install that

hazy sinew
#

tomorrow is gonna be linear feedback shift register with some goofy new rule and the input is gonna be a short binary number and were gonna have to figure out how to get it

steady fog
#

do entirely stdlib

solar tide
#

#no_std is king

real hinge
#

I am downloading watch module

steady fog
#

bad

solar tide
#

mantika will do tomorrow's in rust no_std

steady fog
#

nop

real hinge
#

never

solar tide
#

ok my p2 sol doesn't work

#

or it works but looking at my code so far, seems horribly optimized

#

brb

real hinge
#

which on do I follow

#

will it revert the signal or check the memory

delicate crane
#

Everyone stop doing aoc
I'm too drunk to do today
Please wait 8 hours

real hinge
#

guh does that mean stuff can get multiple inputs

#

how do I even do that

#

WHATS THE MEANING OF MEMORY

#

AAAAAAAAAAAAAAAAAAAAAAAAAAAA

#

this is so stupid

#

I will write my code keeping in mind that only conjuction can take multiple inputs

#

hopefully others are only one

real hinge
#

holy shit

#

first star is 10 minutes minimum

hazy sinew
real hinge
#

@tranquil vapor it happened again

#

its sending random output trolldayruined

#

how did I even went out of memory bounds in rust

#

LMAO

#

NOW IT RUNS FOREVER

#

WHY IS THIS TOTALL RANDOM

#

AAAAAAA

#

I DONT EVEN USE UNSAFE

#

WHY IS THAT

hazy sinew
#

is this correct

#

we get the previous inputs from ...

#

the top gate checks if all are high, if so it sends low to the or

#

the bottom gate checks if all are low, if so it sends high to the or, and to the flip flop

#

the xor checks if the previous state and current state changed

#

if it did, it sends high to the nxt

#

if nxt receives high from the xor that means it received a signal from the conj, that signal is in the or gate

real hinge
#

life is so rough

#

sanitizer doesnt say anything

#

WHY IS IT OUTPUTTING RANDOMLY

tranquil vapor
#

YOU FOUND A BUG IN RUST COMPILER

warped dust
#

send that code like wtf did u do

real hinge
#

"memory safe" they said

real hinge
warped dust
#

im guessing u probably cast a pointer to an usize

real hinge
#

Nop

warped dust
#

i did that on accident once

real hinge
#

We'll ser

warped dust
daring marlinBOT
# warped dust https://wetdry.world/@rini/111497370832145037

I've just found out this actually doesnt work at all for the opcodes. everything compiles just fine, except.. its not matching the enum value at all. instead, it's trying to match the function pointer of the variant constructor, which was truncated to a single byte with no warnings whatsoever (okay clippy seems to warn you, but it didnt because it was a macro. it also doesnt explain whats wrong at all: https://rust-lang.github.io/rust-clippy/master/index.html#/cast_enum_constructor)

i really hate rust actually

warped dust
#

some_func as usize is perfectly valid

#

it casts the pointer

#

also listen to clippy itll probably scream if u do smth like this

solemn python
warped dust
#

cuz they're bad

hazy sinew
tranquil vapor
solemn python
#

Fair enough

tranquil vapor
#

wetdryworld has improved embeds cause essem made them better

#

but most fedis have terrible embeds m

solemn python
#

Does the bot use AP

tranquil vapor
#

the original embed is pretty terrible

solemn python
warped dust
#

no

#

just the corresponding apis

tranquil vapor
#

you will read source code

solemn python
warped dust
#

ok go ahead implement activitypup and every quirk from every instance just to make one kind of request

warped dust
#

that you probably cant

tranquil vapor
#

how is that implementing activitypub

solemn python
#

application/activity+json is the AP content type

tranquil vapor
#

it uses signed fetch and fetches node info for name

solemn python
#

It fetches the activitypub representation of the user

tranquil vapor
#

i mean how else would it fetch it anyway

warped dust
#

malware

tranquil vapor
#

scraping?

solemn python
solemn python
#

aaaanyways

#

Adventing ๐Ÿ‘

tranquil vapor
#

she advent on my cod

warped dust
#

this is masto api

solemn python
warped dust
#

guess the user one isnt but hte post is

tranquil vapor
#

i need to pr more breaking changes to crystal

#

i need to break everyone's code

solemn python
tranquil vapor
#

YOP

#

no i prd things that messed me up during AoC

real hinge
#

Ven fix rust compiler when

hazy sinew
#

guys i was gonna bruteforce part 2 of today on a breadboard with logic gates but turns out i cant because the SPEED OF LIGHT is too LOW

real hinge
#

Thats smart

#

But what does that mean

hazy sinew
#

this is for example

#

u can use a breadboard and logic gates to solve today

#

but because theres 200 trillion iterations and the speed of light is 300million m/s, at 1GHz (60 hours to compute) i can use a max of 30cm of cable

#

because otherwise itll take longer for the signal to travel than for the button to press at 1ghz

#

not even accounting for logic gates and flip flops not being instant

real hinge
#

I use as in only one place

warped dust
#

theres so much wrong here

#

no wonder rustc hates you

real hinge
#

LIKE WHAT

warped dust
#

bro said static ref contents

real hinge
#

yes?

#

I want file to be accessed globally

#

isnt lazy_statics whole point is this

warped dust
#

literally static CONTENTS: &str = include_str!("input.txt")

#

done

#

no lazy static

#

you are insane

real hinge
#

oh

warped dust
#

AND FORMAt YOUR FUCKING FILE

real hinge
#

ITS STILL WORK IN PROGRESS

#

ik my code is completely shit rn

tranquil vapor
#

mantika rust is even less readable than normal rust

#

didn't know that was possible

real hinge
#

that moment when code runs on example but runs forever on real input

real hinge
hazy sinew
#
if (name == thisguyneedshigh && origin.state && origin.name in thingydabobs) cycles[origin.name.drop(1)] = bonks

i have the uncontested best variable naming

steady fog
#

go

tranquil vapor
#

go

hazy sinew
#

go map it

solar tide
#

just read the damn input.txt bro

#

or stdio

steady fog
#

can't do aoc tonight

#

stressed to death

real hinge
#

I kinda got burned out after yesterday too

#

bleh

steady fog
#

argued with friend

hazy sinew
#

part 2 is womp womp

real hinge
#

Terrible

real hinge
#

So I went lazy static

#

But it turns out I didnt need it trolley

solar tide
#

just std::fs::read_to_string("input.txt").unwrap/expect broooooo

real hinge
#

guh part1 looks easy

#

but I have zero motivation to do it trolldayruined

solar tide
#

same

hazy sinew
#

the solution to day 20 part 2 is actually just ||spelled out in the input as a binary number||

#

||notice the towers, the incoming to conj are 1 and outgoing are 0, broadcast receiver is LSB, and the binary number is the cycle length, this works for any number prime, even, odd||

real hinge
#

@tranquil vapor insane

sullen fiber
#

landed in 1.11.0

#

lets gooooo

#

soon you will see in your email revert #14104 new pr #14153: fix #14104 regression

delicate crane
#

Better example for 2023 21 part 2
||Inputs for 2023 for this day always have direct paths from the start point to the edges clear.

Despite this, the example they give you doesn't have a clear path to the edges

...........
.....###.#.
.###.##..#.
..#.#...#..
....#.#....
.##..S####.
.##..#...#.
.......##..
.##.#.####.
.##..##.##.
...........
```||
In part two, being able to assume ||there is a clear path to the edges|| dramatically simplifies the logic needed to solve, so here is a modified example input along with its expected outputs:
||```
...........
......##.#.
.###..#..#.
..#.#...#..
....#.#....
.....S.....
.##......#.
.......##..
.##.#.####.
.##...#.##.
...........

50 -> 1878
100 -> 8237
500 -> 188489
1000 -> 746036
5000 -> 18801528
||

steady fog
#

trying to google for R lang is hard

#

its just R

tranquil vapor
#

yop

#

googling crystal is also hard

#

cause you will find actual crystals and accessories and stuff

sullen fiber
#

hop on julia

steady fog
#

i already did julia

sullen fiber
#

oh this is just for aoc

solar tide
#

actually gonna publish the docs as a vitepress site

#

would be better with nicer search

solemn python
real hinge
solemn python
#

The error is that you can't do that safely
Which means you are doing something wrong
It just suggests that if you really need to do that then use an unsafe block

real hinge
#

if it cant get done safely maybe it cant?

solemn python
#

My guess is it's just you not knowing how rust works

real hinge
#

I literalyl started using rust with 0 knowledge on aoc

solemn python
#

guhh

real hinge
#

but I am starting to some stuff

solemn python
#

Everything makes sense to me now

real hinge
#

borrow stuff make sense now

solemn python
#

But anyways globals aren't a thing in rust really

#

You just have constants and statics which this explains decently

#

VEN

#

I WILL MURDER YOU AND YOUR AUTOMOD FOR RUST LANG DOT ORG

hazy sinew
#

i thought i was good at math but i had to write this down to check if i can simplify it

sullen fiber
real hinge
solemn python
delicate crane
#

I finally finished day 17
The problem holding me back was so dumb
in my method for generating valid connections, I have a rule that prevents backtracking (going back onto the node we were just on)
that uses the Node's direction property

I had the direction property for the start node set to north, so when it looked at going south for the first step, it said no, that's backtracking

I solve it in
300ms for part one
1100ms for part two

sullen fiber
#

ok

#

imma give up uiua now

#

and do all the ones i havent done in ts

warped dust
#

i should solve everything in wgsl

sullen fiber
#

just ask juliu how to transform NP problems into NC problems

#

easy

warped dust
#

what is a north carolina problem

sullen fiber
#

NOT

warped dust
#

lots of news reporting on that

sullen fiber
#

north carolina doesnt exist

warped dust
#

i could use dfdx to get a neighbouring pixel

sullen fiber
#

never

warped dust
#

soon

steady fog
#

@real hinge I will write unsafe code

real hinge
#

Good

solar tide
#

how is today's

steady fog
#

aoc

solar tide
#

wow advent of parsing again

hazy sinew
#

y

#

@teal mountain what happened

teal mountain
#

nothing, i was just slow today Sadge

#

first day in a couple of days i've woken up at 6am for it, was busy for a few days

#

maybe a bit rusty

hazy sinew
#

what about day 20 part 2

teal mountain
#

oh yeah i just don't feel like doing it

#

i'll do it at some point

#

probably today

hazy sinew
#

theres a cheese

teal mountain
#

what is it

#

idc about spoilers atp

#

(spoiler it for others tho)

hazy sinew
#

this is how ur graph looks

#

||the 4 towers are binary numbers, the arrows that go TO the conj are 1 and the ones that go FROM the conj are 0, the top one with 2 arrows and broadcaster connection is LSB, its odd and the numbers are prime and coprime (they dont have to be but they are)||

#

||the lcm of the numbers is the sol||

teal mountain
#

lol wtf

#

did people realise this when it actually came out or only afterwards

#

that's cracked

hazy sinew
teal mountain
#

you could just do that on paper

hazy sinew
#

maybe some electronics engineer did

#

cause its an lfsr and it always has this property no matter what

#

if you sinplify it to just a few gates youll notice

teal mountain
#

damn

hazy sinew
#

if there was a part 3 it would be heres a huge number, construct an input such that it outputs this number

#

i wouldve had an implementation ready

#

cuz its just berlekamp massey with custom logic

teal mountain
#

giving the aoc guy ideas

#

part 3 on dec 25th

#

Eric Wastl provides an intriguing backstage pass to the world of 'Advent of Code'. Offering a glimpse into the creation, challenges, and intricacies of this coding phenomenon, Wastl shares the stories and decisions that shape each puzzle.
For those eager to uncover more behind-the-scenes magic of coding challenges, tretton37.com awaits.

โ–ถ Play video
hazy sinew
#

also you can construct the input using 58 xor gates and 58 flip flops (real ones, not aoc ones)

#

seen that

teal mountain
#

pulling out the fpga

hazy sinew
#

but we dont have those

#

and im not gonna build 58 xors and 58 flip flops on a breaboard

#

and it would take about a week to bruteforce because the speed of light is too low

teal mountain
#

lmfao

#

btw does anyone know if the last few days are always all hard

#

first time i've made it this far in an aoc year lol

hazy sinew
#

they are yes

#

@timid veldt @dense vault @fallow fern @tardy ore @golden belfry

you have kotlin in your name
how do i check if a method has an annotation if its wrapped behind an abstract class

sullen fiber
#

people in uiua found this out too

#

the linear feedback shift register thing

steady fog
#

uiaia so bad

hazy sinew
#

oops

solar tide
#

what a stressful day

real hinge
#

lmao I already hated 2d grids

#

now we have 3d

sullen fiber
#

tomrrow must be code day

#

i keep putting off coding but i must

solar tide
#

what did you two do for p2

hazy sinew
#

go through every brick and count how many will fall?

#

it takes a bit to run tho

#

theres better solutions but i didnt write onr

steady fog
#

mantikas pc will be unable to handle

solar tide
hazy sinew
hazy sinew
#

yeah ik

steady fog
#

gonna try aoc with quantum lang

#

I need a quantum computer

sullen fiber
teal mountain
#

@hazy sinew did u bruteforce p2

hazy sinew
#

i had multiple optimized bruteforces ready but never let it run for more than 6 minutes

#

(big mistake)

#

cost me big time

teal mountain
#

yeah my bf finished in 14min but i wrote some garbage to avoid call stack overflow

hazy sinew
#

what lang

teal mountain
#

how did u do it? i tried for like half an hour, didn't get anywhere

#

typescript

hazy sinew
teal mountain
#

ah

#

was that really optimal enough, i thought of it but i ||thought it wouldn't make much of a difference since i would have to check whether the paths have any potential intersections||

#

how long does yours take to run

hazy sinew
#

1 second

teal mountain
#

damn

hazy sinew
#

well more like 2

solar tide
#

how is today's puzzle

#

i haven't seen it yet

hazy sinew
hazy sinew
#

p2 requires waiting 7 minutes or ||adjacency graph||

real hinge
#

since it will take you more than 7 minutes to write the code

#

waiting 7 minutes is better

hazy sinew
#

yes but i didnt know it was 7 minutes

real hinge
#

hm

#

fair

hazy sinew
#

@teal mountain HELP WTF

hazy sinew
#

@teal mountain I SOLVED IT

#

first day that i didnt use kotlin

steady fog
hazy sinew
steady fog
#

no

#

I haven't done the last 7 or so days

#

having to do a new language each day and figure out wtf the challenge is too hard

#

crying

hazy sinew
# steady fog no

||you need to find a position and velocity to throw a rock from so it hits every single hailball in 3d space with coordinates between 200 and 400 trillion||

steady fog
#

that sounds fun

#

so calculating trajectories?

hazy sinew
#

which is why i had to use python because it has ||sympy, kotlin does too but i didnt know about it||

hazy sinew
#

linear algebra

#

solving equations

steady fog
#

use a game engine

#

godot

hazy sinew
#

most of the leaderboard used mathematica or z3

steady fog
#

insane

sullen fiber
#

||it sounds like just solving for plane and then solving for quadratic||

hazy sinew
sullen fiber
#

idk i didnt read the puzzle

teal mountain
#

i haven't gotten out of bed yet

hazy sinew
teal mountain
#

i'm gonna kms if i try doing this in ts

hazy sinew
#

holy shit it almost works

#

you can solve today using chinese remainder

hazy sinew
#

i solved it

#

@teal mountain

#

i solved it in kotlin

#

but using z3

hazy sinew
teal mountain
#

i'm gonna have to do z3 too yeh

#

i feel like there's a mathematical sol to this but i have no idea what it is

hazy sinew
#

z3 is a math solution too except its just equations and you solve for x y and z by bruteforcing

sullen fiber
#

This sounds fun

#

I'm gonna do the last week at some point

teal mountain
#

off by 494 is weird

#

considering how big the answer is

hazy sinew
delicate crane
#

.:|:'

#

Merry evemas

real hinge
#

Today is the last day of advanter

#

@fallow fern

real hinge
#

@fallow fern wake up

#

Last day of aoc

#

Aagaming died

hazy sinew
real hinge
#

Love

steady fog
solar tide
#

I need two more stars aaaa

solar tide
#

ok cool done

teal mountain
#

War Is Over

#

i wish i could say this years aoc was fun but it low key wasn't ๐Ÿ‘

warped dust
#

so true

#

i think its on purpose cuz last year the leaderboard was taken by ppl using ai

#

and writing scripts that automatically submit anwers from chatgpt's api lol

delicate crane
#

I have found chatgpt is utter ass at basically all AOC problems, 2015, 2022, 2023

#

Maybe that's because I only ask it when I am desperate and have been working for multiple hours

warped dust
#

i think it was gpt3 actually

#

chatgpt is dumber

#

it was working though but maybe its just so many people trying

hazy sinew
#

as you can see by the leaderboard

#

day 15 part 1 was solved in like 50 seconds and part 2 in 35 seconds

real hinge
#

(it failed all the times)

#

Actually I asked copilot which is gpt4 afaik

#

So doubt

tranquil vapor
#

i hate ai people so fucking much

#

why would you ruin fucking advent of code for everyone

#

you don't gain anything, you just ruin it for everyone else

hazy sinew
#

next year it wont be bearable

#

but this year it was silly

tranquil vapor
#

we need to normalise bullying aibros

hazy sinew
#

bro relax its not like it made a difference

#

u dont see anonymous user #640116 anywhere on the total leaderboard

tranquil vapor
#

why are you defending this lol

#

cheating is not cute

hazy sinew
#

yea im not defending nordine lotfi (he placed on leaderboard like 20 times and none of those were outside the podium)

#

hes the one that got day 15 in 1 minute

#

but day 1 in 12 seconds is pretty funny

tranquil vapor
#

doesn't load

real hinge
#

tbh for first 100 they should submit proof that they done it

real hinge
#

comparing gpt 3 and 4 there is already insane enough difference

real hinge
#

if you read the question fast enough its possible to do it in 51 seconds

hazy sinew
#

but part 2 is not possible in 35s

#

i finished part 2 in 3m58s and got sussed out

hazy sinew
real hinge
hazy sinew
#

you can do every day both parts of all years with ai if you give it 1 sentence of help

hazy sinew
real hinge
#

I feel like even gpt4 would split out nonsense

#

after day 14-15

hazy sinew
#

Nah

#

i tried it a few times

#

its op af

real hinge
real hinge
hazy sinew
#

like i think it did day 16 faster than #1 lb

#

it did day 1 in 8 seconds

#

๐Ÿ’€

real hinge
#

THAT PIPE MAZE

hazy sinew
#

i mean if #1 is ai that makes no difference because nobody lost points due to it

real hinge
#

insanity

hazy sinew
#

they explicitly allow ai but the problems are designed to break it

#

so if you dont know what youre doing ai isnt useful

#

but if you do know how to solve the problem and using ai to write code fast its really good

real hinge
#

aoc texts went insane this year too

hazy sinew
real hinge
#

huh

hazy sinew
real hinge
#

I really felt like wording was horrible in first days

#

later it got more normal but at that time problems become harder

hazy sinew
hazy sinew
real hinge
#

yeah

hazy sinew
#

it reflects quite well

#

didnt get a single point before day 8, and only got lb once after day 15

delicate crane
#

I have never got worldwide lb

vernal bronze
real hinge
#

@steady fog do day 26

steady fog
#

never

delicate crane
hybrid scroll
#

advent of code more like adveeee ๐Ÿ˜ญt of code

real hinge
#

wrng channel

keen compass
#

hi