From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13497 invoked by alias); 31 Jan 2015 03:37:38 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34442 Received: (qmail 715 invoked from network); 31 Jan 2015 03:37:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=B94OC1pJ c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=YNv0rlydsVwA:10 a=bzs3bPyBISXX9n2J1AEA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <150130193712.ZM17895@torch.brasslantern.com> Date: Fri, 30 Jan 2015 19:37:12 -0800 In-reply-to: <150130192144.ZM17686@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: Anyone want to help make zsh/db/gdbm work?" (Jan 30, 7:21pm) References: <150122211942.ZM28918@torch.brasslantern.com> <20150129204658.4a800bcb@ntlworld.com> <150129140625.ZM14730@torch.brasslantern.com> <20150130085949.4d44007d@pwslap01u.europe.root.pri> <150130192144.ZM17686@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: Anyone want to help make zsh/db/gdbm work? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jan 30, 7:21pm, Bart Schaefer wrote: } } However, this raises the question of whether the resulting parameter } should also be readonly. I meant to add: If it ISN'T, then you can add/change fields of the hash but they are NOT copied to the database, which could be an interesting feature or could just be confusing. Also there's a question of how often the database should be written. With memory-mapped arrays the writes are effectively instantaneous, but as presently implemented ztie database files aren't updated until the parameter is unset. If this is going to remain this way and the parameter is not readonly, should failure to write be noisy or silent? (That question is also affected by the file modes of the database file if it already exists at the time of ztie-ing.)