BytePusher Rust banner

BytePusher Rust

4 devlogs
5h 9m 4s

BytePusher implemented in rust with usage of minifb and rodio library

Disclaimer: I don't own idea or demos. You can find all related resources here https://esolangs.org/wiki/BytePusher

sadly i am too lazy to implement everything, so i done…

BytePusher implemented in rust with usage of minifb and rodio library

Disclaimer: I don’t own idea or demos. You can find all related resources here https://esolangs.org/wiki/BytePusher

sadly i am too lazy to implement everything, so i done audio and display

I was referring to “A Bytepusher VM implementation in Zig – My Favorite Zig Project Yet” because i hadn’t understand some moments (adresses and pixeldata)

This project uses AI

helped with finding and fixing bitwise operations flaws (display output to be more precise)

Demo Repository

Loading README...

Ivan

Shipped this project!

Hours: 5.13
Cookies: 🍪 61
Multiplier: 9.97 cookies/hr

This is simpliest virtual machine as far as i know.
It was kind of challenging because i am a newbie in rust as well as bit math.
I made ton of mistakes with adresses, shifting, borrow checker and pointers.
Especially hard part for me was audio, i am still unsure if it works correctly but i made the version which i thought is the most correct.
Besides that, it was fun! This filling that you control and understand how it works is amazing!

Ivan

Anyway EARRAPE WARNING MAKE SOUND QUIETER

Sounds. Discovered rodio. And discovered very funny fact that handle had to be stored in order to be used =)))))))))))) Also finally understood how sounds are working. Even tho, either my implementaion or sound demo is cursed

0
Ivan

basics are working now!

0
Ivan

Made color palette, why it took so long? Because i am dump xd. Also it took me pretty long time really understand what wiki says about colors. And THE most time consuming was “Is it really correct?” i was checking colors just to realize that colors are 1 pixel wide so it is rather impossible for me to see them in this palette while test pallet is more distinct :d

Attachment
Attachment
0
Ivan

After research what i want to do today i thought about some cpu related stuff. After that i discovered CHIP-8 and BytePusher VMs. I thought that i have no expirence in such stuff and choosed BytePusher and Rust (as i am newbie in it).

Managed to create window with simple color change

0