Types that follow your thinking
Inferred static types, immutable data, and exhaustive pattern matching. Expected failures remain visible as Result values.
Keep the logic clear.
Choose how it meets the world.
A functional language built around algebraic effects. Your code declares what it needs. You choose the handler that makes it happen.
effect Account { name: fn() -> string }
fn greet() = "Hello, " + perform Account.name()
let ada = handler Account { name => "Ada" }
let grace = handler Account { name => "Grace" }
print("${ada(greet)} / ${grace(greet)}")
effect Account
name : Unit => string
greet () = "Hello, " + perform Account.name ()
ada = handler Account
name => "Ada"
grace = handler Account
name => "Grace"
print "${ada greet} / ${grace greet}"
One function. Two handlers. The same logic.
01 / A different way to connect
Read an account. Write a log. Save a document. Declare a typed request, then decide how to answer it at the application boundary.
Use the real database in production and a predictable answer in a test. The functions in between stay focused on their work.
Understand algebraic effects ↗effect defines an operation and its types. perform asks for it.
A reusable handler supplies the implementation while your function runs.
Missing handlers and incompatible operation types are compile errors.
Osprey is alpha software. Native control effects support single-shot resumption; full scoped effect rows and reusable continuations remain in development. Current support →
02 / Less ceremony. More intent.
Inferred static types, immutable data, and exhaustive pattern matching. Expected failures remain visible as Result values.
Familiar braces and calls, or ML layout and currying. Mix .osp and .ospml files in one project with the same types and effects.
Native fibers and channels keep concurrent work in ordinary functions. Choose the default allocator, tracing GC, or reference counting for your native build.
Follow the fibers ↗Integer overflow asks an Arith handler for the region's chosen behavior. Wrapping and saturating helpers make that choice explicit.
03 / Take it into the world
Compile through LLVM to native programs, WebAssembly, or application logic for native mobile hosts.
Direct executables. C interop. A choice of memory backends.
--target=native
02 / BROWSER & WASIShared application logic, connected to the browser through a host.
--target=wasm32
03 / IN YOUR HANDOsprey modules behind SwiftUI and native Android interfaces.
--target=ios / android-arm64
Build for the capabilities of your target. Unsupported dynamic control effects are rejected on WebAssembly and mobile.
Real measurements, open benchmarks ↗04 / From language to application
Issue Inbox puts its model, updates, UI layout, GitHub decoding, and SQLite commands in shared Osprey modules. SwiftUI and Android widgets render the application.
Actual simulator and emulator captures. Also verified on a physical iPhone. Native hosts provide rendering, SQLite, HTTPS, and lifecycle services.
Your next idea starts here
Start with a small program. Make the behavior your own.
brew install nimblesite/tap/ospreyscoop bucket add nimblesite https://github.com/Nimblesite/scoop-bucket
scoop install ospreyNative compilation requires clang (LLVM 15+). Installation guide → · Contribute on GitHub ↗