all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phil Hagelberg <phil@hagelb.org>
To: rms@gnu.org
Cc: jtk@yahoo.com, emacs-devel@gnu.org
Subject: Re: obby
Date: Fri, 22 May 2009 09:42:56 -0700	[thread overview]
Message-ID: <87my95w0kv.fsf@hagelb.org> (raw)
In-Reply-To: <E1M7D7D-0006Ju-8i@fencepost.gnu.org> (Richard M. Stallman's message of "Thu, 21 May 2009 14:35:39 -0400")

Richard M Stallman <rms@gnu.org> writes:

>     I had planned to revisit the problem once the new implementation of the
>     obby protocol and client (now called Infinote) had been released. But
>     implementing inclusion transformation is very difficult.
>
> Can you tell us more about this problem?

The first part involves keeping a lot of state. Every edit that could be
re-applied (by someone else sending a conflicting edit to the same
portion of the document before yours reached the server) would need to
be stored along with some metadata. (It may be possible to tie into
Emacs' existing undo mechanism for this part if you were able to add
some metadata to each action.)

But then if you are notified of a conflict, you need to un-apply your
changes, apply the canonical ones you received from the server, and
transform your edits so they apply cleanly. This is pretty
complicated. It's analogous to a rebase operation if you're familiar
with the concept from some distributed version control systems, only it
applies on the document level rather than across a whole
repository. There are more edge cases that result when re-applied edits
need to be split to ensure consistency; I am not sure I understand these
fully.

Details about the transformation algorithm are available on the obby wiki:

  http://gobby.0x539.de/trac/wiki/AnnotatedObbySession

>     By the way, this is a textbook case for why we would want to support
>     dynamic linking. The reference implementation of the Infinote protocol,
>     libinfinote, is released under the LGPL, so it would save a great deal
>     of effort to be able to use that rather than creating a new,
>     independent, under-manned implementation from scratch.
>
> We could link with it non-dynamically too.

With non-dynamic linking it's still possible, but such a project would
be forced to move more slowly since recompiling would be necessary for
every user. If I were able to write something that could use libobby and
distribute it to others without making them patch and recompile Emacs, I
would be much more likely to start such a project. Every so often I read
about extensions to Emacs that require a recompile, but I've never
actually used one since it's more complicated to get started with them;
I just don't bother.

If the project were worked on by core Emacs developers in the official
repository, this would be less of an issue since people are more
familiar with just pulling updates and using that. But it seems
inconsiderate to the community to say something is not important just
because it doesn't bother the core developers.

> I don't understand the structure of the situation.  Did you
> reimplement the same thing in Lisp?

That's correct; I implemented a subset of the protocol in Lisp. But
since it was not documented at the time, I did not implement
transformations, just a naieve edit scheme that assumed there would
never be conflicts. So it worked reasonably well as long as you were on
a local network and latencies were low, but over the Internet you would
see inconsistencies.

-Phil




  parent reply	other threads:[~2009-05-22 16:42 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-10 19:53 obby Richard M Stallman
2009-05-10 21:29 ` obby Jeff Kowalczyk
2009-05-11 14:35   ` obby Jeff Kowalczyk
2009-05-11 16:25   ` obby Phil Hagelberg
2009-05-11 17:19     ` obby Stefan Monnier
2009-05-11 18:25       ` obby joakim
2009-05-13  9:13         ` obby Richard M Stallman
2009-05-13  9:53           ` obby joakim
2009-05-13 22:34             ` obby Richard M Stallman
2009-05-21 18:35     ` obby Richard M Stallman
2009-05-22 11:41       ` obby Christian Lynbech
2009-05-22 16:45         ` obby Phil Hagelberg
2009-05-23 15:38         ` obby Richard M Stallman
2009-05-22 16:42       ` Phil Hagelberg [this message]
2009-05-23 14:32         ` obby Karl Fogel
2009-05-25  1:11           ` obby Stefan Monnier
2009-05-25 14:45             ` obby Karl Fogel
2009-05-25 15:02               ` obby Stefan Monnier
2009-05-23 15:38         ` obby Richard M Stallman
2009-05-11 21:08   ` obby Richard M Stallman

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=87my95w0kv.fsf@hagelb.org \
    --to=phil@hagelb.org \
    --cc=emacs-devel@gnu.org \
    --cc=jtk@yahoo.com \
    --cc=rms@gnu.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.