
A statically typed lisp, without a GC, for real-time applications
Benefits
- Automatic and deterministic memory management
- Compiled without a garbage collector, runtime, or VM
- Inferred static types for great speed and reliability
- Ownership tracking enables a functional programming style
- Uses cache-friendly data structures and mutation under the hood
- No hidden performance penalties–allocation and copying are explicit
- Straightforward integration with existing C code
- Generic types and algorithms
Example
Let’s say hello world!
(load-and-use SDL)
(defn draw [app rend state]
(bg rend &(rgb 60 90 120)))
(defn main []
(let [app (SDLApp.create "Hello World!" 300 300)]
(SDLApp.run-static &app draw)))