Website docs https://fsk-lang.com
FPM Gestionary package Website https://fpm.kirosb.fr
A high-performance hybrid C++/Rust interpreted programming language.
- Hybrid Core: Critical modules (Crypto, SQL, System, Http) are written in Rust for maximum performance and safety.
- Bytecode VM: Now runs on a register-based Virtual Machine (Rust) instead of slow AST interpretation.
- Production Web Server: Built-in HTTP server powered by Axum & Tokio. Supports WebSockets out of the box.
- Modern Syntax: Arrow functions
=>, Async/Await, Destructuring, Optional Chaining?..
Requirements:
- CMake 3.10+
- C++ Compiler (C++17)
- Rust (Cargo)
- Dependencies:
libsqlite3-dev,libssl-dev,libcurl4-openssl-dev,libstdc++,libgcc
To install dependencies on Debian/Ubuntu:
sudo apt install -y git cmake g++ make libsqlite3-dev libssl-dev libcurl4-openssl-dev cargomkdir build
cd build
cmake ..
makeFor detailed instructions on building Fsk on Windows (including Rust setup), please click the button above.
sudo mkdir -p /usr/local/lib/fsk/
sudo cp -r std /usr/local/lib/fsk/
sudo cp build/fsk /usr/local/bin/The recommended way for users.
- Build the project using
WINDOWS_BUILD.md. - Run
package.bat(requires Inno Setup). - The installer
fsk_setup.exewill be in theOutputfolder.
Run a script:
fsk script.fskInteractive mode (REPL):
fskFsk includes a high-level web framework inspired by Express.js:
import "http";
const app = new http.Server();
app.get("/", (req, res) => {
res.send("<h1>Hello from Fsk Perfect Edition!</h1>");
});
app.get("/json", (req, res) => {
res.json(["Apple", "Banana", "Cherry"]);
});
print "Server running on port 8080";
app.listen(8080);- Crypto: SHA256, MD5, Base64 (via
ringcrate). - SQL: SQLite3 engine (via
rusqlite). - System: Device information (via
sysinfo). - VM: Register-based bytecode execution.
Run the built-in documentation server:
fsk docs/server.fskThen open http://localhost:8092.