
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
github.com/classpythonaddike/brainfcompiler
This is a BrainF Compiler written in Golang. It converts BrainF code to C++ code, and then finally machine language, thus generating an executable. My aim is for it to be the fastest BrainF executor I've written yet.
As of now, this compiler is able to draw a mandelbrot set in 11 seconds. take a look at mandelbrot.bf for the program
If you are on Windows, Linux or a Mac, you can go to the Releases tab to download the latest release.
If you are on a different operating system, you will need to compile it on your machine. Create a file named main.go
and paste the following code into it:
package main
import (
"flag"
bfcompiler "github.com/classPythonAddike/brainfcompiler"
)
func main() {
compiler := flag.String("compiler", "gcc", "Compiler to use at runtime")
file := flag.String("filename", "", "BrainF file to compile")
output := flag.String("out", "", "Output file")
flag.Parse()
bfcompiler.Compile(*file, *compiler, *output)
}
go get github.com/classPythonAddike/brainfcompiler
and then use the Compile
function to compile a BrainF program.You can invoke the script like this:
> brainfcompiler.exe -filename=filename.bf -out=filename.exe [-compiler="g++"]
Where:
filename
is the brainf file you want to compileout
is the output file you want. Remember, on Windows, it will need to have a suffix of .exe
!compiler
is the C compiler you want to use. This option is not compulsory. The compiler used by default is gcc
. Supported compilers are gcc
and g++
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.