all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrew Hyatt <ahyatt@gmail.com>
To: Psionic K <psionik@positron.solutions>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: LLM Experiments, Part 1: Corrections
Date: Tue, 23 Jan 2024 15:36:05 -0400	[thread overview]
Message-ID: <CAM6wYYK_Ggd2ZnWLpLEJTr+TjAPxL9wav_D8g-aRUejU65hwCA@mail.gmail.com> (raw)
In-Reply-To: <CADQMGASbhePn++JkHQbMse2yxJgH_3bY65L0AMUsE-DhLx5DPQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1597 bytes --]

On Tue, Jan 23, 2024 at 2:49 AM Psionic K <psionik@positron.solutions>
wrote:

> >  I'm not sure how
> > the centralized storage reduces the coupling to the process. But
> > if I'm reading this correctly, it seems like an argument for using
> > state machines with the centralized storage acting as a driver for
> > state changes, which may be a good way to think about this.
>
> If you start by having a callback closure waiting on each individual
> request, you don't want these callbacks to perform reconciliation
> between one another.  It's too much logic in every callback.  A single
> handler should reconcile results and decide if the callback closure of
> that specific message is still valid to be called.
>
> For example, the user sends two requests, each with a logical
> timestamp (a counter).  The second one gets back first.  Should we
> even handle the first or throw it away?  Sometimes this can only be
> decided with knowledge of all the requests that I made.  Rather than
> make the callbacks smart, it's usually better to first try to
> reconcile what you receive with everything you sent.  You might need
> to wait for more output before sending the next input.  This would
> require the callback to know about past and future messages and what
> to do with them.  You want to decouple reconciliation with handling
> reconciled outputs.
>

That makes sense, but it isn't how things work today, where the requests
are independent.  I think they should stay that way, but in case they
don't, your suggestion seems like a good one, so thank you!

[-- Attachment #2: Type: text/html, Size: 1928 bytes --]

  parent reply	other threads:[~2024-01-23 19:36 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-22 12:57 LLM Experiments, Part 1: Corrections Psionic K
2024-01-22 20:21 ` Andrew Hyatt
2024-01-23  6:49   ` Psionic K
2024-01-23 15:19     ` T.V Raman
2024-01-23 19:36     ` Andrew Hyatt [this message]
     [not found] <m2il3mj961.fsf@gmail.com>
2024-01-22 18:50 ` Sergey Kostyaev
2024-01-22 20:31   ` Andrew Hyatt
2024-01-22 22:06     ` T.V Raman
2024-01-23  0:52       ` Andrew Hyatt
2024-01-23  1:57         ` T.V Raman
2024-01-23  3:00         ` Emanuel Berg
2024-01-23  3:49           ` Andrew Hyatt
2024-01-23  1:36 ` João Távora
2024-01-23  4:17   ` T.V Raman
2024-01-23 19:19   ` Andrew Hyatt
2024-01-24  1:26 ` contact
2024-01-24  4:17   ` T.V Raman
2024-01-24 15:00     ` Andrew Hyatt
2024-01-24 15:14       ` T.V Raman
2024-01-24 14:55   ` Andrew Hyatt
2024-01-24  2:28 ` Karthik Chikmagalur
2024-05-20 17:28 ` Juri Linkov

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=CAM6wYYK_Ggd2ZnWLpLEJTr+TjAPxL9wav_D8g-aRUejU65hwCA@mail.gmail.com \
    --to=ahyatt@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=psionik@positron.solutions \
    /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.