Thursday, September 03, 2009
Neat, but I still don't like it
I'm not a fan of tail call
optimization, but still, I didn't quite realize that gcc
will optimize tail calls if given the
-O2
option (found while reading Hacker News).
Okay, this is something I have to try out:
[spc]lucy:/tmp>cat >forever.c int main(int argc,char *argv[]) { return main(--argc,argv); } ^D [spc]lucy:/tmp>gcc forever.c [spc]lucy:/tmp>./a.out Segmentation fault (core dumped) [spc]lucy:/tmp>gcc -O2 forever.c [spc]lucy:/tmp>./a.out (several minutes go by) ^C [spc]lucy:/tmp>
That's interesting. Not sure how it'll impact any code I write, but still, it's interesting.
Notes on a browser history mechanism, Part II
Find any page you have visited quickly and easily. Shows your browsing history as a tree of tabs, with thumbnail screenshots of the web-pages in every tab you have opened.
Via Hacker News, History Tree 1.0
I remember talking about a browser history mechanism like this seven years ago. I'm surprised it's taken this long to implement this.
I'm also surprised that there can be Firefox extensions that are operating system specific (in this case, Windows only—sigh).