« first day (3333 days earlier)      last day (1832 days later) » 

00:00
%DCL-MEM-BAD, bad memory VMS-F-PDGERS, pudding between the ears (source)
00:13
/aoc
> Type /aoc to see the leaderboard again (or go here: adventofcode.com/2019/leaderboard/private/view/256093)
00:54
@towc It looks a lot like a command line pipe stream... xD
I don't quite understand what each amplifier's input should be initialized to.
It seems like they should be initialized to the phase setting, with the exception of the first amplifier, which should receive "0" as its second input value.
01:09
Ah, it looked like my solution was deadlocked, but that was because my Thread.sleep value was large.
Mike Angstadt completed part 2 of day 7! \o/
 
1 hour later…
02:27
Anyone here use Spring Boot?
 
3 hours later…
05:13
Unihedron completed parts 1 and 2 of day 8! \o/
 
3 hours later…
08:27
day 8 was quite fun! Took me a while to realize I misread part 1
towc completed parts 1 and 2 of day 8! \o/
unihedron is rocking 35th place on the global leaderboard, nice!
 
1 hour later…
09:53
I need to catch up
anonymous user #386959 completed parts 1 and 2 of day 8! \o/
> Type /aoc to see the leaderboard again (or go here: adventofcode.com/2019/leaderboard/private/view/256093)
Oof! I really need to do 7 and 8 today :D
 
2 hours later…
11:40
xD
12:09
@towc I don't even have part one done yet ._.
oh, thought you managed it
I don't think I had to change any of the code from the previous intcode task, except for the input case
nope. There is still a bug in my computer from day 5 which I ignored that day because I still got the correct output somehow
The first output for day 5 part 1 is 3 instead of 0. No clue why but I guess that this might be the reason for the fail of day 7...
Then again I cannot be sure with a function declaration like this: const outputFunction = (input, ampNr) => amp => {
@geisterfurz007Stopthischaos oh, I had the same thing
And it still worked? Or did you fix it?
I think it still somehow worked
but after fixing a bug for something else, it got fixed
I just re-ran it and am surprised it's not 3 anymore
12:14
That doesn't help :D
So your day 5 part 1 works now without printing that three?
yup
I can output my stack, so you can diff and see where it goes wrong (something like a list of <ins pointer>: <full data>)
I would already be happy with your day 5 input to see if it breaks the same way :D
12:20
yep, same issue
lol
these things are awful to debug
hint in history
If I do what I thought that means, I just get bunches of threes and undefined outputs ._.
go through each operation again, and see about it
there's some 104s, I think, which sounds weird
and similar
12:25
lol, now I only get 3 >.>
But yeah, that 104, 0 is the reason why this happens.
oh
wait
\(-_\)
did it work?
Yeah, I found the issue
Just gotta port the fix from 5 to 7 and see if that works there
njet :D
go over the other operations too
I mean... Running day 5 in my slightly modified day 7 computer works fine. Just day 7 doesn't work fine :D
I have a feeling that this thing does string concatenation instead of correct addition and I have no clue why that would be the case...
12:59
no string concatenation on my side
The top three values for the first test function are 44444, 44443 and 44442 >.>
can you share your code?
I'll enjoy taunting you with hints
my guess is there's some aspect of javascript coercion you're missing :P
Oh well, debugging this is going to be loads of fun. I even redid day 7 from the newly fixed day 5 and get the exact same thing...
Maybe I am just dumb or something but yeaaaaa... Wouldn't be surprised if there is some JavaScript shittery going on that I am missing
I'm quite suspicious of your "split" variable already
It works tho :P
I mean... In part 5 it worked at least
13:12
oh, you never use split[0], I see
ok, it might work
The testcases for day 7 actually worked for you?
Like the first gave 43210 as max thrust?
yup, they did
Because it only seems to put the new phase signal in the front for me...
what do you mean?
Or it does not... I have actually no clue what it does...
I am trying to manually run the steps of the first example case to see why I get 44444 as output each time.
13:19
I'm confused by your outputFunction
Same
But when I rebuilt it starting from day 5 I did it the same way :D
I think line 44 is doing nothing
oh wait, it's curried
13:21
you should change name after the first curry :P
input and ampNr carry over values through the first call and that resulting function is then called with the actual output which then runs the compuper 5 more times unless it's already at ampNr 4 in which case the output is the only relevant thing so it's added to the outValues.
I think it makes sense but I also have looked at it for so long that I am really not sure...
why generator(i, 0)?
the first amp doesn't have to be 0
wat
sry caps
i is the phase input, right? Which always goes first. And in the thing it said to put in 0 as second input for the computer, no?
oh wait
OH
FUCK
You can only use each one once
lmao
I did not read that!
OOOOOOOOOOOH BOY! Welp, thanks for having me read through the task again xD
13:28
always happy to put you in doubt
Oh god, this will create an even bigger mess O-O
And I wouldn't be surprised if this wasn't the last time we used this wonderful computer.
I do think you structured your code in a way that does not help you :P
I definitely do agree! But damn, this currying and recursion looks like I absolutely know what I am doing!
or it looks like a mess...
I suggest you make the runner return the local output, rather than a global one
@geisterfurz007Stopthischaos hey, I'm quite impressed it makes some sense to you
@towc I understood absolutely nothing of that but it sounds like you absolutely know what you are doing! or it sounds like a mess
13:33
nice
@towc I might have spent too much time reading Arnauld's answers on ppcg
basically, make the runner take in the code and a list of inputs, and return a list of outputs. No other interactions with the external world
should simplify things quite a bit
handle the passing of output from an amplifier to another somewhere else
oooooooooooooooooooor I create an even bigger mess
And show the world why I put the disclaimer in my repo description :D
tbf you could have more currying involved, to keep the style consistent
I am just yeeting all the parameters in the first function call of that curried thing, yeah
13:37
oh, and use labels so you can break the loop within the switch statement, that looks a lot better (and makes it even more of a mess)
nah
triggered
@geisterfurz007Stopthischaos I added you as a private collaborator on my aoc repo on gh, if you want to peek into a working mess
Will you look at that! Once you actually read the description, the examples do work!
13:44
good luck reading the description of part 2
I gave up on that
wat
it's simple! Just rewire the flux compensator to the thrusters, increase the input, do some signals, feedback loop, sprinkle some 42 on there and tada! Output
totally
Given that I missed a tiny little detail on the first part already, I am quite afraid of this one, not gonna lie...
hf, doggo and I will go to the park for a few hours
13:53
new dev, i can make spring boot app that does any CRUD operations. Any tips on how to get remote work?
@K.Nehe Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
Look for jobs and apply?
yeah.are those skills enough to get me one
Do i need to learn js front end tech like react and angular
geisterfurz007 completed part 1 of day 7! \o/
That will depend on the place you are applying at! There are some companies which have a clear seperation between backend and frontend, some let their devs do both. There is a bunch of free places currently so I am sure you will find something that allows you to do that.
Which doesn't mean that you should just remain at Spring Boot apps. As developer it's never wrong to have a look into other stuff to learn :)
14:02
Meaning i have to learn a front end tech-just in case such an opportunity comes
If that is what you want to do, yes. If you say that you would just like to stick to backend, it doesn't harm having a look into JavaEE's backend or node for example.
You can also say that you will never do anything different than Spring Boot. That is fine too but limits your choices. Further being proficient in several technologies, shows recruiters that you are invested in coding and don't waste opportunities to learn.
TL;DR: Knowing Spring Boot will probably be able to get you a job. For more choices, learn more stuff you think you'll like for the future.
I'll try node after mastering a frontend tech. Spring +react and spring +angular. What is common in the java world-thinking in terms of job opportunities
If i've understood you well, do you mean recruiters are more interested in devs with many skills? If I know spring boot, angular,react, django or node it will be almost impossible for me to fail to land a job
AoC Spoiler in history (@towc my interpretation of day 7 part 2)
Well if you tell them that you have 1 month experience in each (as in jack of all traits, master of none), you are going to have a rough time. It makes sense to have one set of techs you spent a lot of time on (like Spring Boot in your example) and an additional set of other technologies you had a look into that you could imagine working with.
That does two things: It shows recruiters, that you don't just tunnel for one framework or language AND it shows recruiters that you have enough interest and ambition in coding that you are willing to spend some extra time to learn new things.
14:25
I've understood. You mentioned node, how is it like compared to spring boot in terms of learning curve and job market
14:47
That's for you to find out :)
I just mentioned it because it was the first thing that came to my head when thinking about backend technologies I have heard of.
15:19
@geisterfurz007Stopthischaos so, each amp would get 3 total inputs?
15:30
@towc each amp gets all the outputs from the previous amp in the chain. There is no limit on how many that might be and they don't have to be the same amount either.
16:00
@K.Nehe node is trivial to start with, and will help with every web frontend job too, as it's javascript
16:29
Part 2 is definitely going to be a huge mess...
16:58
Olivia Zoe completed parts 1 and 2 of day 1! \o/
!!!!
OMG I did it! Part 2 examples are working! I am going to do the rest later. The rest is super easy \o/
17:43
Olivia Zoe completed part 1 of day 2! \o/
18:01
@geisterfurz007Stopthischaos what was the right interpretation?
4 hours ago, by geisterfurz007 Stop this chaos
AoC Spoiler in history (@towc my interpretation of day 7 part 2)
I'm still so confused by what you mean
Example with just three amps:
You start A with 5, B with 6, C with 7 as phase setting.
A will then (by definition) wait for another input. You throw 0 in there.
All three amps are running now. A produces an output of 42. B on the other hand waits for an input now! As B is the amp after A in the chain, you take the previous output of A (42) and feed it as input to B. Now C produces an output and A waits for an input. Because you got this loop now with A being "after C" in the chain, you feed C's output to A's input. The last output of C however (indicated by C terminating after that output e
and the first input of A/B/C are the phase settings?
18:10
so you keep A/B/C running until C exits? You never reset the state?
You never reset the state of each amp (they are not running a shared one). A and B can terminate before C but the last output of C is the only interesting thing, really. When C terminates, there won't be a next output of B so anything A produces is irrelevant as well.
Realistically, A and B will terminate before C though.
oh, I see
out of curiosity, does this loop only happen twice with your input?
and in this scenario, turns out your outputFunction is better than my scenario :P
You mean how many times there is a output from E to A?
@geisterfurz007Stopthischaos well, A to B, but sure
my guess is only one output from E to A
I haven't yet run the entire input; let me see how many times that happens with the first example.
18:16
you're telling me the first thing you do after the tests pass is not try it on aoc input?
I still have to do some more stuff. I was just trying the fixed phase signals from the examples to see if they produce the correct output.
I don't check all possible phase inputs yet.
ok, gl :)
I'll try it now too
and thanks!
In the shorter example A produced 5 outputs that needed to go to B.
oh, interesting
well, I need another approach :)
@towc It actually allowed for a modularity that I didn't expect I would need but yeah, this wasn't the worst idea for some reason. It's still a huge mess though :D
18:38
yay, I get the right combination, but the wrong final outputs for the tests
oh, fixed, was exiting too early
yay, all solved
Yeah, I had that issue as well :D
Gj!
the hero of this story is still geist though, who intrepidly ventured into the wording and figured out what the hell was going on
this is not at all how I interpreted the description
towc completed part 2 of day 7! \o/
18:44
btw, ended up modifying parameters and breaking on input, if there aren't enough values, rather than delegating the output function
Yeah, my output function isn't really long either. But there is enough mess to look at :P
> RangeError: Maximum call stack size exceeded
That's a problem...
heh, you probably have an infinite loop
I don't get that many outputs
my input yields 6600 calls to op 4
and my node caps out the callstack at 15386
so you're cutting it close, if you perform slightly less than 3 function calls for every output
I did --stack-size=5000000 and it still failed so I guess you are right...
Nevermind... It just doesn't produce output anymore.
I am confusion...
Ooooooooooooh boy, nevermind
19:01
hello confusion, I'm boy
javascript clearing an array is just array.length = 0 right?
yup
Yeah, could be that I forgot to clean up my list of amps so I ran... A lot of them. And I also just ran the testinput. I should go to sleep :D
Thank god.
Olivia Zoe completed part 2 of day 2! \o/
geisterfurz007 completed part 2 of day 7! \o/
woop woop
19:15
8 Sounds surprisingly easy...
I am suspicious
nope, both part 1 and 2 were simple and enjoyable :)
I had some trouble understanding the description of part 1, with what a layer actually is. (spoiler/hint in history)
 
1 hour later…
20:28
geisterfurz007 completed part 1 of day 8! \o/

« first day (3333 days earlier)      last day (1832 days later) »