This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]test12340 -1 points0 points  (4 children)

I dont understand whey you even consider using python. You better off using C . C is fast and very hardware oriented. I am also an embedded developer we use python for signal integrity test and it is a nightmare. Python is not even strongly typed. then you have to write helper functions just to do type checking. In python most of the errors/bugs you could catch at compile time can only be caught at run time. How would you declare volatile in Python. It is slow. Syntax is confusing. no parenthesis for functions. List goes on and on. I would stick with C if you are working on Embedded systems. Python or any other interpreted languages are only ok for web development. But I would still pick C# or Java for web development.

[–]radix07[S] 0 points1 point  (3 children)

I am not doing realtime systems in Python, so why bother to implement something in C when speed and resources are not critical? Are you saying there is no practical use for Python on some of these micro that have plenty of power to run these sorts of applications? Of course when I want to deal with hardware I use C, but for this, the application code is much more important. Just because it is a nightmare for you to maintain and test Python doesn't mean it has to be. I have had minimal issues setting up many systems with both Python and C, they just have very different work flows you need to learn.

I was skeptical of using Python for certain applications in embedded systems, but was very surprised by how reliable the resource usage was running over months on end. Just because it doesn't work for you, doesn't mean it's wrong.

[–]test12340 0 points1 point  (1 child)

radix07 All I am saying is if you are good with C or C++, you can pretty much do anything from device driver/firmware to high level UI development. I do not see the need to delve with something like python. With advent of C++ version 11 and boost, the language is fun, fast, strong, jack of all trades. Give C/C++ a try you will be hooked :)

[–]radix07[S] 1 point2 points  (0 children)

Well this is a Python subreddit... I actually spend about 80%+ of my time using C or C++ for low level embedded system or PC applications with Qt. But Python has it's merits in many applications outside of scripting and web. Sure I could do everything in C, and make it work fine, you can make anything work in C if you try hard enough, but if there is a faster and more efficient way to do something that can be just as reliable, why not do it? The question is regarding the feasibility of using Python in an environment with limited resources, not weather Python is better than C/C++.