r/learnpython • • Mar 06 '15

Is python a machine level language?

I'm still learning high-level programming languages (currently C# & Ruby) but eventually want to move to something that is more directly involved with the actual processor & memory. I've seen alot of languages that claim to be compilation code & ever-so-powerful but still need a VM or some kind of translator to actually execute (COUGH COUGH JAVA). so id like to know, would python at all be considered compilation code?

0 Upvotes

18 comments sorted by

View all comments

10

u/PastryGood Mar 06 '15

You also might have confused a few terms :-) Not that it really matters a whole lot, but it can be good to get it cleared up!

There isn't really any "machine level languages" as such. The only way to write machine level code is to well... write machine code :-) And you really wouldn't want to do that, unless you enjoy typing out binary instructions for whatever CPU you're using!

The closest thing you can probably come while still keeping it somewhat (but just somewhat) sane would be Assembly. Not that assembly in itself is a difficult language to learn, actually it's very easy, it's just tiresome to use. However, it would give you the ability to build software using nothing but simple processor instructions, moving and copying data between registers and other memory.

What I'd really suggest is that if you feel like you want to learn more about hardware and its effect on programming, you go to C. C provides you with pretty much all the power you need to examine lower-level programming (you could even embed some assembly in there if you please) :-)

2

u/misterphilly Mar 06 '15

thank you for your reply. the information you provided helped me better understand the concepts behind what i was asking.