25
LuxARTS
6y

Why you should learn Python? Well...

Comments
  • 30
    Python over C++ in embedded applications. Just 3 words:

    WHAT THE FUCK
  • 3
    @LuxARTS probably in companion to some other language. Like for some tasks during build.
  • 1
    @electrineer I know about micropython and I know that if your hardware can run Linux you can run Python there but I don't think that those are majority. Doesn't make sense.
  • 13
    Yeah Python on embedded - where there's not even a file system. Sounds like a good idea.
  • 4
    Currently we're creating a web service in C. Even though I'm python develop and my git is full of python repositories i don't consider it a mature language. I've come across some strange issue with python while working.
  • 5
    Embedded doesn't have to mean ultra low power computers
    It's just a system in which the computer is but a part.

    I guess they're lumping in all the smart and IoT stuff, a lot of that runs Python on a really barebones Linux OS.
    Plus, Micropython and all.
    I actually more surprised that Haskell is in the list. For ultra critical systems, maybe?
  • 4
    Am i the only one thats shocked at how high assembly is?
  • 1
    I taught is was due to machine learning it raised recently, but for embedded 🤔
  • 1
    @LuxARTS I meant that Python scripts are used to automatically generate, say, cpp files depending on which config of the project you want to build.

    And all other kinds of supplementary tasks.
  • 5
    @lxmcf Assembly is good on 16 and 8 bit systems. Ofc C is better but I can imagine a lot of C and C++ with Assembly fragments in it
  • 2
    @justmove very true but still kinda surprised at it, thought Arduino would have been higher
  • 1
    Python is heavy, and trades flexibility and performance for approachability. Those two strikes are enough for me.
  • 3
    I don't think this is a rank of languages judged by their embedded abilities, it's just a ranking of languages overall that can be used for embedded.
    Basically:
    Sort by - overall properties.
    Filter - embedded.
  • 0
    when you think that someone ported javascript to embedded devices.
    Python is not so bad.

    https://mongoose-os.com/docs/...
  • 0
    You should also read comments on HN.
  • 6
    I always get triggerered when someone/comething mentions Arduino as a programming language ...
  • 8
    Because Arduino is totally a programming language, just like Raspberry Pi and EPROM.
  • 4
    You know what my favorite recipe is? Stove.
  • 4
    I didn’t know that “Arduino” is a programming language... hm 🤔
  • 3
    Graphical programming is also surprisingly mainstream
  • 4
    Did i just see Arduino? 😂😂😂
  • 1
    @Root it kind of is, in fact. The language used in the arduino IDE is very close to C, but has its differennces. I think it has a primitive boolean and maybe even string type. So yeah, maybe not a full language, because it may transpile into C, but close enough
  • 2
    @aritzh it’s c++ with a setup() and loop() method.
    I don’t see more differences to be honest ... 😑
  • 1
    Comparing Verilog and Python is like comparing Arduino and Python
  • 2
    Oh nice PHP at number 1 spot 😏
  • 1
    Python isnt for embedded!

    Where is java or C#? Those can be used everywere (exept embedded)

    C++ or C should be first in my opinion
  • 0
    @Gregozor2121 Yes and no, the question boils down to the definition of embedded. At work we are developing hardware (and software) for WiFi speakers and soundbars, and on them we have a SoC which has 4 cores running at 1.4 GHz, but technically it's still embedded. And although we do not use python most of the time on our hardware, it would by easy to just add the package to the Yocto build.

    Of course you can not run (useful) python on an ATtiny or a STM8, but embedded today is a very broad spectrum (that was my point :) )
Add Comment