Skip to content
0:00 / 0:00

#variablesizes#memorylayout#datatypes

The size of your variables matters.

Core Dumped

515K subscribers • 4 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.

Beginner. No background in the topic needed.

260K views2 years ago2 recommendations

Systems programmingProgramming languagesMemory managementPerformance and optimizationRust

An explanation of why low-level programming languages have multiple numeric types and how variable sizes affect memory and performance.

Join CodeCrafters and learn by creating your own: Redis, Git, Http server, Interpreter, Grep... in your favorite programming language: app.codecrafters.io/join?via=jdvillal This is the first video of a series where we learn about low level concepts that will help you to become a better developer in general. In this one, we learn about why low-level programing languages have a lot of variants for such a thing as a numeric type.

Why it's here

2 people recommend this

What people say. Recommended as an excellent introduction to how hardware functions and why variable sizes matter in low-level programming.

u/ostracizein r/C_Programming • Recommends

On “What makes Python slower than C?”

…r variables whereas in C the programmer tells the compiler exactly how much memory is needed It turns out “guessing” the type and size of a variable adds overhead when it’s time to use the variable. It can also create a lot of wasted memory leading to unnecessary memory accesses which adds time.  I found this video very helpful in explaining it: link to this video That said, Python is better as a sandbox. I recommend using Python until it is clear the input makes it uncomfortably slow. Then it might be time to consider switching to something faster like C.  For most cases, on today’s modern computers, Python is negligibly inefficient and perfectly sufficient.…

u/C-Bsktin r/embedded • Recommends

On “I want to learn how embedded systems work.”

This video series is one of the best introductions to hardware functions that I've seen. link to this video From there I would say dig into the details on something specific that interests you