unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: joaotavora@gmail.com (João Távora)
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: hierarchy
Date: Sat, 21 Oct 2017 09:52:34 +0100	[thread overview]
Message-ID: <87h8us51d9.fsf@gmail.com> (raw)
In-Reply-To: <jwvshed4ltx.fsf-monnier+gmane.emacs.devel@gnu.org> (Stefan Monnier's message of "Fri, 20 Oct 2017 16:26:17 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Looking at the code I get the impression that it would be nice to split
> it into 3 parts:
> - the `hierarchy` defstruct with associated manipulation functions.
> - the display code.
> - an API between the two, which we could call `tree`, a bit like `seq.el`
>   defining the tree navigation primitives needed by the display code
>   and which could be implemented by all kinds of data types, including
>   the `hierarchy` struct.

FWIW there's also:

   https://www.emacswiki.org/emacs/tree-mode.el
   (and maybe some other similar package that I can't find right now).

Anyway, when I implemented a structured "trace" facility for Common
Lisp[1]] these libraries werent' very useful and I had to bake my own.

I had two (extraordinary?) requirements: (1) that it should work
asynchronously (i.e. updates to any arbitrary node in the hierarchy can
come at any time and out of order) and (2) that display is lazy
(i.e. collecting an update to an arbitrary part in the tree doesn't
necessarily display it).

This is why I favour Stefan's separation and I would love to replace my
library with a decent one.

João

[1]
https://github.com/joaotavora/sly/blob/master/contrib/sly-trace-dialog.el








  parent reply	other threads:[~2017-10-21  8:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-17 18:15 [ELPA] New package: hierarchy Damien Cassou
2017-10-17 21:17 ` Stefan Monnier
2017-10-23  7:47   ` Damien Cassou
2017-10-23 11:55     ` Stefan Monnier
2017-10-20 20:26 ` Stefan Monnier
2017-10-20 21:05   ` John Wiegley
2017-10-20 21:54   ` Clément Pit-Claudel
2017-10-21  8:52   ` João Távora [this message]
2017-10-23  8:17     ` Damien Cassou
2017-10-23  8:28       ` João Távora
2017-10-23  8:05   ` Damien Cassou
2017-10-23 12:03     ` Stefan Monnier
2017-10-21  7:27 ` Eli Zaretskii
2017-10-22 13:20   ` Damien Cassou
2017-10-22 14:39     ` Eli Zaretskii
2017-10-22 15:23       ` Damien Cassou
2017-10-22 19:41         ` John Wiegley
2017-10-22 20:25           ` Damien Cassou
2017-10-23  2:49             ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87h8us51d9.fsf@gmail.com \
    --to=joaotavora@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).