Early documentation
The tour and docs will likely be rewritten for Lycan's first public release.
Docs
Docs
An introduction to functions, ownership, macros, and the development workflow.
Lycan is a statically typed systems programming language with Lisp syntax. It compiles through LLVM, with deterministic cleanup and reference counting for owned storage.
These docs explore a few central parts of the language in more detail than the tour.
01 / Extensible operationsFunctions and dispatchHow to define and extend operations through open function families, product inheritance, multiple dispatch, and protocols.
02 / Storage and lifetimesValues and ownershipHow values are copied, moved, and cleaned up, and how borrows relate to owned and shared storage.
03 / Source as dataMacros and compile timeSmall source transformations, compile-time execution, and the HTML forms used to build this site.
Examples
Each code block links to the Lycan source file it displays. The site reads those files directly, and a separate check runs the examples to verify their results.
Imports identify modules by their paths, while pub exports a declaration for other modules to use. Module paths contain slashes, and a colon qualifies a name through an imported alias.
Development workflow
The compiler is written in Lycan and offers a REPL and hot reload through lycan dev. One-shot compilation and native builds use the same compiler pipeline.
Alongside C interop for native libraries, Lycan has a WebAssembly target with browser libraries for JavaScript values, DOM elements, events, and asynchronous tasks.
The compiler is still in development, so public releases are not available yet.