this post was submitted on 11 Jun 2024
148 points (96.2% liked)

Showerthoughts

29239 readers
884 users here now

A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. The best ones are thoughts that many people can relate to and they find something funny or interesting in regular stuff.

Rules

founded 1 year ago
MODERATORS
top 17 comments
sorted by: hot top controversial new old
[–] [email protected] 47 points 3 months ago (1 children)

WARNING: QR codes are not suitable for upgrading your C64's RAM.

[–] [email protected] 12 points 3 months ago (1 children)

Well not with that attitude.

[–] [email protected] 5 points 3 months ago

This is how YouTube videos are born

[–] [email protected] 21 points 3 months ago

Now this is a shower thought. I love it.

[–] [email protected] 20 points 3 months ago (2 children)

And the Commodore 64 can't decode them. Even if you fed it an algorithm that could decode them, you'd be out the memory of the algorithm.

All sounds fun on paper, but I enjoy storing terabytes of data on the Internet Archive, and sticking that to a QR code, just for fun.

[–] [email protected] 19 points 3 months ago* (last edited 3 months ago) (2 children)

Bullshit, it could decode them just fine it would just take a while. It would only need a source of storage like a tape or floppy drive.

Back then and now we have our computers often do tasks which process more data than we have ram available. It's not a hard problem to solve and we even solved it back then.

[–] [email protected] 8 points 3 months ago* (last edited 3 months ago)

You are right, QR codes are very easy to decode if you have them raw, even the C64 should do it in a few seconds, maybe a minute for one of those 22 giant ones. The hard part is image processing when decoding a camera picture - and that can be done on the C64 too if it has enough time and some external memory (or disks for virtual memory). People have even emulated a 32-bit RISC processor on the poor thing, and made it boot Linux.

[–] [email protected] 6 points 3 months ago* (last edited 3 months ago) (2 children)

Of course. But a fun (actual) showerthought nonetheless. As I remembered it earlier today, a qr-code (version 40) can hold about 3000 bytes.

Version 40: 177x177 modules, can hold up to 7,089 numeric characters, 4,296 alphanumeric characters, 2,953 bytes of data, or 1,817 kanji characters.

[–] [email protected] 8 points 3 months ago (1 children)

Indeed!

I actually encoded a 256 byte DOS assembly demo (not written by me) into a self decoding plain text batch file, and then for the hell of it encoded that into a QR code.

Again, disclaimer, I didn't write the original code, but it was fun to convert into a QR code.

https://youtube.com/watch?v=LSAJTQiQ0DA

[–] [email protected] 2 points 3 months ago

Here is an alternative Piped link(s):

https://piped.video/watch?v=LSAJTQiQ0DA

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source; check me out at GitHub.

[–] [email protected] 3 points 3 months ago (1 children)
[–] [email protected] 3 points 3 months ago

Here is an alternative Piped link(s):

totally made a version of snake that fits in a QR code

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source; check me out at GitHub.

[–] [email protected] 15 points 3 months ago

Tiny nitpick, 23 qr-codes are needed as one can contain 2,953 bytes and c64 has 65,536 bytes of ram. 65536/2953=22.19

[–] [email protected] 15 points 3 months ago* (last edited 3 months ago)

RAM manufacturers hate this one weird trick

[–] [email protected] 15 points 3 months ago

Finally, I can download more RAM

[–] [email protected] 6 points 3 months ago

What sized QR code?

Billboard sized or business card?