Date: Fri, 7 Apr 2017 20:43:03 +0200 From: Polytropon <freebsd@edvax.de> To: "Steve O'Hara-Smith" <steve@sohara.org> Cc: Andrea Venturoli <ml@netfence.it>, freebsd-questions@freebsd.org, Ernie Luzar <luzar722@gmail.com> Subject: Re: Is there a database built into the base system Message-ID: <20170407204303.ce972e0d.freebsd@edvax.de> In-Reply-To: <20170407075258.5f0712fcd39d70373e9a6d37@sohara.org> References: <58E696BD.6050503@gmail.com> <69607026-F68C-4D9D-A826-3EFE9ECE12AB@mac.com> <58E69E59.6020108@gmail.com> <20170406210516.c63644064eb99f7b60dbd8f4@sohara.org> <58E6AFC0.2080404@gmail.com> <20170406210540.GO2787@mailboy.kipshouse.net> <20170407064340.a8354c6e21988c125c02c06a@sohara.org> <e8ddab83-f4c6-d09d-1146-a5d08d7497ad@netfence.it> <20170407075258.5f0712fcd39d70373e9a6d37@sohara.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 7 Apr 2017 07:52:58 +0100, Steve O'Hara-Smith wrote: > On Fri, 7 Apr 2017 08:21:16 +0200 > Andrea Venturoli <ml@netfence.it> wrote: > > > On 04/07/17 07:43, Steve O'Hara-Smith wrote: > > > On Thu, 6 Apr 2017 14:05:41 -0700 > > > Karl Young <karly@kipshouse.org> wrote: > > > > > >> I'd suggest, Python, Perl, TCL, Ruby, ... anything but csh (or bash) > > >> for a job like this. > > > > > > Trouble with that is the OP wanted something in the base system > > > and the only scripting languages in base are the shells and awk. > > Indeed. I think the best options within the base are awk or C/C++ > with db (btree), although shell supported by grep, sed, sort et al. is > possible - after all there's a complete SQL implementation written that way > in shql. I'd say it depends on performance expectations. When you do the database magic with grep/sed/awk/cut/tr/bc etc., you can enclose everything in a sh wrapper. But performance will not be that good especially for higher input volumes or more complex algorithms. You can achieve much better results in using C with the BerkeleyDB interface. Every solution has its advantages and downsides, though. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170407204303.ce972e0d.freebsd>