AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Oct 5, 2026, 22:00 JST

DSL wins CAD bracket test 10/15 where code generation hits 4/15

DSL wins CAD bracket test 10/15 where code generation hits 4/15

3 Key Points

  1. 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.

  2. 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.

  3. 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.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

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.

FAQ
What was the difference in pass rate between the two methods?
The DSL method passed final verification 10/15 (66.7%), while code generation passed 4/15 (26.7%). Among passed runs, code generation used about 62% more tokens than the DSL method.
How did the two methods fail differently?
DSL failures stopped when the final shape could not meet conditions, while code generation sometimes left a shape that was actually split into multiple solids or had wrong hole positions, contact area, or obstacle clearance.
What model and CAD software were used?
The test used FreeCAD 1.0.2 on Windows and the model gemini-3.5-flash.

AI news that matters for your work, delivered every morning.

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

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.

Questions and answers are published on this page.

Related Articles

Next articleStrata runs 125B Qwen3.8-Flash-Next on gaming PCs