Settings

Theme

Ask HN: How to learn Assembly Language and C to better understand Python?

1 points by Takizawamura 3 years ago · 3 comments · 1 min read


I have some functional knowledge of Python. Now I would like to study Assembly Language and C to better understand Python. Part of this is simply driven by curiosity. Does anyone have any tips or recommendations for the journey?

spoiler 3 years ago

I personally doubt you'll get anything out of this route, but maybe I'm not seeing a line of reasoning that led to this.

On a more helpful note, I'd check out a few books (try https://hackernewsbooks.com) and then pick a subject/domain you find interesting and create a small project to use as a learning medium.

Also, to tinker with assembly you could start with simple but interactive processor and assembly simulators/emulators; there are a few web ones floating around like https://schweigi.github.io/assembler-simulator/ or https://kobzol.github.io/davis/ but there are also more graphical ones too. Later you can maybe move to more serious virtualization software like qemu

stop50 3 years ago

I wouldn't start with assembler, the difference is too far. i would move from the ffi to binary modules.

im currently with go and am trying to get my head around rust. Personally i like rust more than c, because it helps with preventing bugs in the syntax itself.

  • spoiler 3 years ago

    I share the sentiment of learning Rust instead of C myself, so I second this. However, if C tickles you more, then it's not a bad language to know. If anything, you'll be able to appreciate Rust more, if you ever do decide to pick it up.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection