HeadlinesBriefing favicon HeadlinesBriefing.com

Cyberscript: Fast, Embeddable Scripting Language

Hacker News •
×

Cyberscript is a Cyberscript language that is easy to learn, featuring dynamic and static types, concurrency with fibers, memory safety, FFI, and embeddable capabilities. It runs on a fast VM and JIT, and is cross‑platform.

A sample snippet shows a list of world names and a recursive Fibonacci function that uses fibers. The example counts calls with a variable and runs until the fiber status is .done, incrementing a counter each time.

Use cases include embedding the compiler and VM into applications, games, and engines, or running scripts via the CLI on desktops and servers. Benchmarks demonstrate Cyberscript’s performance, with tests like Recursive Fibonacci (VM) and (JIT) measuring script time, load time, and peak memory.

Key features are documented in the official docs. Interop is provided by libcyber, which offers a C‑ABI compatible FFI API. Tools like cbindgen.cy generate bindings from C headers for libraries such as Raylib and LLVM. Support is encouraged via GitHub, Discord, and sponsoring platforms.