Skip to content

Omena0/fr

Repository files navigation

Fr

Build Tests LoC License

Simple bytecode compiled C-style compiled language.

Installation

pip install frscript

Features:

  • Command line launcher (fr)
  • Compiled language - Fast by design
  • File and Socket I/O - Low-level file operations and sockets.
  • Multiprocessing. - Easy threading with fork() and wait().
  • Python integration - You can use any Python libraries with Frscript.
  • Aggressive optimization - Bytecode-level optimizations. Faster than python.
  • Stack-based VM - Fast and memory efficient.
  • Readable bytecode - Optimize hot code manually
  • WASM Backend - Run sandboxed code in web browsers.

Benchmarks:

Pi_1k

This benchmark computes 1000 digits of pi.

Python: 0.326s
Py VM: DNF
C VM: 64.62s
Native: 0.034s

Fibonacci

This benchmark computes the 1-billionth fibonacci number in mod 1 000 000.

Python: 40.227s
Py VM: DNF
C VM: 31.654s
Native: 4.483s

Contributors