frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AutoLISP interpreter in Rust/WASM – a CAD workflow invented 33 yrs ago

https://acadlisp.de/noscript.html
29•holg•2h ago

Comments

holg•2h ago
In the early 90s I wrote AutoLISP code for AutoCAD 9/10 that enabled a CSV → template → parametric drawing workflow. You could define components in spreadsheets, feed them through templates, and generate complete technical drawings automatically.

I've never seen anyone else use this approach. Now I've built an interpreter in Rust/WASM so it can run in the browser - partly nostalgia, partly preservation before this knowledge disappears entirely.

The lisp/ folder contains some LSP files from that era, others i recreated from memory.

Repo: https://github.com/holg/acadlisp/

What kind of drawings were you generating? Electrical schematics, mechanical parts, architecture? We also have some playground, to toy around with LISP and some function generator, to demonstrate Lisp usage for math...

lambda•2h ago
I get a 404 for that repo; is it private?

Also, the page you link to in the original post is in German; it might be nice to have an English page for the mostly English speaking audience here on HN

holg•1h ago
fixed it, thx for the notice
stocksinsmocks•57m ago
I have a lot of interest in this space for infrastructure design. Thanks for sharing.
51Cards•30m ago
We were on the same page. I also built something similar for a Conveyor company here in Canada in the early 90's. We parameterized all their tech drawings (or at least the initial versions) from their component libraries. Was a great project. Not sure how long they used it, they eventually acquired the resources to support it internally (I was an independent AutoLISP contractor). Good times back then. I haven't done AutoLISP in years now but great to see it's still around.
pjmlp•1h ago
AutoCad nowadays uses .NET as well, and thus any CLR enabled language, with a MSIL backend.

https://help.autodesk.com/view/OARX/2024/ENU/?guid=GUID-390A...

holg•1h ago
sure it does, but Lisp is special, and for those times it was very special. I did not want to show how it is done nowadays, but how we had done it 33 yrs ago... And now there is the emulator as the web-page, this is what i wanted to share (everything works as wasm in the browser)...
ofrzeta•1h ago
related: "In Version 2.5, AutoLISP allowed access to the DWG database. AutoLISP was based on XLISP, a public domain version of LISP written by David Betz. Betz later complained that Autodesk had failed to acknowledge the source, which the company later did." (https://www.shapr3d.com/history-of-cad/autodesk-and-autocad)

https://github.com/dbetz/xlisp

holg•1h ago
Thanks for the link! I didn't know about the XLISP controversy.

My interpreter doesn't aim for full compatibility - just enough to run the schematic generation workflow from 1991. The core is: defun, setq, car/cdr, recursion, and the (command ...) interface to draw entities.

The interesting part was how templates could trigger other templates - inserting a contactor (Schütz) would automatically generate its coil in the control circuit. Code writing code, classic LISP.

cmrdporcupine•42m ago
I remember using Betz's stuff on my Atari ST in the 80s (and then other stuff he did decades later on the Parallax Propeller chip, where he is an active community member). XLISP, advsys, and his scheme dialect, too.

I always wondered if he got compensated for the stuff he did that then got used in AutoCAD.

Sounds like no

buildsjets•43m ago
I had to accomplish pretty much the same exact task circa 1999, but in Aldus Pagemaker using Postscript.

My first job out of college was a 6 month contact at a fairly small industrial control manufacturer that had been purchased by a larger conglomerate. All of their engineering documentation needed to be converted to the new company’s format.

The old company had devised a scheme whereby a wire harness could be completely described by the part number, which encoded the wire size, color, length, and termination. The new company wanted a detail drawing for each wire, with thousands in the database.

I made a library of reusable glyphs that could be stored in Pagemaker layers, and connected with postscript generated lines, and a script to iterate through the part number database and generate drawings.

kayo_20211030•31m ago
Super interesting. Thanks. AutoLisp was both a pain and underrated. But, it was perfect for this sort of stuff. Much easier than generating the dxf files directly, say using postscript ;-). I love the modern recreations and UI.
holg•22m ago
Thanks! You nailed it - AutoLISP was the right abstraction. Direct DXF/PostScript meant entity tables and coordinate gymnastics. (command "LINE" p1 p2) just did the thing. What's running here: real WASM interpreter executing AutoLISP, not a slideshow. SVG native, DXF export (AC1009), all text editable, JSON data feed instead of CSV. My brother could open this page and start working the same workflow we did in '91 - better feed, better output. And Rust is a surprisingly natural fit - Lisp's explicit stack discipline maps cleanly onto ownership. What Rust enforces, Lisp already wants.

Ask HN: How to gain a solid understanding of IMUs?

1•feefifoflux•1m ago•0 comments

The AI Reality Check: Deconstructing the 2025 Stack Overflow Developer Survey

https://nitinahirwal.in/posts/Stack-Overflow-Survey-2025
1•foobuzzHN•3m ago•0 comments

Vanslist – No middlemen. No fees. Just people

https://vanslist.com/
1•netgeniuskid•3m ago•0 comments

Do you believe in society's lies?

https://samkriss.substack.com/p/do-you-believe-in-societys-lies
1•paulpauper•3m ago•0 comments

Why Everyone Loves Japan

https://www.noahpinion.blog/p/why-everyone-loves-japan
1•paulpauper•4m ago•0 comments

The 2m Peak

https://writingcosmo.substack.com/p/the-2m-peak
1•tsterin•5m ago•0 comments

The Misfit Tree

https://collabfund.com/blog/the-misfit-tree/
1•herbertl•5m ago•0 comments

Leaker Who Apple Is Suing Says 'Screw It,' Here's the Foldable iPhone Early

https://gizmodo.com/leaker-who-apple-is-suing-says-screw-it-heres-the-foldable-iphone-early-20007...
2•achow•6m ago•0 comments

I Killed Color on My Phone. The Result Shocked Me

https://www.nytimes.com/2025/12/25/opinion/smartphone-color-grayscale-addiction.html
2•mikhael•6m ago•0 comments

Konami Code

https://craigatallahfrost.com/post/2025/12/23/konami-code
1•herbertl•8m ago•0 comments

Laid Off After 25 Years in Tech [video]

https://www.youtube.com/watch?v=VeMA9WGKxOg
2•akhilnchauhan•9m ago•0 comments

Affiliarena Kickstart Challenge – Mehr Verdienen ALS Online Marketer

https://simon-veith.net/jetzt-geht-es-los-mit-der-ki-revolution/affiliarena-kickstart-challenge-m...
1•hellocosmetics•9m ago•0 comments

Chess960v2 – the first championship has officially started

https://chess960v2.com/en
1•lavren1974•9m ago•0 comments

Metastable Failures and Interactions Between Systems

https://charap.co/on-metastable-failures-and-interactions-between-systems/
2•todsacerdoti•11m ago•0 comments

Apple's M-series chip 5 years later

https://www.tomsguide.com/computing/cpus/apples-m-series-chip-gamble-5-years-later-how-ditching-i...
2•AshleysBrain•11m ago•0 comments

Workflow Automation: Letting AI Write Workflow Code

https://blog.codesolvent.com/2025/12/workflow-automation-letting-ai-write.html
1•Edmond•14m ago•0 comments

Show HN: FYI - Product Events Tracking and Notifications for Elixir Phoenix Apps

https://github.com/chrisgreg/fyi
1•bustylasercanon•14m ago•0 comments

AI Village

https://theaidigest.org/village
2•kruipen•15m ago•1 comments

OpenStreetMap QA for Power Grids

https://apps.dynartio.com/mapyourgrid/gridinspector.html
2•protontypes•17m ago•0 comments

Ask HN: What problems do you have building / managing AI in production

1•zarathustra333•17m ago•0 comments

The most friendless place on Earth

https://www.economist.com/christmas-specials/2025/12/18/the-most-friendless-place-on-earth
1•andsoitis•17m ago•1 comments

FFmpeg has issued a DMCA takedown on GitHub

https://twitter.com/FFmpeg/status/2004599109559496984
4•merlindru•18m ago•1 comments

Have Anna's Archive Spotify scrape songs that have been pulled?

1•Tommix11•18m ago•0 comments

Why Your RAG Sucks: The Art and Science of Chunking and Hybrid Search

https://medium.com/beyond-bits/why-your-rag-sucks-the-art-and-science-of-chunking-and-hybrid-sear...
2•laxmansharma•24m ago•0 comments

Are you verifying that products are readable by AI shopping

2•David_0101•24m ago•0 comments

Vector Embeddings: AI Doesn't Understand Words. It Understands Math

https://medium.com/beyond-bits/a-deep-dive-into-vector-embeddings-ai-doesnt-understand-words-it-u...
2•laxmansharma•24m ago•0 comments

ICE's interest in high-tech gear raises new questions: 'What is it for?'

https://www.politico.com/news/2025/12/26/ice-high-tech-surveillance-lower-privacy-guardrails-0070...
21•standardUser•29m ago•9 comments

Show HN: I was tired of link shorteners, so I built Rediredge

https://leotrapani.com/blog/rediredge
2•trapani•31m ago•0 comments

Pg_textsearch: PostgreSQL extension for BM25 relevance-ranked full-text search

https://github.com/timescale/pg_textsearch
4•jascha_eng•33m ago•0 comments

Show HN: Motion controlled party games on the web

https://motionparty.net
3•oliwary•33m ago•0 comments