The Beauty of Bresenham's Algorithm
Line A simple example of Bresenham's line algorithm. voidplotLine(int x0, int y0, int x1, int y1) { int dx = abs(x1-x0), sx = x0<x1 ? 1 : -1; int dy = -abs(y1-y0), sy = y0<y1 ? 1 : -1; int err =...
View ArticleInside a fast CSS engine
You may have heard of Project Quantum… it’s a major rewrite of Firefox’s internals to make Firefox fast. We’re swapping in parts from our experimental browser, Servo, and making massive improvements to...
View ArticleShow HN: RNN that generates Game of Thrones text
README.mdAre you tired of waiting for the next GOT book to come out? I know that I am, which is why I decided to train a RNN on the first five GOT books and use predictions from the network to create...
View ArticleChrome Enterprise
Unified endpoint managementWe know IT admins face the challenge of managing a broad range of devices in today’s business landscape. And it’s critical to have the power to manage all devices using a...
View ArticleWhat’s Your Heart-Rate Variability? It May Be Time to Find Out
June 25, 2017 10:01 p.m. ETEvery morning, as soon as he wakes up, Iñaki de la Parra, an endurance athlete from Mexico, uses a heart-rate monitor he straps to his chest and an app on his smartphone to...
View ArticleRed Over Red, the Failure of U.S. Navy Leadership
Vice Chief of Naval Operations Adm. William “Bill” Moran who said that in total close to a dozen sailors aboard the USS Fitzgerald would face administrative punishment. (U.S. Navy photo by Gary...
View ArticleSwift Local Refactoring
August 22, 2017Xcode 9 includes a brand new refactoring engine. It can transform code locally within a single Swift source file, or globally, such as renaming a method or property that occurs in...
View ArticleRe-Inventing Gravity
It has been a century since Einstein published his mind- and space-bending theory of general relativity. When it passed its first real test during the total solar eclipse of 1919, where the bending of...
View ArticleMathematicians Tame Rogue Waves, Illuminating Future of LED Lighting
In the 1950s, Philip Anderson, a physicist at Bell Laboratories, discovered a strange phenomenon. In some situations where it seems as though waves should advance freely, they just stop — like a...
View ArticleMedium rolls out a payment model for writers based on engagement
At the beginning of the year, Medium announced a big change: 50 staffers were being laid off as the company shifted away from what founder Ev Williams called the "broken system (of) ad-driven media."At...
View ArticleThe Icewind Dale Problem
In this document I'll explore an optimal stopping problem that occurs in popular dungeons and dragons games. It features probability theory and the python itertools package.ScreenshotThis is a...
View ArticleDangers of Sitting
The SituationDesks that can be adjusted to rise and fall as workers get up and sit down again are the fastest growing office perk in the U.S., offered, according to one poll, by 44 percent of...
View ArticleA history of branch prediction from 1500000 BC to 1995
A history of branch prediction from 1500000 BC to 1995A history of branch prediction from 1500000 BC to 1995This is a pseudo-transcript for a talk on branch prediction given at localhost, a new talk...
View ArticleWhy I haven't jumped ship from Common Lisp to Racket just yet
Matthias Felleisen jested "Why are you still using CL when Scrbl/Racket is so much better :-)" ? My response was as follows: Dear Matthias, you are right Racket is so much better in so many...
View ArticleYou're Using Git Wrong
TL;DR: Almost everyone seem to be using Git like CVS, while it was created to be used like in Linux kernel development.What are you doing wrongYou can take the developer out of the CVS,but you can’t...
View ArticleCompanies from Y Combinator’s Summer 2017 Demo Day (Day 2)
Y Combinator is not just the most prestigious accelerator out there, it’s also the largest. And so, as has been the case for the past several years, there were too many companies to jam them all into...
View ArticleWe Live in Fear of the Online Mobs
James Damore, the author of the notorious Google memo, has had his 15 minutes of fame. In six months, few of us will be able to remember his name. But Google will remember -- not the company, but the...
View ArticleThe Book He Wasn't Supposed to Write
I had written five books for Scott Moyers, following him as he moved from editing jobs at Scribner’s to Random House and then to Penguin Press. We worked well together, and in part thanks to his strong...
View Article1 in 3 Americans Have $0 Saved for Retirement (2016)
Saving for retirement is not an area of financial strength for Americans. Too often, meeting the financial demands of today means delaying, diminishing or simply never starting to save for...
View ArticleSun Flyer, an Electric Trainer Aircraft
Photo: Bye AerospaceWhen you first sit in the cockpit of an electric-powered airplane, you see nothing out of the ordinary. However, touch the Start button and it strikes you immediately: an eerie...
View Article