Hacker News new | ask | show | jobs
by saagarjha 2784 days ago
You can consider the entire virtual memory space to be a big vector, where a pointer is just an index into it!
2 comments

However that's a pretty poor vector. It's not homogeneous (you put things of different shapes inside). That also implies you need sophisticated memory management, leading to further overheads. You cannot meaningfully iterate it.
I was mostly joking…
Yes and I'm serious :-)
Yes, that's exactly how we do it in Fortran 77.