What Is Larzscript? Your First Program
Larz walks through what makes Larzscript different, installs it, and runs your first two programs โ a plain "Hello, Larzscript!" and a real money-native one.
Install it
One binary, zero dependencies โ no Python, no separate runtime.
Windows (PowerShell):
Your first program
Save this as hello.lz and run larzscript hello.lz:
print("Hello, Larzscript!")Hello, Larzscript!
What makes it different: money is part of the grammar
Most languages bolt payments on as a library. In Larzscript, wallet, price, pay and require are keywords โ the runtime itself guarantees a payment can't partially settle and a revenue split is enforced.
wallet customer = $20.00
wallet platform
wallet creator
price premium = $9.00
fn buy(buyer) {
require buyer.balance >= premium, "not enough funds"
pay premium from buyer to platform
pay premium * 0.8 from platform to creator
}
buy(customer)
print(f"creator earned: {creator.balance}")creator earned: $7.20
That require line isn't a convention you have to remember to write defensively - it's enforced by the runtime, the same way a type system enforces types. Later lessons build on exactly this (Lesson 9: Money-Native Basics, Lesson 10: Paywalls & Subscriptions).
Why a new language at all?
Larzscript isn't trying to out-Python Python. It owns a niche no mainstream language does - money as a first-class concern, plus reading like English where it matters (unless x is at least $1.00 { ... }, for i from 1 to 3 { ... }). It also compiles to real portable C (--emit-c) for when the tree-walking interpreter isn't fast enough - covered in Lesson 14.