This post is about the magic constant 0x5f3759df and an extremely neat hack, fast inverse square root, which is where the constant comes from. It’s a fairly well-known function these days and first became so when it appeared in the source of Quake III Arena in 2005.
Coroutines vs explicitly async APIsMy previous post about Node.JS being a terrible platform got some negative feedback from Node.JS fans. What I’ve noticed however, is that some of the people who responded negatively didn’t actually understand why the explicitly async APIs of Node.
How the Bystander Effect is Ruining Your CodeIn 1964, for thirty-five long minutes, thirty-eight citizens of a respectable Queens neighborhood watched as a twenty-eight year old woman named Kitty Genovese was brutally raped and murdered. Not one person phoned for help.
Why the name red-black tree?A lot of people ask why did we use the name red-black.
What’s new in PhpStorm 7?PHP 5.5 is now fully supported, including generators, coroutines, the finally keyword, list in foreach, using empty() on the result of function calls and other expressions, class name resolution as scalar via the class keyword, and constant array/string dereferencing.Read more in our blog »
Distributed Reader-Writer MutexNow, when we know that traditional reader-writer mutexes do no scale and write sharing is our foe, and that the way to go is state distribution, let's try to create a scalable distributed reader-writer mutex.
Toward Higher PrecisionIt is difficult to overstate the importance of synchronized time to modern computer systems.
Understanding C by learning assemblyLast time, Alan showed how to use GDB as a tool to learn C. Today I want to go one step further and use GDB to help us understand assembly as well. Abstraction layers are great tools for building things, but they can sometimes get in the way of learning.
Crack in Internet’s foundation of trust allows HTTPS session hijackingResearchers have identified a security weakness that allows them to hijack web browser sessions even when they're protected by the HTTPS encryption that banks and e-commerce sites use to prevent snooping on sensitive transactions.
The new Secure Password Hashing API in PHP 5.5The RFC for a new simple to use password hashing API has just been accepted for PHP 5.5. As the RFC itself is rather technical and most of the sample codes are something you should not use, I want to give a very quick overview of the new API:
This Read-It-Later-list is just that, bookmarks of stuff I intend to read or have read. I do not necessarily agree with opinions or statements in the bookmarked articles.
This list is compiled from my Pocket list.