chip8-book
wefx
chip8-book | wefx | |
---|---|---|
5 | 4 | |
203 | 32 | |
- | - | |
3.9 | 4.8 | |
over 1 year ago | 17 days ago | |
Rust | C | |
Creative Commons Zero v1.0 Universal | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
chip8-book
-
Could you suggest an open or a public domain platform that is suitable for publishing a book on emulation?
Not to discourage you, but there's already a CHIP-8 book in progress: https://github.com/aquova/chip8-book
-
feboy (DMG GB emulator) now has full audio support! Special thanks to /u/KingWallmo for working on it the last couple months. Suggestions on what feature to add next?
WASM support would be so cool. There are lots of guides online which could help you out. I saw a guide for the chip8 and it didn't even look too difficult, you can check it out here https://github.com/aquova/chip8-book
-
[Rust] Getting into low level programming. How and why does this pattern matching work?
Recently I've decided to learn low level programming with Rust. I asked for some projects to practice and got recommened to make a Chip8 emulator. That sounded fun so I searched a bit and found this guide that walks you step by step.
-
Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no framework
I made some emulators in Rust as a learning project during the start of the pandemic, and ran into the exact same issue when I wanted to make a wasm version to run in a browser. Eventually, I was able to figure out how to do it, although I do use the 'wasm-pack' Cargo package to assist with it (I think you can get away without it if you're really motivated, you just need to set up the targets and other elements yourself). Basically you define some Rust API to expose whatever you need from your project, then that and the project get compiled into one .wasm binary and some (surprisingly readable) JavaScript "glue" gets generated which allows for easy inclusion into a web page. It works well for code in the std, but I've had issues with 3rd party packages.
It's focused on emulation development, but I wrote a document that describes the process I followed: https://github.com/aquova/chip8-book/blob/master/src/wasm.md
-
Advanced programming exercises/apps recommendations to code
I followed [this](https://github.com/aquova/chip8-book) book which uses Rust.
wefx
-
Cheerp 3.0: The most advanced C++ compiler for the Web now permissively licensed
I'm particularly curious on what parts cheerp adds to their clang+llvm base. Presumably it's something like the C standard target library for WASM/JS?
For reference, here's examples of what you could do with the baseline clang with wasm (but not JS?) [1] [2] [3], referenced from a similar thread on HN.
[1] https://github.com/ern0/howto-wasm-minimal
[2] https://github.com/robrohan/wefx
[3] https://github.com/PetterS/clang-wasm
-
The Tools I Use to Write Books (2018)
I've used a similar pipeline to create "books for code and infrastructure". A/k/a coding in a somewhat literate programming style. Similar to what is described here:
gemini://gemini.robrohan.com/2022-04-23-narrative-programming.md
With output that looks similar to this: https://github.com/robrohan/wefx/blob/main/docs/manual.pdf
Using a github action like this: https://github.com/robrohan/wefx/blob/main/.github/workflows...
(most of the code borrowed from those projects)
You can do it with just plain markdown files and use directories for chapters / organization if you're just going for prose.
I've thought about using the process to try to make open textbooks where you can mix and match chapters, but I don't have any experience in that field.
Anyway, can confirm, it's an incredibly useful process.
-
Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no framework
Not trying to steal your thunder, but here is another nostdlib clang -> wasm example with malloc, a few math functions, rand, and writing to a canvas doing animation.
=> https://github.com/robrohan/wefx
-
Implementing Cosine in C from Scratch
I haven’t seen this version mentioned in the thread - if you don’t need a lot of precision, here is a simple 4 line version[1] and here’s how it works[2].
Not sure who initially came up with it.
[1] https://github.com/robrohan/wefx/blob/1a918cc2d5ad87402a3830...
[2] https://www.desmos.com/calculator/lo7cf60mjz
What are some alternatives?
three-layer - :three: :cake: Architecture of the Haskell web applications
pure-data - Pure Data - a free real-time computer music system
wasm-fizzbuzz - WebAssembly from Scratch: From FizzBuzz to DooM.
cib - clang running in browser (wasm)
Essentials-of-Compilation - A book about compiling Racket and Python to x86-64 assembly
musl - unofficial musl mirror git://git.musl-libc.org/musl
chip8-test-suite - A collection of ROM images with tests that will aid you in developing your own CHIP-8, SUPER-CHIP or XO-CHIP interpreter (or "emulator")
clang-wasm - How to build webassembly files with nothing other than standard Clang/llvm.
riscv-rust - RISC-V processor emulator written in Rust+WASM
v7unix - Version 7 Unix for a POSIX world