Join Slack
Powered by
I enjoyed day 9 very much too, also because the ch...
# advent-of-code
j
Joris PZ
12/09/2019, 10:13 AM
I enjoyed day 9 very much too, also because the changes to the IntCode computer were pretty incremental and didn't require a heavy rewrite as for days 7 and 5. Code is
https://github.com/jorispz/aoc-2019/blob/master/src/commonMain/kotlin/day09/CoComputer.kt
and
https://github.com/jorispz/aoc-2019/blob/master/src/commonMain/kotlin/day09/p09.kt
Nothing particularly interesting about the relative performance today. Average (best) and standard deviation over 25 iterations (ms): JVM 182 ± 104, JS 3925 ± 259, MinGW64 5856 ± 409
👍 1
j
Jakub Gwóźdź
12/09/2019, 10:36 AM
Yeah I loved Kotlin for the fact that previously my
Memory
was just an array and I accessed it by
memory[addr]
and now it's
MutableMap<Int, BigInteger>
and I'm still accessing it by
memory[addr]
🙂
Open in Slack
Previous
Next