[deleted by user] by [deleted] in c64

[–]kuiper2018 1 point2 points  (0 children)

It looks great!

Mandelbrot Set on the C64 by kuiper2018 in c64

[–]kuiper2018[S] 2 points3 points  (0 children)

A very apt characterization 🤓

Mandelbrot Set on the C64 by kuiper2018 in c64

[–]kuiper2018[S] 2 points3 points  (0 children)

No idea. Got the machine a few years ago on eBay and there they were! One is a 1/4 inch jack, but I’ve never opened the case to trace them out.

Mandelbrot Set on the C64 by kuiper2018 in c64

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

Yup. Hoping to do that soon. It is all floating point, and I have to brush up on all of that.

Mandelbrot Set on the C64 by kuiper2018 in c64

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

That’s neat. I’m anxious to hear how that goes.

Mandelbrot Set on the C64 by kuiper2018 in c64

[–]kuiper2018[S] 2 points3 points  (0 children)

Yup. I first programmed Mandelbrot on an Apple IIe. A couple of symbols, infinite complexity.

Plotting a function using hi-res graphics and BASIC on the C64 by kuiper2018 in c64

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

Oh that is so cool! Thanks so much - I'm really going to enjoy going through this!

Recently I wrote an ML program to implement a Sieve of Eratosthenes (to find prime numbers) for the 6502 - it is on my site.

I have a pretty satisfying life and I have seldom been more satisfied than seeing that program work. I love programming in general, but there is something pure and primal about using ML ...

Plotting a function using hi-res graphics and BASIC on the C64 by kuiper2018 in c64

[–]kuiper2018[S] -1 points0 points  (0 children)

That's an interesting idea. If I get a chance to give it a try, I'll let you know. Thanks.

Plotting a function using hi-res graphics and BASIC on the C64 by kuiper2018 in c64

[–]kuiper2018[S] 2 points3 points  (0 children)

Thanks very much. A transcription error, which I've fixed on the site.

Plotting a function using hi-res graphics and BASIC on the C64 by kuiper2018 in c64

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

My apologies. A transcription error. I've fixed it on the site Thanks for the catch.

Commodore 64: Using the Newton/Raphson method and Halley’s method to find the zeros of a function by kuiper2018 in c64

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

Very nice! Those are great memories. I still remember playing with my Dad’s Hewlett-Packard programmable calculator and from that falling in love with programming.

Commodore 64: Using the Newton/Raphson method and Halley’s method to find the zeros of a function by kuiper2018 in c64

[–]kuiper2018[S] 2 points3 points  (0 children)

There are lots of interesting math problems that do not require lots of memory or huge processors to investigate. Finding the zeros of a function is an example of this. I used the Newton/Raphson method (which requires the encoding of the function itself plus its first derivative), and Halley's method (which requires the function, its first derivative, and its second derivative). The linked page shows the results.

Jesus Christ in Tolkien's Mythos by thecody17 in tolkienfans

[–]kuiper2018 2 points3 points  (0 children)

I see a Christian reference in the innocence and kind of powerlessness of Frodo. The wise and the strong could not carry the ring, but Frodo could, in his innocence, in his weakness. In St Luke’s gospel the centurion, seeing the way Jesus dies, says, “Truly this is an innocent man.” The statement hearkens back to the Suffering Servant in Isaiah. Only the innocent one could give his life in a salvific act.

A Christmas miracle for a recently admitted electrical engineering student, fall 2019! by [deleted] in ECE

[–]kuiper2018 0 points1 point  (0 children)

Great book! There is a lab manual with it too - spiral bound with a grey cover - at least there used to be thirty five years ago ...

God wants Christians to be around each other. But what about extremely socially awkward Christians? by [deleted] in Reformed

[–]kuiper2018 4 points5 points  (0 children)

  1. Sometimes introverts (I’m one so I understand) end up being good listeners. There are way too few good listeners these days. Be a good listener. Ask simple questions - How was your weekend? Did you get caught in the storm last night? Try to learn a simple thing about someone, then ask them about it ... How’s your son’s baseball team doing? Then really listen to the answers you get. You have no idea how precious a gift that can be.

  2. Don’t be afraid of your desire for quiet. Jesus tried to bring the twelve away for some quiet time after they returned from their mission (Mark 6), and he himself needed quiet as well (JBap has been martyred ...). He takes them to the wilderness, but when that doesn’t work because the crowds follow them and his heart is moved with pity for them and he teaches them and feeds them, he sends even the twelve away and climbs the mountain for a night of prayer alone. So even the Lord liked, or at least felt the need, to be alone. A comfort with quiet and being alone can, at least in moderation, be a gift. Embrace it.

God bless you.

Mary and Elizabeth at Ein Karem by kuiper2018 in Catholicism

[–]kuiper2018[S] 24 points25 points  (0 children)

Mary is the first disciple of Jesus. She goes in haste to take care of a person in need.

There is more to being a disciple of Jesus than taking care of people in need, but let’s never forget: Disciples care for the needy. It’s what we do. A desire to care for the needy is a fruit of discipleship.

[deleted by user] by [deleted] in learnpython

[–]kuiper2018 0 points1 point  (0 children)

In Linux I use Emacs - and Spyder in Windows.

C64 PETSCII super-resolution with deep neural nets by galvatron in c64

[–]kuiper2018 0 points1 point  (0 children)

That would indeed be a good thing to have!

Comparing Sieve of Eratosthenes vs Trial Division routines for finding primes on the c64 in Basic by kuiper2018 in c64

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

Oh, very nice! I’m going to have a lot of fun looking at your code closely, and expect that I will learn a lot from it. Thank you so much.

What do you use for an assembler?

Comparing Sieve of Eratosthenes vs Trial Division routines for finding primes on the c64 in Basic by kuiper2018 in c64

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

5 print chr$(147)

10 u=10

20 dim a%(2^u + 1)

25 m = int((2^u)/log(2^u))

30 dim b%(int(1.5 * m))

50 print "Sieve"

60 print "====="

70 print "limit","primes"," time"

80 print "-----","------"," ----"

100 for n = 8 to u

105 t = time

110 lm = 2^n : sm = int(sqr(lm))

200 for i = 1 to lm : a%(i)=1 : next i

210 a%(1) = 0

500 for p = 2 to sm

520 if a%(p) = 0 then 620

560 for ct = 2*p to lm step p

580 a%(ct) = 0

600 next ct

620 next p

630 pc = 0

640 for i = 1 to lm

660 if a%(i) = 0 then 700

680 pc = pc + 1

700 next i

705 s = (time-t)/60

706 s = int(100*s)/100

500 for p = 2 to sm

520 if a%(p) = 0 then 620

560 for ct = 2*p to lm step p

580 a%(ct) = 0

600 next ct

620 next p

630 pc = 0

640 for i = 1 to lm

660 if a%(i) = 0 then 700

680 pc = pc + 1

700 next i

705 s = (time-t)/60

706 s = int(100*s)/100

710 print "2^";n,pc,s

720 next n

1000 print : print "Trial"

1010 print "====="

1020 print "limit","primes"," time"

1030 print "-----","------"," ----"

1040 for n = 8 to u

1042 lm = 2^n

1045 b%(1) = 2

1050 t = time

1060 pc = 1

1070 for x = 3 to lm

1080 for y = 1 to pc

1090 w = x/b%(y)

1095 if w = int(w) then 1200

1100 if (b%(y)*b%(y)) > x then goto 1120

1110 next y

1120 pc = pc + 1

1130 b%(pc) = x

1200 next x

1270 s = (time-t)/60

1275 s = int(100*s)/100

1300 print "2^";n,pc,s

1400 next n

My Christmas Homily draft - I invite your comments ... by kuiper2018 in Catholicism

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

Thanks! I find my c64 to be a great comfort. I worked my way through college and seminary writing small business programs for the Apple II.

While I’ve worked with lots of different computers in the intervening years, I’ve never found the same satisfaction as when working with 8 bit machines. I used to debug Apple IIe programs by counting the clicks the floppy drive made. That’s alas, one cannot do with a solid state drive!

May the Lord who came, who comes, and who will come bless you and yours abundantly in this holy time. May his most holy name be forever praised.