Pointers Gone Wild - LiquidHaskell
Pointers Gone WildClick to demoMay 28th, 2014A large part of the allure of Haskell is its elegant, high-level ADTs that ensure1 that programs won’t be plagued by problems like the infamous SSL heartbleed bug.However, another part of Haskell’s charm is that when you really really need to, you can dro…
Hasnain says:
Pointers gone wild, indeed. Dependently typed languages are awesome.
Posted on 2014-05-31T08:39:12+0000
Be a kernel hacker | Linux Voice
The Linux kernel is quite different from its user space: many abstractions are waived, and you have to take extra care, as a bug in you code affects the whole system.
Hasnain says:
This is a really cool tutorial on how to write your own kernel module.
Posted on 2014-05-30T17:25:55+0000
100+ Interesting Data Sets for Statistics
Looking for interesting data sets? Here's a list of more than 100 of the best stuff, from dolphin relationships to political campaign donations to death row prisoners.
Portrait of a Young Man with Down Syndrome
A father reflects on his son's search for employment
Hasnain says:
This is really deep, thoughtful, and insightful. Worth reading for everyone.
Posted on 2014-05-30T00:59:12+0000
Wait-free queueing and ultra-low latency logging
To support a low-latency trading system I needed a logging call that had minimal impact on the calling thread. It was imperative to be responsive to market events at all times. My solution was a wa...
Hasnain says:
This is pretty cool. A mix of both distributed systems and OS.
Posted on 2014-05-30T00:55:17+0000
Thomas Piketty Responds to Criticism of His Data
The short version: He doesn’t give an inch.
Hasnain has not yet written a summary for this.
Posted on 2014-05-30T00:49:56+0000
Defensive BASH programming - Say what?
Here is my Katas for creating BASH programs that work. Nothing is new here, but from my experience pepole like to abuse BASH, forget computer science …
XSS game
xss-game.appspot.com
“Let’s, Like, Demolish Laundry”
Silicon Valley is in a bubbly race to wash your clothes better, faster, and cooler. This is not a metaphor. Unless, you know, it is.
Hasnain says:
"Of course, this was not at all true. In reality, when people in a privileged society look deep within themselves to find what is missing, a streamlined clothes-cleaning experience comes up a lot. More often than not, the people who come up with ways of lessening this burden on mankind are dudes, or duos of dudes, who have only recently experienced the crushing realization that their laundry is now their own responsibility, forever. Paradoxically, many of these dudes start companies that make laundry the central focus of their lives."
Posted on 2014-05-30T00:41:56+0000
I Got Shipped to California to Date Tech Guys
Five days with the great single-girl airlift from NYC to SF.
Hasnain says:
"For every tech guy struggling to find love in San Francisco, there is one struggling harder to find novel ways to spend his money. The funds necessary to fly 16 girls cross-country so they can sleep four to a room is nothing compared to the sums that disappear when hotly anticipated start-ups go bust."
I really have no words for this article aside from "what the ..."
Posted on 2014-05-30T00:09:37+0000
How to Tell Someone's Age When All You Know Is Her Name
Picture Mildred, Agnes, Ethel and Blanche. Perhaps you imagine the Golden Girls or your grandmother’s poker game. These are names for women of age, wisdom and distinction. The median living Mildred...
Coating on Skydeck's Ledge Cracks Under Tourists
All four boxes of The Ledge, the 103rd floor tourist attraction atop Chicago's Willis Tower, were closed Thursday morning for what an official said was a routine inspection.
Polio-related travel restrictions: Inoculation certificates mandatory from June 1
Following govt appeal, WHO official grants time for effective implementation.
Hasnain says:
So you have to get a vaccination four weeks before you leave Pakistan. What if you're only going to be there for a shorter period of time?
Sigh...
Posted on 2014-05-29T02:24:25+0000
Google finally discloses its diversity record, and it's not good | PBS NewsHour
In an industry that has been famously guarded about its workplace diversity, Google on Wednesday disclosed its record when it comes to hiring women, African-Americans and Hispanics. The data reveals statistics that the company itself admits are too low and strikingly below other industry averages. W…
Hasnain says:
"The data shows that Google trails others when it comes to the tech workforce in particular."
Posted on 2014-05-28T23:09:55+0000
Canada's Pitch to Tech: We'll Pay Nearly 80% of Some Salaries
Lucrative incentives seek to attract U.S. companies from Silicon Valley.
You shouldn’t use a spreadsheet for important work (I mean it)
I envy economists. Unlike computer scientists, they seem to be able to publish best-seller books with innovative research. One such book is Piketty’s Capital. The book is reminiscent of Marx’s capital in its scope. If you haven’t heard about the book yet, it has a simple message: the yield on capita…
Hasnain says:
"It is said that Piketty used an enormous amount of data, for an economist. I think that economists will have to cope with very complex and abundant data. They will need to do ever more complicated analysis. I hope that they will learn to use better tools and techniques."
Posted on 2014-05-28T21:35:42+0000
» School spyware in coursebooks
Recently, a number of schools have started using a program called CourseSmart, which uses e-book analytics to alert teachers if their students are studying the night before tests, rather than taking a long-haul approach to learning. In addition to test scores, the CourseSmart algorithm assigns each…
Hasnain says:
"Recently, a number of schools have started using a program called CourseSmart, which uses e-book analytics to alert teachers if their students are studying the night before tests, rather than taking a long-haul approach to learning. In addition to test scores, the CourseSmart algorithm assigns each student an “engagement index” which can determine not just if a student is studying, but also if they’re studying properly. In theory, a person could receive a “satisfactory” C grade in a particular class, only to fail on “engagement""
What the...
Posted on 2014-05-26T17:33:42+0000
Linux for Lettuce | VQR Online
[clock] 37-MINUTE READ PUBLISHED: May 14, 2014 Revolutionizing American agribusiness from the ground up, one seed at a time. From a distance, Jim Myers looks like an ordinary farmer. Most autumn mornings, he stands thigh-deep in a field of wet broccoli, beheading each plant with a single, sure swipe…
Son finds his lost mother in a Stone Age tribe
When David Good was a kid, and his friends asked where his mother was, he’d always say the same thing: She died in a car crash. “I experimented with responses, and I found that the most effective,”...
Hasnain says:
"By 14, David was drinking heavily. He thought that kids who wanted to party would always hang out with other kids who wanted to party — no chance of abandonment there. And the alcohol sanded down the anguish, if only temporarily."
Posted on 2014-05-26T02:05:40+0000
The Art of Unix Programming
My fourth book.
Dear graduates: Don’t follow your dreams (A commencement speech for the mediocre)
The brutal truth is that most people can't pay the bills by "living their passion." So what can we do instead?
Hasnain says:
"See, commencement speakers are the outliers — the most successful, interesting people that colleges can find — and their experiences are the most inspirational but also the least realistic. Even worse, they tend to be far too willing to dish out the craziest, worst advice, simply because it somehow worked for them. “Follow your dreams” and “live your passions” are insanely unhelpful tips when the bills need paying or the rent is almost due. "
Posted on 2014-05-24T17:17:10+0000
VirginAmerica.com's New Look
Check out Virgin America's fly new website at virginamerica.com on your desktop, mobile device, or tablet! #VXnewlook
Hasnain says:
Love the new look. And the new boarding pass design is something that was sorely needed.
Posted on 2014-05-24T00:06:25+0000
A History of Tug-of-War Fatalities
Ignore simple physics and your appendage could be amputated by a tug of war rope.
An Open Letter on Feminism In Tech
We are tired of pretending this stuff doesn’t happen.
My No-Soap, No-Shampoo, Bacteria-Rich Hygiene Experiment
What happens when you leave cleanliness up to your microbiome?
Hasnain says:
This is a pretty interesting experiment.
"The most extreme case is David Whitlock, the M.I.T.-trained chemical engineer who invented AO+. He has not showered for the past 12 years. He occasionally takes a sponge bath to wash away grime but trusts his skin’s bacterial colony to do the rest. I met these men. I got close enough to shake their hands, engage in casual conversation and note that they in no way conveyed a sense of being “unclean” in either the visual or olfactory sense."
Posted on 2014-05-22T18:14:13+0000
The Myth That Americans Are Busier Than Ever
"How did we get so busy?" the New Yorker asks. Let's define busy. And, while we're at it, let's define we, too.
Ripe For Disruption - Jacques Mattheij
Disruption is something that you can usually only establish after the fact. A decade later or so you can look back and say ‘x’ disrupted …
sean cassidy : Meditations
Last year I started reading Meditations by Marcus Aurelius1. While I was reading it, I was struck at how many of the entries were just simple reminders to himself. Don't get mad at people unnecessarily. Remember that you are just one of many. Don't get distracted.He was making the same mistakes over…
Hasnain says:
These are amazing quotes that every software person should follow.
Posted on 2014-05-22T03:44:45+0000
ZeniMax Media Inc
ZeniMax Media Inc
Hasnain says:
"ZENIMAX MEDIA INC. AND ID SOFTWARE LLC FILE SUIT AGAINST OCULUS VR, INC. AND ITS FOUNDER, PALMER LUCKEY"
This could get ugly.
Posted on 2014-05-22T03:42:48+0000
Arcade Story | stevenf.com
Arcade Story2014-05-21This is a story about me and a video game. Although I have always been and expect I always will be a nerd, the events of this story take place when I was approximately 8-10 years old, meaning I had not yet worn away the extra layer of turbo-nerd that little boys of that inclina…
Hasnain says:
"Maybe that’s what streaming games on Twitch is like for the current generation of kids. But even knowing that 60 people from around the world are watching you set new records in Call of Duty, I wonder how it stacks up to an actual crowd of people standing directly behind you, as you listen to them whispering to each other about how good this kid is at this game."
Posted on 2014-05-22T03:40:10+0000
The Reykjavik Confessions
The mystery of why six people admitted links to two murders - when they couldn't remember anything about the crimes.
Hasnain says:
Riveting.
"I’ve worked on miscarriages of justice in many different countries. I’ve testified in several countries - hundreds of cases I’ve done, big cases. I’d never come across any case where there had been such intense interrogation, so many interrogations and such lengthy solitary confinement. I mean I was absolutely shocked when I saw that.”
Posted on 2014-05-22T00:16:02+0000
The greatest bug I never fixed
Bugs ain't fun. Except when they are. This is the story of the greatest bug I never fixed. In an earlier life I wrote addons for World of Warcraft. Aside from being addicted to the game at the time, it was a mindblowing experience for someone obsessed with plugin architectures and the evolution of p…
Twenty Questions for Donald Knuth | | InformIT
To celebrate the publication of the eBooks of <em><a href="/promotions/impact-of-the-art-of-computer-programming-139881">The Art of Computer Programming, </a></em> (TAOCP), we asked several computer scientists, contemporaries, colleagues, and well-wishers to pose one question each to author Dona…
Hasnain says:
This is absolute gold, everyone should read it.
"I did write a compiler manual in 1958, which by chance was actually used as the textbook for one of my classes in 1959(!)"
For clarification, he was a student in that class, not the professor...
Posted on 2014-05-21T17:55:38+0000
StaticGen
StaticGen is a leaderboard of the top open-source static site generators. Promoting a static approach to building websites.
Welcome - football.db - Open Football Data
A free open public domain football (soccer) database & schema for use in any (programming) language (e.g. uses plain text fixtures/data sets). Example:
When Science Becomes News, The Facts Can Go Up In Smoke
It's hard to bring science to the public. The subtleties of research are often lost in translation when they surface in the news. Commentator Alva Noë wonders why.
Encrypting a valid JPG with AES to valid JPG talk recording:...
when AES(☢) = ☠ -- Episode V
Hasnain says:
This is absolutely nuts. Creating a JPG that encrypts to itself (https://i.imgur.com/WRxFKdq.png). Talk available at https://www.youtube.com/watch?v=wbHkVZfCNuE
Posted on 2014-05-20T21:37:49+0000
You’re probably using the wrong dictionary « the jsomers.net blog
The way I thought you used a dictionary was that you looked up words you’ve never heard of, or whose sense you’re unsure of. You would never look up an ordinary word — like example, or sport, or magic — because all you’ll learn is what it means, and that you already know.
Hasnain says:
This is absolutely beautiful.
"It’s as if someone decided that dictionaries these days had to sound like they were written by a Xerox machine, not a person, certainly not a person with a poet’s ear, a man capable of high and mighty English, who set out to write the secular American equivalent of the King James Bible and pulled it off."
Posted on 2014-05-20T21:32:48+0000
How a Raccoon Became an Aardvark
On Wikipedia, the wisdom of the crowd often rules—as insensible as the crowd can be.
Hasnain says:
This is interesting. On how you should always fact-check Wikipedia.
Posted on 2014-05-20T21:27:56+0000
Level3 is without peer, now what to do? - I, Cringely
Some major ISPs appear to be attempting to extort money in exchange for peering with Level3
Hasnain says:
"These companies are attempting to extort more millions from us just to provide the service we have already paid for.
I say throw the bums out."
Posted on 2014-05-20T21:20:58+0000
Interpreting when Compiling, or an Alternative Understanding of Lambdas in C++11
I have recently read an article about computations on C++ templates. One of the comments to the article was a
Hasnain says:
A lambda calculus interpreter (complete with macros, variable lookups, tail recursion). Written using C++ templates and processed completely at compile time.
Because why not.
Posted on 2014-05-20T05:13:33+0000
Why Do People Persist in Believing Things That Just Aren't True?
To change false beliefs, appealing to a person’s sense of self may be more important than the facts.
Hasnain says:
This is a really enlightening read. Especially relevant nowadays due to the spread of false information and misconceptions.
Posted on 2014-05-19T23:02:08+0000
Elizabeth Kolbert: Why Are We So Busy?
Since the 1930s, U.S. G.D.P. has grown, in real terms, by a factor of sixteen. Why hasn’t that wealth translated into more leisure time?
Hasnain says:
"It is, to say the least, disappointing that things haven’t turned out that way—that inequality has grown, that leisure is scarce, that even the rich complain of being overwhelmed. And yet so much of what we do, collectively and individually, suggests that we still believe more wealth is the answer. Reëxamining this belief would probably be a good idea—that is, if anyone had the time for it."
Posted on 2014-05-19T22:40:35+0000
A device to stabilize tremor.
Active cancellation technology for people with hand tremor.
Hasnain says:
I think this is a great example of tech that can actually help people. Kudos.
Posted on 2014-05-19T18:27:24+0000
How extreme isolation warps the mind
When people are isolated from human contact, their mind can do some truly bizarre things, says Michael Bond. Why does this happen?
Hasnain says:
"What message can we take from these stories of endurance and despair? The obvious one is that we are, as a rule, considerably diminished when disengaged from others. Isolation may very often be the “sum total of wretchedness”, as the writer Thomas Carlyle put it. However, a more upbeat assessment seems equally valid: it is possible to connect, to find solace beyond ourselves, even when we are alone. It helps to be prepared, and to be mentally resilient. But we shouldn’t underestimate the power of our imagination to knock over prison walls, penetrate icy caves or provide make-believe companions to walk with us."
Posted on 2014-05-19T17:46:45+0000
YouTube to Acquire Videogame-Streaming Service Twitch for $1 Billion: Sources
Google's YouTube has reached a deal to buy Twitch, a popular videogame-streaming company, for more than $1 billion, according to sources familiar with the pact. The deal, in an all-cash offer, is e...
Hasnain says:
Not sure how I feel about this. One of the main draws for Twitch was that it wasn't YouTube.
Posted on 2014-05-19T00:02:56+0000
boostcon/cppnow_presentations_2014
cppnow_presentations_2014 - Presentation materials presented at C++Now 2014
Don't Become a Scientist!
Don't Become a Scientist!
Secrets of the Stacks
How libraries decide which books to keep—and which don’t stand the test of time
Hasnain says:
"We like to think that merit is eventually recognized, that a great book will make its way, but we know only the success stories."
Posted on 2014-05-17T01:54:22+0000
The Trade of the Century: When George Soros Broke the British Pound
How George Soros made his fortune on a daring bet against the British pound and Bank of England.
Functional Programming | Clojure for the Brave and True
So far, you've focused on familiarizing yourself with the tools that Clojure provides: immutable data structures, functions, abstractions, and so on. In this chapter, you'll begin learning how to think about your programming tasks in a way that makes the best use of those tools. You'll begin integra…
Hasnain says:
This is a really good read for people looking to learn clojure.
Posted on 2014-05-15T21:12:35+0000
The end of a monopoly
Kenya’s handy alternative to cash THE SELF-SERVICE tills at Home Depot, an American home-improvement store, offer customers an unexpected payment option alongside...
Sift Science Lands $18M Series B From Spark Capital To Stop Credit Card Fraud | TechCrunch
Today Sift Science, a credit card fraud prevention company, has closed an $18 million Series B round of funding led by Spark Capital, with participation from..
Hasnain says:
This is really cool. The tech behind it sounds really awesome.
Posted on 2014-05-14T18:07:57+0000
The Hitchhiker’s Guide to Python! — The Hitchhiker's Guide to Python
This opinionated guide exists to provide both novice and expert Python developers a best-practice handbook to the installation, configuration, and usage of Python on a daily basis.
Hasnain says:
This is really awesome. I plan on going over this in detail.
Posted on 2014-05-14T05:15:55+0000
Surfin' Safari - Blog Archive » Introducing the WebKit FTL JIT
Just a decade ago, JavaScript – the programming language used to drive web page interactions – was thought to be too slow for serious application development. But thanks to continuous optimization efforts, it’s now possible to write sophisticated, high-performance applications – even graphics-intens…
Hasnain says:
Self modifying code that optimizes itself as it runs. This is mindblowing.
Posted on 2014-05-14T04:56:35+0000
Metaprogramming for madmen
This post is part of the series "Debris: Opening the box". Okay, previous posts from this series aimed to actually convey useful technical information: assuming you actually want to write say a mes...
Hasnain says:
The "madmen" bit is absolutely right. I was thoroughly impressed by .kkrieger the first time around too. Need to read the rest of the series. Especially when you dynamically optimize your code down to the point that the following happens:
"The small enemies at the start can hit you, but he didn’t get hit by any enemy shots, so in the released version of .kkrieger enemy shots deal no damage."
Posted on 2014-05-14T04:54:35+0000
Removing User Interface Complexity, or Why React is Awesome
Removing User Interface Complexity, or Why React is AwesomeMay 13 2014I've been studying frameworks and libraries like Ember, Angular, and React the past several months, and given Web Components a lot of thought. These all solve similar problems to varying degrees, and are in conflict in some ways a…
Hasnain says:
This is a great read on implementing user interfaces in JavaScript.
Posted on 2014-05-14T01:14:39+0000
Rich Geldreich's Blog: The Truth on OpenGL Driver Quality
richg42.blogspot.com
Hasnain says:
Is it sad that I can identify the vendors almost thoughtlessly?
Posted on 2014-05-14T01:14:03+0000
Distributed Systems and the End of the API
This is a written (expanded) narrative of the content from a talk I first gave at PhillyETE on April 23rd, 2014. It mostly follows the flow of the presentation given then, but with a level of detai...
Computers are *fast*! - Julia Evans
So I have a computer. My computer contains hardware (like a CPU! RAM! L1/L2 caches!) But I don’t understand very well how fast that hardware is …
Hasnain says:
Software gets slower faster than hardware gets faster.
Posted on 2014-05-14T01:13:27+0000
Realistic terrain in 130 lines
Adventures in the land of JavaScript
Hasnain says:
Playing around with javascript to produce semi realistic terrain.
Posted on 2014-05-13T16:45:09+0000
Scaling SQL with Redis - David Cramer's Blog
Scaling SQL with Redis 12 May 2014 I love Redis. It's one of those technologies that is so obvious it makes you wond...
Adsense Breakdown
Its coming up on 8 years ago in a few weeks now since I posted a cheque for 900k for 2 months of adsense revenue. I'm going to post the history of adsense from the day I added adsense to the sit...
The Day I Started Lying to Ruth
A cancer doctor on losing his wife to cancer.
Hasnain says:
"We were finally caught in cancer’s Zugzwang, the point in the game where all possible moves make you worse off. The point that the other 40,000 women each year who die from breast cancer in the United States also encounter in one way or another. I will never again be mystified, as I had been with many patients, by why someone who is at the precipice of death seeks out yet another shot at treatment, even with something harmful that has a near-zero chance of helping. “Why not?” was suddenly a winning argument."
Posted on 2014-05-07T05:39:48+0000
Google Maps On Mobile Gets Uber Integration And More | TechCrunch
Google has updated its apps for iOS and Android with a bunch of new features, including Uber integration directly in its collection of options for travel..
PyPy.js: Now faster than CPython
It has been the better part of a year since I first started hacking on PyPy.js, an experiment in bringing a fast and compliant python interpreter to the web. I've been pretty quiet during that time but have certainly been keeping busy. Some of the big changes since my previous update include:
Hasnain says:
Yo Dawg, I heard you like JITs, so I put a JIT in your JIT so you can trace while you trace. (https://rfk.id.au/blog/entry/pypy-js-poc-jit/resources/yo-dawg-jit.png)
Posted on 2014-05-06T17:19:57+0000
How to talk to an open source software project as a large scale or otherwise interesting user
The very short version: if you contact an open source project anonymously, you may not get the best help. Feel free to also reach out privately and share that your post from gmail.com is actually (...
Hasnain says:
"In fact, next to development resources, a great community and funding, having impressive deployments is one of the most important things for an open source project."
Posted on 2014-05-06T17:18:31+0000
Observations of an Internet Middleman - Beyond Bandwidth
We received a lot of positive feedback, as well as a lot of questions when Mike posted his recent story, Chicken. Many of the questions asked for more spec
Hasnain says:
"That leaves the remaining six peers with congestion on almost all of the interconnect ports between us. Congestion that is permanent, has been in place for well over a year and where our peer refuses to augment capacity. They are deliberately harming the service they deliver to their paying customers. They are not allowing us to fulfil the requests their customers make for content.
Five of those congested peers are in the United States and one is in Europe. There are none in any other part of the world. All six are large Broadband consumer networks with a dominant or exclusive market share in their local market. In countries or markets where consumers have multiple Broadband choices (like the UK) there are no congested peers."
Posted on 2014-05-05T23:09:35+0000
Doctors flunk quiz on screening-test math | Science News
Many doctors, and the news media, don’t understand that because of the statistics of screening tests, a test with 90 percent accuracy can give a wrong diagnosis more than 90 percent of the time.
Not Your Father's Java: An Opinionated Guide to Modern Java Development, Part 1
Despite it assosiation with large, bureacratic, and slow enterprise shops, and big, unwieldy frameworks, recent additions to the Java language, tooling, and libraries, combined with more lean programming styles, have turned programming Java into a rather pleasant experience.