placeholder

main is usually a function: x86 is Turing-complete with no registers

The fiendish complexity of the x86 instruction set means that even bizarrely restricted subsets are capable of arbitrary computation. As others have shown, we can compute using alphanumeric machine code or English sentences, using only the mov instruction, or using the MMU as it handles a never-endi…

Click to view the original at mainisusuallyafunction.blogspot.com

Hasnain says:

This is just ... I'm not sure what to say, really. Showing x86 is turing-complete with no registers by compiling brainfuck down to assembly code that uses no registers.

Posted on 2014-04-24T17:04:25+0000

placeholder

What I Wish I Knew When Learning Haskell ( Stephen Diehl )

Since I wrote these slides for a little user group talk I gave two years ago they have become a surprisingly popular reference. I decided to actually turn them into a proper skimmable reference for intermediate level Haskell topics that don't necessarily have great coverage or that tend be somewhat…

Click to view the original at dev.stephendiehl.com

Hasnain says:

This is version 2.0 of this amazing guide. Took me an 75 minutes to go through; will take me about 75 years to fully understand. Explains a lot of things in great detail, easily and succinctly.

My favourite parts include: Automatically deriving instances/code, quickcheck, the lens+aeson example, and the yoneda lemma.

Posted on 2014-04-24T04:48:20+0000

placeholder

placeholder

Segfaulting atop and another trip down the rabbit hole

Let's say you're writing a program which is intended to take a snapshot of your system's status every minute or so. The idea is to grab whatever data you might have looked at directly had you been on the box at that moment. You might have the results of an all-encompassing call to "ps", "netstat", "…

Click to view the original at rachelbythebay.com

placeholder

placeholder

Hasnain says:

"We had a good thing, you ruined it. We had an escape route from that ridiculous enterprise hand-holding bullshit and instead of learning how to fucking code you've just brought your factory provider providers with you into what was once an okay place to get stuff done."

Posted on 2014-04-23T17:12:27+0000

placeholder

TDD is dead. Long live testing. (DHH)

Test-first fundamentalism is like abstinence-only sex ed: An unrealistic, ineffective morality campaign for self-loathing and shaming.It didn't start out like that. When I first discovered TDD, it was like a courteous invitation to a better world of writing software. A mind hack to get you going wit…

Click to view the original at david.heinemeierhansson.com

placeholder

Don't Settle for Eventual Consistency - ACM Queue

Geo-replicated storage provides copies of the same data at multiple, geographically distinct locations. Facebook, for example, geo-replicates its data (profiles, friends lists, likes, etc.) to data centers on the east and west coasts of the United States, and in Europe. In each data center, a tier o…

Click to view the original at queue.acm.org

Hasnain says:

This is well written and discusses an important design decision facing designers of distributed systems. 10/10 would read again.

Posted on 2014-04-23T17:03:05+0000

placeholder

Hasnain says:

"His views are less ambiguous when it comes to mandatory prison sentences. He spoke passionately about his friends who are serving time. “Jails are full of people for selling a plant that grows out of the ground—that 50 percent of people view as a medicine—that no one has managed to prove causes any harm whatsoever. Just seems crazy to me.”

“If you had a son, would you be okay with him doing this?” I asked.

“Probably not. If you get jammed up, you can become a convicted felon and that damns you to do it for the rest of your life, because you won’t get anything but a $7.50 an hour job—if that. You give somebody a felony record for life, what did you accomplish? You’ve just created a lower-class idiot that has to commit more crimes to survive.”"

Posted on 2014-04-23T17:02:22+0000

placeholder