TIP: Click on subject to list as thread! ANSI
echo: cbm
to: ArcadeAge
from: Lawrence Woodman
date: 2018-12-14 17:53:14
subject: Re: Day 6 of Advent of Code in Commodore 128 Basic

On Fri, 14 Dec 2018 05:21:40 -0800, ArcadeAge wrote:

> 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 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
>> >
>> I copied the code you published into VICE and was disappointed to
get nothing but an OUT OF DATA ERROR IN 6050.
>> 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
previously entered code. Easy to fix.
> 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

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
SEEN-BY: 57/0 153/250 267/800 317/2 393/68 633/0 267 280 281 412 712/848 770/0
SEEN-BY: 770/1 3 100 340 772/0 1 210 500
@PATH: 770/3 1 633/280 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.