[ppsp] Implementing PPSP in Erlang/OTP

Dave Cottlehuber <dch@jsonified.com> Sat, 22 June 2013 09:47 UTC

Return-Path: <dch@jsonified.com>
X-Original-To: ppsp@ietfa.amsl.com
Delivered-To: ppsp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2B32621F9F4D for <ppsp@ietfa.amsl.com>; Sat, 22 Jun 2013 02:47:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.479
X-Spam-Level:
X-Spam-Status: No, score=0.479 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_RELAY_NODNS=1.451, FM_FORGED_GMAIL=0.622, RCVD_IN_PBL=0.905, RDNS_NONE=0.1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lp-SZKD0Jk1e for <ppsp@ietfa.amsl.com>; Sat, 22 Jun 2013 02:47:26 -0700 (PDT)
Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) by ietfa.amsl.com (Postfix) with ESMTP id CBC3C21F9F45 for <ppsp@ietf.org>; Sat, 22 Jun 2013 02:47:25 -0700 (PDT)
Received: by mail-la0-f45.google.com with SMTP id fr10so8403685lab.32 for <ppsp@ietf.org>; Sat, 22 Jun 2013 02:47:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jsonified.com; s=google; h=mime-version:x-originating-ip:date:message-id:subject:from:to:cc :content-type; bh=mT43emIB2he5bcWbhQTa31yQy59hjvgtUiiE36GEtlY=; b=GnpJJp9ItPOeW/P2pfb6G3qsZP/ZcRGvXgO6rPQK2LNbpIwkl15btahWJLyMBBOoUX j8IhQd2T/VqrJ2XgjZut3rQC730p35eXCy4CthY6kl3bqxdpk1vaEs7Bzt8OscOrh2Wk SA5uXoPvvVwZ1Kb2al8OGOYjcsepuEchLkmqc=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:date:message-id:subject:from:to:cc :content-type:x-gm-message-state; bh=mT43emIB2he5bcWbhQTa31yQy59hjvgtUiiE36GEtlY=; b=F11mk8y0+lMnEACVNn7lhgSxOHkJAPDzi+mMMAoa16R5OanM+GmP/tRrGHyMPPda7n eGkjBS6Q3FvxMsP/0vL2JpE6eFpNXhR/V5TaXuw9Oiqh7QRezIZxN2tHjv403nXZpMCN Nh3AayL+YSMCA+bJKREUDHi3XeoEFFUcukjJI1DLbQGSRnSd2Q2C2CxurkGolUtaB4tL WfDb8xMMDuPgr3MDM8BauoeLXOWHBRL9rYToGUSmks2gQuVPqabp1RkjPbpNpdl6iTGi v0Fz9o11QTQpsiBm8F3CZWmsldmq6DmMNk4T7thkC3dqFjqAM6Zh98fVXJ+UIAYQQiML /bbA==
MIME-Version: 1.0
X-Received: by 10.112.181.71 with SMTP id du7mr9122106lbc.24.1371894444423; Sat, 22 Jun 2013 02:47:24 -0700 (PDT)
Received: by 10.112.70.229 with HTTP; Sat, 22 Jun 2013 02:47:24 -0700 (PDT)
X-Originating-IP: [94.245.250.152]
Date: Sat, 22 Jun 2013 11:47:24 +0200
Message-ID: <CAL+Y1ntXpYZwcoS9DN7PFpk4TcRJ9zAEPG-FKOPzy-PFzttX3g@mail.gmail.com>
From: Dave Cottlehuber <dch@jsonified.com>
To: ppsp@ietf.org
Content-Type: text/plain; charset="ISO-8859-1"
X-Gm-Message-State: ALoCoQng03WVYTh+QBbaksWRhu8XN92H0TixU+tbmpIeV3dg6UuVquEg2N3r4C0f4Ae7aezI0J0o
X-Mailman-Approved-At: Sun, 23 Jun 2013 03:22:32 -0700
Subject: [ppsp] Implementing PPSP in Erlang/OTP
X-BeenThere: ppsp@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: discussing to draw up peer to peer streaming protocol <ppsp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ppsp>, <mailto:ppsp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ppsp>
List-Post: <mailto:ppsp@ietf.org>
List-Help: <mailto:ppsp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ppsp>, <mailto:ppsp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 22 Jun 2013 09:48:28 -0000

Hi,

By way of introduction I'm one of the authors of Apache CouchDB[1],
which is a native JSON document database, with a full HTTP "RESTish"
API, including multi-master replication and inbuilt conflict
management. It's written in a mix of Erlang/OTP[2] for the core, and
JavaScript for indexing and processing documents, and filtering
results.

I've been looking for a peer-to-peer algorithm for a while, and PPSPP
aka swift looks like a perfect fit, as well as giving me a taste of
implementing a protocol from scratch!

I've started on an implementation in Erlang, currently structured in 2 layers:

- PPSP layer using native Erlang message passing between nodes.
- A UDP layer on top of that to be able to talk to the Real World.

I'll have a few questions about the spec along the way no doubt.

A+
Dave
--
Founder, JSONified
dch@jsonified.com

[1]: http://couchdb.apache.org/
[2]: http://erlang.org/