C vs Rust on the Commodore 64
Through the LLVM-MOS project it is now possible to target the MOS 6502 architecture as found in the Commodore 64, Apple II, and many other 1980s micro computers. Here's a comparison of a plasma effect programmed in C and Rust, respectively. - The Rust source code is available here: https://github.com/mlund/mos-hardware - The C source is available here: https://github.com/mlund/mega65-adventure/tree/main/llvm-c64 - In the initial dot "..." phase, a character set is being generated. When recording the video, Rust used a slower random number generator than C, which is why Rust is initially more sluggish. In the linked source, Rust and C used the same random number source, whereby the pre-calculation step is the same for C and Rust. - Both C and Rust uses LLVM-MOS for code generation. - The PRG files are around 1 kB; the C version slightly less than the Rust version. - For more about the algorithm, see this article on Medium: https://medium.com/@c64oldstories/plasma-on-the-commodore-64-anatomy-of-a-classic-demo-effect-a0a2ac21b05a
Suggested videos

Walk-through: Building LLVM-MOS from Scratch
lundmikael · 6:42

Rust vs C By a non Rust-fanboy: From Rust ➡️ C
Liron CH · 11:26

Using Rust to talk to an 8-bit Computer - A Quick Tour
lundmikael · 1:42

Rust64 - a Commodore 64 emulator written in Rust: Drop Zone
Krzysztof Kondrak · 1:01

Rust64 - a Commodore 64 emulator written in Rust: Eagle Soft Inc.
Krzysztof Kondrak · 1:27

Faunus tutorial: Download and compilation
lundmikael · 2:54

C64 Demo: RUST by Onslaught 2013
C64! · 11:48

FAIR Data: Zenodo Deposition via a Github Repository
lundmikael · 12:20

C64 coding - C64Ultimate Huge 3D speed improvement at 64MHz
Martin Piper's mostly Commodore related memories · 2:18

Tracking guitars with Erik Lund @ Mikael Wikman Drum Studio
Mikael Wikman Drum Studio · 1:01

Rust (2013 dec C64 Demo)
falkaseltza · 11:02

Unit 2 Jump'n'jolly Commodore 64 demo
lundmikael · 1:29