
What happened
In a FreeCAD 1.0.2 bracket task run 15 times per method with gemini-3.5-flash, the DSL method passed final verification 10/15 (66.7%) versus 4/15 (26.7%) for code generation, and passed runs averaged about 173,106 tokens versus 280,493.
Why it matters
The DSL approach wraps CAD operations with built-in input and geometry checks, so failed attempts stop before producing an invalid shape, whereas code generation can leave a plausible-looking but broken part.
What to watch
The test covers only one bracket design with 15 trials per method and one LLM and CAD tool each, so whether DSL stays ahead on other parts or with a stronger model is still open. Watch the roughly 128 yen versus 372 yen cost per passing shape.
WHO IT HITSEngineering teams and AI agent builders applying large language models to CAD or other tool-driven design work: the result suggests wrapping repeated operations in a checked DSL is more reliable than free-form code, though the conclusion is limited to this single bracket task.
Summaries like this, in your inbox every morning.
This experiment follows an earlier comparison where the same DSL and code-generation approaches were tested on eight simpler tasks, such as boxes, cylinders and holes. In that round, code generation used about 26% fewer tokens than the DSL, because loops and functions let it compress several operations into one code block. The new bracket task was chosen to be closer to real work: the AI had to avoid surrounding parts and repeatedly measure and correct its shape, not just produce a basic form.
The bracket conditions interact with each other. Widening a plate to increase contact area with the sensor can eat into the required 5 mm clearance from an obstacle, and rerouting around that obstacle can split the plate or make it impossible to fold from a single 5 mm sheet. In the logs, the DSL method, which had checks built into each operation, tended to halt when a condition was violated and never reach a final shape. Code generation often kept going and left a shape that looked finished but had internal defects, such as three separate solids instead of one. One run even reported a single solid while the verifier found three.
The article's own suggested setup is to use the checked DSL as the standard path, and only hand tasks the DSL cannot express to code generation in a temporary copy of the data, verifying results before they touch production. The key open question, and the limit of this result, is that the test involved one bracket design, one model and one CAD tool, so whether the DSL's advantage holds on other parts or with a stronger model remains to be seen.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
Chunghwa Telecom president Rong-shy Lin said the shift from conversational AI to autonomous AI agents is resha…

Apple and Meta said they would jointly release a new open-weight AI model designed to run on high-end Macs, ai…

A writer and entrepreneur opened his daily to-do list and found 156 items, and concluded that an AI assistant…

A Zenn contributor sorted AI use into three modes — AI as an assistant, AI running alongside people, and AI th…

A non-engineer operator says one person ships four smartphone apps on Google Play, three on the App Store, wit…

A developer released agent-guardrails, a one-script Python standard-library plugin that guards Bash, Write, Ed…
