A tiny portion of Doug Hofstadter’s “semantic network”.
hi-res
Posts tagged with memory

How the Mozilla developers fixed Firefox’s memory problem.
I use Ubuntu (+lxde+awesomewm) and have always defaulted to Chromium because that was the fastest, sexiest browser when I started. All of the clean defaults of Safari, fast, and $GOOG gets to learn more about me every time I type anything anywhere. Um. Well, it had a sexy reputation.
I installed the following extensions:
But at least for me, now, the way I browse and with my OS, Firefox is working beautifully and Chromium starts kicking its life out around 25+ tabs.
Let me postface this by explaining how I use web browsers, and OS’s in general. I load them up with TONS of stuff. Having 9 desktops full of PDF’s and tabs is normal for me.
I usually dedicate 30% of my desktops to work projects (KTimeTracker automatically measures when I’m actually looking at the work desktop in question), 30% to “read later” stuff — a maths desktop, a CS desktop, a statistics desktop — and the remainder to either articles browsing (politics/economics/news of the weird) or a movie I’m going to watch later. I usually have 100-200 tabs open and maybe 10-20 PDF’s or ebooks, as well as whatever terminals, tmux pseudo-ttys, and VT’s I’m running. (Oh, I run a VT for mutt and a VT for TTYtter.)
This adds up to a lot of programs running at once, all taking up RAM. Not good but that’s the way I roll. Open webpages and open PDF’s are my to-do list — just like books from the library sitting in a stack are a to-do list. The greatest OS improvement for me has been finding dphys-swapfile, a program that increases the size of my swapfile whenever I push the boundary. Right now I have 11 GB of swap and growing every few days.
As it was I used chrome://kill, TabCloud / TooManyTabs / Readability → Kindle to reduce Chromium’s memory usage and spent X hours per week closing windows that I wasn’t reeeeellyyy going to get to within the next few days. Found out you can launch chromium from the CLI with chromium-browse —purge-memory-button —process-per-site & to reduce the load from multiple instances of Gmail or Facebook. Then click Shift+Esc or (wrench) > Tools > ... and you get a Purge Memory button which supposedly reduces Chromium’s memory footprint. (There are design concerns that would prevent the developers fro mautomatically “hitting the purge memory button” every few seconds, which you can see in the slides above)
In browser design as in calculus: You can’t optimise for everything at once. Chrome, whilst a slick browser with a lot of nice defaults, optimises for hardware and usage that don’t describe my browsing habits. Now you’ve seen the load I encumber my computer with; Firefox 12 now seems to be the best browser for my usage type. Maybe you can call us “heavy drag” users or “zillion tab” users.
(Source: developers.slashdot.org)


Peter Todd has been misquoted about the mathematics of dating here, here, here (here), here, here, here, here, here, here, here, and in at least five trillion issues of Cosmo. (Surprisingly, this and this did not misquote him.) It’s enough to make me want to write a strongly worded DEAR SIR to the Hearst Tower.
Here is what they say:
An even wronger version of the story goes like this:
Not only is this wrong, but I’ve heard Peter rant in person, specifically about these misquotations. The problem he studies is known colloquially as “The Search for a Parking Space”.
The paper that’s being referenced (though apparently not read) in these magazines deals with an even stricter problem, known as “The Vizier Wants to Keep His Head”:
Given that problem: pick the highest scalar from a forward-blind, one-by-one sequence of scalars, the Vizier maximises his probability of living past the ritual (to something like 30%) with the following strategy:
Again, that strategy doesn’t make the Vizier win (i.e., it doesn’t make you pick the perfect boyfriend every time); it merely maximises the chances of maximisation, within this narrowly specified problem.
So here are the reasons the magazines & blogs are wrong:
SCIENCE IS MORE EXCITING THAN MAGAZINE HYPE
The original paper is called “Satisficing in Mate Search”. (I couldn’t find it online). Here is much, much more material on both data on dating and the science of thinking smarter by Dr. Todd.
You can also read Simple Heuristics That Make Us Smart (it’s on my to-read list — and it contains “Satisficing in Mate Search”), and if you look at Amazon’s similar books for the title you’ll come across all kinds of fascinating stuff: about Bayes’ rule, thinking from the gut, less is more, why it’s good to be stupid, willpower, and even an intro to game theory. (I haven’t read that particular treatment, but I do recommend reading just-a-little-bit of game theory as an awesome way to expand your imagination.)
You can get instant gratification with a free chapter of each, so these popular treatments are just as candy-like as Wired or Cosmo.
MORAL OF THE STORY
Just like with modern physics, this modern psychological science is super interesting. Way too interesting to justify wasting time on false and farcical narratives that totally miss the point.
To gild refined gold, to paint the lily, to throw perfume on a violet, … is wasteful and ridiculous excess. —King John
