Metadata-Version: 2.4
Name: frscript
Version: 10.0.0
Summary: Simple bytecode compiled C-style scripting language
Author: Omena0
License: PolyForm Noncommercial License 1.0.0
Project-URL: Source, https://github.com/Omena0/fr
Project-URL: Bug Reports, https://github.com/Omena0/fr/issues
Keywords: compiler,interpreter,scripting,bytecode,language
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Compilers
Classifier: Topic :: Software Development :: Interpreters
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: setuptools
Requires-Dist: zstd
Dynamic: license-file


# Fr

[![Build](https://github.com/Omena0/fr/actions/workflows/publish.yaml/badge.svg)](https://github.com/Omena0/fr/actions/workflows/publish.yaml)
![Tests](https://github.com/Omena0/fr/actions/workflows/test.yaml/badge.svg)
![LoC](https://img.shields.io/badge/Lines%20Of%20Code-56.7K-red?logo=code)
![License](https://img.shields.io/badge/license-PolyForm%20Noncommercial-blue)
![AI Code](https://img.shields.io/badge/AI_code-59%25-red?logo=Github%20copilot)

Simple bytecode compiled C-style compiled language.

## Installation

```zsh
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.

```text
Python: 0.421s
Py VM: DNF
C VM: 69.81s
Native: 0.031s
```

### Fibonacci

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

```text
Python: 40.435s
Py VM: DNF
C VM: 31.556s
Native: 4.472s
```
