rlisp
Rust semantics with LISP syntax. A transparent s-expression frontend that compiles directly to Rust β no runtime, no GC, just (s-expr β .rs β binary) .
<div dir="auto" data-snippet-clipboard-copy-content="(struct Point (x f64) (y f64))
(impl Point (fn distance ((&self) (other &Point)) f64 (let dx (- (. self x) (. other x))) (let dy (- (. self y) (. other y))) ((. dx powf 2.0) + (. dy powf 2.0)) sqrt))
(fn main () () (let p1 (new Point (x 0.0) (y 0.0))) (let p2 (new Point (x 3.0) (y 4.0))) (println! "Distance: {}" (. p1 distance (& p2))))"> (struct Point (x f64) (y f64))
(impl Point (fn distance (( &self ) (other &Point )) f64 ( let dx ( - ( . self x) ( . other x))) ( let dy ( - ( . self y) ( . other y))) (( . dx powf 2.0 ) + ( . dy powf 2.0 )) sqrt ))
(fn main () () ( let p1 (new Point (x 0.0 ) (y 0.0 ))) ( let p2 (new Point (x 3.0 ) (y 4.0 ))) (println! " Distance: {} " ( .β¦