<antirez>

News posted by antirez

Redis weekly update #2 - Real world hashes, refactoring, and fixes

▼
antirez 6084 days ago.
Hello, welcome to the weekly update #2, this time it shifted to Monday as I used the whole Friday for debugging purposes as you'll read in a minute. So this is what happened in the last week, more or less in chronological order.

Real world hashes
Hashes were just a shy start the last week, now they are much better:
• More commands, now we have HSET,HGET,HDEL,HEXISTS,HKEYS,HVALS,HGETALLL,HLEN
• Tests for all the H-commands, resulting in...
• Many bugs fixed including a memory leak and other bugs in zipmap.c

VMware: the new Redis home

▼
antirez 6091 days ago.
Redis started as an internal project more or less one year ago. Initially it was not meant to become an open source project. The initial goal was just to make it simple for us to scale a few critical things in different web applications.

But it was hard to resist the open source soul there is in me :) It's been more than ten years that I have contributed to the open source world. Code sitting just inside your HD is a waste in many ways. So a few weeks later I released the first public version of Redis, and it started to grow in users, who in turn pushed me to add features and provide more stable code.

Redis weekly update #1 - Hashes and... many more!

▼
antirez 6094 days ago.
This is the first article of a serie called, with little imagination, Redis Weekly Updates. The idea is to provide some insight in the Redis development process: what's new in Redis master this week? What are the new directions? The people involved in the development process?

I'll try keeping this articles as informative as possible and, when it is possible, not too long, or at least split in paragraphs for easy scanning, so that this can become a weekly appointment for everybody following the Redis development. So... let's start!

IT Security e Computer Forensics a Catania

▼
antirez 6127 days ago.
Il mio amico Gianni Amato organizza un interessante corso di Sicurezza Informatica e Computer Forensics a Catania. Mi ha chiesto di spargere la voce e lo faccio con piacere, visto che sono certo che sarà una occasione interessante per chi è interessato all'argomento.

Potete avere maggiori informazioni sul corso visitando il  sito del corso.

Comunque sono 4 giornate con 4 diversi docenti al costo di 650 euro. Mi sembra un buon affare.

Redis Virtual Memory: the story and the code

▼
antirez 6131 days ago.
If you are reading this article probably you already know it: Redis is an in-memory DB. It's persistent, as it's disk backed, but disk is only used to persist, all the data is taken in the computer RAM.

I think the last few months showed that this was not a bad design decision. Redis proved to be very fast in real-world scenarios where there is to scale an unhealthy amount of writes, and it is supporting advanced features like Sorted Sets, and many other complex atomic operations, just because it is in memory, and single threaded. In other words, some of the features supported by Redis tend to be very complex to implement if there is to organize data on disk for fast access, and there are many concurrent threads accessing this data. The Redis design made this two problems a non issue, with the drawback of holding data in memory.

Pseudo Random Number Generator with power law (long tail-alike) distribution

▼
antirez 6146 days ago.
Today I needed a PRNG with a bised distribution, specifically following the Power Law distribution in order to simulate the "long tail" often seen in things like social networks data, search, and so forth.

I was not able to find ready to use code, but just a few formulas, so I wrote one in Ruby (I'm going to port this to C for Redis).

Maybe this will be useful to somebody else:

    # Power law (log tail) distribution
    # Copyright(C) 2010 Salvatore Sanfilippo

One year of Redis

▼
antirez 6170 days ago.
The first version of Redis was released to the public almost one year ago (10 months ago actually). This seems like a good time to look back at the development process.

Redis can't be considered a successful project yet, it's just too early, however the followings are a few concepts I learned in the last months that I feel like to share with you in the hope that I'll be able to apply this ideas in the future, and in the hope that programmers interested in creating a new open source project will find something interesting here and possibly avoid some mistake.

Linux: still better for coding

▼
antirez 6222 days ago.
Something like one year ago I switched from Linux to Mac OS X. It was not an easy switch if you think that my desktop on Linux used to be this one, that is, just fvmw2 with a minimal configuration, super fast virtual desktop, border-less windows.

Why I switched after more than 12 years of Linux? Actually I didn't decided to switch, just I got a macbook because I wanted to hack a bit with the iPhone SDK and with Mac OS X itself. I installed Linux and Mac OS X in multi boot, and for a few weeks the user interface of Mac OS X was impossible to use for me. But after a few more weeks I was using only Mac OS X for everything.

Why you should boycott Nokia

▼
antirez 6235 days ago.
Nokia just annunced an action against Apple:
Nokia announced that it has today filed a complaint against Apple with the Federal District Court in Delaware, alleging that Apple's iPhone infringes Nokia patents for GSM, UMTS and wireless LAN (WLAN) standards.
To me this sounds like: if you can't compete with the quality of the products you can try to sue to beat your competitor. This is not acceptable. Even more sad is that Nokia patents are more or less unavoidable, this is what I understand from the Nokia press release itself:

Questa antenna è pericolosa per la salute?

▼
antirez 6256 days ago.
English
Sorry if I ask here this strange question.

I could like to rent a little room in this building, in order to use it as office. It's cheap but it's not too bad inside. The problem is, this monster-antenna very near the building.

I'm not able at all to guess if this is going to hurt the health or not. What I think is a good sign is that the actual transmitters appear to be placed a lot higher than the building itself...

Somebody has a clue? The following is the picture. Thanks for any hint.
: