4 ms·
Show HN: G-win – .gcode parser written in Rust with winnow
- emmelaich 2y agoApparently g-code is language for 3d machines / CNC. https://en.wikipedia.org/wiki/G-code https://en.wikipedia.org/wiki/G-code
- giancarlostoro 2y agoYeah you can use it for 3D printing, if I remember correctly each machine has their own spec for it, its almost like "assembly" for 3D printers.
- bdcravens 2y agoCorrect. It's how machines can implement new functionality (like multicolor, which entails additional steps like withdrawing the current filament, purging the nozzle of the current color, etc)
- monocasa 2y agoI think of it more as like the modem AT command set, but for the simpler side of industrial robotics.
- atoav 2y agoYeah, I remember writing gcode on paper in school to control a wire EDM machine
- chris_wot 2y agoWow… that code seems to do a lot… but the amount of code is tiny! That’s fairly impressive…
- mj10021 2y agoYeah winnow is pretty amazing!
- oniony 2y agoThe table of contents has a Features entry that doesn't link to any heading.
- mj10021 2y agooops, thanks for pointing that out!
- tricked 2y agoThe test gcode in the repository adds almost 5mb to the crate size you might want to consider excluding[1] them https://doc.rust-lang.org/cargo/reference/manifest.html#the-exclude-and-include-fields https://doc.rust-lang.org/cargo/reference/manifest.html#the-...
- foo42 2y agoPerfect timing, I've been playing around with winnow this week. it'll be good to see how others are using it