Gnus development mailing list
 help / color / mirror / Atom feed
From: Steinar Bang <sb@dod.no>
To: ding@gnus.org
Subject: Re: gnus-sync ideas
Date: Wed, 29 Dec 2010 23:07:13 +0100	[thread overview]
Message-ID: <87ipycb5da.fsf@dod.no> (raw)
In-Reply-To: <87bp472qbd.fsf@lifelogs.com>

>>>>> Ted Zlatanov <tzz@lifelogs.com>:

> The values will be data blobs with only one property: they can be
> merged.  Thus many data formats can be supported.

If you have more than one type of blob, don't you need some type
information?  Or do you plan to guess the type when using the data?  Or
do you mean to normalize to a single type?

SB> Hm... why so many formats?  We're not going for interoperability with
SB> anything else (ie. why use JSON?).  And what's the difference between
SB> elisp lists and the rtree format?  (FWIW I think the format should be
SB> s-expressions/elisp lists, because it is simple and low cost on the
SB> emacs side)

> rtree is much more compact that simple sexps for marks IIUC.
> So it makes sense to use it for marks, but it's not appropriate for
> many other formats.

Umm... what do you mean by "rtree" here?  The abstract rtree data
structure?  A particular non-lisp format?  Lars' lisp implementation of
rtrees in rtree.el?

The last one is something that can be fed the lisp reader, and are (as
far as I understand s-expressions) s-expressions as good as any...?

> That's easy to do as an optimization.  I'll try to get the basics
> working first.  The HTTP GET/POST semantics should be sufficient so
> PUT and DELETE won't be needed.

Why POST and not PUT?

Nothing important.  I'm just curious as to the reasoning?  It's like
XML attributes vs. elements: why pick one over the other? (well... not
quite.  If you are using a SAX style parser there are good reasons for
picking attributes over elements if you can, which is when there is no
hierarical values to represent, and no multiple values.  With POST and
PUT there aren't really good reasons for there to be two separate
mechanisms.  My rule of thumb is to use POST if you need to transfer
multiple values, eg. the value and some metainformation about the value,
and PUT if it is just the value).

Hm... when I think about it, there is at least one piece of
metainfomation that is neccessry: a timestamp.







  reply	other threads:[~2010-12-29 22:07 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-13 17:57 Separating marks from other group configuration Lars Magne Ingebrigtsen
2010-12-13 18:49 ` Steinar Bang
2010-12-13 19:14   ` Lars Magne Ingebrigtsen
2010-12-15 16:32   ` gnus-sync ideas (was: Separating marks from other group configuration) Ted Zlatanov
2010-12-15 19:18     ` gnus-sync ideas Lars Magne Ingebrigtsen
2010-12-15 21:26       ` Ted Zlatanov
2010-12-16 16:08         ` Lars Magne Ingebrigtsen
2010-12-16 17:19           ` Ted Zlatanov
2010-12-16 10:06     ` Julien Danjou
2010-12-16 16:33       ` Ted Zlatanov
2010-12-16 18:08         ` Steinar Bang
2010-12-17 15:55       ` Philipp Haselwarter
2010-12-17 16:12         ` Lars Magne Ingebrigtsen
2010-12-17 22:19           ` Steinar Bang
2010-12-18 13:45     ` Ted Zlatanov
2010-12-19 20:08     ` Steinar Bang
2010-12-27 15:22       ` Ted Zlatanov
2010-12-29 22:07         ` Steinar Bang [this message]
2010-12-14 10:02 ` Separating marks from other group configuration Julien Danjou
2010-12-14 12:04   ` Steinar Bang
2010-12-14 14:45   ` Philipp Haselwarter
2010-12-15 19:47     ` Lars Magne Ingebrigtsen
2010-12-15 20:29       ` Philipp Haselwarter
2010-12-15 20:32         ` Lars Magne Ingebrigtsen
2010-12-15 19:45   ` Lars Magne Ingebrigtsen
2010-12-15 20:38     ` Steinar Bang
2010-12-15 20:42       ` Lars Magne Ingebrigtsen
2010-12-16 10:12         ` Julien Danjou
2010-12-16 15:50           ` Lars Magne Ingebrigtsen
2010-12-16 16:17             ` Julien Danjou
2010-12-16 16:20               ` Lars Magne Ingebrigtsen
2010-12-16 16:27                 ` Julien Danjou
2010-12-16 16:33                   ` Lars Magne Ingebrigtsen
2010-12-16 16:49                     ` Julien Danjou
2010-12-16 16:18             ` Ted Zlatanov

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=87ipycb5da.fsf@dod.no \
    --to=sb@dod.no \
    --cc=ding@gnus.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.
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).