NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Show HN: G-win – .gcode parser written in Rust with winnow (crates.io)
emmelaich 166 days ago [-]
Apparently g-code is language for 3d machines / CNC.

https://en.wikipedia.org/wiki/G-code

giancarlostoro 166 days ago [-]
Yeah 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.
monocasa 166 days ago [-]
I think of it more as like the modem AT command set, but for the simpler side of industrial robotics.
bdcravens 166 days ago [-]
Correct. 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)
atoav 166 days ago [-]
Yeah, I remember writing gcode on paper in school to control a wire EDM machine
tricked 166 days ago [-]
The 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-...

foo42 166 days ago [-]
Perfect timing, I've been playing around with winnow this week. it'll be good to see how others are using it
chris_wot 166 days ago [-]
Wow… that code seems to do a lot… but the amount of code is tiny! That’s fairly impressive…
mj10021 166 days ago [-]
Yeah winnow is pretty amazing!
oniony 166 days ago [-]
The table of contents has a Features entry that doesn't link to any heading.
mj10021 166 days ago [-]
oops, thanks for pointing that out!
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 10:43:59 GMT+0000 (Coordinated Universal Time) with Vercel.