wingolog

it can't be all that pretty

19 May 2006 4:06 PM (america | hacks | photos | tagging | profiling)

Photos

Went through and tagged the rest of my photos, resulting in an enormous tag cloud. The thresholds can be tweaked but I think it's rather interesting.

As far as the software goes, recent changes: the bottom row of random thumbnails are only recent photos; fixed some url-encoding issues so all tag names should work now. I keep claiming I won't do any more web hacking but I imagine I'll implement view counts for photos.

States

Going home next Sunday for visa issues; hopefully will be returning Spain-side within a couple of weeks. However in the meantime I'm pretty excited about heading out to visit some folks in San Francisco. Sweetness.

Hacks

Steel Bank Common Lisp has an excellent profiler. I mentioned this before. It's statistical, driven by SIGPROF, so that the stack samples that it takes are evenly spaced in program execution time. That means that if you have more samples in one function, that your program spent more time there. A simple idea, used also by the statprof profiler I hacked on for guile and python, among many others.

Juho Snellman did a nice hack recently, making the profiler ticks driven by allocations instead of SIGPROF. The result is an allocation profiler that will tell you which parts of your code are allocating memory the most. In garbage-collected languages this is often one of the best ways to microoptimize, as the cost of GC depends on the amount of allocation. Nice hack, Juho!

Meanwhile back at the bit ranch, holy shit! It seems that as early as 2003, a fellow named Alex Yakovlev wrote a Scheme interpreter in JavaScript with everything -- call/cc, tail recursion, multiple values, dynamic-wind, a syntax-rules based macro system, everything. Then recently Chris Double ported it from IE6 to Firefox, leaving us with a nifty repl demo, replete with an erlang-like library for concurrency programming. Wow. Very neat. But oh, for a common VM.

come back from san francisco, it can't be all that pretty

Comments are closed.