I think we as programmers have lost sight of how a single gif in memory is about the same size as a whole docker container.
Go check out the resource usage. Yes, it involves virtualization, but the stripped down virtualized kernel uses very little resources. Getting that information is a bit complicated by the fact that it's difficult to see the difference between the virtualized kernel and it's applications in a way that's consistent with the host OS, but it's really in the dozens of megabytes range of overhead for something like docker on mac.
Just to check, I opened simultaneous projects in Logic Pro and Ableton Live, I have a Rust project open in VSCode (Electron), compiling Erlang again, I have Slack, Discord, Signal, and Hey running (all Electron apps), and I have Firefox open with Twitter, Hacker News, Facebook (a dozen tabs, just for good measure), Instagram, FBM, Techmeme, NYTimes, CNN, and MSNBC. This is a 15" 2018 MBP with a 6-core i7 and 16GB of RAM, and the CPU is working pretty hard but RAM usage is currently at just over 12GB.
Safari shows a memory warning when a tab uses ~2GB memory, and can be too aggressive about it.
Yes, she was getting both. To the point that I asked her to keep activity monitor running in the background so we could see who the problem applications were.
I'm not sure why this is in question.
If "compressed" or "swap space" approach 32GB+/64GB+ (depends on amount of physical memory installed) that can do it, but running out of disk space is a more common problem.
Of course, quitting the top app in the memory list probably is going to fix the issue.