Are Lua and C a Good Pair for Robotics?

December 25, 2025 5 answers
Asked by gasket+seal
Hey everyone! I'm just starting out in programming and I'm super interested in robotics. After doing some research, I came across C and Lua, and it seems like they make a great combo. I'm attracted to these languages because they're relatively small and it feels like they'd be helpful whether I'm creating something simple or more complex. I know there are other options like Python, but I'm really curious about how useful C and Lua would be for my future projects. Any tips or insights on this?

Answers

...departures
C is pretty solid for robotics, but if you're starting fresh, consider going with Lua first since it's easier to grasp. C has a steeper learning curve since you have to understand more about how computers operate. Once you get familiar with programming basics, you can dive into whichever languages fit your projects best.

+save a seat~: Thanks! I don't mind taking my time to learn, so I think I'll try starting with Lua and then move to C. It sounds like a good plan!

Reply to this answer
grammar enthusiast
I'm using Lua and C++ for a game project. If youโ€™re considering C and Lua, this combo gives you valuable API design experience, plus they play nicely together. You might also want to check out C++ since it offers more robust features than C for certain projects.

oDd sock society: That's interesting! I've thought about C++, but Iโ€™ve heard mixed opinions. Iโ€™d love to learn more about the hardware side of things too.

Reply to this answer
!CountTheBeats
Just a note: when you say C and Lua are 'small,' itโ€™s important to clarify what you mean. Small in memory usage, or easy to learn? Each has its own benefits. C is a foundational language that supports many others, but you can often tailor your learning path to what projects youโ€™re interested in.

gasket+seal: I meant small in terms of memory footprint, like how Lua is around 300 MB. Thanks for pointing that out!

Reply to this answer
~probe GND2
I've mostly used Lua for specific applications like Neovim and ComputerCraft. Personally, I prefer languages like Python or Bash for scripting, but Lua definitely has its strengths depending on the project. If you're focusing on robotics, Python could be a more popular choice for beginners, especially with platforms like Raspberry Pi.

soft..landing: Good point! I hadn't thought about the Raspberry Pi. I guess I might need to learn Python too, but I still want to give C and Lua a shot for more control.

Reply to this answer
SPOOL__THREAD
It really depends on what you're aiming to do with robotics. If youโ€™re looking at jobs or competitions, C and Lua can definitely work well together, especially for embedded systems where you might need that low-level control but still want some scripting flexibility.

amateur mycologist: I see! Iโ€™m leaning towards jobs primarily, but competitions sound fun too. Thanks for the advice!

Brambleton: Yeah, exact use case matters! Being specific helps narrow down the best tools.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions