If you're interested here it is:
https://techtinkering.com/articles/advent-of-code-2018-25-days-25-languages/#day6
The only real problem is that it took days for it to do the calculation.
On Friday, December 14, 2018 at 2:21:52 AM UTC-5, Lawrence Woodman wrote:;)
If you're interested here it is:
https://techtinkering.com/articles/advent-of-code-2018-25-days-25-languages/#day6
and wrote on that webpage --
The only real problem is that it took days for it to do the calculation.
Heh, if you had a SuperCPU 128, it would have been done more quickly.
Hello Commodore fans,Technical Tinkering
You may have heard of the Advent of Code challenge. For a bit of fun I decided to do day 6 of the challenge on the Commodore 128 using its built
in Basic. It took days to calculate but it was great to be able to
complete it on this machine.
I had to use Vice though as my real machine has a memory fault which I
need to get around to solving. The advantage of Vice was that
I could easily transfer the code between the emulator and my Linux box to
put it in a github repo and on my website.
If you're interested here it is: https://techtinkering.com/articles/advent-of-code-2018-25-days-25-languages/#day6
Best wishes
Lorry
---
https://techtinkering.com - Retro Computers, Programming and General
On Friday, December 14, 2018 at 8:21:52 AM UTC+1, Lawrence Woodman wrote:Technical Tinkering
Hello Commodore fans,
You may have heard of the Advent of Code challenge. For a bit of fun I decided to do day 6 of the challenge on the Commodore 128 using its built in Basic. It took days to calculate but it was great to be able to complete it on this machine.
I had to use Vice though as my real machine has a memory fault which I
need to get around to solving. The advantage of Vice was that
I could easily transfer the code between the emulator and my Linux box to put it in a github repo and on my website.
If you're interested here it is: https://techtinkering.com/articles/advent-of-code-2018-25-days-25-languages/#day6
Best wishes
Lorry
---
https://techtinkering.com - Retro Computers, Programming and General
I copied the code you published into VICE and was disappointed to get nothingbut an OUT OF DATA ERROR IN 6050.
Trying to figure out what's missing, I realized that the site you linked tomerely gives a tiny example that's already solved in place.
So I guess they give the additional problem data only to those who register(which I won't).
Does the challenge consist in writing a fully general solution to themathematical problem? Or are they content if your program can solve the given major problem?
Would it be a lot of work to devise a problem instance that is too hard tosolve by hand but still can be solved by a standard Commodore 128 within a few minutes?
On Friday, December 14, 2018 at 12:30:49 PM UTC+1, ArcadeAge wrote:previously entered code. Easy to fix.
On Friday, December 14, 2018 at 8:21:52 AM UTC+1, Lawrence Woodman wrote:
Hello Commodore fans,I copied the code you published into VICE and was disappointed to get nothing but an OUT OF DATA ERROR IN 6050.
You may have heard of the Advent of Code challenge. For a bit of fun I
decided to do day 6 of the challenge on the Commodore 128 using its built >> > in Basic. It took days to calculate but it was great to be able to
complete it on this machine.
I had to use Vice though as my real machine has a memory fault which I
need to get around to solving. The advantage of Vice was that
I could easily transfer the code between the emulator and my Linux box to >> > put it in a github repo and on my website.
If you're interested here it is:
https://techtinkering.com/articles/advent-of-code-2018-25-days-25-languages/#day6
Trying to figure out what's missing, I realized that the site you linked to merely gives a tiny example that's already solved in place.
So I guess they give the additional problem data only to those who register (which I won't).
Does the challenge consist in writing a fully general solution to the mathematical problem? Or are they content if your program can solve the given major problem?
Would it be a lot of work to devise a problem instance that is too hard to solve by hand but still can be solved by a standard Commodore 128 within a few minutes?
Ok, there are enough data, but line numbers are re-used, overwriting
VICE running at ~4000% -- faster than any SuperCPU, I guess.
On Fri, 14 Dec 2018 05:21:40 -0800, ArcadeAge wrote:built
On Friday, December 14, 2018 at 12:30:49 PM UTC+1, ArcadeAge wrote:
On Friday, December 14, 2018 at 8:21:52 AM UTC+1, Lawrence Woodman wrote: >> > Hello Commodore fans,
You may have heard of the Advent of Code challenge. For a bit of fun I >> > decided to do day 6 of the challenge on the Commodore 128 using its
toin Basic. It took days to calculate but it was great to be able to
complete it on this machine.
I had to use Vice though as my real machine has a memory fault which I >> > need to get around to solving. The advantage of Vice was that
I could easily transfer the code between the emulator and my Linux box
nothing but an OUT OF DATA ERROR IN 6050.put it in a github repo and on my website.I copied the code you published into VICE and was disappointed to get
If you're interested here it is:
https://techtinkering.com/articles/advent-of-code-2018-25-days-25-languages/#day6
to merely gives a tiny example that's already solved in place.Trying to figure out what's missing, I realized that the site you linked
register (which I won't).So I guess they give the additional problem data only to those who
mathematical problem? Or are they content if your program can solve the given major problem?Does the challenge consist in writing a fully general solution to the
solve by hand but still can be solved by a standard Commodore 128 within a few minutes?Would it be a lot of work to devise a problem instance that is too hard to
previously entered code. Easy to fix.Ok, there are enough data, but line numbers are re-used, overwriting
VICE running at ~4000% -- faster than any SuperCPU, I guess.
I'm glad you noticed that. I never noticed because I used petcat to
create the .PRG so it wasn't a problem. I have just gone back and
changed the code. Thanks.
4000% wow, my machine must be getting old, the most I've managed on
vice is about 480%.
Lorry
---
https://techtinkering.com - Retro Computers, Programming and General Technical Tinkering
On Friday, December 14, 2018 at 6:53:16 PM UTC+1, Lawrence Woodman wrote:to emulate).
On Fri, 14 Dec 2018 05:21:40 -0800, ArcadeAge wrote:More likely you're running VICE with all the bells & whistles on.
On Friday, December 14, 2018 at 12:30:49 PM UTC+1, ArcadeAge wrote:
On Friday, December 14, 2018 at 8:21:52 AM UTC+1, Lawrence Woodman wrote: >> >> > Hello Commodore fans,Ok, there are enough data, but line numbers are re-used, overwriting previously entered code. Easy to fix.
You may have heard of the Advent of Code challenge. For a bit of fun I >> >> > decided to do day 6 of the challenge on the Commodore 128 using its built
in Basic. It took days to calculate but it was great to be able to
complete it on this machine.
If you're interested here it is:
https://techtinkering.com/articles/advent-of-code-2018-25-days-25-languages/#day6
VICE running at ~4000% -- faster than any SuperCPU, I guess.
I'm glad you noticed that. I never noticed because I used petcat to
create the .PRG so it wasn't a problem. I have just gone back and
changed the code. Thanks.
4000% wow, my machine must be getting old, the most I've managed on
vice is about 480%.
Switch off sound and true drive emulation (and anything else that's expensive
As I had to learn today, percentages are (of course) relative. The programruns even faster in 80 column fast mode, although the percentage is then only 2500 -- relative to 2 MHz, that is.
Does the challenge consist in writing a fully general solution to the mathematical problem? Or are they content if your program can solve
the given major problem?
Would it be a lot of work to devise a problem instance that is too
hard to solve by hand but still can be solved by a standard Commodore
128 within a few minutes?
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495929:21:18 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 286,851 |