whim
/playground
github
docs
whim 0.19.0
theme: system
Whim Playground
Run
Format
Load an example
Examples
Hello, world
Pattern matching
Reified generics
Aliases and newtypes
Closures and function types
Classes and interfaces
Backed enums
Object shapes and range types
Expression control flow
Fresh identities
Lint levels and overrides
Catch guards and cleanup
Using and resource lifetime
Collections
Clocks
Function composition
Variation
Logic variables
Runtime reflection
Async tasks
Channels
HTTP server
JSON
SQLite database
UUIDs
Dates and calendars
Regular expressions
Unicode
URLs and queries
CSV streams
BSON documents
Compression streams
Hashes and HMAC
HTML text
Binary integers
IP and CIDR
Option and Result
Random sequences
Shell escaping
ANSI · terminal colors
Args · command lines
Cache · local storage
Config · typed settings
Diff · edit sequences
Dotenv · environment files
Event · dispatching
Expect · test assertions
Fake · test data
Humanize · readable values
Log · structured events
Markdown · terminal output
Money · exact amounts
OTP · one-time passwords
QR · code matrices
Seal · signed tokens
SemVer · version ranges
Template · Mustache
Share
Config
Editor features
Display
Line numbers
Code folding
Indent colors
Active line
Draw selection
Editing
Bracket pairing
Undo history
Drop cursor
main.whim
source
$language = 'Whim'; write_line!('Hello from ' . $language . '!');
⋮
output
lint
bytecode
optimized bytecode
[]
Run the source to inspect compiler bytecode.
Run the source to inspect optimized compiler bytecode.