3 ms·
So much RAM: - Every pointer is 8 bytes, and a lot of integers are also 8 bytes, and a ton of structs have padding here and there to the 64-bit boundary. - Al
by nine_k 4y ago
So much RAM:
- Every pointer is 8 bytes, and a lot of integers are also 8 bytes, and a ton of structs have padding here and there to the 64-bit boundary.
- All graphics are rendered on huge bitmaps which are later composited using advanced hardware, using double or sometimes triple buffering. This allows for nice effects like translucency, shadows, blurring, etc, while requiring simpler logic and producing basically no visual glitches.
- While at it, just one screenful at 4K / 32bop is slightly less that 32 megabytes.
- A bunch of fonts is pre-rasterized for the high resolution (effectively 3x the horizontal resolution for subpixel smoothing), including fancy emoji fonts.
- A ton of services start by default, from system-wide spell-checking to weather and news reporting. The OS's GUI shell strives to be rich and fancy, with nice large previews of images, documents, etc, and also voice output and input.
- But this all is nothing compared to the resource needs of an HTML5 browser.with a couple dozen graphically intense tabs running SPAs like Gmail or Slack, with all the state, and all the JIT'ed JS.
There's plenty to spend RAM on, compared to my fancy Linux desktop from 1999 which happily lived on 64 megabytes of RAM. Opening ten browser tabs was out of question: tabs mostly did not exist yet :)
- anthk 4y agoGmail works well with mutt and some Google calendar importers into calcurse or ICS tools.
- ksec 4y agoThanks. That was one of the topic we touched on discussing Flash [1] a few days ago. GPU has no idea what Vector is. I wonder how much memory could be saved if we could somehow "compute" all 2D fonts and graphics. [1] https://news.ycombinator.com/item?id=34083092 https://news.ycombinator.com/item?id=34083092
- dale_glass 4y agoSome amount for sure, but what for? RAM is pretty cheap, and not that scarce anymore. Back in my 386 days, 4 MB was very tight and I'm sure developers had to be very careful with it. Today you can have 32 GB for not that much and it's likely that you'll never seriously get into swap.
- ksec 4y ago>Some amount for sure, but what for? From entry level computing to every appliances. If we want to move baseline memory from 8GB to 16GB, even if it was DDR ( discounting LPDDR price ) that is at least $24 increase in BOM cost, or a total of $48 BOM cost. This is worst for something like Pi or NAS, Router to Smart Appliances where their ASP are much lower. Because of the increase in memory usage, they will either have to rise their price ( which they dont ), let it eat into their margin ( which they wont ), or find $3 BOM cost cutting. Likely coming from SoC.