Live data from Hacker News

Linux on a Commodore 64

github.com

31–40 of 97 posts

Re: Linux on a Commodore 64

#31
post #22
post #18

A demonstration of Turing equivalency. Any Turing complete computer can do what any other Turing complete computer can do if you don’t care about time.

Time and memory.

Yeah, so technically a Turing machine has infinite memory.. so no real-world computer is fully Turing complete.

Re: Linux on a Commodore 64

#32

I recently came into possession of a fully-functioning TRS-80 Model 4, and I fantasize regularly about putting some vaguely Unix-esque thing on it. The fantasy continues.

You should be able to boost that up to 128k. Once there you have a solid chance of being able to run Fuzix on it.

Start there and you’ll find a rabbit hole of reasonable depth.

Re: Linux on a Commodore 64

#33
post #27

Earlier quoted context omitted.

Says you. llvm-mos generates surprisingly efficient 6502 code given its age and maturity. Don't take my word for it, try some experiments with it on godbolt.

Sure. Here's a couple of functions to iterate over an array of "Ball" objects, as you might do in a Breakout-style game that has a multi-ball powerup. I didn't do anything to make it particularly 6502-amenable; it's how I'd write it for a modern machine, probably. Even compiled with -O2: as expected, the code is slow and enormous - a single addition compiles to something like 30 instructions. [0] https://godbolt.org/…

[deleted]

Re: Linux on a Commodore 64

#36

Is this different from Lunix? https://en.wikipedia.org/wiki/LUnix

LUnix is an actual C64-native operating system that you can write apps for and run on C64 hardware directly. This is a RISC-V emulator running on C64 emulating a Linux boot up.

Re: Linux on a Commodore 64

#37

Earlier quoted context omitted.

Says you. llvm-mos generates surprisingly efficient 6502 code given its age and maturity. Don't take my word for it, try some experiments with it on godbolt.

I've yet to see the 6502 C compiler that can beat good assembly code. I appreciate the convenience and llvm-mos has certainly improved greatly, but if you want speed on a 6502, there's no substitute.

I've yet to see a 6502 C compiler get within sight of good assembly code. C makes many assumptions that are slow to implement on a 6502, and are notoriously hard to optimize.

Re: Linux on a Commodore 64

#38

This begs the question. What is the oldest hardware that can boot modern Linux but still be used as a daily driver?

For the sake of argument, let's say a computer where you can install Debian 12 and run a WM and a browser, and it's not excruciatingly slow.

I think you'd want to aim somewhere around the Pentium 4 / Athlon XP era. The docs say it doesn't support the original Pentium, so I suppose you could go back as far as the Pentium II if you really want to suffer.

Re: Linux on a Commodore 64

#39
post #38

This begs the question. What is the oldest hardware that can boot modern Linux but still be used as a daily driver?

For the sake of argument, let's say a computer where you can install Debian 12 and run a WM and a browser, and it's not excruciatingly slow. I think you'd want to aim somewhere around the Pentium 4 / Athlon XP era. The docs say it doesn't support the original Pentium, so I suppose you could go back as far as the Pentium II if you really want to suffer.

Damn and I still remember when Pentium 4 is the epitome of speed and I have to make do with Pentium 3 and even 2.

Re: Linux on a Commodore 64

#40
post #39
post #38

Earlier quoted context omitted.

For the sake of argument, let's say a computer where you can install Debian 12 and run a WM and a browser, and it's not excruciatingly slow. I think you'd want to aim somewhere around the Pentium 4 / Athlon XP era. The docs say it doesn't support the original Pentium, so I suppose you could go back as far as the Pentium II if you really want to suffer.

Damn and I still remember when Pentium 4 is the epitome of speed and I have to make do with Pentium 3 and even 2.

Pentium 4 was the epitome of heat. The Athlon XP was generally faster and cheaper during that era.
Post reply on HN