Answer the question
In order to leave comments, you need to log in
How is memory allocated in dynamically typed languages?
Suppose I want to load data from the database into memory in order to process it later. In a statically typed language, I can create a structure in which to describe the dimension of the data:
int id
int age
char [50] name
Answer the question
In order to leave comments, you need to log in
It is not clear what "permanent" allocations with numbers and strings can be if they are immutable in Python (and judging by the tags, this is still about Python).
Suppose I want to load data from a database into memoryThe server usually has more RAM than the client computer. So the chance that your data will be in memory while being processed is greater on the server. On the client computer, there is a chance that your data will be paged to disk.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question