A Modern Lua-inspired Programming Language
Concise, lightweight, and designed for small-scale applications and embedded scripting. Built entirely in PureBasic — bringing the familiar elegance of Lua while evolving its own unique language characteristics. Optionally ship as a self-contained folder/EXE (full language) or compile-safe scripts to native via libvyrnrt.
Minimal footprint with zero extra dynamic libraries needed. Ideal for embedding and small tooling.
Familiar, clean, and quick to learn for Lua developers — with modern keywords and optional typing.
Seamlessly embeddable into host applications written in PureBasic or C via native ABI / DLL.
Parameter, return, binding and struct annotations with runtime checks; use --strict for compile-time.
vyrn build, bundle, serve, REPL, --dump, --strict, --bench and more.
Standalone — full language + stdlib as a distributable folder/EXE.
Compile — @compile-safe scripts to native via libvyrnrt (no PureBasic runtime needed).
Modern keywords with full Lua compatibility
Legacy function / local / elseif still accepted.
"Hello, {name}!"yieldpcall / xpcall)Vyrn supports both its own syntax and classic Lua style
-- Vyrn (Optional Typing)
def greet(name: string) -> string
return "Hello, " .. name .. "!"
end
def calculate_bonus(score: number) -> number
return score * 1.1
end
print(greet("Vyrn"))
print(calculate_bonus(100))
-- Output:
-- Hello, Vyrn!
-- 110
Build, bundle, serve and benchmark from the command line.
Official standalone IDE — zero config, custom highlighting, multi-file support.
Ship as Standalone (full features via Vyrn.dll + optional C host) or Compile-to-native (libvyrnrt). Also embed via C ABI / DLL / C#.
Initially written as LuaLiteVM in PowerBasic 10.04
Rewritten in FreeBasic 1.05 using FBEdit
Rewritten in the latest PureBasic and renamed to Vyrn
Optional typing, structs/enums, coroutines, strict mode, build/bundle/serve, native C ABI
Ship paths mature: Standalone packaging + Compile-to-native (libvyrnrt), SSE/streaming HTTP, zlib/crypto file helpers, and official standalone Vyrn IDE released (syntax highlighting, multi-file, run/debug)
Clone the repository, explore the examples, and start embedding Vyrn in your next project.
Environment: Windows 10/11 · PureBasic 6.41+ recommended