zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <psprint@zdharma.org>
To: zsh-workers@zsh.org, Oliver Kiddle <okiddle@yahoo.co.uk>
Subject: Re: Add redis-db module to upstream?
Date: Wed, 7 Jun 2017 13:08:13 +0200	[thread overview]
Message-ID: <etPan.5937de9d.643c9869.2787@MacMini.local> (raw)
In-Reply-To: <16324.1496827747@thecus.kiddle.eu>

On 7 czerwca 2017 at 11:35:43, Oliver Kiddle (okiddle@yahoo.co.uk) wrote:
> Certrainly we want to take care that the hiredis dependency isn't making
> 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=...

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? Very large variables or sharing variables?

I was planing to use it with Zplugin, to build textual UI with ZUI library, to configure plugins this way. The problem is that plugins aren't that complex to ship TUI for them. One option however is important – enable/disable of plugin. I do this often, and it doesn't seem right to comment and uncomment things in Zshrc that often. So in general gdbm could be good to map some configuration on it, because database allows programmatic updating (but besides plugins, alterations of zshrc rather aren't often; 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 that useful. Having a server that separates files on disc from clients – this opens more possibilities. There are two other free NoSQL databases 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 databases, but I think other ones should appear.

--
Sebastian Gniazdowski
psprint /at/ zdharma.org


  reply	other threads:[~2017-06-07 11:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-03  3:24 Sebastian Gniazdowski
2017-06-03 17:09 ` Bart Schaefer
2017-06-03 19:35   ` Daniel Shahaf
2017-06-04  5:57     ` Sebastian Gniazdowski
2017-06-04  6:23       ` Sebastian Gniazdowski
2017-06-06  2:28     ` Eric Cook
2017-06-07  9:29     ` Oliver Kiddle
2017-06-07 11:08       ` Sebastian Gniazdowski [this message]
2017-06-07 13:04       ` Daniel Shahaf
2017-06-07 22:10       ` Bart Schaefer
2017-06-04  8:35   ` Sebastian Gniazdowski
2017-06-08  4:01 Sebastian Gniazdowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=etPan.5937de9d.643c9869.2787@MacMini.local \
    --to=psprint@zdharma.org \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).