by Matt Revelle
Earlier today on #clojure, there was a brief discussion on how larger (including infinite!) arity functions are implemented in Clojure. An example similar to what started the discussion: (apply + (range 100)) The interesting bit happens in RestFn and how the compiler lays out the bytecode. The implementation of + is: (defn + "Returns the sum of nums. (+) returns 0." {:inline (fn [x y] `(. clojure.lang.Numbers (add ~x ~y))) :inline-arities #{2}} ([] 0) ([x] (cast Number x)) ([x y] (. clojure...
June, 20 2009 • 0 Comments • 0 Faves
I just spent a good hour searching for a way to left align a couple lines of type definitions with amsmath. The matrix environment, which provides matrix formatting without delimiters, is a solution.
April, 14 2009 • 0 Comments • 0 Faves
If you’re looking for a way to use LaTeX from inside Inkscape on Mac OS X, grab [1] and copy textext.inx and textext.py to Inkscape.app/Contents/Resources/extensions. You’ll need pstotext and pdf2svg as well, both are provided by MacPorts. Now you should have a “Tex Text” option under the “Render” selection in Inkscape menubar. - [1] http://www.elisanet.fi/ptvirtan/software/textext/index.html
November, 19 2008 • 0 Comments • 0 Faves
After sharing the intro song to Aqua Teen Hunger Force Colon Movie for Theaters with friends via both a YouTube link and playing the DVD I noticed that friends who received the link and watched on their own tended to enjoy the content more than the friends who watched it from the DVD. There are many explanations for this, but one possibility is that due to the poor quality of Internet media in the past, people will pay closer attention to content delivered on that medium. The extra attention would mean viewers...
July, 2 2008 • 0 Comments • 0 Faves
Tracing vfs_context_proc on Mac OS X. Generated with a nodebox script and dtrace script I wrote for a paper. The layout algorithm was handwritten and the coloring hacked together from some existing...
April, 17 2008 • 0 Comments • 0 Faves
Tracing lwp_block on Solaris. Generated with a nodebox script and dtrace script I wrote for a paper. The layout algorithm was handwritten and the coloring hacked together from some existing modules...
April, 17 2008 • 0 Comments • 0 Faves
Tracing ioctl on Solaris. Generated with a nodebox script and dtrace script I wrote for a paper. The layout algorithm was handwritten and the coloring hacked together from some existing modules...
April, 17 2008 • 0 Comments • 0 Faves
The release of Google’s App Engine has caught the attention of many prospective startup founders [1]. While the feature list and comparisons to similar services are being discussed, Google’s intent is being overlooked. Soon, any developer with a Google account will be able to develop and deploy an application that has access to Google’s resources. That is, a developer can build a Google application without needing to be employed by Google. You build it, grow it, then Google buys it. ___ [1] See Hacker News.
April, 8 2008 • 0 Comments • 0 Faves
A recent post on news.YC on the decline of content quality got me thinking about the cause of what happened to Reddit and what’s happening to Hacker News. I saw unique, quirky content at Reddit become replaced by clichés and pictures of cats. And the transformation of news.YC from startup news to hacker news to prog.reddit++. Overpopulation is a common diagnosis of the change; usually with an argument that all crowds are stupid and so, it follows, is the content they produce. That may be true, but it alone is...
March, 30 2008 • 0 Comments • 0 Faves