From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17780 invoked by alias); 7 Jun 2017 11:08:17 -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: 41248 Received: (qmail 21698 invoked from network); 7 Jun 2017 11:08:17 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(0.0/5.0):. Processed in 1.285143 secs); 07 Jun 2017 11:08:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at zdharma.org does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new using ClamAV (8) Date: Wed, 7 Jun 2017 13:08:13 +0200 From: Sebastian Gniazdowski To: zsh-workers@zsh.org, Oliver Kiddle Message-ID: In-Reply-To: <16324.1496827747@thecus.kiddle.eu> References: <170603100908.ZM13230@torch.brasslantern.com> <1496518513.3749643.997726048.04EDD04E@webmail.messagingengine.com> <16324.1496827747@thecus.kiddle.eu> Subject: Re: Add redis-db module to upstream? X-Mailer: Airmail (231) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 7 czerwca 2017 at 11:35:43, Oliver Kiddle (okiddle=40yahoo.co.uk) wrot= e: > Certrainly we want to take care that the hiredis dependency isn't makin= g > a zsh build more complicated. Perhaps the module could be disabled by > default. I'd also agree with the points made by Bart such as unifying > ztie, perhaps with a generic typeset option: typeset -o file=3D... I copied gdbm checks and switched them to hiredis library. I feel OK with= this because hiredis is small C library. Linking it feels cool, no large= , awkward linkage, like it would maybe be for Oracle Berkley DB library, = which isn't distributed in Homebrew nor other package systems (as Google = suggests), and it felt large when testing it. > As for use, I've never actually got around to trying the gdbm module. > What is it mostly good for=3F Very large variables or sharing variables= =3F I was planing to use it with Zplugin, to build textual UI with ZUI librar= y, to configure plugins this way. The problem is that plugins aren't that= complex to ship TUI for them. One option however is important =E2=80=93 = enable/disable of plugin. I do this often, and it doesn't seem right to c= omment and uncomment things in Zshrc that often. So in general gdbm could= be good to map some configuration on it, because database allows program= matic updating (but besides plugins, alterations of zshrc rather aren't o= ften; but I suspect a user with different mindset than mine could quickly= provide examples of useful mapping). When developing zredis, it became clear that embedded databases aren't th= at useful. Having a server that separates files on disc from clients =E2=80= =93 this opens more possibilities. There are two other free NoSQL databas= es sophia and tarantool, the last one was created by Mail.ru for a social= service, it might be a gem. The first use case is administrating the dat= abases, but I think other ones should appear. -- Sebastian Gniazdowski psprint /at/ zdharma.org