[HN Gopher] GhostSCAD: Marrying OpenSCAD and Golang ___________________________________________________________________ GhostSCAD: Marrying OpenSCAD and Golang Author : ljan Score : 18 points Date : 2022-04-06 10:59 UTC (12 hours ago) (HTM) web link (jany.st) (TXT) w3m dump (jany.st) | guitarbill wrote: | I wonder how many OpenSCAD wrappers now exist? I know of scad-clj | [0], openpyscad [1], and solidpython [2]. | | I particularly like scad-clj, because of `lein auto generate`. It | watches source files, and regenerates the OpenSCAD files | automatically, which OpenSCAD then also picks up. Although I'm | not well versed in Clojure, and find debugging Clojure tricky, | the workflow is just so good. | | [0] https://github.com/farrellm/scad-clj | | [1] https://github.com/taxpon/openpyscad | | [2] https://github.com/SolidCode/SolidPython | smcameron wrote: | I don't recommend anyone try to use it, but there's also | OpenCSCAD[1], which allows metaprogramming openscad from C. I | wrote it ages ago, back when OpenSCAD didn't support | recursion[2]. Back in the early days of openscad, (as I recall | it) there were quite a few annoying things missing which I | suspect caused some of the proliferation of metaprogramming | attempts. | | [1] http://smcameron.github.io/opencscad/ | | [2] At least I think OpenSCAD didn't support recursion back | then, though now, this seems so unlikely that I find myself | doubting it. But I also feel like I must have tried it, found | it not working, and went on to write this toy OpenCSCAD thing | as a result. It was a long time ago, and I don't really | remember. | | Edit: A previous discussion here about Amazon banning the word | "union" from chat rooms (among other words) recently reminded | me of this too, as "union" in OpenSCAD is obviously a thing, | but it's also a reserved word in C. In OpenCSCAD, a union is | therefore called an "onion". This could also work at Amazon. | Until they banned onions. | sprior wrote: | I always thought it would be interesting to use the solution | seeking of Prolog to design a physical object, but haven't | figured out a usecase. Funny that in my house it would be | possible to trigger the design of an object by a MQTT message | of an event, slice that object, then turn on my 3D printer and | print it with no manual intervention. ___________________________________________________________________ (page generated 2022-04-06 23:00 UTC)