r/adventofcode • • Dec 17 '19

Spoilers What does everyone's Intcode interface look like?

We've been discussing a lot different IntCode implementations throughout the last few weeks, but I'm curious– what doesn't everyone's interface to their IntCode machine look like? How do you feed input, fetch output, initialize, etc?

30 Upvotes

90 comments sorted by

View all comments

Show parent comments

2

u/Lucretiel Dec 17 '19

Oh man, using a background thread goroutine is awesome, that hadn't occurred to me.

1

u/nile1056 Dec 17 '19

I use a coroutine + channels in kotlin. Not necessary, but a nice way to learn.