REPOSITORY OVERVIEWLive repository statistics
★ 51Stars
⑂ 1Forks
◯ 0Open issues
◉ 51Watchers
79/100
OPENREPOHUB HEALTH SIGNALHealthy signals
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
100 Community adoption25% weight
26 Maintenance state20% weight
100 License clarity10% weight
100 Project information10% weight
75 This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
Brainfly
A Brainf**k JIT and AOT compiler built on top of C# type system.
Leveraged .NET generic type system and abstract static interface methods to achieve great performance.
See Introduction for details.
Build
dotnet build -c Release
Usage
dotnet run -c Release -- build <memory_size> <file>
dotnet run -c Release -- run <memory_size> <file>
dotnet run -c Release -- bench <memory_size> <file>
For example,
dotnet run -c Release -- build 1024 a.bf # produce a self-contained a.cs so that you can run it directly with .NET or build it with .NET NativeAOT
dotnet run -c Release -- run 1024 a.bf # running directly from source file a.bf
dotnet run -c Release -- bench 1024 a.bf # benchmark directly from source file a.bf
Benchmarks
Mandelbrot
| Name | Time (ms) | Rank | Ratio | Binary size | Description |
|---|
| Interpreter in C | 4,874.6587 | 5 | 5.59 | N/A | A Brainfuck interpreter written in C |
| GCC | 901.0225 | 3 | 1.03 | 52 KB | Translate to C, then build with gcc -O3 -march=native |
| Clang | 881.7177 | 2 | 1.01 | 56 KB | Translate to C, then build with clang -O3 -march=native |
| .NET JIT | 925.1596 | 4 | 1.06 | N/A | Use JIT to generate the type and then instantiate it for running |
| .NET AOT | 872.2287 | 1 | 1.00 | 1732 KB | Use .NET NativeAOT to build the exe that runs the compiled type directly |
ALGORITHMICALLY RELATEDSimilar Open-Source Projects
Selected from shared topics, language and repository description—not editorial ratings.
A high-performance Brainfuck interpreter for Node.js, leveraging the speed of C compiled to WebAssembly (Wasm). Execute Brainfuck code efficiently with customizable memory limits and get performance metrics.
37/100 healthActive repository
JavaScriptApache-2.0
⑂ 0 forks◯ 0 issuesUpdated Apr 5, 2025