Skip to content

Blog & Notes

December 2013

October 2013

September 2013

August 2013

July 2013

June 2013

May 2013

April 2013

March 2013

February 2013

  • Branch mispredict : 0:00:10
  • Most tools I tried for speeding up Rails tests and rake tasks failed for me. Yes, I'm looking at Spork and Zeus. (okay, Commands is a bit different). Maybe Spring will work out fine. I'll give it a try in the next Rails project.
  • Casablanca, a C++ REST SDK from Microsoft.
  • Send 1K bytes over 1 Gbps network : 5:33:20
  • Main memory reference : 0:03:20
  • Use your Rails translations on the client-side with i18n-js.
  • Round trip within same datacenter : 11 days, 13:46:40
  • LaTeX templates, Tufte style.
  • Read 1 MB sequentially from memory : 5 days, 18:53:20
  • A few more EmberJS information from the Discource team.
  • Lego 2.0. Yay!
  • Alan Kay, one of my all time favorites. Here's some of his quotes combined into a story.
  • Yours vs. Mine: Why Dustin uses “Your profile“ instead of “My profile“ in user interfaces. I agree.
  • Read 1 MB sequentially from disk : 462 days, 23:06:40
  • Humanized version of the latency numbers every programmer should know from Jeff Dean and Peter Norvig: L1 cache reference : 0:00:01 Branch mispredict : 0:00:10 L2 cache reference : 0:00:14 Mutex lock/unlock : 0:00:50 Main memory reference : 0:03:20 Compress 1K bytes with Zippy : 1:40:00 Send 1K bytes over 1 Gbps network : 5:33:20 Read 4K randomly from SSD : 3 days, 11:20:00 Read 1 MB sequentially from memory : 5 days, 18:53:20 Round trip within same datacenter : 11 days, 13:46:40 Read 1 MB sequentially from SSD : 23 days, 3:33:20 Disk seek : 231 days, 11:33:20 Read 1 MB sequentially from disk : 462 days, 23:06:40 Send packet CA->Netherlands->CA : 3472 days, 5:20:00
  • Read 1 MB sequentially from SSD : 23 days, 3:33:20
  • Another solution to cross-compilation with Go
  • fatcache by Twitter: Memcache for SSDs.
  • Mutex lock/unlock : 0:00:50
  • Emmet, formerly Zen Coding, is 1.0.
  • Rack::Robustness looks like a good addition to Twitter's secureheaders etc.
  • Bootstrap for typography: Typeplate
  • The Silver Searcher aka ag is very fast.
  • The trace route to Star Wars: traceroute 216.81.59.173 (and a how-to). Notice that you can even watch Episode IV in the terminal: telnet towel.blinkenlights.nl.
  • Compress 1K bytes with Zippy : 1:40:00
  • Holepicker looks good for checking security issues with your Gemfile or Rails project. Here's some more information.
  • Send packet CA->Netherlands->CA : 3472 days, 5:20:00
  • Hello. I'm a compiler.
    I just scanned thousands of lines of code while you were reading this sentence. I browsed through millions of possibilities of optimizing a single line of yours using hundreds of different optimization techniques based on a vast amount of academic research that you would spend years getting at. I won't feel any embarrassment, not even a slight ick, when I convert a three-line loop to thousands of instructions just to make it faster. I have no shame to go to great lengths of optimization or to do the dirtiest tricks. And if you don't want me to, maybe for a day or two, I'll behave and do it the way you like. I can transform the methods I'm using whenever you want, without even changing a single line of your code. I can even show you how your code would look in assembly, on different processor architectures and different operating systems and in different assembly conventions if you'd like. Yes, all in seconds. Because, you know, I can; and you know, you can't.
    P.S. Oh, by the way you weren't using half of the code you wrote. I did you a favor and threw it away.“
  • Read 4K randomly from SSD : 3 days, 11:20:00
  • Rails guide: Working with JavaScript in Rails. For self-reference.
  • Disk seek : 231 days, 11:33:20
  • L2 cache reference : 0:00:14
  • L1 cache reference : 0:00:01
  • Database code to watch out for in Rails: rails-sqli.org
  • I like jQuery Mobile's new panels which comes with version 1.3.0.
  • Bombermine is a massively multiplayer game in HTML5.

January 2013

  • There might be a slight chance that Oracle crushes Java?! It'd be the best they did for decades.
  • Quote from the Google SRE AMA: “As a general rule we like to joke that Google not only reinvents the wheel, but we vulcanize our own rubber.
  • Aaron is dead.
    Wanderers in this crazy world, we have lost a mentor, a wise elder.
    Hackers for right, we are one down, we have lost one of our own.
    Nurtures, careers, listeners, feeders, parents all, we have lost a child.
    Let us all weep.

    timbl
  • How keys work, in one simple GIF
  • For IBM: “I give permission for IBM, its customers, partners, and minions, to use JSLint for evil.