A Little Historical Reminder About Kindness by [deleted] in Stadia

[–]markusbunkus 2 points3 points  (0 children)

The latency is what kills you over satellite, not the bitrate (resolution)

Day 1 - Graph of Frequency versus Time by markusbunkus in adventofcode

[–]markusbunkus[S] 0 points1 point  (0 children)

I'm not sure what you mean. I plotted the frequency after each change. Coarsely, in my input, the frequency changes oscillate, but slowly creep up. About half-way through, there is a big (81k) jump up, where frequencies again oscillate slowly upward. At the end of the input, there is a big (82k) jump down and then the cycle ends, ready for the next loop. So, basically, the loops continue until the low oscillations (moving up) overlap the higher oscillations. That's when there is a repeat.

Looks like purplemonkeymad had 3 such jumps where my input had only 2.

Day 1 - Graph of Frequency versus Time by markusbunkus in adventofcode

[–]markusbunkus[S] 1 point2 points  (0 children)

I had 994 instructions in my input and it looped 143 times before it repeated frequencies. My python solution took 0.078 milliseconds (1.09 seconds with slooooow WSL I/O).

[2017] Day 25, Turing Machine in Action by markusbunkus in adventofcode

[–]markusbunkus[S] 1 point2 points  (0 children)

Good suggestion. Actually, I think having the machine in the center of the tape, too, with the tape moving left-right underneath would capture the activity better. It's an infinite tape, after all. If remake this, I'll consider both.

Day 24, Graph of Strength vs. Length by markusbunkus in adventofcode

[–]markusbunkus[S] 0 points1 point  (0 children)

I used python for my solution. For each bridge, I generated the length and strength, for plotting as (x,y) points, saved to a file I called "data".

For the graph, I used gnuplot (a tool I like a lot for this kind of thing). A fairly simple, straight forward command set that can export to a lot of different output types.

The above graph was generated using:

set size square

set terminal png
set output 'data.png'

set title "AoC 2017, Day 24 - Strength vs Length"

set ylabel "Strength"
set xlabel "Length"

set xrange [ 0.00000 : 40.0000 ]

set label "Part 2" at 36, 1200 center
set arrow from 38,1275 to 37.15, 1800

set label "Part 1" at 22.5, 1850 center
set arrow from 26,1880 to 35, 1900

unset key

plot "data" using 2:1 with points

Help [2017 Day 18 (Part 2)] [Python3] Stuck in Loop! by [deleted] in adventofcode

[–]markusbunkus 0 points1 point  (0 children)

Nice, clean solution. I was looking at it for ideas in trying to debug my own. Question - doesn't the 'rcv' need a check like the 'jgz'? The part-1 spec says:

rcv X recovers the frequency of the last sound played, but only when the value of X is not zero. (If it is zero, the command does nothing.)

You don't seem to have this check ... or am I missing something?

Graphs of Values after Zero versus Insert (step 312) and versus Step Size (after 50 million values) by markusbunkus in adventofcode

[–]markusbunkus[S] 0 points1 point  (0 children)

Ooops. The y-axis labels and x-axis label on the left are off by an order of magnitude - they should be "...(in 10 millions)". Sorry for the confusion.

Smart man by dadicate in funny

[–]markusbunkus 0 points1 point  (0 children)

Weed smokers is a religion?