The Birth and Death of a Running Program

Here is a a really very detailed explanation (with examples) of how a program ends up going from code to an executable that your processor can run. This post details all of the steps along the way, from the original code, compiling, compiler optimizations, assembly, machine code, etc.

The Birth and Death of a Running Program (samwho.co.uk/blog)

Tags: , , , , , , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment

Web Framework Benchmarks Comparison

How much does your framework choice affect performance? This site helps answer that question.

We’ve compared the performance of baseline functionality in a variety of web application frameworks, each operating in a realistic production configuration. Results are captured on Amazon EC2 and on physical hardware. The project is still evolving, and as it does so, the Github repository for the project is turning into a showcase of sorts for each framework’s best-practices.

Round 4 Results – Framework Benchmarks (techempower.com)

Tags: , , , , , , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment

Using checklists for code review

In the context of code reviews, are checklists useful? Do they work? How do you use them (if you do)? This article poses these questions and gives a couple of checklist examples used for code reviews. I personally prefer using checklists as they help remind me of the most important ‘big’ things to check for.

Using Checklists for Code Reviews (blog.rbcommons.com)

Tags: , , , , , , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment

What Makes Code Hard to Understand?

What factors impact the comprehensibility of code? Previous research suggests that expectation-congruent programs should take less time to understand and be less prone to errors. We present an experiment in which participants with programming experience predict the exact output of ten small Python programs. We use subtle differences between program versions to demonstrate that seemingly insignificant notational changes can have profound effects on correctness and response times. Our results show that experience increases performance in most cases, but may hurt performance significantly when underlying assumptions about related code statements are violated.

What Makes Code Hard to Understand – Michael Hansen, Robert L. Goldstone, Andrew Lumsdaine (via arxiv.org)

Tags: , , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment

A Detailed Analysis of ARM and x86 Architectures

The battle between ARM and x86 (Intel) has been gaining steam more and more lately as Intel begins its movement into the mobile space (tablets, smartphones, etc.). Here is an article that provides a detailed analysis of ARM vs x86 in regards to performance and power consumption. Surprisingly, the paper  concludes that the current Atom processor and the ARM Cortex A9 are mostly equivalent at the current moment.

A Detailed Analysis of Contemporary ARM and x86 Architectures (University of Wisconsin – Emily Blem, Jaikrishnan Menon, and Karthikeyan Sankaralingam)

Tags: , , , , , , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment

Star Wars Traceroute


Tags: , , , , , , , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment

Turn your web browser into a scratchpad with 1 line of code

  1. Open a new window or tab in your web browser
  2. Type the following code into the URL bar and press enter
    data:text/html, <html contenteditable>
  3. Start typing directly in your the browser window!
  4. Alternatively, for a better looking editor try this code:
    data:text/html,%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%23e%7Bposition%3Aabsolute%3Btop%3A0%3Bright%3A0
    %3Bbottom%3A0%3Bleft%3A0%3B%7D%3C%2Fstyle%3E%3Cdiv%20id%3D%22e%22%3E%3C%2Fdiv%3E%3Cscript%20src%3D%22http%3A%2F%2Fd1n0x3qji82z53.cloudfront.net%2Fsrc-min-noconflict%2Face.js%22%20type%3D%22text%2Fjavascript%22%20charset%3D%22utf-8%22%3E%3C%2Fscript%3E%3Cscript%3Evar%20e%3Dace.edit(%22e%22)
    %3Be.setTheme(%22ace%2Ftheme%2Fmonokai%22)
    %3Be.getSession().setMode(%22ace%2Fmode%2Fruby%22)%3B%3C%2Fscript%3E


Tags: , , , , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment

How did the NES Zapper (for Duck Hunt) work?

The Duck Hunt gun, officially called the Nintendo Entertainment System (NES) Zapper, seems downright primitive next to the Nintendo’s Wii and Microsoft’s Kinect, but in the late 80s, it filled plenty of young heads with wonder. How did that thing work?

The Zapper’s ancestry goes back to the mid 1930s, when the first so-called “light guns” appeared after the development of light-sensing vacuum tubes. In the first light gun game, Ray-O-Lite (developed in 1936 by Seeburg, a company that made parts and systems for jukeboxes), players shot at small moving targets mounted with light sensors using a gun that emitted a beam of light. When the beam struck a sensor, the targets – ducks, coincidentally – registered the “hit” and a point was scored.

Light guns hit home video game consoles with Shooting Gallery on the Magnavox Odyssey in 1972. Because the included shotgun-style light gun was only usable on a Magnavox television, the game flopped. The Nintendo Entertainment System (NES) Zapper then fell into the hands of American kids in October 1985, when it was released in a bundle with the NES, a controller and a few games. Early versions of the peripheral were dark gray, but the color of the sci-fi ray gun-inspired Zapper was changed a few years later when a federal regulation required that toy and imitation firearms be “blaze orange” (color #12199, to be exact) so they wouldn’t be mistaken for the real deal.

While there were a number of Zapper-compatible games released for the NES (when I was a kid and my dad worked from home, we wasted plenty of afternoons away playing Hogan’s Alley), most lived in the shadow of the iconic Duck Hunt, the most recognizable and popular Zapper game……(full article is linked below)

via: How did the Duck Hunt Gun Work? (mentalfloss.com)

Tags: , , , , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment

A Closer Look Into PHP Arrays

PHP is one unique language where the array data type has been highly generalized to suit a very broad set of use cases. For example, in PHP you can use an array to create both ordered lists as well as dicts (key/value pairs or maps) with a single data type. A PHP array isn’t an array in the traditional sense, but in fact it’s actually implemented as an ordered hashmap. There are good reasons for this. One of those reasons is that arrays traditionally do not allow you to mix types. They also don’t normally provide a simple means of random access such as mapping a key to it’s value. At least not in the sense that we’re used to doing in PHP. So I’m going to share with you some of the underlying details of how the PHP array data type works, why it works the way that it does, how it’s different from other languages, and what behaviors the PHP array has that you may not be fully aware of… (article continues via the link below)

Full Article: A Closer Look Into PHP Arrays: What You Don’t See (sheriframadan.com)

Tags: ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment

Common JavaScript “Gotchas”

If you are a beginner to JavaScript you might find this article quite useful. It mentions a few common JavaScript quirks that you may not understand at first, including: details on the global namespace, the this object, knowing the difference between ECMAScript 3 and ECMAScript 5, asynchronous operations, prototypes, and simple JavaScript inheritance.

Full Article: Common JavaScript “Gotchas” (jblotus.com)

Tags: , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment