Python syntax
Functions, classes, lists, dicts, sets, tuples, f-strings, comprehensions, lambdas, exceptions, generators. If you know Python, you know Basher.
EsorlexAnarchy Studio · out now
Python syntax, native speed. Write Python, get a native Windows program that runs as fast as hand-written C, 7–57× faster than CPython. No type annotations: Basher works out every type when it compiles.
It reads like Python. It runs like C.
def fib(n): if n < 2: return n return fib(n - 1) + fib(n - 2) print(f"fib(35) = {fib(35)}") $ basher run fib.bsh # 31 ms. CPython: 1494 ms fib(35) = 9227465 $ basher build fib.bsh -o fib # a standalone fib.exe
Everything you need to ship a program.
Functions, classes, lists, dicts, sets, tuples, f-strings, comprehensions, lambdas, exceptions, generators. If you know Python, you know Basher.
Compiles through C with clang -O3. Benchmarks run as fast as hand-written C, and 7–57× faster than CPython 3.14.
No annotations. Every type is worked out at compile time, and mistakes are compile errors with the line and a hint.
basher build makes a standalone program: --static for no DLLs, --windowed for GUI apps.
Real Win32 windows, dialogs, notifications, a GPU canvas and headless testing. See the libraries; install one with basher install gui.
A VS Code extension (highlighting, errors as you type, hover types) and basher update, which checks every download's sha256.
Served straight from our own machine.
Four steps, about a minute.
.bsh files with Basher, the VS Code extension.basher run hello.bsh (the examples are in the install folder under docs\examples). Later, basher update gets the newest version.Any recent 64-bit Windows PC.
basher install and basher updateWhat's new.
basher update: https only, the download's size and sha256 must match, keeps your PATH and editor settings, puts the old version back if anything fails. --check only looks.basher update --off turns it off).canvas library: GPU drawing (Direct2D), text, pictures, mouse and keys, headless frames for tests.os.path.getmtime and time.strftime; faster gui windows.basher install / uninstall / libraries, every file checked against its sha256. gui, dialogs, notify, horseman.basher build --windowed..bsh files, the VS Code extension, clang setup, uninstaller.