Earlier quoted context omitted.
Many G-code dialects contain subprogram calls, loops, and conditionals that seem like they'd permit a physical quine. The standard RepRap firmware breaks the rules by taking input: https://reprap.org/wiki/G-code#M98:_Call_Macro.2FSubprogram but Fanuc and other dialects allow M97 to call a subroutine chained to the end of a program.
G-code is like assembly language for CNC. It’s human readable, you can write it by hand if necessary, most machines will compile it internally to machine instructions, and there are a million different flavors with incompatible macros, etc. The flavor I’m most familiar with is Klipper’s interpreter, which will let you write macros, but that would technically be cheating since you could just stuff an entire program in…
3D-printed book turns its own G-code into raised lettering
31–34 of 34 posts
Re: 3D-printed book turns its own G-code into raised lettering
#32Cool idea for printing braille. I bet I could vibe code a program to convert .epub files to braille then to printable copies.
I've also been idly contemplating 3D printing braille. Somewhat annoying that that's the cheap+easy option, but if it works...
The product didn't sell well, but it made good gifts!
Re: 3D-printed book turns its own G-code into raised lettering
#33I'm sure the idea here was a physical quine, although since it only contains 2.5% of its own G-code it's not really a quine, any more than a "Hello World" program is a quine since the string "Hello World" is in the program text. It would be trivial to generate something like this depending on which part of the G-code you pick.
Re: 3D-printed book turns its own G-code into raised lettering
#34Earlier quoted context omitted.
It's fascinating how revered people are who talk in metaphor and implication like this about relatively simple things, when far more complicated things are happening all the time inside their devices.
Ironically, I don't know if you are referring to the article, the comment you are responding to, or the world in general.