chip8-book
cib
chip8-book | cib | |
---|---|---|
5 | 6 | |
203 | 839 | |
- | - | |
3.9 | 0.0 | |
over 1 year ago | about 2 years ago | |
Rust | C++ | |
Creative Commons Zero v1.0 Universal | - |
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.
cib
- Clang in Browser
-
Compile and execute C++ in browser
[2]: https://tbfleming.github.io/cib/
-
Using Firecracker and Go to run short-lived, untrusted code execution jobs
Here are some more ports of LLVM and clang to the browser:
* https://github.com/kripken/llvm-js
* https://github.com/tbfleming/cib
* https://github.com/jprendes/emception
LLVM just does pure computation, really, so it's not hard to port to wasm - much simple than say Python (which has also been ported several times). The only challenges with LLVM are the build system (which has self-execution), working around some issues like clang wanting to open a subprocess, and adding some ifdefs.
-
Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no framework
That is half of what I would need for a project, the other half being Clang itself running in the browser (to use for teaching), in theory there is [1] since many years, but in practice it never worked for me (even now I get "Runtime error: memory access out of bounds")
[1] https://tbfleming.github.io/cib/
-
Do any Browser Based C Static Code Analysis Tools Exist?
It seems that there's a project doing exactly that: https://github.com/tbfleming/cib
-
Rust programming concepts for JavaScript developers
It takes some work (mostly due to LLVM building code to run later in its build system as it goes), but it's very feasible. LLVM has been ported to Wasm (and before that to JS) many times, for example:
https://github.com/jprendes/emception (2021)
https://github.com/tbfleming/cib (2017)
https://github.com/kripken/llvm.js (2012)
I agree it would be great to see this repl running 100% in the browser!
What are some alternatives?
three-layer - :three: :cake: Architecture of the Haskell web applications
skybison - A fork of Instagram's experimental performance oriented greenfield implementation of Python. It features small objects; a moving GC; hidden classes; bytecode inline caching; type-specialized bytecode; an experimental template JIT.
wasm-fizzbuzz - WebAssembly from Scratch: From FizzBuzz to DooM.
wefx - Basic WASM graphics package to draw to an HTML Canvas using C. In the style of the gfx library
Essentials-of-Compilation - A book about compiling Racket and Python to x86-64 assembly
clang-wasm - How to build webassembly files with nothing other than standard Clang/llvm.
wajic - WebAssembly JavaScript Interface Creator
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")
howto-wasm-minimal - How to create minimal wasm module with plain C/C++
riscv-rust - RISC-V processor emulator written in Rust+WASM
emception - Run Emscripten in the browser