This commit is contained in:
Miloslav Ciz 2025-01-16 23:00:49 +01:00
parent 2efc415ac4
commit 70c10acfc5
61 changed files with 1970 additions and 1954 deletions

2
ram.md
View file

@ -19,7 +19,7 @@ Also thanks to virtual memory **your computer may actually be able to use more R
Saving content of RAM to disk is also exploited by **[hibernation](hibernation.md)**.
**How much RAM do we need?** Not much, definitely not NEARLY as much as you see on a typical today's consumer PC which come with 16 or 32 GB of RAM, that's just too much, you never need that much memory and this craziness only exists for [consumerism](consumerism.md) and due to extremely shitty [capitalist software](capitalist_software.md) whose efficiency probably doesn't surpass 1%. The amount of RAM we need firstly depends on the task at hand and secondly on the details of our computer (e.g. if it stores the program itself in RAM or not, if we have helper coprocessors that save us some work, if we have a fast CPU and can afford to sacrifice some of its speed for needing less memory etc.) and what exactly we define as RAM (whether e.g. we see [video memory](vram.md) as RAM or if we are allowed to store a lot of read-only data in ROM). Generally speaking for simple mathematical problems, such as solving a quadratic equation, a few [bytes](byte.md) may be enough. With a few hundred bytes we can make simple games such as [Tetris](tetris.md). With a few [kilobytes](kb.md) we can already make more complex games, e.g. something akin [Wolf 3D](wolf3d.md) or [chess](chess.md) with basic AI, we can make a simple text editor, probably even a [programming language](programming_language.md) capable of compiling itself (see e.g. games for [Arduboy](arduboy.md) which possesses 2.5 KB of RAM). Surpassing some 30 KB we can already make [Doom](doom.md)-like games ([Anarch](anarch.md) runs on [GB Meta](gb_meta.md) with 32 KB of RAM) and basic versions of most of the tools we need on a personal computer such as text editor, image editor, music composer, programming editor, ... though still typically running on [bare metal](bare_metal.md) (without [operating system](os.md)). 1 MB is about 30 times that, so unless dealing with some memory-heavy task, such as processing HD video, **with [good programming](lrs.md) you should practically never need more than 1 MB of RAM**. If your computer has 1 GB of RAM, it already has 1000 times the overkill amount, so it can do all kind of fancy stuff like running an [operating system](os.md) that runs several programs at once ([multitasking](multitasking.md)), some of which may be doing even memory heavy tasks.
**How much RAM do we need?** Not much, definitely not NEARLY as much as you see on a typical today's consumer PC which come with 16 or 32 GB of RAM, that's just too much, you never need that much memory and this craziness only exists for [consumerism](consumerism.md) and due to extremely shitty [capitalist software](capitalist_software.md) whose efficiency probably doesn't surpass 1%. The amount of RAM we need firstly depends on the task at hand and secondly on the details of our computer (e.g. if it stores the program itself in RAM or not, if we have helper coprocessors that save us some work, if we have a fast CPU and can afford to sacrifice some of its speed for needing less memory etc.) and what exactly we define as RAM (whether e.g. we see [video memory](vram.md) as RAM or if we are allowed to store a lot of read-only data in ROM). Generally speaking for simple mathematical problems, such as solving a quadratic equation, a few [bytes](byte.md) may be enough. With a few hundred bytes we can make simple games such as [Tetris](tetris.md). With a few [kilobytes](kb.md) we can already make more complex games, e.g. something akin to [Wolf 3D](wolf3d.md) or [chess](chess.md) with basic AI, we can make a simple text editor, probably even a [programming language](programming_language.md) capable of compiling itself (see e.g. games for [Arduboy](arduboy.md) which possesses 2.5 KB of RAM). Surpassing some 30 KB we can already make [Doom](doom.md)-like games ([Anarch](anarch.md) runs on [GB Meta](gb_meta.md) with 32 KB of RAM) and basic versions of most of the tools we need on a personal computer such as text editor, image editor, music composer, programming editor, ... though still typically running on [bare metal](bare_metal.md) (without [operating system](os.md)). 1 MB is about 30 times that, so unless dealing with some memory-heavy task, such as processing HD video, **with [good programming](lrs.md) you should practically never need more than 1 MB of RAM**. If your computer has 1 GB of RAM, it already has 1000 times the overkill amount, so it can do all kind of fancy stuff like running an [operating system](os.md) that runs several programs at once ([multitasking](multitasking.md)), some of which may be doing even memory heavy tasks.
## See Also