From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: persistent lisp objects Date: Tue, 27 Oct 2009 15:18:34 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ocns8uat.fsf@lifelogs.com> References: <871vlqt9rv.fsf@tux.homenetwork> <87ljjv5y5b.fsf@tux.homenetwork> <87hbtn6a6t.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256674758 5099 80.91.229.12 (27 Oct 2009 20:19:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Oct 2009 20:19:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 27 21:19:11 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N2sVa-0004es-Nu for ged-emacs-devel@m.gmane.org; Tue, 27 Oct 2009 21:19:11 +0100 Original-Received: from localhost ([127.0.0.1]:47794 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2sVZ-0000yt-Tt for ged-emacs-devel@m.gmane.org; Tue, 27 Oct 2009 16:19:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2sVU-0000yl-UM for emacs-devel@gnu.org; Tue, 27 Oct 2009 16:19:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2sVQ-0000yJ-93 for emacs-devel@gnu.org; Tue, 27 Oct 2009 16:19:04 -0400 Original-Received: from [199.232.76.173] (port=53822 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2sVQ-0000yC-3w for emacs-devel@gnu.org; Tue, 27 Oct 2009 16:19:00 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:60441) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N2sVP-0003Xb-EQ for emacs-devel@gnu.org; Tue, 27 Oct 2009 16:18:59 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N2sVN-0004ZG-5r for emacs-devel@gnu.org; Tue, 27 Oct 2009 21:18:57 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Oct 2009 21:18:57 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Oct 2009 21:18:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:YQ4AESHL+k4SgKFB+OUN4THm2G0= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116427 Archived-At: On Sun, 25 Oct 2009 11:26:50 +0100 Thierry Volpiatto wrote: TV> somebody write something to save hash-table, lists, etc... in a data TV> base. I think this is worth pursuing, and I've brought it up before. What persistence layer would be good so external databases can be "plugged" in? Ideally it should be able to handle everything from flat files and SQLite to cloud storage (e.g. Amazon S3), user-defined code, and traditional RDBMSs. It should also be able to cache the data intelligently and be able to force a cache update, like Memcached. Does something like this exist? I think hash tables are a good single choice for the data structures. A hash table tied to the persistence layer is easier to cache, iterate, and control than generic lists. Supporting both hash tables and lists is extra work for little gain IMO. Ted