Show HN: AutoLISP interpreter in Rust/WASM – a CAD workflow invented 33 yrs ago
4 months ago
- #Rust
- #WebAssembly
- #AutoLISP
- acadlisp is an AutoLISP interpreter written in Rust and compiled to WebAssembly, allowing AutoLISP code to run in the browser without AutoCAD.
- The project originated from a 1991 solution for automating electrical schematic generation using AutoLISP, CSV files, and templates.
- LISP, developed in 1958, was pivotal in AI research due to features like homoiconicity, self-modification, and symbolic processing.
- The schematic generator in 1991 used self-modifying code where inserting a component could trigger additional components.
- Technical details include Rust as the language, WebAssembly as the target, and support for SVG and DXF output formats.
- Supported AutoLISP functions include defun, setq, if, while, cond, arithmetic operations, and more.
- Example code demonstrates drawing a rectangle using AutoLISP commands.