intermezzOS / journey

Supplemental Book to intermezzOS exploring low level concepts like stack vs. heap, assembly language and virtual memory.
7 stars 1 forks source link

Add proposed rust program #1

Closed rylev closed 8 years ago

rylev commented 8 years ago

In order to give our exploration of low level computer concepts an end goal, I propose framing our journey by using this Rust program as our guide. By the end of the book we will know exactly what this program does from the perspective of the CPU, RAM, the OS, etc.

I'm pretty new to Rust so this program may be terribly written. Any feedback on the idea in general AND the Rust code itself would be greatly appreciated.

steveklabnik commented 8 years ago

Woo! :confetti_ball:

This code looks great, except one bit: most of the time, taking an &str is better than an &String. But it's easier to start explaining via &String and switch over, so I think this is a good start regardless.