Our great sponsors
bf_jit | vemips | |
---|---|---|
2 | 17 | |
1 | 6 | |
- | - | |
0.0 | 5.3 | |
about 2 years ago | 9 months ago | |
C++ | C++ | |
- | GNU General Public License v3.0 only |
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.
bf_jit
-
Adventures in JIT compilation
I think writing a brainfuck JIT is a great hobby project for learning x86 assembly and the basics of how jit compilation of bytecode works. I also wrote an x64 jit for brainfuck in c++ ( https://github.com/ccapitalK/bf_jit ) , it's surprising how similar it ended up being architectured to the code written in part 2 of this post. It's moderately fast (runs mandelbrot in about 1.1 seconds, and runs towers of hanoi in about 0.2 seconds).
- bf_jit, my over-engineered x64 JIT compiler for Brainfuck
vemips
- Building a baseline JIT for Lua automatically
-
On ELF, Part 1
Also, if anyone wants to see a hastily-written ELF loader that I haven't cared enough about to go back and clean up in C++, I have one here.
-
Weird things I learned while writing an x86 emulator
I suggest MIPS.
-
RTS programming game where you write real C++ code to control your player.
I actually wrote VeMIPS for this specific purpose.
-
NASA Selects SiFive and Makes RISC-V the Go-to Ecosystem for Future Space Missions - SiFive
Unfortunately, I don't remember specifically. It was about when I wrote VeMIPS and was also working on figuring out an alternative ISA for a 3d printer board, and I'd noticed that a specific conversion instruction was missing on it. Maybe it was moving a double-precision register to the general purpose registers on 32-bit? Not sure anymore. I can look over IRC logs maybe to find out.
-
rvscript: Fast RISC-V-based scripting backend for game engines
This is the exact purpose that I wrote VeMIPS for.
-
libriscv: Multiprocessing for Compute Functions
Looks similar to vemips. Same rationale as well (embedding within a game or simulation).
-
Chip8 Emulator for Android written in C++ using NDK and SDL
Probably wouldn't be too hard to add Chip8 as a backend to VeMIPS, though VeMIPS presently doesn't run on Android (only Win64 and in Javascript using asm.js).
-
Zelda 64 has been fully decompiled, potentially opening the door for mods and ports
I personally dislike disassembling MIPS, and I wrote VeMIPS!
-
1Hz Minecraft Redstone Computer
However, I did end up releasing VeMIPS, which is an embeddable MIPS32r6 emulator/VM which is heavily configurable, has a dynamic recompiler, and has instruction-level execution granularity, meaning that you can tell it "execute 10 instructions and return". This lets you implement things like cost per instruction, virtual CPUs with different performance characteristics, and so forth.
What are some alternatives?
blend2d - 2D Vector Graphics Engine Powered by a JIT Compiler
Learning-Resources - This repository serves as a list of resources that I have personally found useful for learning about certain concepts
asmjit - Low-latency machine code generation
mcresc - An interactive debugger for Mornington Crescent, written in ES2015
jank - A Clojure dialect hosted on LLVM with native C++ interop
MinecraftHDL - A Verilog synthesis flow for Minecraft redstone circuits
mull - Practical mutation testing and fault injection for C and C++
rvscript - Fast RISC-V-based scripting backend for game engines
fast_brainfuck.lua - High performance brainfuck transpiler/interpreter for Lua with FFI support. Very fast implementation with multiple optimization passes.
sm64ex - Fork of https://github.com/sm64-port/sm64-port with additional features.
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.
GREED - RTS Programming game based on C++