you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 9 months ago (5 children)

Python is like your automatic transmission. It handles a lot of work on the backend to make life easier, but the trade off is performance and control.

In C/C++, you’re reaching into the gearbox and moving it by hand. It doesn’t clean up anything for you and doesn’t prevent you from making dumb mistakes. In exchange, it can be wildly faster than Python.

In Assembly/Binary, you’re crafting the gears before you can even start the car.

  • source
  • parent
  • hideshow 5 child comments
  • [+] [S] 2 points 9 months ago (4 children)
  • [–] 9 points 9 months ago (1 child)

    They don't type out the 0s and 1s, no. 😅

    @otacon239@lemmy.world wrote "Assembly/Binary", because an Assembly language is basically just a list of aliases (or mnemonics) for the different combinations of 0s and 1s.

    For example, HLT (Halt) may translate to 00000001, which is then already what your CPU understands.

    In practice, these lists for the different Assembly languages will look like this: https://en.wikipedia.org/wiki/Opcode#Sample_opcode_table

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)