Guild icon
Advent of Cum
Text Channels / general
Molten joined the server. 02-Dec-21 03:57 PM
toonlink joined the server. 02-Dec-21 03:57 PM
Avatar
Avatar
Molten
Joined the server.
Sticker
Avatar
Avatar
toonlink
Joined the server.
F# etc maniac joined the server. 02-Dec-21 03:57 PM
Avatar
Avatar
F# etc maniac
Joined the server.
Avatar
F# etc maniac 02-Dec-21 03:57 PM
Ejdhcjebchsbx
pocis joined the server. 02-Dec-21 03:57 PM
Avatar
Avatar
pocis
Joined the server.
Avatar
Avatar
pocis
Joined the server.
Avatar
Avatar
pocis
Joined the server.
Avatar
Avatar
pocis
Joined the server.
Avatar
Winke, um Hallo zu sagen!
Avatar
Salut !
the excel idiot joined the server. 02-Dec-21 03:59 PM
Avatar
Avatar
the excel idiot
Joined the server.
the excel idiot 02-Dec-21 03:59 PM
Avatar
Avatar
the excel idiot
Joined the server.
the excel idiot 02-Dec-21 03:59 PM
Avatar
Schön, dich zu sehen, niwico!
Avatar
Avatar
the excel idiot
Joined the server.
Avatar
the excel idiot 02-Dec-21 03:59 PM
dankjewel, jij ook!
Avatar
what do the star colors differ for
Avatar
F# etc maniac 02-Dec-21 04:00 PM
silver only one part gold both parts
Avatar
can you read
16:00
16:00
sorry
16:00
anyways why can you click on creatable and sink but not on me
16:00
waht a scam
nrw300 joined the server. 02-Dec-21 04:00 PM
Avatar
Avatar
Molten
waht a scam
F# etc maniac 02-Dec-21 04:01 PM
because we signed in with gh?
Avatar
oh yeah righ
16:01
t
Avatar
F# etc maniac 02-Dec-21 04:01 PM
oh prolly this
Avatar
the scratch solution seems to work p well with the bigboy file i gave it
Avatar
this button exists
Avatar
Avatar
toonlink
the scratch solution seems to work p well with the bigboy file i gave it
F# etc maniac 02-Dec-21 04:01 PM
nice
Avatar
took it about 1 1/2 seconds
Avatar
F# etc maniac 02-Dec-21 04:01 PM
damn
Avatar
make it in ruby
Avatar
already wrote it in crystal
Avatar
i got to do the second challenge earlier because school finished sooner
Avatar
and i will have a friend over tomorrow so i won't do it till like 6 pm
16:03
(consider this a flex)
16:04
(i have friends)
16:04
who doesnt
16:04
apparently you since you have to lie about it
16:04
i changed 2 lines
Avatar
Avatar
toonlink
Click to see attachment 🖼️
fuck you
Avatar
actually no
16:05
i changed one line
16:05
crystal:
Avatar
cock my ass
Avatar
ruby:
16:06
u ever just
Avatar
both ugly languages
Avatar
wrong
16:07
both pretty languages
Avatar
F# etc maniac 02-Dec-21 04:22 PM
i am zig-ing like a true gamer
Avatar
how
Avatar
F# etc maniac 02-Dec-21 04:23 PM
i made a thing
Avatar
why are german words so long
16:23
Stummgeschaltete
Avatar
the excel idiot 02-Dec-21 04:25 PM
Panzer Selbstfahrlafette I für 7,62-cm-PaK 36(r) auf Fahrgestell Panzerkampfwagen II Ausf. D1 und D2
Avatar
F# etc maniac 02-Dec-21 04:44 PM
i gave up on zig i did go instead (edited)
Avatar
lmao
Avatar
F# etc maniac 02-Dec-21 05:03 PM
this is clean
SPOILER
Image attachment
17:07
SPOILER
Image attachment
Avatar
you odn't have to put it in spoilers because noone understands F# anyways
Avatar
F# etc maniac 02-Dec-21 05:14 PM
bruh
Zeehondie joined the server. 02-Dec-21 05:37 PM
Avatar
Avatar
Zeehondie
Joined the server.
the excel idiot 02-Dec-21 05:37 PM
Avatar
Avatar
Zeehondie
Joined the server.
the excel idiot 02-Dec-21 05:37 PM
Avatar
Avatar
Zeehondie
Joined the server.
17:38
ah yes
17:38
reply to your own welcome
Avatar
Avatar
the excel idiot
Joined the server.
the excel idiot 02-Dec-21 05:38 PM
Avatar
F# etc maniac 02-Dec-21 05:53 PM
Nice to see there's still a surviving "gamer" reference in discord ios
Avatar
bruh
Avatar
the excel idiot 02-Dec-21 05:54 PM
Avatar
Deleted User 02-Dec-21 06:32 PM
Alright, back
Avatar
F# etc maniac 02-Dec-21 06:32 PM
yo
Avatar
Noice
Avatar
the excel idiot 02-Dec-21 06:33 PM
welcum
Avatar
Deleted User 02-Dec-21 06:33 PM
Time to get a coffee and finish 2-2
Avatar
nigeria is directly under my keyboard
18:33
total w
18:34
niger is under my wrist rest
Avatar
Deleted User 02-Dec-21 07:18 PM
My solutions for the Advent of Code. Contribute to lexisother/advent-of-code development by creating an account on GitHub.
Avatar
Deleted User 02-Dec-21 07:46 PM
all set for tomorrow
19:46
got the dart language server set up
20:05
lenya
Avatar
Avatar
Deleted User
all set for tomorrow
Am I the only one who doesn’t know any shit of this
Avatar
Deleted User 02-Dec-21 08:14 PM
Don't worry I don't either
20:14
It's just like
20:14
autocompletion output of fi
Avatar
Deleted User 02-Dec-21 08:14 PM
so it shows everything that starts with fi
Avatar
All i see is autocompletion
20:15
That makes sense, to me (edited)
Avatar
Red Day 2 Solution: Red [title: "AOC Day 2"] file: split trim/lines read %instructions #" " aim: 0 horizontal: 0 depth: 0 depth2: 0 foreach [cmd arg] file [ arg: to-float arg switch cmd [ "forward" [ horizontal: horizontal + arg depth2: depth2 + (aim * arg) ] "up" [ depth: depth - arg aim: aim - arg ] "down" [ depth: depth + arg aim: aim + arg ] ] ] print append "The first answer is: " horizontal * depth print append "The second answer is: " horizontal * depth2
Avatar
Deleted User 02-Dec-21 08:30 PM
Did somebody say Shakespeare Programming Language? - GitHub - SansCipher/Advent-of-Code-2021: Did somebody say Shakespeare Programming Language?
20:30
WHAT.
Avatar
Deleted User 02-Dec-21 08:41 PM
(edited)
Avatar
got day 2 solution down to 4ms
20:48
(crystal one)
20:49
puts "What file would you like to solve for?" print "> " file = gets.not_nil! unless File.exists? file puts "You must provide a valid file!" exit end instructions = File.read(file).lines.map {|line| line.split(" ")} def getAnswers(instructions) horizontal = 0 depth = 0 depth2 = 0 aim = 0 instructions.each do |instruction| command = instruction[0] argument = instruction[1].to_i case command when "forward" horizontal &+= argument depth2 &+= aim * argument when "up" depth &-= argument aim &-= argument when "down" depth &+= argument aim &+= argument end end return [horizontal &* depth, horizontal &* depth2] end answers = getAnswers instructions puts "The first answer is: #{answers[0]}" puts "The second answer is: #{answers[1]}"
20:49
also combined part 1 and part 2 solutions, which is where the massive speed increase comes from (edited)
Avatar
Deleted User 02-Dec-21 08:51 PM
I want to make my own benchmark system for this year
20:51
somehow
Avatar
@Deleted User auto-generate large inputs
20:53
red solution tested against a 194636 line input file
20:53
vs the crystal solution
Avatar
Deleted User 02-Dec-21 08:56 PM
Woah
Avatar
"top-flight performance" it's 50% slower than the python solution lmao
Avatar
Avatar
toonlink
red solution tested against a 194636 line input file
look at how unbelievably performant it is when compiled to a binary!
Avatar
still suprised my go solution is around 10 ms
21:13
and it's really not efficient
21:27
vs standard solution
Avatar
F# etc maniac 02-Dec-21 09:28 PM
oo lemme performance test mine
Avatar
here's your bigboy input @F# etc maniac
1.36 MB
Avatar
Deleted User 02-Dec-21 09:29 PM
now make the cat do the submarine movements
Avatar
F# etc maniac 02-Dec-21 09:29 PM
k
Avatar
Avatar
Deleted User
now make the cat do the submarine movements
i was thinking of penning out the entire thing
Avatar
Deleted User 02-Dec-21 09:29 PM
ultimatelul
Avatar
F# etc maniac 02-Dec-21 09:29 PM
shit my solution uses an arg not stdin lemme rewrite this a little
21:35
both of mine return 0 🤔
21:35
oh shit its not handling \n right
21:38
fuck it file io
21:41
Avatar
mine includes io too
Avatar
F# etc maniac 02-Dec-21 09:41 PM
yeah
Avatar
honestly a lot of speed is entirely related to how fast your disk is
Avatar
F# etc maniac 02-Dec-21 09:41 PM
nice to see both mine are almost the same speed lol
21:41
ssd gang
21:42
i wonder if i should make hyperfine do like 500 warmup runs so linux disk cache will go brrr
21:44
h o w
Avatar
Deleted User 02-Dec-21 09:47 PM
kekw
21:47
I should download hyperfine and test, give me a second
Avatar
Avatar
F# etc maniac
i wonder if i should make hyperfine do like 500 warmup runs so linux disk cache will go brrr
Deleted User 02-Dec-21 09:50 PM
bahaha, great idea
Djajbj000 joined the server. 02-Dec-21 09:52 PM
Avatar
Deleted User 02-Dec-21 09:53 PM
o/
21:53
folks, DJ, DJ, folks
Avatar
welcome to the other cum zone
Avatar
GG DJ
Avatar
Hellooo
Avatar
yk cause it rhymes.. haha..
21:53
Avatar
Avatar
nrw300
GG DJ
Deleted User 02-Dec-21 09:54 PM
komi_said_no
Avatar
how would you say it to make it rhyme
21:54
🤔
21:54
Am I being American again
Avatar
gee gee dee jay
21:55
oh wait
Avatar
that doesn't rhyme
Avatar
The gee and dee
21:55
Yeah
Avatar
ye that doesnt rhyme
Avatar
:)
Avatar
well that wasnt a akward first meeting at all...
Avatar
Deleted User 02-Dec-21 09:56 PM
lmaoINTENSE
Avatar
Lovely name for the sever, I give it 8/10 chuckles 👍
Avatar
Avatar
Djajbj000
Lovely name for the sever, I give it 8/10 chuckles 👍
Deleted User 02-Dec-21 09:56 PM
appreciate it SMUG
21:56
oh, and good luck, by the way
Avatar
so you a dj huh?
Avatar
Not at all, the name just has a ring to it
21:57
:D
21:57
Avatar
yeah, like cumcord
21:57
that's a p funny name
21:57
haha
Avatar
True
21:58
how you guys doin?
Avatar
I'm pretty good 👍
Avatar
p good, been overdoing the aoc thing lol (edited)
Avatar
Deleted User 02-Dec-21 09:59 PM
^
21:59
now trying to horrifically overengineer the simplest of things, as per usual
Avatar
Avatar
F# etc maniac
h o w
Deleted User 02-Dec-21 10:00 PM
how long did hyperfine take to run for you
Avatar
I don't know a lick of coding :)
Avatar
that is unfortunate
Avatar
Deleted User 02-Dec-21 10:01 PM
i mean, i do still think it's a good way to start off, though you might need some base understanding...
Avatar
I have no understanding ☺
Avatar
Avatar
Deleted User
how long did hyperfine take to run for you
F# etc maniac 02-Dec-21 10:01 PM
Wdym
22:01
Overall or for a single run?
Avatar
Avatar
F# etc maniac
Wdym
Deleted User 02-Dec-21 10:01 PM
there's no other way to ask the question
Avatar
Avatar
F# etc maniac
h o w
F# etc maniac 02-Dec-21 10:02 PM
.
Avatar
Deleted User 02-Dec-21 10:02 PM
you know, this can't mean anything good
Avatar
F# etc maniac 02-Dec-21 10:02 PM
Oh?
Avatar
Deleted User 02-Dec-21 10:02 PM
give me another minute and a half, will you?
Avatar
F# etc maniac 02-Dec-21 10:02 PM
K
Avatar
Deleted User 02-Dec-21 10:02 PM
harold
Avatar
F# etc maniac 02-Dec-21 10:02 PM
I'm copying all my fsx solutions into fsproj ones so i can test compiled speed
22:03
But the ionide-fsharp vscode extension keeps eating up my ram to 100% and locking up my pc
Avatar
Deleted User 02-Dec-21 10:03 PM
lmfao
Avatar
i like reading stuff like this and then realizing it means absolutely fucking nothing to 99% of people
22:04
fsx solution fsproj compiled ionide fsharp vscode extension ram
Avatar
Deleted User 02-Dec-21 10:05 PM
okay, i present to you all
22:05
22:05
bruharold bruharold bruharold
Avatar
with the big boy???
Avatar
Deleted User 02-Dec-21 10:05 PM
yes, yes, with the big boy
Avatar
what the fuck
22:05
crying rn since crystal runs slower than zsh
Avatar
Deleted User 02-Dec-21 10:05 PM
...what
22:06
excuse me? show me your output again?
Avatar
F# etc maniac 02-Dec-21 10:06 PM
Its probably spinup time.
Avatar
I just read through like a 300+ message arguement over if pegging is gay or not figured I'd share that 👍
Avatar
it's gay btw
Avatar
Avatar
toonlink
Click to see attachment 🖼️
Deleted User 02-Dec-21 10:06 PM
you are noting the fact that my measurements are in seconds?
Avatar
F# etc maniac 02-Dec-21 10:07 PM
OH AHAHA
22:07
I thought they were ms
Avatar
OH HAHA
22:07
okay, cool
Avatar
Deleted User 02-Dec-21 10:07 PM
how would you ever see a shell program running faster than a compiled language?
Avatar
F# etc maniac 02-Dec-21 10:07 PM
fair
22:07
hence the wtf
Avatar
Deleted User 02-Dec-21 10:07 PM
shell, after all, is utter trash designed over 40 years ago
22:08
of course it's slow garbage
Avatar
(c btw)
Avatar
Deleted User 02-Dec-21 10:08 PM
i mean, to be completely honest, cat bigboy takes a little bit to complete, so some time is wasted on reading the damn file before processing it
Avatar
pushing to stdout is one of the slowest things
Avatar
Deleted User 02-Dec-21 10:09 PM
feel free to send me a diff lenya
Avatar
doesn't actually change much when embedding it into the binary (edited)
22:10
but that's also because ssd go vrooom (edited)
Avatar
F# etc maniac 02-Dec-21 10:11 PM
for the first time in my life i have been saved by the linux OOM killer (edited)
22:11
from a vscode with quite an impressive memory leak happening
Avatar
Deleted User 02-Dec-21 10:13 PM
you know, i didn't even know the private leaderboard persisted across events
Avatar
F# etc maniac 02-Dec-21 10:13 PM
huh cool
Avatar
Deleted User 02-Dec-21 10:13 PM
hell, we could keep this server, and eventually just organize another 25 day period ourselves
Avatar
F# etc maniac 02-Dec-21 10:14 PM
ig
Avatar
Deleted User 02-Dec-21 10:14 PM
of course, cheating and doing a day that isn't technically unlocked yet, will count as cheating and will get you disqualified, given all days are already unlocked
22:14
but I think that would be a fun one
22:15
this would also allow me to organize an Advent of Code for school without having to wait until next year
22:15
ideally i would like the timers, but oh well
22:15
just now realized i pasted the version with fuck as the title
22:15
lmao
22:15
Avatar
Deleted User 02-Dec-21 10:15 PM
HAHAHAHAH
Avatar
F# etc maniac 02-Dec-21 10:16 PM
yes
Avatar
Avatar
toonlink
Click to see attachment 🖼️
Deleted User 02-Dec-21 10:16 PM
where is this, may i ask? I want to post ZSH crap (edited)
Avatar
adventofcode-spoilers libera chat
22:16
i'm using https://chat.sr.ht/ as my irc bouncer
Avatar
Deleted User 02-Dec-21 10:16 PM
yeah, yeah, flex your paid account
22:17
lenya
Avatar
i think it's free?
Avatar
Deleted User 02-Dec-21 10:17 PM
no, it isn't
Avatar
ah okay
Avatar
F# etc maniac 02-Dec-21 10:18 PM
rip
Avatar
you see the red solution yellowsink?
22:18
it looks oddly clean
Avatar
Avatar
F# etc maniac
rip
sad
Avatar
Avatar
toonlink
it looks oddly clean
F# etc maniac 02-Dec-21 10:19 PM
huh
Avatar
Red [title: "fuck"] file: split trim/lines read %instructions #" " aim: 0 horizontal: 0 depth: 0 depth2: 0 foreach [cmd arg] file [ arg: to-float arg switch cmd [ "forward" [ horizontal: horizontal + arg depth2: depth2 + (aim * arg) ] "up" [ depth: depth - arg aim: aim - arg ] "down" [ depth: depth + arg aim: aim + arg ] ] ] print append "The first answer is: " horizontal * depth print append "The second answer is: " horizontal * depth2
Avatar
F# etc maniac 02-Dec-21 10:19 PM
oh damn
Avatar
i mean, it's weird, but it kinda is nice one the eyes
Avatar
F# etc maniac 02-Dec-21 10:20 PM
im still very happy with let rec calculatePos depth horiz aim instructions = match instructions with | [] -> (depth, horiz) | (dir, num) :: tail -> match dir with | "up" -> calculatePos depth horiz (aim - num) tail | "down" -> calculatePos depth horiz (aim + num) tail | "forward" -> calculatePos (depth + aim * num) (horiz + num) aim tail | _ -> failwith "invalid direction"
Avatar
i hate this
22:20
fuck you
Avatar
F# etc maniac 02-Dec-21 10:20 PM
but yeah the red one is nice
Avatar
Avatar
toonlink
fuck you
Deleted User 02-Dec-21 10:20 PM
HAHAHAHA
22:20
ultimatelul ultimatelul ultimatelul
Avatar
F# etc maniac 02-Dec-21 10:20 PM
and if you dont want to take your eyes out with a spoon: package main import ( "fmt" "io/ioutil" "os" "strconv" "strings" ) type instr struct { dir string num int } func main() { content, _ := ioutil.ReadFile(os.Args[1]) raw := strings.Split(string(content), "\n") parsed := []instr{} for _, s := range raw { split := strings.Split(s, " ") i, _ := strconv.Atoi(split[1]) parsed = append(parsed, instr{split[0], i}) } depth, horiz, aim := 0, 0, 0 for _, e := range parsed { if e.dir == "forward" { horiz += e.num depth += aim * e.num } else if e.dir == "up" { aim -= e.num } else if e.dir == "down" { aim += e.num } } fmt.Println(depth * horiz) }
Avatar
def getAnswers(instructions) horizontal = 0 depth = 0 depth2 = 0 aim = 0 instructions.each do |instruction| command = instruction[0] argument = instruction[1].to_i case command when "forward" horizontal &+= argument depth2 &+= aim * argument when "up" depth &-= argument aim &-= argument when "down" depth &+= argument aim &+= argument end end return [horizontal &* depth, horizontal &* depth2] end
22:21
crystal one when moved to one function is p nice as well
Avatar
F# etc maniac 02-Dec-21 10:21 PM
i used a custom type in go - time to get oop'ing in a not oop lang
Avatar
awful
Avatar
F# etc maniac 02-Dec-21 10:21 PM
i went to write type instr = int * int in my f# one then im like "fuck this let the compiler infer it"
22:22
also defining a named type thats a tuple is dumb anyway
Avatar
python users:
Avatar
F# etc maniac 02-Dec-21 10:25 PM
Meanwhile me being unsatisfied with 80ms on the big boy
Avatar
i'm p unhappy with 30ms myself lol
Avatar
F# etc maniac 02-Dec-21 10:26 PM
Still CLR / vm spinup time fucked me over on any hopes of the fs being performant
22:26
I kinda wanna do it in C
22:26
But if zig was too painful to use for me then c is prolly worse (edited)
22:26
Maybe nim would zoom
Avatar
nim is actually fairly zoomy
22:29
zoomier than crystal at least
22:30
wonder if i can get on the leaderboards with copilot
Avatar
Deleted User 02-Dec-21 10:31 PM
bruharold
Avatar
oh i can't cheat at globals without cheating on ours
22:31
nvm
Avatar
F# etc maniac 02-Dec-21 10:31 PM
sink finds a horrid way to shave 20ms off my go solution: disable the garbage collector ENTIRELY
Avatar
maybe i'll do that on my alt
Avatar
Avatar
F# etc maniac
sink finds a horrid way to shave 20ms off my go solution: disable the garbage collector ENTIRELY
holy fuck
Avatar
Deleted User 02-Dec-21 10:31 PM
usually i discourage behavior like this, but go ahead, i want to see what happens though yes, do it on another account
Avatar
i mean
Avatar
disabling gc is a valid solution
22:32
what is this?
22:32
F#?
Avatar
F# etc maniac 02-Dec-21 10:32 PM
Golang
Avatar
ahhhh yeah
Avatar
F# etc maniac 02-Dec-21 10:32 PM
also to eliminate spinup time i shall not be using bigboy, i shall be using bigbigbigbigboy
22:32
aka bigboy 4 times in a row in one big file
Avatar
i think this is the crux of my bottleneck
Avatar
Avatar
F# etc maniac
also to eliminate spinup time i shall not be using bigboy, i shall be using bigbigbigbigboy
Deleted User 02-Dec-21 10:33 PM
why not use -w?
Avatar
i iterate over the array that i've made via mapping
bruharold 1
22:33
but instead i should iterate over the lines and then split
Avatar
Avatar
Deleted User
why not use -w?
F# etc maniac 02-Dec-21 10:33 PM
hm?
Avatar
because map internally is also a loop
Avatar
Avatar
F# etc maniac
hm?
Deleted User 02-Dec-21 10:33 PM
hyperfine's option -w
Avatar
F# etc maniac 02-Dec-21 10:33 PM
oh warmup?
Avatar
Deleted User 02-Dec-21 10:33 PM
yes
Avatar
F# etc maniac 02-Dec-21 10:33 PM
theres still IO and stuff happening though
Avatar
Deleted User 02-Dec-21 10:34 PM
right, fair
Avatar
F# etc maniac 02-Dec-21 10:34 PM
the default warmup is more than enough to get linux's disk caches going in my testing
Avatar
should i have a test vm for you guys spun up?
22:34
so we have a consistent method of measuring?
Avatar
F# etc maniac 02-Dec-21 10:34 PM
uhhh i guess
22:34
yeah
Avatar
Deleted User 02-Dec-21 10:34 PM
a vps, or what?
Avatar
yeh
Avatar
Deleted User 02-Dec-21 10:34 PM
sounds good to me, let's
Avatar
i think an AIO AoC GUI with Flutter and Dart would be cool
22:35
every single thing on the same gui
22:35
Avatar
Avatar
toonlink
Click to see attachment 🖼️
Deleted User 02-Dec-21 10:35 PM
LOL
Avatar
Avatar
toonlink
i think an AIO AoC GUI with Flutter and Dart would be cool
Deleted User 02-Dec-21 10:37 PM
what would this entail?
22:39
@toonlink how does your crystal do on bigbigbigbigboy out of interest
Avatar
Deleted User 02-Dec-21 10:40 PM
...i won't even try.
22:40
harold
22:41
it dies
Avatar
Deleted User 02-Dec-21 10:41 PM
LOL
22:41
HAHHAHAH WHAT
Avatar
Avatar
toonlink
Click to see attachment 🖼️
F# etc maniac 02-Dec-21 10:42 PM
bruh what
Avatar
F# etc maniac 02-Dec-21 10:42 PM
fuck
22:42
okay
22:42
one second
Avatar
fixed the file
22:43
Avatar
F# etc maniac 02-Dec-21 10:43 PM
k
Avatar
oh hey it actually does better than the go version
Avatar
F# etc maniac 02-Dec-21 10:44 PM
Benchmark 1: GOGC=off ./1 bigbigbigbigboy Time (mean ± σ): 247.3 ms ± 7.4 ms [User: 208.3 ms, System: 39.2 ms] Range (min … max): 235.4 ms … 254.5 ms 11 runs Benchmark 2: GOGC=off ./2 bigbigbigbigboy Time (mean ± σ): 250.9 ms ± 5.8 ms [User: 210.5 ms, System: 40.0 ms] Range (min … max): 236.3 ms … 256.3 ms 11 runs Summary 'GOGC=off ./1 bigbigbigbigboy' ran 1.01 ± 0.04 times faster than 'GOGC=off ./2 bigbigbigbigboy'
Avatar
yeah go ran slower than crystal in this case, kinda interesting
Avatar
F# etc maniac 02-Dec-21 10:45 PM
?
22:46
and yes ik thats not how you use that script i have input2.txt but osatnasrontea
Avatar
keep in mind most of our solutions fuck up when your big boy is big enough
22:47
for example:
Avatar
Avatar
F# etc maniac
?
Deleted User 02-Dec-21 10:47 PM
Windows line endings, not my problem
22:47
¯\(ツ)\
Avatar
F# etc maniac 02-Dec-21 10:48 PM
yeah boiiiii
22:48
58mb
Avatar
Deleted User 02-Dec-21 10:48 PM
change the line endings if you want to test it, i guess (edited)
Avatar
F# etc maniac 02-Dec-21 10:52 PM
Aight I'm done gn
Avatar
good night :)
Avatar
Deleted User 02-Dec-21 10:52 PM
good night sink :)
Avatar
lol this is a C solution
22:53
either he didn't compile with the right flags or his solution is incredibly inefficient
22:53
(this is on the bigboy)
Avatar
Deleted User 02-Dec-21 10:54 PM
feels like wrong flags
Avatar
that's my guess
22:54
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(){ char what[256]; int num; int depth=0; int hpos=0; int aim=0; FILE* fp = fopen("input","r"); while (EOF != fscanf(fp,"%s %d",what,&num)){ if (!strcmp(what, "forward")){ hpos+=num; depth+=aim*num; } else if (!strcmp(what, "down")){ aim+=num; } else if (!strcmp(what, "up")){ aim-=num; } } printf("%d\n",depth*hpos); return 0; }
22:54
although this is what the code is
Avatar
Deleted User 02-Dec-21 10:54 PM
doesn't seem all too bad
Avatar
yeah he said he was new to c
22:55
guessing it's wrong flags
Avatar
Deleted User 02-Dec-21 10:55 PM
i wonder what tomorrow will bring us
22:55
every day will prompt me with 3 things 2 challenge parts and setting up 1 language server
22:55
SMUG
22:56
the language server setup is preparation for the next day, of course, I need my autocomplete on the next language (edited)
Avatar
every day is just me googling what parts of the ruby stdlib have the solution built in
22:56
and then porting it to crystal
Avatar
Deleted User 02-Dec-21 10:56 PM
ultimatelul
22:57
for me it'll be a lot of googling as well, since I keep using languages I've never even looked at before (except ZSH/TS, that is)
22:57
trying to come up with a logical solution for a given problem with a language you haven't used is more difficult than one might think
Avatar
ts seems really unfit for this but so does scratch
Avatar
Deleted User 02-Dec-21 10:58 PM
TS is fine depending on the problem, you see
Avatar
Avatar
Deleted User
trying to come up with a logical solution for a given problem with a language you haven't used is more difficult than one might think
i don't have this issue, but that's because i start with a language i know
Avatar
Deleted User 02-Dec-21 10:58 PM
well, duh
Avatar
and port it over
22:58
i'd say that's a great way to learn though
Avatar
Deleted User 02-Dec-21 10:58 PM
which?
Avatar
starting with one you know and porting over
Avatar
Deleted User 02-Dec-21 10:58 PM
ah
22:59
maybe i should do the same
Avatar
although starting from scratch with one you don't know kinda puts you in the mindset of that language
22:59
certain languages have certain ways of doing things
Avatar
Deleted User 02-Dec-21 10:59 PM
yeah, it's why i initially did it that way
22:59
starting off on the right foot, so to speak
Avatar
when i get bored i try obscure programming languages so i think i have a vague amount of familiarity with what i'll be writing
Avatar
Deleted User 02-Dec-21 11:01 PM
i should do the same
23:01
after finishing my ZSH solution, just try out random languages
Avatar
it's really fun although sometimes you end up installing beef
Avatar
Deleted User 02-Dec-21 11:02 PM
that's assuming i can finish the problem with ZSH, though
Avatar
true
Avatar
Deleted User 02-Dec-21 11:02 PM
i must say I've been doing fine until now
23:02
my solution for 2 was quite simplistic
Avatar
me when beef
23:02
i feel like day 2 was easier than day 1
Avatar
Deleted User 02-Dec-21 11:02 PM
because it was
Avatar
Avatar
toonlink
me when beef
Deleted User 02-Dec-21 11:03 PM
this somewhat reminds me of ImpactJS' level editor, Weltmeister
23:03
it's the color scheme
23:07
anyways, at least now that both of today's parts are done, i don't have to sit here until 2am working on some crap shell script, and can instead go to sleep in peace
23:08
good night everyone, the best of luck in about 6 hours lenya
23:09
I think I'll be spending the school day working on the challenge, as it is only 4 hours long
Avatar
the excel idiot 02-Dec-21 11:15 PM
oh i will do wacky stuff
23:18
I have a fun idea for if we wanna do more with the Events feature, we could do them so they start when a new puzzle gets unlocked each day
Avatar
Deleted User 03-Dec-21 06:11 AM
bruh, what the hell
06:12
finding the most common number?? how the hell should I do that programmatically?
Avatar
Deleted User 03-Dec-21 06:22 AM
you know what, I think I've figured it out, actually
06:23
the only problem with this is, well, what if there's an equal amount of the two numbers? I feel like the answers it'll generate are going to be horribly innacurate
Beef joined the server. 03-Dec-21 07:56 AM
Avatar
advent of cum.
Avatar
Deleted User 03-Dec-21 07:56 AM
advent of cum.
Avatar
i am currently catching up
07:56
e.g. day 1 part 1 :harold:
Avatar
F# etc maniac 03-Dec-21 07:56 AM
Fun
Avatar
okay i have a working implementation time to shove the given input in there
Avatar
Deleted User 03-Dec-21 08:01 AM
I've got a basic implementation ready to determine the most used number in a string
08:01
so that's ready to go
Avatar
F# etc maniac 03-Dec-21 08:07 AM
I assume you used a hash map Nvm that's not a thing in zsh
Avatar
Deleted User 03-Dec-21 08:10 AM
associative array
08:10
declare -A counts=()
Avatar
F# etc maniac 03-Dec-21 08:11 AM
Ah
Avatar
Deleted User 03-Dec-21 08:13 AM
and I just realized my implementation is wrong
08:13
it's for checking the most common number per line
08:14
not the most common number from every first bit of every number
08:18
well, that should be easy to fix, something like this firstChars=() for f in "${input[@]}" ; do firstChars+=( ${f:0:1} ) done
08:18
and then work with firstChars
Avatar
how does getting your input from the site actually work? is it session-based because I swear my code works fine and the answer was wrong
08:23
yet I had that input open then looked at leaderboard then went back to day 1 page
08:23
would that've reset my input
Avatar
the excel idiot 03-Dec-21 08:25 AM
feck my sheet isn't working
08:25
my answer is too low and i cant figure out why
08:25
oh i know why
08:25
the sheet cut it off at row 1000
Avatar
Avatar
Beef
how does getting your input from the site actually work? is it session-based because I swear my code works fine and the answer was wrong
Deleted User 03-Dec-21 08:27 AM
download the file input isn't reset afaik (edited)
Avatar
the excel idiot 03-Dec-21 08:27 AM
nvm thats not it, it removes the first couples 0s in a binary number
Avatar
Deleted User 03-Dec-21 08:27 AM
currently it looks like I will have to nest 3 for loops
Avatar
Avatar
Deleted User
download the file input isn't reset afaik (edited)
huh.
08:30
maybe my code is broken?
08:30
or I misread the question
Avatar
its bwoken
08:31
Avatar
Deleted User 03-Dec-21 08:31 AM
lmaoINTENSE
Avatar
Avatar
Beef
maybe my code is broken?
F# etc maniac 03-Dec-21 08:37 AM
Likely. Inputs are constant yet unique per user.
Avatar
Deleted User 03-Dec-21 08:42 AM
well that's not how you do it
08:45
what the hell, please help me
08:45
lmaoINTENSE
SoesjeWRLD joined the server. 03-Dec-21 08:49 AM
Avatar
the excel idiot 03-Dec-21 08:51 AM
welcum
Avatar
Avatar
Beef
Joined the server.
08:55
Beef!
Avatar
Deleted User 03-Dec-21 09:01 AM
okay, mad science has made it work
09:01
though it's skipping the first character for some reason
09:03
why the hell is it even printing the numbers bruharold
Avatar
Deleted User 03-Dec-21 09:11 AM
???
09:11
shouldn't it print Selected character: for every character it prints? what the hell is going on here?
E-Girl Rin-Chan joined the server. 03-Dec-21 09:35 AM
Avatar
E-Girl Rin-Chan 03-Dec-21 09:36 AM
OMG IS THAT THE REAL CREATABLE?
09:42
my brain died already
Avatar
Same 😎 🤙
Avatar
Deleted User 03-Dec-21 09:56 AM
I'm honestly a bit unsure where to go from here
09:58
I need to do the counting stuff on counts_$row
Avatar
the excel idiot 03-Dec-21 10:11 AM
bruh binary is so hard to work with in sheets
Avatar
E-Girl Rin-Chan 03-Dec-21 10:12 AM
@Deleted User i also want cum god role, bc of the cumSMP
Avatar
Deleted User 03-Dec-21 10:16 AM
HELP
10:16
WHAT IS HAPPENING
Avatar
the excel idiot 03-Dec-21 10:18 AM
aAAAAAAAAAAAAA
10:22
If sheets didn't get rid of 0s I would already have it
Avatar
Deleted User 03-Dec-21 11:01 AM
I see you have ran into a limitation lenya
11:01
tried treating the entire column as a string?
Avatar
the excel idiot 03-Dec-21 11:01 AM
indeed
11:01
i did
11:01
the thing is,
11:01
the column with the input has the 0s
11:01
but I use a function to split all the numbers into separate columns
Avatar
Deleted User 03-Dec-21 11:02 AM
right
Avatar
the excel idiot 03-Dec-21 11:02 AM
problem is, that function gets rid of the 0s so if the first number is a 0 it gets rid of it and doesn't even show it
11:02
it can have 0s later on but it always starts with a 1
Avatar
Deleted User 03-Dec-21 11:02 AM
lmaoINTENSE
Avatar
the excel idiot 03-Dec-21 11:03 AM
I may have an idea
11:03
i just have to see if its possible
11:04
manually setting each column to display the first/second/third etc. number instead of using 1 function to put it into all 12
11:06
if this doesn't work I'll try doing it in excel instead
Avatar
haven't checked this challenge yet, don't tell me what it is but has anyone else completed it yet?
Avatar
Deleted User 03-Dec-21 12:03 PM
I'm close
12:03
Though, I'm ashamed to admit I have reached a limitation of the shell language
12:04
So a Dart rewrite is necessary
Avatar
the excel idiot 03-Dec-21 12:04 PM
I see you have ran into a limitation
12:04
whats wrong with it btw?
Avatar
Deleted User 03-Dec-21 12:05 PM
Dynamic variables aren't quite nice to work with
Avatar
the excel idiot 03-Dec-21 12:05 PM
ah
Avatar
Deleted User 03-Dec-21 12:06 PM
e.g. for (( i=1; i < 10; i++)); do var_$i = $i print "$var_$i" done (edited)
12:06
That print invocation is the problem
12:06
it expands $var_ and $i separately instead of considering it as one variable
12:07
hacks such as eval "print \$var_$i" are possible, though (edited)
Avatar
the excel idiot 03-Dec-21 12:07 PM
ah
12:07
I can see why that would be uneasy to work with though
Avatar
Deleted User 03-Dec-21 12:11 PM
I'll try to redo it in Dart later
12:12
@toonlink you available for VC later? Having lunch rn but I'll be available later
Avatar
uncertain
12:12
probably not
12:12
but hopefully
Avatar
Deleted User 03-Dec-21 12:13 PM
Alright
Avatar
Deleted User 03-Dec-21 01:02 PM
Since I'm rewriting Day 3 in Dart, here's the remnants of my ZSH crap:
13:18
very unhappy with my current solution
13:18
puts "What file would you like to solve for?" print "> " file = gets.not_nil! unless File.exists? file puts "You must provide a valid file!" exit end def toDecimal(binary) binary.reverse.chars.map_with_index do |digit, index| digit.to_i * 2 ** index end.sum end instructions = File.read(file).lines counts = {} of Int32 => Array(Int32) size = (0...instructions[0].size) # This is always like, 6, but I want to make clean code size.each do |i| # Left is 0, right is 1 counts[i] = [0, 0] end instructions.each do |i| i.chars.each_with_index do |num, index| counts[index][num.to_i] += 1 end end gammaArr = [] of String size.each do |i| if counts[i][0] > counts[i][1] gammaArr.push("0") else gammaArr.push("1") end end finalGamma = gammaArr.join finalEpsilon = gammaArr.map{|i| i == "1" ? "0": "1"}.join puts toDecimal(finalGamma) * toDecimal(finalEpsilon) (edited)
13:22
13:22
(for day 3 part one that is)
Avatar
Deleted User 03-Dec-21 01:25 PM
I have the following but I'm running into a problem
13:25
13:27
I don't know what it means or why it's happening
Avatar
that's because the length is always 1 higher
Avatar
Deleted User 03-Dec-21 01:28 PM
the length of what?
Avatar
each row
13:29
"110110000100".length -> 12 [ '1', '1', '0', '1', '1', '0', '0', '0', '0', '1', '0', '0' ][12] -> doesn't exist
13:29
at least that's what i'm seeing from this
Avatar
Deleted User 03-Dec-21 01:30 PM
so... what do I do? just -1?
Avatar
that's probably the simplest way of doing it, yeh
Avatar
Deleted User 03-Dec-21 01:30 PM
Wait, isn't length readonly
13:30
oh, just create a copy and modify that instead, duh
13:31
var length = input.length - 1
13:31
or something, whatever, I'll look after my walk
Avatar
yep
13:31
also, part 2 may be the filtering of us all
13:31
it's quite complex
Avatar
F# etc maniac 03-Dec-21 01:43 PM
Oh my god Christmas link pfp is adorable
Avatar
Avatar
toonlink
also, part 2 may be the filtering of us all
Deleted User 03-Dec-21 01:46 PM
HAHAHA, already?!?!
13:46
alright, let me fix my errors and see if I can still check it out today lmaoINTENSE
Avatar
Avatar
Deleted User
HAHAHA, already?!?!
well, it's not that hard
13:47
just
13:47
a lot
Avatar
Avatar
toonlink
also, part 2 may be the filtering of us all
F# etc maniac 03-Dec-21 01:47 PM
I refuse to be filtered so early
Avatar
same
13:47
i'll get past it but i also can't manage to concentrate
13:47
too much text
Avatar
F# etc maniac 03-Dec-21 01:48 PM
Like at least day 10 or smth (edited)
Avatar
i do want to maintain my leaderboard position so i should probably do this before you guys
Avatar
F# etc maniac 03-Dec-21 01:48 PM
Lol
Avatar
i predict that you will be the one who doesn't get filtered @F# etc maniac
Avatar
F# etc maniac 03-Dec-21 01:48 PM
Ehehe
Avatar
Deleted User 03-Dec-21 01:48 PM
oh, come on, what?
Avatar
what the fuck
Avatar
Deleted User 03-Dec-21 01:48 PM
13:49
it's still whining about sum[i] = int.parse(number[i])
13:49
wait
Avatar
as per usual ruby has a function do to all of the work for me
Avatar
Deleted User 03-Dec-21 01:50 PM
yeah yeah yeah
13:51
okay, I think I know the issue
13:54
ah, ah, I see, I've got something
Avatar
puts "What file would you like to solve for?" print "> " file = gets.not_nil! unless File.exists? file puts "You must provide a valid file!" exit end def toDecimal(binary) binary.reverse.chars.map_with_index do |digit, index| digit.to_i * 2 ** index end.sum end instructions = File.read(file).lines.map{|arr| arr.split("") }.transpose gammaArr = [] of String instructions.each do |i| zeroCount = i.count("0") oneCount = i.count("1") if zeroCount > oneCount gammaArr.push("0") else gammaArr.push("1") end end finalGamma = gammaArr.join finalEpsilon = gammaArr.map{|i| i == "1" ? "0": "1"}.join puts toDecimal(finalGamma) * toDecimal(finalEpsilon)
13:54
new cleaned up solution using ruby's amazing stdlib (edited)
Avatar
Deleted User 03-Dec-21 01:58 PM
print debugging tells me, uhh...
13:58
13:59
...it prints nothing
13:59
it doesn't even hit the second for loop???
14:01
@F# etc maniac you got any idea what black magic bullshit this thing is on?
Avatar
Avatar
toonlink
Click to see attachment 🖼️
it gets reliably slower when i abuse the stdlib
14:03
Avatar
Deleted User 03-Dec-21 02:04 PM
lol
14:05
so, foolish me thinks it might be a problem with my setup
14:05
but nono, DartPad fails to run my code as well
14:05
leaving me with literally no idea why it's not working
14:07
found this REFAL-5 solution, what the hell
Avatar
lmao
Avatar
Deleted User 03-Dec-21 02:07 PM
hey creatable
14:07
lisp interpreter
Avatar
Avatar
Deleted User
lisp interpreter
HAHAHAHA
Avatar
Deleted User 03-Dec-21 02:09 PM
creatable? lenya
14:09
creatable? lmaoINTENSE
Avatar
yeah i post in the threads lmao
Avatar
Avatar
Deleted User
found this REFAL-5 solution, what the hell
Deleted User 03-Dec-21 02:11 PM
NOOOO, ANOTHER ONE
14:12
komi_said_no
Avatar
HAHAHA
14:12
also i'm not doing a scratch solution for this shit
14:12
fuuuuck that
Avatar
Deleted User 03-Dec-21 02:12 PM
LMFAO
14:12
I won't even attempt to benchmark my shit
14:12
also I am rewriting in TS because fucking Fartlang won't cooperate
Avatar
part 2 is just the same thing btw
Avatar
Deleted User 03-Dec-21 02:26 PM
Avatar
hm?
Avatar
Deleted User 03-Dec-21 02:26 PM
14:26
finally
Avatar
pogger
Avatar
Deleted User 03-Dec-21 02:39 PM
alright
14:39
next one
14:40
oh god
Avatar
HAHAHA
Avatar
Deleted User 03-Dec-21 02:42 PM
I won't let this be my filter
14:43
I'll work from now until goddamn midnight if I have to
14:43
it's the weekend, game on, AoC
14:44
Avatar
lol
14:46
using reader mode sorta helps (edited)
Avatar
Deleted User 03-Dec-21 02:46 PM
I wish you the best of luck
14:46
You can do it
Avatar
so can you!
Avatar
Deleted User 03-Dec-21 02:47 PM
:)
Avatar
Deleted User 03-Dec-21 03:41 PM
I need to take a break from my screen, goddamnit
15:41
My eyes are going to fall out
Avatar
lol
Avatar
Deleted User 03-Dec-21 04:05 PM
bruharold
Avatar
@the excel idiot
16:06
it didn't work. (edited)
Avatar
the excel idiot 03-Dec-21 04:06 PM
it did not work
Avatar
Deleted User 03-Dec-21 04:10 PM
how's your excel going, Nico
16:11
is day 3 going to be the grand filtering of you? it can't be, right? (edited)
Avatar
the excel idiot 03-Dec-21 04:16 PM
i found a way i think
Avatar
Avatar
Deleted User
bruharold
AAAA FUCK MY LEADERBOARD POSITION NOOO
16:16
i mean
16:16
still in first
16:16
but ANGY
16:16
nobody can win before me!!!!!!!!!!!!!!!!!!!!!!!!
Avatar
the excel idiot 03-Dec-21 04:17 PM
oh hey it works
Avatar
Avatar
toonlink
nobody can win before me!!!!!!!!!!!!!!!!!!!!!!!!
Deleted User 03-Dec-21 04:18 PM
come on, give me a break harold (I know you're sarcastic)
16:18
we're here for fun, after all
Avatar
the excel idiot 03-Dec-21 04:18 PM
:D
Avatar
the excel idiot 03-Dec-21 04:38 PM
16:38
:)
Avatar
Deleted User 03-Dec-21 04:44 PM
show show show
Avatar
the excel idiot 03-Dec-21 04:45 PM
gladly
16:46
columns B:M use the MID function to extract a digit from its position, and convert it into a value
16:46
16:46
wait no
16:46
those are the wrong ones
16:47
here are the right ones
16:47
16:47
the cells take the average of the entire column of data, then round up or down for a 1 or 0
16:48
that counts which digit (1 or 0) is the most common one, and then those digits get put into the epsilon and gamma numbers in B1011 and B1012
16:48
then they are converted into decimal and multiplied by each other, and you get the result in D1012
16:49
what the fuck is part 2 ;-;
16:49
imma do part 2 some other time im tired
Avatar
Avatar
the excel idiot
what the fuck is part 2 ;-;
Deleted User 03-Dec-21 04:51 PM
HAHAHA
16:51
oh, man, I wish you the best of luck with 2
16:52
I'm sure you'll figure it out somehow, as you always do
16:52
Don't let this be your filter
Avatar
the excel idiot 03-Dec-21 04:52 PM
I will do my best
16:52
I'm good at making bullshit solutions out of bullshit tools
16:52
i first did this when i got into complicated map-making in minecraft 1.6 or whatever and decided to fuck all command blocks and not use them
16:54
Day 1 Part 1 174, Measurements larger than the previous measurement,1316 180,Increased,1316 Measurements larger than the previous measurement 179,Decreased 186,Increased 184,Decreased 176,Decreased 177,Increased 190,Increased 173,Decreased 174,Increased 176,Increased 175,Decreased 172,Decreased 175
Avatar
Deleted User 03-Dec-21 04:56 PM
I fucking love Day 2
16:56
I sometimes really wonder how you do this stuff
Avatar
the excel idiot 03-Dec-21 04:58 PM
pffff
17:00
i think the most impressive thing I've done is still the working spaceship console tho
17:00
in sheets
Avatar
Deleted User 03-Dec-21 05:02 PM
oh, yes
Avatar
the excel idiot 03-Dec-21 05:03 PM
i think the best part of it is the fucking radar map
17:03
i used a BUBBLE CHART and trigonometry
17:03
to make a live 2d map with accurate distance and size
Avatar
F# etc maniac 03-Dec-21 05:03 PM
your sheets solutions are actually so big brain holy shit
Avatar
Deleted User 03-Dec-21 05:04 PM
HAHAHAH
Avatar
F# etc maniac 03-Dec-21 05:04 PM
heres your medal 🥇
Avatar
the excel idiot 03-Dec-21 05:04 PM
thank you :)
Avatar
Deleted User 03-Dec-21 05:04 PM
I don't think I'll ever forget this participation
Avatar
F# etc maniac 03-Dec-21 05:05 PM
random thought: Nim's proc syntax is very very functional... proc greaterThan32(x: int): bool = x > 32 f# to compare: let greaterThan32 x = x > 32 (edited)
Avatar
Deleted User 03-Dec-21 05:05 PM
I will definitely just keep this server here for next year or if we want to organize a previous year's one
Avatar
F# etc maniac 03-Dec-21 05:05 PM
yes ofc
Avatar
Avatar
F# etc maniac
random thought: Nim's proc syntax is very very functional... proc greaterThan32(x: int): bool = x > 32 f# to compare: let greaterThan32 x = x > 32 (edited)
Deleted User 03-Dec-21 05:05 PM
nooooOOO
Avatar
F# etc maniac 03-Dec-21 05:05 PM
lol
17:05
you can still return and shit it just implicitly returns the last thing so making lambdas like that is really simple
Avatar
the excel idiot 03-Dec-21 05:05 PM
yee
Avatar
F# etc maniac 03-Dec-21 05:06 PM
of course im still gonna abuse this to make my code look weird to people :p
Avatar
Deleted User 03-Dec-21 05:07 PM
you doing today in Nim?
Avatar
F# etc maniac 03-Dec-21 05:07 PM
yes
Avatar
Deleted User 03-Dec-21 05:07 PM
nice, nice
17:07
I'll hold off from pushing to the repo until I have to leave
Avatar
F# etc maniac 03-Dec-21 05:08 PM
ok im using func over proc because yes
17:08
this is actually kinda a comfy style of programming: you can mutate shit unless its in your own scope
17:08
kinda a hybrid and i like it
Avatar
Deleted User 03-Dec-21 05:09 PM
I might do one day in Yoptascript if I get the opportunity
Avatar
F# etc maniac 03-Dec-21 05:09 PM
nim has the biggest upside of functional programming lessgoo
17:09
this makes me very happy
17:10
hmm
Avatar
Deleted User 03-Dec-21 05:10 PM
no, no
17:10
YoptaScript - скриптовый язык программирования для гопников и чётких пацанов. Yopta.Space
Avatar
F# etc maniac 03-Dec-21 05:10 PM
oh esolang
17:10
kek
17:10
oh fuck
Avatar
Deleted User 03-Dec-21 05:11 PM
lmaoINTENSE
Avatar
F# etc maniac 03-Dec-21 05:11 PM
how accurate is google translate gyy gop vnature pussy , lt nach cookie yopt law ( ) zhy vilkoyvglaz ( gop type nechotko ) zhy ksiva . malyava ( " I really am a language " ) nah gop bitch chotko tries have ilivzhopuraz zhy gop bitch chotko nach potreschim ( semki choblyasuka Troole ) zhy lt bitch ksiva . compute LohaByNumber ( " list " ) nah fucked up . nix ( " Hello, yopta " ) nah there is there is
17:11
Avatar
Deleted User 03-Dec-21 05:12 PM
given this is an inside joke in the russian community, no
Avatar
F# etc maniac 03-Dec-21 05:12 PM
oh
Avatar
Deleted User 03-Dec-21 05:12 PM
like, gop is just a reference to old gopnik culture
Avatar
F# etc maniac 03-Dec-21 05:13 PM
k
17:16
copilot is a lifesaver
17:17
thats 6 times but ill take it
Avatar
Deleted User 03-Dec-21 05:34 PM
I've disabled copilot in my AoC workspace because no
Avatar
F# etc maniac 03-Dec-21 05:38 PM
yeah boiiii got epsilonRate calculating
17:39
also import std/rdstdin func readStdin(): string = var txt = "" while true: var line = "" if not rdstdin.readLineFromStdin("", line): break txt &= line & "\n" txt[0..^2]
Avatar
Avatar
F# etc maniac
yeah boiiii got epsilonRate calculating
F# etc maniac 03-Dec-21 05:39 PM
*gammaRate
Avatar
okay it code time
17:43
enough being lazy
Avatar
Deleted User 03-Dec-21 05:44 PM
nice nice
Avatar
time to catch up on the third one!
Avatar
anyone wanna VC funny of code?
Avatar
yeah will get filtered soon
Avatar
Avatar
Beef
anyone wanna VC funny of code?
i'm down
Avatar
Deleted User 03-Dec-21 05:47 PM
be there soon
Avatar
🔊General
Avatar
F# etc maniac 03-Dec-21 05:55 PM
nice let split = readStdin().split({'\n'}) let (gr, er) = calculateRates(split) echo gr * er
17:55
overall took me 35 lines of nim
Avatar
@Beef did you do it yet
Avatar
Deleted User 03-Dec-21 06:07 PM
he's doing 1-1 rn
Avatar
F# etc maniac 03-Dec-21 06:24 PM
ayyyy
18:29
18:30
thats day 3 part 1
Avatar
pog
Avatar
F# etc maniac 03-Dec-21 06:30 PM
do i win for speed?
Avatar
nah i did
Avatar
F# etc maniac 03-Dec-21 06:30 PM
which reminds me do you have a bigboy for today
Avatar
Avatar
toonlink
nah i did
F# etc maniac 03-Dec-21 06:30 PM
fuck
Avatar
F# etc maniac 03-Dec-21 06:31 PM
holy
Avatar
lol
18:31
crystal p comfy
Avatar
Avatar
F# etc maniac
which reminds me do you have a bigboy for today
nah
Avatar
F# etc maniac 03-Dec-21 06:31 PM
nim is still going zoomy af tho
Avatar
Avatar
toonlink
nah
F# etc maniac 03-Dec-21 06:31 PM
oh :\
Avatar
that was just my regular input
Avatar
F# etc maniac 03-Dec-21 06:32 PM
holy fuck
Avatar
HAHA YEAH.
Avatar
Deleted User 03-Dec-21 06:43 PM
HAHAHAHAH
Avatar
it can only get harder from here
Avatar
F# etc maniac 03-Dec-21 06:54 PM
yep
18:54
this is a fun challenge tho i only have a little teeny bit of logic to fix
Avatar
F# etc maniac 03-Dec-21 07:11 PM
yayyy
19:12
my part 2
19:12
yooo second place
19:12
@toonlink i am coming for you
19:13
(cumming?)
Avatar
motherfucker
Avatar
F# etc maniac 03-Dec-21 07:13 PM
if you do part 2 you can pull ahead
Avatar
i'm too dumb to do the 3rd one
19:14
i'm getting filtered alredy
Avatar
F# etc maniac 03-Dec-21 07:14 PM
i had to call them p1 and p2 cause numbers arent valid nim module names
Avatar
Avatar
toonlink
motherfucker
Deleted User 03-Dec-21 07:14 PM
yeah tbh given the fact that you were fast on the first ones you've built up a margin strong enough to withhold maybe a few days
Avatar
F# etc maniac 03-Dec-21 07:15 PM
you see now its the weekend i can do the solutions in the mornings and not in the afternoon lessgooooo
19:17
mfw
Avatar
Avatar
Deleted User
yeah tbh given the fact that you were fast on the first ones you've built up a margin strong enough to withhold maybe a few days
i think i'll be able to pick up the pace after this one
19:18
and i'm not going to sleep without finishing this
19:18
i just kinda am distracting myself
19:18
because procrastination is built into me
Avatar
Deleted User 03-Dec-21 07:18 PM
that's okay, you need some breaks as well sometimes
Avatar
Avatar
Deleted User
I need to take a break from my screen, goddamnit
Deleted User 03-Dec-21 07:19 PM
see:
Avatar
F# etc maniac 03-Dec-21 07:19 PM
Endeavouros has a new grub theme and its purple and its kinda beautiful
19:19
It looks blue there but its more purple
19:21
went into audio settings tf
19:21
its caused by my english plugin kek
Avatar
english simplified should just mess with i18n not patch anything
Avatar
F# etc maniac 03-Dec-21 07:22 PM
true
Avatar
Deleted User 03-Dec-21 07:22 PM
HAAHHAAHAHHA
19:22
THAT'S BEAUTIFUL
Avatar
un pepene
Avatar
Avatar
toonlink
because procrastination is built into me
IT workers in a nutshell
Avatar
@toonlink @F# etc maniac @Deleted User
Avatar
so fake
19:52
it's not 2 pm
Avatar
F# etc maniac 03-Dec-21 07:53 PM
i will eat your S O U L
Avatar
don't have one 😎
Avatar
me when findByProps
Avatar
lisp interpreter
19:54
19:55
Avatar
F# etc maniac 03-Dec-21 07:55 PM
FUCK_OFF_AND_DIE <| (["mom"] |> (List.append <| ["your"]) |> cumcord.modules.webpack.findByProps)
Avatar
Avatar
Djajbj000
Click to see attachment 🖼️
oh.
19:56
Avatar
\((?>\((?<c>)|[^()]+|\)(?<-c>))*(?(c)(?!))\) ^ lisp interpreter
Pancake joined the server. 03-Dec-21 09:46 PM
Avatar
Pancake BOT 03-Dec-21 09:46 PM
Author icon
Thanks for adding me to your server ❤
My prefix in this server is p! Use p!help to get a list of commands, and p!help <command> to see more info about a command. If you need help or find a bug, ask for help in our support server
Avatar
p!play scary monsters and nice sprites
Avatar
Pancake BOT 03-Dec-21 09:46 PM
Now Playing
Avatar
p!play mundian to bach ke
Avatar
p!skip
Avatar
Pancake BOT 03-Dec-21 09:47 PM
check Voted to skip. 1 more votes needed.
Avatar
p!skip
Avatar
Pancake BOT 03-Dec-21 09:47 PM
check Song skipped.
21:47
Now Playing
21:49
p!slkip
21:49
p!skip
Avatar
Pancake BOT 03-Dec-21 09:49 PM
check Voted to skip. 1 more votes needed.
Avatar
p!skip
Avatar
Pancake BOT 03-Dec-21 09:49 PM
check Song skipped.
21:49
Now Playing
Avatar
Pancake BOT 03-Dec-21 09:51 PM
(edited)
Avatar
Pancake BOT 03-Dec-21 09:51 PM
check Song skipped.
21:51
Now Playing
Original GhostBusters Theme Song [0:00 / 04:04] Requested by: @Beef
Avatar
p!play chinese rap
Avatar
Pancake BOT 03-Dec-21 09:52 PM
(edited)
21:55
Now Playing
Chinese Rap Full [0:00 / 03:24] Requested by: @pocis
Avatar
@toonlink
Avatar
Pancake BOT 03-Dec-21 10:03 PM
Disconnected due to inactivity. If you enjoy the services Pancake provides, consider pledging on Patreon for exclusive perks!
Avatar
Avatar
Beef
@toonlink
Deleted User 03-Dec-21 10:13 PM
what the fuck.
Avatar
"no please not your lawyers i'll do anything"
Avatar
Deleted User 03-Dec-21 10:20 PM
ultimatelul
22:20
any more to this?
Avatar
not really
Avatar
Avatar
Deleted User
any more to this?
Avatar
Deleted User 03-Dec-21 10:30 PM
why did you delete a project that wasn't even public
22:30
don't mindlessly follow the things some french janny says
22:30
not because she shouldn't boss you around, but because you're a small bother lenya
zet joined the server. 03-Dec-21 10:40 PM
Avatar
i havent seen the sun in weeks
Avatar
this is the tradition
Avatar
OH FOR FUCKS SAKE I FOUND THE AOC PART TWO SOLUTION FUCKING 6 HOURS AGO BUT IT ENDED UP FAILING BECAUSE CRYSTAL DIFFERENTIATES A STRING AND A CHAR
22:56
fucking
Avatar
Deleted User 03-Dec-21 10:56 PM
are you joking
Avatar
i am not
22:57
22:57
22:57
if i didn't have the .to_s it fails
22:57
because it's a char and not a string
Avatar
Deleted User 03-Dec-21 10:57 PM
komi_said_no
Avatar
alyxia i had the solution with the stupid data structure
22:57
and this shit
22:57
is what made me think it was wrong
22:57
aaaa
22:57
i found it after you did yours but jesus fuck
Avatar
Deleted User 03-Dec-21 10:58 PM
well, point being you got it now :)
22:58
btw, are you making a repo eventually? lexiCheesePeek
Avatar
Avatar
toonlink
Click to see attachment 🖼️
what language is that
Avatar
Deleted User 03-Dec-21 10:58 PM
do you even have a local repo
Avatar
Avatar
zet
what language is that
Deleted User 03-Dec-21 10:58 PM
crystal
Avatar
Avatar
Deleted User
btw, are you making a repo eventually? lexiCheesePeek
eventually, yep!
Avatar
Avatar
Deleted User
do you even have a local repo
Deleted User 03-Dec-21 11:00 PM
please say yes please say yes don't make this a 1 commit repo because you haven't initialized yet aaaaa
Avatar
def getSecondAnswer(input) data = input pos = 0 while true return if data.size == 1 easier = data.map {|i| i.split("")}.transpose[pos] zeroCount = easier.count "0" oneCount = easier.count "1" keep = "0" if zeroCount > oneCount keep = "1" end data.reject! {|i| i[pos].to_s != keep } pos += 1 puts data end end here's my oxygen generator rating solution, it's a fucking mess (the cleaner one was made literally hours ago and trashed) (edited)
Avatar
Avatar
Deleted User
please say yes please say yes don't make this a 1 commit repo because you haven't initialized yet aaaaa
haha time to fake some commit history
Avatar
Deleted User 03-Dec-21 11:01 PM
BASTARD
Avatar
HAHAHA
23:23
code isn't dry, but it's certainly done
23:23
puts "What file would you like to solve for?" print "> " file = gets.not_nil! unless File.exists? file puts "You must provide a valid file!" exit end def toDecimal(binary) binary.reverse.chars.map_with_index do |digit, index| digit.to_i * 2 ** index end.sum end def flipBits(binaryArr) binaryArr.map do |digit| digit == "1" ? "0" : "1" end end input = File.read(file).lines def getFirstAnswer(input) gammaArr = [] of String input.map{|arr| arr.split("")}.transpose.each do |i| zeroCount = i.count "0" oneCount = i.count "1" if zeroCount > oneCount gammaArr.push "0" else gammaArr.push "1" end end finalGamma = gammaArr.join finalEpsilon = flipBits(gammaArr).join toDecimal(finalGamma) * toDecimal(finalEpsilon) end def getOxygen(input) data = input pos = 0 while true return data[0] if data.size == 1 easier = data.map {|i| i.split("")}.transpose[pos] zeroCount = easier.count "0" oneCount = easier.count "1" keep = "1" if zeroCount > oneCount keep = "0" end data = data.reject {|i| i[pos].to_s != keep } pos += 1 end end def getCo2(input) data = input pos = 0 while true return data[0] if data.size == 1 easier = data.map {|i| i.split("")}.transpose[pos] zeroCount = easier.count "0" oneCount = easier.count "1" keep = "0" if zeroCount > oneCount keep = "1" end data = data.reject {|i| i[pos].to_s != keep } pos += 1 end end def getSecondAnswer(input) oxygen = getOxygen(input) co2 = getCo2(input) toDecimal(oxygen) * toDecimal(co2) end puts "The first answer is: #{getFirstAnswer input}" puts getSecondAnswer input
23:23
here is the monstrosity i ended up making
23:23
i'll end up significantly cleaning it up later, just glad i got it done
23:24
it was better hours ago when i didn't realize that crystal was fucking me over
Avatar
Deleted User 03-Dec-21 11:24 PM
just undo changes tf
Avatar
honestly might be viable
Avatar
Deleted User 03-Dec-21 11:28 PM
alright, well, proud that i was able to get through today free balls toyota prius whatever shit good night!
23:40
hyperfine on day 3 solution with both part 1 and 2 (edited)
23:46
@F# etc maniac day 3 on a 40mb input file
Avatar
F# etc maniac 03-Dec-21 11:46 PM
gib big boi
Avatar
gonna take a while my up is shit
Avatar
F# etc maniac 03-Dec-21 11:47 PM
mk
Avatar
F# etc maniac 03-Dec-21 11:48 PM
23:48
lessgo
Avatar
Avatar
toonlink
@F# etc maniac day 3 on a 40mb input file
F# etc maniac 03-Dec-21 11:49 PM
haha now my nim is really pulling ahead!!! to clarify you got these right? 1 - 538566943635710624 2 - 2080109674705745450
Avatar
Avatar
F# etc maniac
haha now my nim is really pulling ahead!!! to clarify you got these right? 1 - 538566943635710624 2 - 2080109674705745450
large numbers tend to kinda break things (wew lad) so i just assume that the output is broken and exclusively benchmark lmao
Avatar
F# etc maniac 03-Dec-21 11:50 PM
I wonder how much of an impact disabling gc makes at this level
Avatar
Avatar
toonlink
large numbers tend to kinda break things (wew lad) so i just assume that the output is broken and exclusively benchmark lmao
F# etc maniac 03-Dec-21 11:50 PM
Lol
23:51
Do we get the same tho?
Avatar
nada
Avatar
F# etc maniac 03-Dec-21 11:51 PM
Oh
Avatar
F# etc maniac 03-Dec-21 11:51 PM
Welp
Avatar
this is entirely on crystal being funky
Avatar
F# etc maniac 03-Dec-21 11:51 PM
Oh actually do those numbers overflow crystal ints
Avatar
yes
Avatar
F# etc maniac 03-Dec-21 11:51 PM
I'm using nim uints
23:51
So 32 bits unsigned Id assume
23:52
I guess that's why my result is so much larger than yours then
23:52
Still cool (edited)
23:52
all i know is that & makes it not explode but also makes it have shit results
23:53
nim is genuinely almost always faster than crystal and better at handling large numbers ootb
Avatar
F# etc maniac 03-Dec-21 11:53 PM
Can you not get like a uint64 in crystal
23:53
you can
Avatar
Avatar
toonlink
nim is genuinely almost always faster than crystal and better at handling large numbers ootb
F# etc maniac 03-Dec-21 11:53 PM
Yeah nim is zoomy af probably because c
Avatar
it just doesn't abstract it away
Avatar
Avatar
toonlink
you can
F# etc maniac 03-Dec-21 11:53 PM
Well that's your solution to overflowy numbers then no?
Avatar
yeah just gotta add a lot of .to_u32
Avatar
F# etc maniac 03-Dec-21 11:55 PM
Ah
Avatar
yeah too much effort ngl
00:01
i'd pick crystal if i want my code to be expressive and pretty, and i'd pick nim if i want my code to be fast
Avatar
Deleted User 04-Dec-21 07:38 AM
bingo
07:38
are you FUCKING SERIOUS
Avatar
Deleted User 04-Dec-21 08:00 AM
okay so it's more fucking row and column management
Avatar
E-Girl Rin-Chan 04-Dec-21 08:01 AM
some of those challenges are too much to even comprehend, like wtf
Avatar
Deleted User 04-Dec-21 09:19 AM
now that's cool
Avatar
Avatar
Deleted User
okay so it's more fucking row and column management
starting to become less fun, lol
Avatar
Avatar
E-Girl Rin-Chan
some of those challenges are too much to even comprehend, like wtf
Deleted User 04-Dec-21 09:44 AM
it's all about reading properly and managing to filter out the filler text
Avatar
Avatar
toonlink
starting to become less fun, lol
Deleted User 04-Dec-21 09:44 AM
well, guess this'll be an easy part1 then lenya
Avatar
didnt even finish day1
09:45
requires too much focus for some random elf shit
Avatar
i'll get it done, but first i need to wake up
09:45
also lol
Avatar
Avatar
toonlink
also lol
lol
09:55
tf
Avatar
F# etc maniac 04-Dec-21 10:05 AM
Morning all coding time
10:06
What lang should i do today?
Avatar
Deleted User 04-Dec-21 10:08 AM
elixir
Avatar
Avatar
Deleted User
elixir
i genuinely want to see this happen
Avatar
Deleted User 04-Dec-21 10:09 AM
so do i
10:09
but I don't think he will
10:11
10:11
10:11
how the fuck
10:11
is it serving a page
10:11
with a web server
10:11
that isn't fucking installed
Avatar
Avatar
Deleted User
elixir
F# etc maniac 04-Dec-21 10:11 AM
K
Avatar
Deleted User 04-Dec-21 10:11 AM
lmaoINTENSE
Avatar
F# etc maniac 04-Dec-21 10:12 AM
I saw the cleanest solution to day 1 was Erlang and elixir has to be nicer right?
Avatar
Deleted User 04-Dec-21 10:12 AM
it's based on erlang
Avatar
F# etc maniac 04-Dec-21 10:12 AM
Ik
Avatar
Deleted User 04-Dec-21 10:12 AM
and erlang looks ass
10:12
so it must be better
Avatar
F# etc maniac 04-Dec-21 10:13 AM
But yeah i feel like my solutions compared to that clean af Erlang one are "15 y/o fp enthusiast" vs "chad who got a very secure very high paying job writing erlang like a god"
10:15
I cba to find it now tho
Avatar
Deleted User 04-Dec-21 10:15 AM
harold
Avatar
elixir just runs on the beam vm
10:16
they're two different languages
10:17
elixir is much nicer, and far more functional
Avatar
F# etc maniac 04-Dec-21 10:17 AM
yeah thought so
Avatar
a lot of people compare elixir to Ruby but more functional (edited)
Avatar
F# etc maniac 04-Dec-21 10:29 AM
Ok i don't have time I'll have to do aoc this afternoon
Avatar
Avatar
Deleted User
Click to see attachment 🖼️
iirc it's not called that
10:35
Avatar
Avatar
pocis
iirc it's not called that
Deleted User 04-Dec-21 10:36 AM
lighttpd isn't installed either
Avatar
no like
10:36
apache
10:36
you see what i mean
Avatar
Deleted User 04-Dec-21 10:36 AM
no, no, i uninstalled apache2 before i took that screenshot, as it was installed
Avatar
it could be named "webserver-apache" knowing how retarded the raspbian maintainers are
10:36
also could just be browser cache
Avatar
Avatar
pocis
💀
@Deleted User 1st notification
Avatar
Deleted User 04-Dec-21 10:37 AM
WHAT THE FUCK
Avatar
The Notifications API lets a web page or app send notifications that are displayed outside the page at the system level; this lets web apps send information to a user even if the application is idle or in the background. This article looks at the basics of using this API in your own apps.
10:37
yes it is real
10:38
10:38
truly a mozilla moment
Avatar
Deleted User 04-Dec-21 10:38 AM
since I don't have a display, I had to make my package list script compatible with tty-exclusive sessions
10:38
tahdah, fzf to the rescue
Avatar
display deez nuts
10:39
LOL !
10:39
fuck is fzf
Avatar
Deleted User 04-Dec-21 10:39 AM
fuzzy finder
10:39
Avatar
I don't know if it's me or something but
10:40
my only laptop with Iris Xe has a bunch of GL issues
10:40
especially in firefox
10:40
like, tab names going nuts or literally cutting in half
10:40
sometimes not even rendering
Avatar
Avatar
F# etc maniac
Ok i don't have time I'll have to do aoc this afternoon
okay so my competition is alyxia mostly
Avatar
sometimes gray blocks just overlap on tab names or page contents
10:41
sometimes being every tab switch
Avatar
Deleted User 04-Dec-21 10:42 AM
ah for god's sake
10:43
one of the neovim maintainers I know is doing AoC with Ada
10:43
10:43
10:44
bruharold
10:44
Ada is case insensitive? bruharold bruharold bruharold
Avatar
I don't have Ada
10:44
Adad
10:44
💀
Avatar
Avatar
toonlink
okay so my competition is alyxia mostly
F# etc maniac 04-Dec-21 11:09 AM
Maybe i have time idk
11:10
I just had to get a fresh trim ™️ this morning and go to some Christmas thing so i have less time
Avatar
Deleted User 04-Dec-21 11:25 AM
We might get a fine addition to our team
Avatar
F# etc maniac 04-Dec-21 11:26 AM
Oh?
Avatar
@Deleted User HAHA I JUST HAD AN IDEA
Avatar
Deleted User 04-Dec-21 11:37 AM
sup
Avatar
Hello and welcome to Skript! This is a general "How to Skript" guide that will hopefully give you everything you need to get setup and…
Avatar
Deleted User 04-Dec-21 11:38 AM
FUCK YOU
Avatar
HAHAHAHA
Avatar
Deleted User 04-Dec-21 11:38 AM
komi_said_no
Avatar
Deleted User 04-Dec-21 11:40 AM
It's great
Avatar
i took so long to do that puzzle in a proper language and WatDu does it in FUCKING MINECRAFT
Avatar
Deleted User 04-Dec-21 11:41 AM
HHAHAHAHA
11:41
@the excel idiot Hey, you've got competition.
Avatar
the excel idiot 04-Dec-21 11:42 AM
YO
Avatar
@Beef now do day 2 in scratch
11:45
i still need to do day1 part 1
11:45
man.
11:45
i am not competent enough for practical coding
Avatar
it's all good
Avatar
Avatar
Beef
i still need to do day1 part 1
Deleted User 04-Dec-21 11:57 AM
did we not have this done already
11:57
WatDuhHekBro joined the server. 04-Dec-21 11:59 AM
Avatar
powershell
Avatar
î have no idea how to do day 3 properly
12:01
i had most of the logic implemented
12:02
but it was wrong
12:02
:(
Avatar
getting filtered on day 3
Avatar
Deleted User 04-Dec-21 12:04 PM
You should try again Molten
12:04
I'm sure you can figure it out
Avatar
how hard is day 4
Avatar
the excel idiot 04-Dec-21 12:05 PM
same happened to me day 3 was hard, but you can do it!
Avatar
F# etc maniac 04-Dec-21 12:05 PM
Day 3 i didn't do in f# so I've been like half filtered but i just didn't because of the nature of the task
12:06
But i haven't looked at today yet
Avatar
the excel idiot 04-Dec-21 12:06 PM
WHAT IS DAY 4
Avatar
Deleted User 04-Dec-21 12:06 PM
bingo
Avatar
the excel idiot 04-Dec-21 12:06 PM
OH NOOO
Avatar
Deleted User 04-Dec-21 12:06 PM
HAHAHAHHA
Avatar
the excel idiot 04-Dec-21 12:06 PM
I JUST READ IT
Avatar
what is love
12:06
baby dont hurt me
Avatar
F# etc maniac 04-Dec-21 12:06 PM
Lemme read this
12:07
This should be doable
12:07
Not too bad
Avatar
is gamma for this input
12:08
011100100010
12:08
can someone check that
12:11
wait is it
12:11
100101001010
12:12
nope my logic is totally fucked
Avatar
Deleted User 04-Dec-21 12:22 PM
i'll just use one file per challenge because there's so much fucking boilerplate and I'm not doing the same thing per file
Avatar
tfw discord overlay breaks a game
Avatar
bingo isn't the worst thing ever
Avatar
Deleted User 04-Dec-21 12:30 PM
yeah
Avatar
Avatar
Deleted User
did we not have this done already
i meant day1 part 2 lol
12:45
i cannot type
Avatar
Deleted User 04-Dec-21 12:45 PM
ah
Avatar
GOD DISCORD IS SO FUCKING SHIT
Avatar
Avatar
Beef
i meant day1 part 2 lol
same
Avatar
last year's bingo
Avatar
Deleted User 04-Dec-21 01:27 PM
Write a Turing machine
13:27
HAHAHAHA
13:27
504
lmaoINTENSE
13:27
13:28
we have a wall of text
13:28
it's called
13:28
fucking day 3 part 2
Avatar
i'm personally a fan of "write an interpreter"
Avatar
Deleted User 04-Dec-21 01:29 PM
lisp interpreter
Avatar
Avatar
Deleted User
lisp interpreter
HAHAHAHAHHAHAHAHYAHAHHAHAHHAHAHAHAHAHHA
Avatar
it finally stopped being funny to me
13:29
wow
Avatar
Deleted User 04-Dec-21 01:29 PM
ok, so make me a risc-v interpreter
13:30
I can't access 4chan
13:30
Avatar
anyways, i'm considering switching from crystal
13:31
for stuff like this scripting langs win
Avatar
Deleted User 04-Dec-21 01:31 PM
bash
Avatar
F# etc maniac 04-Dec-21 01:31 PM
Elixir feels super unrefined
13:31
Its not right for a functional lang to need so many parens and not allow functions inside functions
Avatar
Avatar
F# etc maniac
Elixir feels super unrefined
it's kinda barebones, you're supposed to build microservices in it and have it handle complex tasks that would need beam's parallelization "everything is a process" shit
13:33
i was looking into unikernels and realized that elixir's entire concept is fundamentally incompatible with them lol
Avatar
Deleted User 04-Dec-21 01:33 PM
where's the next aoc thread table
Avatar
"/g/ - Technology" is 4chan's imageboard for discussing computer hardware and software, programming, and general technology.
13:33
it'll auto-search for it when you add the slash at the end
Avatar
Deleted User 04-Dec-21 01:33 PM
oh it's a new one per day
Avatar
it's a new one per thread post limit
13:34
4chan has limits
13:34
once you hit the limit the thread can't be bumped and dies
13:34
so they just create a new one whenever the old one dies
Avatar
Deleted User 04-Dec-21 01:34 PM
lmaoINTENSE
Avatar
/g/ is a wonderful place for advent of code and nothing else
Avatar
Deleted User 04-Dec-21 01:35 PM
it's more of a friendly gettogether than anything else on /g/
Avatar
the rest of the time it's people jerking off their language / os / mac
Avatar
Deleted User 04-Dec-21 01:35 PM
ikr
Avatar
Avatar
toonlink
last year's bingo
Deleted User 04-Dec-21 01:35 PM
relevant
Avatar
people do that in the AOC threads but at least it's competitive
13:36
bottom left
Avatar
Deleted User 04-Dec-21 01:36 PM
LMAO
13:36
13:36
excuse me
13:37
I hope someone writes a compiler
13:37
also god this bingo is of such shit quality compared to last year (edited)
13:38
HAHAHA
13:39
powershell 🤪
Avatar
Deleted User 04-Dec-21 01:39 PM
woah
Avatar
doesn't solve anything yet, just grabs the input with your session
Avatar
Deleted User 04-Dec-21 01:40 PM
nice, nice
Avatar
wondering if truffleruby can run shoes
Avatar
can it run pants
Avatar
fucker
Avatar
Deleted User 04-Dec-21 01:40 PM
AVK AVK AVK AVK YES hhAHAHAHHAHA
Avatar
Avatar
toonlink
wondering if truffleruby can run shoes
the nikes
Avatar
Avatar
Deleted User
AVK AVK AVK AVK YES hhAHAHAHHAHA
wtf
Avatar
Deleted User 04-Dec-21 01:43 PM
lmaoINTENSE
Avatar
Deleted User 04-Dec-21 01:45 PM
I found another person using Excel so Nico should be able to pull it off just fine
13:45
leaSMUG
13:45
weirdos
13:46
might have fucked up a bit
13:46
Avatar
Deleted User 04-Dec-21 01:47 PM
pfff
Avatar
Deleted User 04-Dec-21 02:21 PM
dinner time
14:21
then work time
14:21
harold
Avatar
what work do you have that's in the evening (reasonable) but it lasts 2 hours
14:23
that exists
Avatar
this was harder than i thought
Avatar
F# etc maniac 04-Dec-21 02:24 PM
okay this is not the use case of elixir
Avatar
if anyone wants it
139.5 KB
Avatar
F# etc maniac 04-Dec-21 02:24 PM
this is not a comfy language
Avatar
only solves day 1 part 2 tho
Avatar
Avatar
Molten
what work do you have that's in the evening (reasonable) but it lasts 2 hours
Deleted User 04-Dec-21 02:26 PM
grocery store usually from 5~7 on Wednesdays and Thursdays but from 4~7 on Saturdays
14:26
restocking
Avatar
Avatar
Deleted User
grocery store usually from 5~7 on Wednesdays and Thursdays but from 4~7 on Saturdays
ah
14:27
didn't think people hire like that
Avatar
tf do you mean
Avatar
F# etc maniac 04-Dec-21 02:27 PM
okay parsing done
Avatar
haven't met a person who works 2 hours a day
Avatar
in grocery stores you can literally ask any employee for a job
14:27
yeah well 2 hours a day = 2 hours paid
Avatar
so you can't live off of that
14:27
good income tho
Avatar
the point is not to live off of it
Avatar
F# etc maniac 04-Dec-21 02:28 PM
if you want to live off it go get a full time job
Avatar
im fucking rich
14:28
like literally
Avatar
aren't you like 15
Avatar
i have the pib/citizen of the mozambique in my bank account
14:29
:trolla:
Avatar
Avatar
F# etc maniac
okay parsing done
i was about to be annoyed that i saw a solution early and then realized that F# is unreadable
Avatar
it really is
Avatar
F# etc maniac 04-Dec-21 02:30 PM
thats elixir.
Avatar
Avatar
toonlink
i was about to be annoyed that i saw a solution early and then realized that F# is unreadable
Deleted User 04-Dec-21 02:30 PM
elixir
Avatar
F# etc maniac 04-Dec-21 02:31 PM
and thats only the parsing none of the solving
Avatar
@everyoje
Avatar
F# etc maniac 04-Dec-21 02:31 PM
this is actually painful
14:32
do it in powershell when @F# etc maniac
14:32
🤪
Avatar
F# etc maniac 04-Dec-21 02:32 PM
no
Avatar
@Deleted User your zsh is unreadable
Avatar
F# etc maniac 04-Dec-21 02:32 PM
im gonna do this later
Avatar
actually wait
Avatar
Avatar
pocis
@Deleted User your zsh is unreadable
Deleted User 04-Dec-21 02:32 PM
which script
14:33
triples=() is an array ?
Avatar
Deleted User 04-Dec-21 02:33 PM
yes, yes it is
Avatar
your shit looks weird af
Avatar
Deleted User 04-Dec-21 02:34 PM
how so?
Avatar
idk like
14:34
why 2 for loops
14:34
couldn't you just have one ?
14:34
oh no yeah, having 2 avoids overcalulation
14:34
didn't think about that
Avatar
Deleted User 04-Dec-21 02:35 PM
yeah
Avatar
doing it in powershell feels horribly wrong (edited)
14:35
i love powershell
Avatar
Deleted User 04-Dec-21 02:36 PM
powershell is fine tbh
Avatar
honestly js devs that want to make desktop apps should just move to PS
14:36
or C# actually (edited)
Avatar
Deleted User 04-Dec-21 02:36 PM
the latter
Avatar
the what
Avatar
Deleted User 04-Dec-21 02:37 PM
latter
14:37
like, as in "former and latter"
Avatar
yeah no
14:37
i dont have it
Avatar
Avatar
pocis
doing it in powershell feels horribly wrong (edited)
cue tymon
Avatar
Avatar
toonlink
cue tymon
what
14:38
looks like my brain's english parser is malfunctioning
14:38
btw, I have input caching so you don't have to call the api everytime
Avatar
Avatar
Deleted User
like, as in "former and latter"
which one is the former and which one is the latter
14:39
PS would be former ?
Avatar
Deleted User 04-Dec-21 02:39 PM
yes
14:40
also your day 1 part 2 zsh is slow
14:40
like really slow
14:40
Avatar
Deleted User 04-Dec-21 02:40 PM
you're 3 days late in telling me that, I'm completely aware
14:40
and I don't really care
Avatar
no shit
Avatar
Deleted User 04-Dec-21 02:40 PM
as I don't benchmark anything
14:41
speed matters little to me
Avatar
the fact that your username starts with M and the christmas hat makes me think you're molten
14:41
@Molten give me christmas hat
14:42
here you go
14:42
my pfp with a hat
Avatar
wait here
Avatar
Deleted User 04-Dec-21 02:42 PM
lmaoINTENSE
14:42
anyways, I'll be leaving for work
Avatar
do i just make it myself
14:42
i'm lazy
14:42
even better
Avatar
caches session cookie caches inputs solves day 1 part 1 and part 2
15:01
small af too
Avatar
day 2 was so easy
Avatar
god damn
16:10
my day 3 part 1 works first time
16:11
16:11
it's so hacky
16:14
can't do day 3 part 2 as i have to meet a friend but god damn the wall of text that bitch is
Avatar
Deleted User 04-Dec-21 06:34 PM
nice work phorcys :)
Avatar
my part 2 code is broken for some reason
Avatar
it works !! (edited)
19:07
Avatar
Deleted User 04-Dec-21 07:13 PM
nice nice!
Avatar
fucking bingo
Avatar
I agree with your statement
Avatar
the excel idiot 04-Dec-21 07:54 PM
im still on d3p2 ;-;
19:54
good god what is this
Avatar
prepare for day 4
Avatar
the excel idiot 04-Dec-21 07:55 PM
i need to find some dumbass way to do d3p2
Avatar
when you figure it out its easy
19:55
🚎
Avatar
the excel idiot 04-Dec-21 07:55 PM
h o w
Avatar
day 4 is the "example works but input doesn't" scenario
Avatar
the excel idiot 04-Dec-21 07:56 PM
oh nvm i thought you were talking about d3p2
19:56
until now
19:56
what are you stuck on
Avatar
Avatar
pocis
you can look at my code (mostCommon function) if you want but I'm afraid that it will just spoil you
Avatar
the excel idiot 04-Dec-21 07:57 PM
hm
19:57
I'll try it on my own first
Avatar
the excel idiot 04-Dec-21 07:58 PM
i might have an idea on how
Avatar
tell me im curious
Avatar
the excel idiot 04-Dec-21 07:58 PM
but i feel like its gonna be a ton of work
19:58
wait nvm
Avatar
i cant figure out d4
Avatar
the excel idiot 04-Dec-21 08:01 PM
i feel like i might have an advantage cuz its made to be put in cells
20:01
but idk what to do from there
20:01
in d4
20:04
i think i figured out a horribly inefficient method but ah well
Avatar
Avatar
the excel idiot
i feel like i might have an advantage cuz its made to be put in cells
anything is made to be put in cells in this really
20:08
except the day 4
20:08
you're gonna have a bit of trouble on day 4 i think
Avatar
the excel idiot 04-Dec-21 08:08 PM
ah
Avatar
it's bingo
Avatar
Avatar
the excel idiot
i think i figured out a horribly inefficient method but ah well
the excel idiot 04-Dec-21 08:08 PM
ok it kinda works
Avatar
7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1 22 13 17 11 0 8 2 23 4 24 21 9 14 16 7 6 10 3 18 5 1 12 20 15 19 3 15 0 2 22 9 18 13 17 5 19 8 7 25 23 20 11 10 24 4 14 21 16 12 6 14 21 17 24 4 10 16 15 9 19 18 8 23 26 20 22 11 13 6 5 2 0 12 3 7
Avatar
Avatar
the excel idiot
ok it kinda works
the excel idiot 04-Dec-21 08:08 PM
now i gotta repeat this 12 times im gonna die
Avatar
Avatar
pocis
day 4 is the "example works but input doesn't" scenario
Deleted User 04-Dec-21 08:13 PM
20:14
@Deleted User LOL !
Avatar
the excel idiot 04-Dec-21 08:15 PM
part 1 of 12 complete boys gals and non binary pals (edited)
Avatar
who said im a boy
20:15
😡
20:15
Avatar
the excel idiot 04-Dec-21 08:16 PM
ffs neco arc
20:16
Avatar
Avatar
pocis
@Deleted User LOL !
Deleted User 04-Dec-21 08:16 PM
read the prompt
Avatar
the excel idiot 04-Dec-21 08:17 PM
uhm
20:17
i have good news and bad news
Avatar
Avatar
Deleted User
read the prompt
what
Avatar
Deleted User 04-Dec-21 08:18 PM
you didn't read the prompt correctly
Avatar
what prompt
Avatar
Deleted User 04-Dec-21 08:18 PM
the puzzle prompt
Avatar
no but
20:18
in americal bingo
20:18
diagonal is valid
20:18
oh
20:18
yes
20:18
ok
Avatar
Deleted User 04-Dec-21 08:18 PM
yeah and the prompt says "don't count diagonals"
20:18
harold
Avatar
the excel idiot 04-Dec-21 08:18 PM
lmaoo
Avatar
yeah ok
20:19
reading is for normal people
Avatar
Avatar
the excel idiot
i have good news and bad news
the excel idiot 04-Dec-21 08:19 PM
good news, I can complete the oxygen generator part of d3p2 by copy pasting what i have 12 times
Avatar
copy me
Avatar
Avatar
the excel idiot
good news, I can complete the oxygen generator part of d3p2 by copy pasting what i have 12 times
Deleted User 04-Dec-21 08:19 PM
lmaoINTENSE
Avatar
the excel idiot 04-Dec-21 08:19 PM
bad news, getting the CO2 scrubber rating is impossible at least for my current setup
20:20
i have it that it simply shows the cells that have the most common number in its position right
20:20
problem is, it counts an empty cell as a cell with 12 0s
20:20
which will fuck up the CO2 scrubber thing
20:20
and i can't figure out how to hide those cells or not show anything
20:22
i'll do day 3 part 2 guys tomorrow ahaha guys
20:28
day 4 :( (edited)
Avatar
boom bap wada ba da dap
Avatar
Deleted User 04-Dec-21 08:37 PM
lenya
Avatar
F# etc maniac 04-Dec-21 08:43 PM
Mfw i am forced to stop writing my solution cause my family want to watch a Christmas movie and it is not socially acceptable to just leave
Avatar
the excel idiot 04-Dec-21 08:49 PM
lmaoo
20:49
i do not like day 4
20:50
i know how to do it in theory but i am too dumb to execute it
Avatar
comfy
Avatar
the excel idiot 04-Dec-21 08:51 PM
:)
Avatar
Avatar
the excel idiot
i know how to do it in theory but i am too dumb to execute it
me with all of the days
Avatar
the excel idiot 04-Dec-21 08:51 PM
pfffff
20:52
i thought 'Aliucord' was 'Alucard' fsr and i started thinking about vampires
20:53
guys who's Joe
20:53
?
Avatar
the excel idiot 04-Dec-21 09:02 PM
too predictable
Avatar
F# etc maniac 04-Dec-21 09:13 PM
oh my god my F# works first try
21:13
with the test data that is
21:13
86 beautiful lines of bingo
21:14
nice
Avatar
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee - GitHub - eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...
Avatar
F# etc maniac 04-Dec-21 09:26 PM
Avatar
F# etc maniac 05-Dec-21 12:43 AM
there we go lads
00:44
second place is mine fuck yeah
Avatar
got kinda tired of doing it
00:47
dunno if i'll complete today today
Avatar
F# etc maniac 05-Dec-21 12:47 AM
damn
00:48
part 2 was evil to implement for me
00:48
while 1 worked first time :|
Avatar
WatDuhHekBro 05-Dec-21 08:46 AM
Yeah I think I'll give up trying to use mcfunctions actually, a "language" with no concept of loops, strings, lists, indexes, etc.
Avatar
F# etc maniac 05-Dec-21 09:06 AM
Damn
09:06
Fair
Avatar
Deleted User 05-Dec-21 09:08 AM
Yeaaah
09:08
Still impressive you did day one with it lmaoINTENSE
09:09
Which are you going to use for the rest? JS/TS?
Avatar
WatDuhHekBro 05-Dec-21 09:09 AM
Probably, that has become my comfort language after all
Avatar
Deleted User 05-Dec-21 09:09 AM
mhm, same
Avatar
Deleted User 05-Dec-21 09:32 AM
I have trouble wrapping my head around d5
Avatar
F# etc maniac 05-Dec-21 09:34 AM
okay i think i get what this is saying
Avatar
Avatar
Deleted User
I have trouble wrapping my head around d5
mine doesn't seem right
09:56
it produces 1 1 1 1 1 1 1 2 0 0 1 1 1 1 1 1 1 2 0 0 1 1 1 1 1 1 1 2 0 0 1 1 1 1 1 1 1 2 0 0 1 1 1 2 2 2 2 2 1 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 2 2 1 1 1 0 0 0 0 0
09:57
my code is so bad
Avatar
F# etc maniac 05-Dec-21 09:57 AM
okay lads huge 2d arrays lets gooo
09:58
or actually no thats an awful idea
Avatar
2D objct wen :zany: (edited)
Avatar
F# etc maniac 05-Dec-21 10:00 AM
ok i know exactly how im approaching this
Avatar
fuck you
Avatar
F# etc maniac 05-Dec-21 10:04 AM
there we go type coord = int * int let pointCoveredByLine (line: coord * coord) (point: coord) = let inBoundsX = fst (fst line) <= fst point && fst (snd line) >= fst point let inBoundsY = snd (fst line) <= snd point && snd (snd line) >= snd point inBoundsX && inBoundsY
Avatar
fucking unreadable
Avatar
F# etc maniac 05-Dec-21 10:04 AM
i mean its not that clean but i challenge you to write the same check cleaner
10:04
in anything
10:10
jetbrains has decided that it doesnt like readable formatting across multiple lines and auto-formatted this -_-
Avatar
F# etc maniac 05-Dec-21 10:22 AM
there much better
Avatar
haha i have no idea what this is
Avatar
F# etc maniac 05-Dec-21 10:24 AM
a function to find the largest point on the grid
Avatar
0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 2 1 1 1 2 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 2 1 1 1 0 0 0 0
10:29
WOOOOOOOOOOOOOOOOOOOOOOOOOOOO
10:29
FUCK YEAH
Avatar
F# etc maniac 05-Dec-21 10:29 AM
how are you building that? a 2d array? or sampling individual points?
Avatar
2d array
10:29
was sampling individual points before but that was fucking up
Avatar
F# etc maniac 05-Dec-21 10:29 AM
i feel like the 2d array is more obvious but i also fear that its going to be an issue with the actual input
10:30
i saw a coord of 900 in mine so overall thats 810k cells
Avatar
compute moment
Avatar
F# etc maniac 05-Dec-21 10:31 AM
somebody write this in a compute shader 🔫
Avatar
risc v assembly
10:31
lisp interpreter 🤪
Avatar
F# etc maniac 05-Dec-21 10:31 AM
i might multithread mine but thats too much effort
Avatar
fuck you
Avatar
F# etc maniac 05-Dec-21 10:31 AM
its just tantalisingly parallelisable
10:31
huh
10:33
okay so my input has 990 columns and 991 rows
10:33
it helps if i copy the data right
10:34
so a 2d array would take up 4mb ok
10:34
thats not that bad ig
Avatar
i love this
10:36
wOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
Avatar
F# etc maniac 05-Dec-21 10:36 AM
arr |> List.map List.concat |> List.concat |> List.filter (fun x => x >= 1) damn (edited)
Avatar
WatDuhHekBro 05-Dec-21 10:40 AM
scoring is weird
10:40
its descending local score
Avatar
WatDuhHekBro 05-Dec-21 10:42 AM
Oh that makes sense. In my mind, I was thinking of star scoring (edited)
Avatar
yeah i thought so first
Avatar
F# etc maniac 05-Dec-21 10:42 AM
yeah and also you get extra points for being the fastest as well
10:49
also I was thinking about the whole "yanderedev code boo" thing
10:49
it's likely just the decompiler going crazy
10:49
and not yanderedev code
Avatar
F# etc maniac 05-Dec-21 10:59 AM
what the fuck
11:00
OHHHHHHHHHHHH
Avatar
Avatar
F# etc maniac
i saw a coord of 900 in mine so overall thats 810k cells
that was a simple math equastion aswell
11:03
9 squered and 4 zeros
11:03
smh
Avatar
F# etc maniac 05-Dec-21 11:03 AM
be quiet im trying to debug code rn
11:04
stop using a debugger
Avatar
F# etc maniac 05-Dec-21 11:04 AM
im not using a debugger
11:04
you see in f# you can usually see whats happening with your eyes
11:04
if not then i guess fuck it
11:04
sadly jetbrains debugger doesnt attach to fsx scripts
Avatar
finnal
11:07
y
Avatar
F# etc maniac 05-Dec-21 11:07 AM
i still want to use a good debugger just cant >:(
11:08
oh i know whats wrong ok
11:08
the second point of the line can be lower than the first point
11:09
almost there
11:12
boo ya
11:12
just needed a small change to my sample function
11:14
Y:EAHHHHH
11:14
give me that joint first place babyyyy
11:15
oh fuck part 2
Avatar
Deleted User 05-Dec-21 11:15 AM
harold
11:16
this calls for some code reorganization
Avatar
F# etc maniac 05-Dec-21 11:16 AM
actually i might be able to get away with rewriting my function to check if a point is covered by a line then just remove my horiz/verti filter
Avatar
Deleted User 05-Dec-21 11:20 AM
my interfaces and types are very oriented towards, well, not requiring diagonal anything
Avatar
F# etc maniac 05-Dec-21 11:23 AM
OH MY GOD IM WRITING MY PART 2 IN MY 1.fsx THANK GOD FOR GIT
Avatar
Deleted User 05-Dec-21 11:23 AM
leaCheeseLMAO
Avatar
F# etc maniac 05-Dec-21 11:24 AM
im like "wait did i forget to run a code format on my part 1" *looks at tab bar* 4/1.fsx | 2.fsx | > 5/1.fsx < "OH FUCK"
11:27
uh
11:33
boom perfect
Avatar
i can't fucking do it
Avatar
F# etc maniac 05-Dec-21 11:56 AM
this is pain
11:57
why are the diagonal lines going off to infinity they should stop
Avatar
F# etc maniac 05-Dec-21 11:58 AM
wtf
12:00
im editing the wrong function shit
12:02
downwards diagonals, check
Avatar
yeah those are easy (edited)
12:02
i can't get the opposing ones to work
12:02
they just broduce a bigass rectangle
Avatar
F# etc maniac 05-Dec-21 12:03 PM
ahah yeah
12:03
might wanna make sure your checker for non diagonals is strict enough
Avatar
(it isn't)
Avatar
F# etc maniac 05-Dec-21 12:03 PM
yep
12:04
Avatar
i'm curious on how you implement diagonals
Avatar
F# etc maniac 05-Dec-21 12:04 PM
ahaha
12:04
uh
Avatar
mine is uh
12:04
lol
Avatar
F# etc maniac 05-Dec-21 12:04 PM
looping (technically recursion cause FP but ye)
Avatar
WatDuhHekBro 05-Dec-21 12:05 PM
Let me know if you want to know how I implemented one of the opposing diagonals
Avatar
F# etc maniac 05-Dec-21 12:05 PM
essentially, mine is move up and to the left until either we're to the left of the first point, or we hit it
Avatar
oh well mine is uhhh
Avatar
Avatar
WatDuhHekBro
Let me know if you want to know how I implemented one of the opposing diagonals
yes
Avatar
F# etc maniac 05-Dec-21 12:05 PM
which functionally looks like this. im not spoilering this as i assume yall cant read it anyway
Avatar
this is how i implement non-opposing ones
12:06
if(coord["x1"] == coord["y2"] && coord["x2"] == coord["y1"]) { // 9,7 -> 7,9 if(x == coord["x1"] && y == coord["y1"]) { // 7,9 addPoint(x,y) } else if(x == coord["x2"] && y == coord["y2"]) { // 9,7 addPoint(x,y) } else if(x == y && x == (parseInt(coord["x1"]) + parseInt(coord["x2"]))/2) { // 8,8 addPoint(x,y) } }
12:06
which is funny
12:06
format is x1,y1 -> x2,y2
Avatar
F# etc maniac 05-Dec-21 12:06 PM
wait my / direction diagonals just work
Avatar
Avatar
pocis
yes
WatDuhHekBro 05-Dec-21 12:06 PM
SPOILER
Image attachment
Avatar
fuck you
Avatar
Avatar
WatDuhHekBro
Click to see attachment 🖼️
what in god's name is this
Avatar
Avatar
F# etc maniac
wait my / direction diagonals just work
F# etc maniac 05-Dec-21 12:07 PM
literally two changes
Avatar
Avatar
WatDuhHekBro
Click to see attachment 🖼️
F# etc maniac 05-Dec-21 12:07 PM
oh youre using a 2d array lol
Avatar
Avatar
F# etc maniac
literally two changes
we cannot read your code yellowsink
Avatar
F# etc maniac 05-Dec-21 12:07 PM
im implementing functions that tell you if a point sits on a line, then i iterate over every cell
12:07
it works i promise
12:08
and it saves 4mb of ram use!!!
12:08
(for a sizable speed hit) (edited)
12:08
oh fuck i broke non diagonals
12:08
Avatar
Avatar
WatDuhHekBro
Click to see attachment 🖼️
the issue is that it doesn't match with my "code"
Avatar
F# etc maniac 05-Dec-21 12:11 PM
ok time to see if all 3 collision functions union nicely
12:11
HOLY SHIT
12:12
oops left my printer code in for my real
12:12
oh its so slow
12:12
oh fuck
Avatar
me when filter
12:13
haha 2d arrays aren't fun anyways
Avatar
F# etc maniac 05-Dec-21 12:13 PM
nah sampling 810k points is much faster
12:13
of course
Avatar
sample deez nuts bitch
Avatar
F# etc maniac 05-Dec-21 12:14 PM
hey it was fast for non diagonals
12:14
just that the diagonal collision checks are slow AF
Avatar
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Avatar
F# etc maniac 05-Dec-21 12:14 PM
so about that multithreading, huh?
Avatar
Avatar
pocis
the issue is that it doesn't match with my "code"
WatDuhHekBro 05-Dec-21 12:15 PM
Basically, for 0,4 -> 4,0 for example, you count the horizontal distance (or vertical distance if you want), then iterate over the x's 0, 1, 2, 3, 4 and y's 4, 3, 2, 1, 0. Because x and y are going opposite directions, x is plus and y is minus.
Avatar
F# etc maniac 05-Dec-21 12:16 PM
yo it finished
12:16
in 2 mins 3 seconds
12:16
12:16
do i win for slowest AoC solution yet? https://github.com/yellowsink/advent-of-code-2021/tree/master/5 (edited)
12:16
😎 100 points
12:19
i kinda wanna redo this in nim but i cba (edited)
Avatar
Avatar
WatDuhHekBro
Basically, for 0,4 -> 4,0 for example, you count the horizontal distance (or vertical distance if you want), then iterate over the x's 0, 1, 2, 3, 4 and y's 4, 3, 2, 1, 0. Because x and y are going opposite directions, x is plus and y is minus.
do you have visuals for what yours produces
12:20
I already had this type implemented and that's what comes out of it
SPOILER
Image attachment
Avatar
Avatar
F# etc maniac
do i win for slowest AoC solution yet? https://github.com/yellowsink/advent-of-code-2021/tree/master/5 (edited)
slower than the red one?
12:22
that one took 10 seconds
Avatar
F# etc maniac 05-Dec-21 12:22 PM
2 minutes 3 seconds
Avatar
@toonlink you do part 2 when
Avatar
F# etc maniac 05-Dec-21 12:22 PM
With one cpu thread at 100%
Avatar
Avatar
pocis
I already had this type implemented and that's what comes out of it
WatDuhHekBro 05-Dec-21 12:23 PM
0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Avatar
Avatar
WatDuhHekBro
0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
lol
Avatar
whenever I don't have to do 2D array bullshit
Avatar
i think i'm gonna pass on that one
12:23
i already rewrote it 3 times
12:24
not doing a 4th
Avatar
F# etc maniac 05-Dec-21 12:24 PM
you gotta have both ends of the spectrum - a nim solution that does it in tens of milliseconds... and an f# solution that runs in minutes purely to avoid this 2d array shit
Avatar
I prefer crystal solution that does it in less than a millisecond
Avatar
F# etc maniac 05-Dec-21 12:24 PM
(not that it made diagonals nicer to implement particularly)
Avatar
Avatar
toonlink
I prefer crystal solution that does it in less than a millisecond
F# etc maniac 05-Dec-21 12:24 PM
yeah but can you benchmark that in hyperfine
Avatar
i prefer using my own 8-bit computer that uses light and glass to compute
Avatar
too bad Crystal's slower than Nim
Avatar
F# etc maniac 05-Dec-21 12:25 PM
surely you can only hit those sub millisecond times with in-lang benchmarking
Avatar
I wanted to do a punch card solution, but then I realized that that's just a data encoding mechanism, not a programming language
Avatar
F# etc maniac 05-Dec-21 12:25 PM
yeah
12:25
ig if you use fortran or smth
12:26
Avatar
maybe I'll get a punch card reader and then do it with actual physical punch cards
12:26
probably in like Python though
Avatar
Avatar
pocis
Click to see attachment 🖼️
F# etc maniac 05-Dec-21 12:26 PM
is that a rasterised version of your input?
12:26
thats kinda cool
Avatar
Avatar
F# etc maniac
is that a rasterised version of your input?
found that on the subreddit
Avatar
F# etc maniac 05-Dec-21 12:26 PM
nice
12:27
i wonder if i could generate an svg programatically...
Avatar
maybe we should just drive around it honestly
Avatar
F# etc maniac 05-Dec-21 12:27 PM
too much effort
Avatar
can i just input "drive around the corners"
Avatar
F# etc maniac 05-Dec-21 12:27 PM
damn thats awesome!
Avatar
we really should just drive around it
Avatar
F# etc maniac 05-Dec-21 12:28 PM
yes thats the point of the task - find where the vents are and avoid them
Avatar
yeah no like
12:28
drive around the whole block
12:28
not inbetween
Avatar
F# etc maniac 05-Dec-21 12:28 PM
no
Avatar
I just realized my phone now has a better display than my fucking monitor
Avatar
Avatar
toonlink
I just realized my phone now has a better display than my fucking monitor
fuck me
Avatar
Avatar
toonlink
I just realized my phone now has a better display than my fucking monitor
F# etc maniac 05-Dec-21 12:28 PM
ouch
12:28
my second monitor is better than my main and that annoys me
Avatar
swap em
Avatar
F# etc maniac 05-Dec-21 12:29 PM
this subreddit is great
Avatar
1440p on the phone, 1080p on the monitor
Avatar
Avatar
F# etc maniac
this subreddit is great
Deleted User 05-Dec-21 12:29 PM
LOL
Avatar
Avatar
pocis
swap em
F# etc maniac 05-Dec-21 12:29 PM
i would except the main is bigger and on a vesa stand etc so itd look super dumb
12:30
yeah eveyrone hates these diags on the sub
12:30
303 votes and 16 comments so far on Reddit
Avatar
F# etc maniac 05-Dec-21 12:30 PM
and it does both at once
Avatar
just stop using a second monitor and it'll be fine
Avatar
F# etc maniac 05-Dec-21 12:30 PM
i miss it tho when im on my laptop
Avatar
I wish Google TTS could send messages in discord but I have to hit the send button like a monkey
12:30
cringe
Avatar
just use discord tts
12:31
dumbass
Avatar
I meant to say speech to text shit
Avatar
Deleted User 05-Dec-21 12:31 PM
imagine having error handling in your code
12:31
lmaoINTENSE
Avatar
F# etc maniac 05-Dec-21 12:32 PM
f# makes not error handling a compiler warning sooo
12:33
unless you just
12:33
This is a quick (unofficial / not affiliated with) Advent of Code 2021 anonymous (if you don't disclose your identity in "Other..." answers) participant survey. Note that your data will be shared as part of a (possibly sanitized and trimmed) data set to be published under the Open Database License 1.0 (https://opendatacommons.org/licenses/odbl/1...
12:33
theres a survey on the sub
Avatar
Avatar
F# etc maniac
unless you just
Deleted User 05-Dec-21 12:33 PM
HAHAHAHA
Avatar
F# etc maniac 05-Dec-21 12:33 PM
holy crap day 4 solution
Avatar
Deleted User 05-Dec-21 12:34 PM
now that's creative
Avatar
it's like that c++ donut code
Avatar
Deleted User 05-Dec-21 12:35 PM
ikr
12:35
at least they made it an option
12:35
12:36
12:36
12:36
pardon
Avatar
Avatar
Deleted User
at least they made it an option
send form
Avatar
Deleted User 05-Dec-21 12:37 PM
haroldChronicPain (edited)
Avatar
quality development
Avatar
cry about it
12:42
enterprise grade software
Avatar
F# etc maniac 05-Dec-21 12:49 PM
I know exactly how i can optimise the diags fuck yeah
Avatar
Deleted User 05-Dec-21 12:49 PM
god the function that counts all danger zones is so fucking disgusting but it works
Avatar
F# etc maniac 05-Dec-21 12:49 PM
Yeah
12:49
Same
12:54
12:54
this is so polished wtf https://paiv.github.io/aoc2021/
Advent of Code 2021
Avatar
chris cuomo (edited)
13:06
Avatar
F# etc maniac 05-Dec-21 01:20 PM
mfw my optimisation doesnt work snd p - (fst p - fst (fst l)) = snd (fst l) or in a more readable form p.y - (p.x - l.a.x) = l.a.y where l.a is the first vertex of th eline (edited)
13:22
waittt this is easy
13:24
im close i can feel it
13:29
13:34
3 minutes to 26 seconds ill take that
Avatar
WatDuhHekBro 05-Dec-21 02:09 PM
Screw Day 4 Problem 2 in particular
Avatar
F# etc maniac 05-Dec-21 02:13 PM
haha
14:14
yea
14:14
this comment sums up that day for me
Avatar
Deleted User 05-Dec-21 02:33 PM
cum board
14:34
(a.k.a. I don't like the way I have to navigate to the private board each time so I make my own solution) (function() { 'use strict'; var coll = document.getElementsByTagName('ul'); var elements = Array.from(coll); var ul = elements.filter(element => element.textContent.includes("About"))[0]; var boardItem = document.createElement('li') boardItem.innerHTML = "<a href=\"/2021/leaderboard/private/view/1679699\">[Cum Board]</a>" ul.appendChild(boardItem) })();
Avatar
Avatar
Deleted User
(a.k.a. I don't like the way I have to navigate to the private board each time so I make my own solution) (function() { 'use strict'; var coll = document.getElementsByTagName('ul'); var elements = Array.from(coll); var ul = elements.filter(element => element.textContent.includes("About"))[0]; var boardItem = document.createElement('li') boardItem.innerHTML = "<a href=\"/2021/leaderboard/private/view/1679699\">[Cum Board]</a>" ul.appendChild(boardItem) })();
F# etc maniac 05-Dec-21 02:36 PM
nice!
14:37
*steals*
Avatar
Deleted User 05-Dec-21 02:37 PM
feel free to
Avatar
Deleted User 05-Dec-21 03:01 PM
people are being mad filtered
Avatar
F# etc maniac 05-Dec-21 03:01 PM
damn
Avatar
Avatar
Deleted User
(a.k.a. I don't like the way I have to navigate to the private board each time so I make my own solution) (function() { 'use strict'; var coll = document.getElementsByTagName('ul'); var elements = Array.from(coll); var ul = elements.filter(element => element.textContent.includes("About"))[0]; var boardItem = document.createElement('li') boardItem.innerHTML = "<a href=\"/2021/leaderboard/private/view/1679699\">[Cum Board]</a>" ul.appendChild(boardItem) })();
theres an api
15:50
i had a sketch
15:51
just GET https://adventofcode.com/2021/leaderboard/private/view/$ID.json
15:51
don't forget to feed it your session cookie
Avatar
Deleted User 05-Dec-21 03:57 PM
why would i want to do this again?
15:57
i just want a shortcut, you know, exactly what that code does
Avatar
my cock
Avatar
guess who's epic games account was terminated
Avatar
F# etc maniac 05-Dec-21 04:24 PM
rip
Avatar
Deleted User 05-Dec-21 04:29 PM
F
Avatar
not me
16:38
Avatar
F# etc maniac 05-Dec-21 07:04 PM
copilot writing for loops for me be like
Avatar
Rick and Morty s2e5 -13:47
Avatar
F# etc maniac 05-Dec-21 08:39 PM
god damn
20:39
the code may be awful to read but it is fast asf
20:40
compiled with no GC
Avatar
Avatar
F# etc maniac
god damn
F# etc maniac 05-Dec-21 08:41 PM
actually yeah tbf that does compile the fs code every single time thats very unfair
Avatar
Avatar
F# etc maniac
the code may be awful to read but it is fast asf
Deleted User 05-Dec-21 08:41 PM
lmaoINTENSE
Avatar
F# etc maniac 05-Dec-21 08:42 PM
for rline in lines: var line = rline if line[0][0] == line[1][0]: if line[0][1] > line[1][1]: line = (line[1], line[0]) # line has equal x coords, so is vertical for y in line[0][1]..line[1][1]: grid[y][line[0][0]] += 1 elif line[0][1] == line[1][1]: if line[0][0] > line[1][0]: line = (line[1], line[0]) # line has equal y coords, so is horizontal for x in line[0][0]..line[1][0]: grid[line[0][1]][x] += 1 else: echo "Line was not vertical nor horizontal" doAssert false
20:59
i have gone from the slowest to the fastest 😎 (i think?) (edited)
Avatar
F# etc maniac 05-Dec-21 09:07 PM
today
Avatar
oh idk how to do anything beyond 3
Avatar
F# etc maniac 05-Dec-21 09:07 PM
as linked
Avatar
F# etc maniac 05-Dec-21 09:07 PM
lol
Avatar
i could do 3
21:07
but
21:07
that's just too much suffering
21:08
i'd rather code enterprise grade software
21:08
Avatar
F# etc maniac 05-Dec-21 09:08 PM
Avatar
WatDuhHekBro 06-Dec-21 01:54 AM
I'm dumb, the reason I couldn't get d4p2 working yesterday is because I created a temporary array and forgot to actually set it
Avatar
WatDuhHekBro 06-Dec-21 05:36 AM
looks like playing catchup is going to be difficult
Avatar
Deleted User 06-Dec-21 06:40 AM
WOAH
06:40
You're going fast, jesus!
06:47
lanternfish
Avatar
F# etc maniac 06-Dec-21 07:40 AM
Bruh
07:41
Mfw i have school and can't do it until this afternoon
Avatar
my day 3 solutino wasn't working because of windows \r\n line endings
14:26
at least part of it
Avatar
Deleted User 06-Dec-21 02:27 PM
akin to Beef's day 1 lenya
14:28
if true count in the slot
14:28
is bigger than false
14:28
wait no
14:28
doesn't work
14:28
works
14:28
someone explain?
14:28
val is a boolean
14:29
ok now how do i convert binary to decimal without writing my own functions because that's way too painful
14:29
strconv.ParseInt
14:31
fuck
14:32
i think my input changed
14:32
HOW
14:33
oh
14:33
i multiplied gamma by gamma
14:33
making gamma squared
14:34
and it broke again
14:34
everytime i run this code the output is different
14:34
kill me
Avatar
go somhow managed to make a race condition on a synchronous function
14:50
someone explain this
14:50
i got extremaly lucky and got the same output for a long time
14:50
this is the example input btw
14:54
IT"S STILL DOING THATKLJDF:LKS JFKL:SJDL:KFJSDKLJSD:LK JFSLK:Jkl
14:54
i have used 0 concurrency
14:54
there is no reason for this to be different each time
15:01
i'm fucking done with this language
Avatar
you're the issue
Avatar
Avatar
Molten
someone explain?
if val is not then it goes to the else block
Avatar
like even if it's null
Avatar
explain
15:05
where is the wrong
Avatar
the isT map is fine (edited)
15:06
the string conversion isn't
15:06
and i have no idea how to do it if that's the issue
Avatar
just make it work lol
Avatar
ok i give up on this fucking shit
15:25
either i switch languages
15:25
or i just stop life
15:25
Avatar
Deleted User 06-Dec-21 03:46 PM
switch languages
Avatar
to what
15:50
i thought golang is fine
15:50
but this makes no sense (edited)
Avatar
F# etc maniac 06-Dec-21 03:50 PM
Try dart
Avatar
i don't want to go back to the language rabbit hol
15:50
e
15:50
also i should focus more on school this year is pretty hard and i actually have to do stuff
15:55
but i usally just end up procrastinating and doing nothing
Avatar
Avatar
Molten
but this makes no sense (edited)
go is shit
Avatar
F# etc maniac 06-Dec-21 04:41 PM
as much as go isnt that good, for some reason i really like it and idk quite why
16:41
is dart comfier? yes. is nim zoomier? yes.
16:43
but go is nice for some reason
Avatar
Avatar
F# etc maniac
as much as go isnt that good, for some reason i really like it and idk quite why
i think it's great at getting the job done, but my reasons for disliking it are basically "the language designers made it different for the sake of making it different"
Avatar
F# etc maniac 06-Dec-21 04:43 PM
right yea]
Avatar
it's not a bad language, but it certainly feels like it gets in my way more than other languages do
Avatar
F# etc maniac 06-Dec-21 04:44 PM
mm yeah true
16:46
i forgot how much i like atom
16:46
shame it sucks 🤡
16:47
yeah brackets is as un-comfy as i remember
Avatar
Avatar
F# etc maniac
i forgot how much i like atom
yeah it's so comfy but so bad simultaneously
Avatar
F# etc maniac 06-Dec-21 04:47 PM
gotta try all the electron editors :p
16:47
ikr?
Avatar
feels like they just gave up ngl
16:47
it's like
16:47
unfinished?
Avatar
F# etc maniac 06-Dec-21 04:47 PM
yeah
Avatar
but they had ux down for sure
Avatar
F# etc maniac 06-Dec-21 04:47 PM
yes yes
16:48
also upgrade that mf's electron it really be like
16:48
aight its time
16:49
im gonna do dart again this afternoon i think
Avatar
Avatar
F# etc maniac
also upgrade that mf's electron it really be like
the origin of electron doesn't run on the latest electron
16:50
shame
Avatar
F# etc maniac 06-Dec-21 04:50 PM
yeah its so neglected :(
Avatar
today in my english classes there was something about grammar idk
16:52
and my teacher said these to me
16:52
and my mind wanted to say deez nuts so hard
Avatar
F# etc maniac 06-Dec-21 04:53 PM
deez nuts
16:54
import 'dart:convert'; import 'dart:io'; String readAllStdin() { var working = ""; while (true) { final line = stdin.readLineSync(encoding: utf8); if (line == null) { return working.substring(0, working.length - 1); } working += line + "\n"; } }
Avatar
F# etc maniac 06-Dec-21 05:15 PM
i forgor (💀) how zoomy dart is
17:15
nice
17:15
for a lang with a vm, not bad
17:17
oh part 2 has ground it to a halt
17:22
dart is an awful choice for this it doenst scale up
17:22
nim it is
17:25
yeah imma need teeny tiny unsigned ints for this
Avatar
F# etc maniac 06-Dec-21 05:42 PM
I don't have enough ram for this wtf
17:42
17:43
time to run my solution in tty
17:43
ig
17:44
nvm 10s of gigabytes in pure lists is not doable
17:44
i need maths for this please no
Avatar
Deleted User 06-Dec-21 06:04 PM
DUDE
18:04
I LITERALLY DID THAT FOR PART 1
18:04
WHY
Avatar
F# etc maniac 06-Dec-21 06:05 PM
yeah
18:06
same pain
18:06
i am now doing maths™️
18:07
break time
Avatar
Module to hook into the Node.js require function. Contribute to SocketDev/require-in-the-middle development by creating an account on GitHub.
Avatar
Avatar
F# etc maniac
Deleted User 06-Dec-21 06:12 PM
I love how the fucking thread title is out of memory edition
Avatar
F# etc maniac 06-Dec-21 06:12 PM
Lol yes
Avatar
Deleted User 06-Dec-21 06:13 PM
18:13
Avatar
F# etc maniac 06-Dec-21 06:34 PM
I am using DART for programming.
18:39
i am not with it right now aaaaaaaaaa
18:39
i have ideas to approach this but i just dont wanna
Avatar
Avatar
F# etc maniac
I am using DART for programming.
Deleted User 06-Dec-21 06:51 PM
HAHAHA
Avatar
F# etc maniac 06-Dec-21 06:51 PM
i might get filtered with this one
18:52
sadly im just not into the mood to do any maths rn
18:52
even tho i totally could do this if i felt like properly attacking it (edited)
18:58
WAIT I JUST HAD A LIGHTBULB MOMENT I DONT NEED ANY MATHS FOR THIS
18:58
YESSSSSSSSSSSS
18:58
HOLY SHIT that felt good
Avatar
Deleted User 06-Dec-21 07:12 PM
lmaoINTENSE
Avatar
F# etc maniac 06-Dec-21 08:09 PM
YEAH BYATCHHHHH
20:10
37 lines of actually not bad dart
Avatar
i think i should write a program that will scatter on gihtub every second and once it finds a program that would solve the day's parts it would run it and automatically solve it
20:12
don't hate the player hate the game brooo
Avatar
WatDuhHekBro 07-Dec-21 06:26 AM
Friendly reminder for d7p2: 1 + 2 + 3 + ... + n = n(n + 1) / 2 (edited)
Avatar
Deleted User 07-Dec-21 08:05 AM
08:05
Avatar
F# etc maniac 07-Dec-21 08:29 AM
Kekw
Avatar
Deleted User 07-Dec-21 08:31 AM
love how they didn't even change the web admin in the config
08:33
How do 6 of my solutions in different languages give me the same output and it's wrong
Avatar
F# etc maniac 07-Dec-21 08:34 AM
Great
Avatar
Deleted User 07-Dec-21 10:46 AM
biggest fucking scam ever
10:46
10:46
you should kill yourself, NOW!
Avatar
Avatar
Deleted User
Click to see attachment 🖼️
that happens when you remove your cookies
Avatar
Deleted User 07-Dec-21 11:00 AM
oh
11:01
well whatever it still looks like their fault and that's what's funny lenya
Avatar
F# etc maniac 07-Dec-21 01:36 PM
Mfw you do the day in 20 mins in school
13:36
Winning at life
Avatar
maybe i'll catch up given i now have the competitive advantage of meth
Avatar
F# etc maniac 07-Dec-21 01:40 PM
My part 2 is slow af but imma blame the gitpod container and stop worrying
Avatar
lol
Avatar
Avatar
toonlink
maybe i'll catch up given i now have the competitive advantage of meth
i have PCP, 1 up on you
13:55
CK
Avatar
Avatar
toonlink
CK
and ipads
13:57
4 ipads that order me meth and LSD using my crawlers
13:57
get owned
Avatar
Deleted User 07-Dec-21 02:03 PM
mfw I genuinely don't know why my answer is wrong
14:03
this is the first one I'm just not doing
14:03
unless I have a 2am breakthrough
14:03
which is likely
Avatar
Avatar
Deleted User
mfw I genuinely don't know why my answer is wrong
i love you
14:10
Avatar
i should catch up but i'm doing coding for homework 😎
Avatar
code my balls
17:55
ayo beef @Beef
17:55
the balls
Avatar
imagine an actual advent calendar filled with semen (edited)
22:43
the sticky days
22:43
every day you open a thing to get a bag filled with a random dude's sperm and details
22:43
p sure i would raise millions in kickstarter with that
Avatar
WatDuhHekBro 07-Dec-21 11:20 PM
I didn't realize that a simple loop through the crabs would've also worked, even if it was slow. I was still thinking of d6p2 and was expecting an out of memory error, so I coded essentially a binary search into d7
Avatar
WatDuhHekBro 08-Dec-21 05:19 AM
My brain just doesn't feel like doing day 8
Avatar
Deleted User 08-Dec-21 06:49 AM
I've yet to read it, hold on
06:50
no
06:50
nO god why
Avatar
Avatar
WatDuhHekBro
Friendly reminder for d7p2: 1 + 2 + 3 + ... + n = n(n + 1) / 2 (edited)
F# etc maniac 08-Dec-21 07:44 AM
OHHHHHH
07:45
I knew there'd be a mathsy thing like that but the closest i got was n^2 / 2
Avatar
Original message was deleted or could not be loaded.
ew what the fuck
Avatar
WatDuhHekBro 08-Dec-21 07:49 AM
didn't bother with setting up a project
07:50
straight into devtools
Avatar
no like
07:50
actually disgusting
Avatar
Deleted User 08-Dec-21 07:52 AM
ok phorcys
Avatar
ok "alyxia"
Avatar
F# etc maniac 08-Dec-21 07:54 AM
I like how for the fish one we all added 1 to the indexes
Avatar
F# etc maniac 08-Dec-21 03:02 PM
God this day's challenge fucking sucks
Avatar
F# etc maniac 08-Dec-21 08:23 PM
I will be completing today's aoc challenge tomorrow because i am so fucking done after today. If i haven't done it by tomorrow i guess i got filtered.
Avatar
F# etc maniac 09-Dec-21 06:01 PM
day 9 is so much easier than 8 wtf
18:02
or at least part 1 is
Avatar
F# etc maniac 09-Dec-21 06:48 PM
there really is nothing quite like F# in terms of languages that just work first time because of how declarative your code is (edited)
18:48
the only hitch i had was mapping a list of chars thru int gives you ascii codes so mapping it thru string >> int, tho inefficient, is more correct
Avatar
F# etc maniac 09-Dec-21 09:41 PM
possibly my favourite line of code ever.
21:42
it do be like
21:42
-_- let leftSafe = x > 0 let topSafe = y > 0 let rightSafe = x + 1 < grid[y].Length let bottomSafe = y + 1 < grid.Length
21:45
tf begin walk 0 0 1 0 System.IndexOutOfRangeException: Index was outside the bounds of the array. at FSI_0001.walk[a](a[][] grid, Int32 x, Int32 y)
21:46
hihi ^^'
21:46
x)
Avatar
F# etc maniac 09-Dec-21 09:47 PM
how can the coordinate (2, 0) be out of range
21:49
- and + wrong way around be like
Avatar
F# etc maniac 09-Dec-21 09:58 PM
i may not have done day 8 but there we go https://github.com/yellowsink/advent-of-code-2021/tree/master/9
Avatar
Deleted User 09-Dec-21 11:14 PM
cock
23:15
I'm going to fucking fall behind
23:15
ill do things tomorrow whatever
Avatar
Deleted User 10-Dec-21 04:07 PM
@toonlink NO FUCKING WAY.
Avatar
HAHAHA
Avatar
Deleted User 10-Dec-21 04:08 PM
IT'S TIME.
Avatar
F# etc maniac 10-Dec-21 04:14 PM
LISP INTERPRETER
Avatar
F# etc maniac 10-Dec-21 04:52 PM
help my code is finding errors in correct but incomplete lines -_-
16:53
oh.
16:53
that'd do it
16:59
ok works now
16:59
readStdin().Split("\n", StringSplitOptions.RemoveEmptyEntries) |> Array.map scanForError |> Array.sum |> printfn "%i" just dont ask about the internals of scanForError...
17:00
Avatar
Deleted User 10-Dec-21 05:08 PM
17:08
lmaoINTENSE
Avatar
F# etc maniac 10-Dec-21 05:31 PM
bruh
Avatar
Deleted User 10-Dec-21 05:32 PM
lenya
Avatar
F# etc maniac 10-Dec-21 05:33 PM
it worked for the example dataaaaa
17:33
I will revisit it.
Avatar
F# etc maniac 10-Dec-21 08:23 PM
how the fuck have i got negative values?
20:24
am i overflowing
20:24
20:28
with 64 bit ints, but actually unsigned 32 bit works fine so sure
20:31
subreddit accurate
Avatar
F# etc maniac 12-Dec-21 09:08 AM
sometimes nim makes me go wtf # seq<seq<int>> let input = readStdin() .split("\n") .map((l) => cast[seq[char]](l).map((x) => parseInt($x))) // input: int[][] let input = readStdin().Split("\n") |> Array.map (fun x -> x.ToCharArray() |> Array.map (string >> int)) (edited)
Avatar
tf do you mean nim makes 10x more sense than your retarded ass shit f#
Avatar
Deleted User 12-Dec-21 09:52 AM
day 11 makes me want to cry
Avatar
cry on my shoulder
09:52
Avatar
Deleted User 12-Dec-21 09:52 AM
not because it's difficult, just because i am starting to have a lack of time
12:26
dead chat xd
Avatar
@Deleted User you
Avatar
LOL ! dead chat lolfocus
Avatar
happy halloween guys
Alyxia joined the server. 31-May-22 06:08 PM
Avatar
Avatar
Alyxia
Joined the server.
Avatar
Avatar
Alyxia
Joined the server.
Beef joined the server. 12-Aug-22 12:14 AM
Avatar
Avatar
Beef
Joined the server.
Sticker
Avatar
Avatar
Beef
Joined the server.
Sticker
Exported 1,903 message(s)