From owner-freebsd-arch@FreeBSD.ORG Tue Jul 29 23:30:54 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BF36B144 for ; Tue, 29 Jul 2014 23:30:54 +0000 (UTC) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8F57E263A for ; Tue, 29 Jul 2014 23:30:54 +0000 (UTC) Received: by mail-pd0-f179.google.com with SMTP id ft15so413485pdb.10 for ; Tue, 29 Jul 2014 16:30:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=67A+A/sYZ0HoSDIF8IeOjxzbc8xjpogPHE0GXaVtY2A=; b=ZojjdJ/9S92UvQcKeFHQ3b5EXdvfaK6o5j9osu3JrgxQl+73puZavP6VDaf53k7I+4 f9zsPwTKQMOjbOKbA64cEJ1jpuj73NafrqD5AHmAM1MjUP8Bf9RNhwPHMGeqRtTFrwgP kUG24ILko0iD6K7aNIY383EyS16xFRH9VOFGAZ6ho2/KyXHo742qTKUwqTSfEECCWKYN ux2le4i4Cpn4sz33BcuyvnQvY5fymrY6c74s73ptECXM6dYvr8mENtcD+hyYwC0tOiJj dRwCwK2RcZmvYt6KuKXVg1tac4L0fFwUyA8FC1ggldBQouwIrAIehmyUWzgKwAyXpgH4 kkrA== X-Gm-Message-State: ALoCoQk9uPCtI5O2f7/lll/d+JKRbEAijZQH0oh44h29UGcqmLp9UPR8zUurJ04L/fK8ieuMpO4u MIME-Version: 1.0 X-Received: by 10.66.157.40 with SMTP id wj8mr404774pab.42.1406676653582; Tue, 29 Jul 2014 16:30:53 -0700 (PDT) Received: by 10.70.101.41 with HTTP; Tue, 29 Jul 2014 16:30:53 -0700 (PDT) Received: by 10.70.101.41 with HTTP; Tue, 29 Jul 2014 16:30:53 -0700 (PDT) In-Reply-To: <20140729232338.40AA6580A2@chaos.jnpr.net> References: <20140725044921.9F0D3580A2@chaos.jnpr.net> <20140728054217.AC1A0580A2@chaos.jnpr.net> <20140728055336.GJ50802@ivaldir.etoilebsd.net> <20140729232338.40AA6580A2@chaos.jnpr.net> Date: Tue, 29 Jul 2014 16:30:53 -0700 Message-ID: Subject: Re: XML Output: libxo - provide single API to output TXT, XML, JSON and HTML From: Jos Backus To: "Simon J. Gerraty" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: arch@freebsd.org, Adrian Chadd , Jordan Hubbard X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2014 23:30:54 -0000 On Jul 29, 2014 4:23 PM, "Simon J. Gerraty" wrote: > > > On Mon, 28 Jul 2014 23:03:55 -0700, Jos Backus writes: > >Wouldn't the API be a way to build up an in-memory combination of lists and > >maps in most cases, which then gets serialized out at emission time? Kind > > You cannot rely on being able to do that. > Routing tables can be "big" especially when encoded in xml ;-) > You certainly cannot wait for all of it to arrive before you start > rendering. Understood. This is why a serialization output format that supports streaming data is useful. Jos