5 ms·
Amazing work, but ... why oh why would you design yet another DSL (domain specific language) for this? Why not use something like {python, lisp, clojure, js, e
by ur-whale 8y ago
Amazing work, but ... why oh why would you design yet another DSL (domain specific language) for this?
Why not use something like {python, lisp, clojure, js, etc ...) to express the design of your board?
I'm looking at you duplicating your code for your corner holes and I'm hurting :)
- patricksli 8y agoGood question. Jonathan and I both from a lisp background and are used to crafting DSLs out of s-expressions (which is what we normally do). For JITX, we're using a language called Stanza, which provides decorated s-expressions out of the box. It's basically still just s-expressions, but it looks prettier.
- haliax 8y agoIs this L.B. Stanza or something else? Also: this is awesome! I'm a software engineer now working with hardware and built a straw man of this for myself a little while back (a sequence of python functions that generate eaglescript commands to make a PCB), but obviously it didn't even do 0.001% as much. I checked out your site, but didn't see a way to launch the tool. How can I get access? (I'm working on a side project involving a BLE watch based around the nRF52840).
- patricksli 8y agoYup this is L.B. Stanza! The tool is still internal for now. We're operating as a design service today, and our own engineers use the tool to produce designs quicker than other human-powered competitors.
- haliax 8y agoFair enough. I'd love to chat a bit about this -- any chance you'd be willing to move to e-mail? (in my profile)
- ur-whale 8y agoFrom experience of having to add a full blown scripting language to two large domain-specific professional GUI applications in the 90's, and at the risk of upsetting the HN LISP crowd, you should go for something with a broader appeal/base than LISP and similar languages. LISP and languages of the same ilk are extremely powerful and esthetically pleasing for CS-minded folks, but they are also and unfortunately rather off-putting for the wast majority of technical, non-CS folks (which IUUC is your target audience). I'd go for Python, in spite of the lack of typing: easy to integrate, massive amount of libraries, very flexible. An at the risk of committing blasphemy, I have to mention that the EDA folks seem to have a terrible addiction to TCL, which therefore makes it something you may want to consider. My opinion of course, the best would be to poll your target audience.
- PeCaN 8y ago>An at the risk of committing blasphemy, I have to mention that the EDA folks seem to have a terrible addiction to TCL, which therefore makes it something you may want to consider. Tcl is very, very Lispy, so perhaps a Lisp is not the worst idea. Great job giving advice, I'm sure it will be very helpful to hear from some random internet user.
- patricksli 8y agoStanza is our implementation language. If you're interested, you can check out the website www.lbstanza.org. It looks pretty similar to Python, plus it also has types!
- jackbackrack 8y agoAt this point we're just trying to formalize the functional requirements of circuit board design. There are many options to making this more programmatic. The easiest way is just to have a script that generates these input specs. The more desirable way is to embed the input spec into a programming language ala EDSL. Also, remember that with an interactive dual view interface, you can make adjustments to the input spec and see the visual results on the circuit board quickly. This gives the best of both worlds. We are using such an interface internally to design packages, symbols, and boards.
- ken 8y agoI agree with the duplication issue, but I think I might prefer to keep it declarative, and put any looping logic above that. So maybe something like EDN or JSON for the input notation, and then libraries (if needed) for making it easy to generate that notation.