unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* re: use *repl-stack* instead of *repl-level*
@ 2010-06-29 12:42 Tristan Colgate
  2010-07-01 10:41 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Tristan Colgate @ 2010-06-29 12:42 UTC (permalink / raw)
  To: guile-devel

Hi,

  Sorry, I'm not currently subscribed to guile-commits so couldn't
reply to the actual commit mail.

  The changes to use *repl-stack* mean that the default prompt now has
"scheme@(guile-user) [1]> "
rather than "scheme@(guile-user) [1]> "  (it's never zero as the stack
always has at least the top repl on it?
or something along those lines).

  Also, the removal of #:welcome means that my shell app now display
the Guile welcome message, which
is a bit irritating. I use start-repl for my snmp-shell app in
guile-snmp. It is true that it basically is guile with
with some modules loaded and some symbol resolution magic started up.
I've been thinking about it more
as an app in it's own right though (for the purposes of docs, and
presenting the user a less intimidating
experience).

  *version* and repl-welcome don't seem to be overridable (at least
not via a let). Could they be made into
fluids? or is the current "this is definitely guile", approach to be
enforced? Iknow I could just re-implement
start-repl and co, but that doesn't really seem in the spirit of things.

-- 
Tristan Colgate-McFarlane
----
  "You can get all your daily vitamins from 52 pints of guiness, and a
glass of milk"



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: use *repl-stack* instead of *repl-level*
  2010-06-29 12:42 use *repl-stack* instead of *repl-level* Tristan Colgate
@ 2010-07-01 10:41 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2010-07-01 10:41 UTC (permalink / raw)
  To: Tristan Colgate; +Cc: guile-devel

Hi Tristan,

I'm currently travelling, so I'm not sure when this reply will go out;
apologies in advance. I had not intended to push the repl-stack thing
yet, as it wasn't finished, but it looked harmless. Did the subsequent
push not fix it for you?

FYI I am trying to simplify our REPL interface, by unifying the debugger
and the repl (as is the case in a few other Schemes). Debugger commands
will be meta-commands (comma-prefixed). There is obviously the drawback
that it will be ",bt" instead of "bt", but having a uniform repl
interface would seem to outweight the disadvantages.

On Tue 29 Jun 2010 13:42, Tristan Colgate <tcolgate@gmail.com> writes:

>   Also, the removal of #:welcome means that my shell app now display
> the Guile welcome message, which
> is a bit irritating. I use start-repl for my snmp-shell app in
> guile-snmp. It is true that it basically is guile with
> with some modules loaded and some symbol resolution magic started up.
> I've been thinking about it more
> as an app in it's own right though (for the purposes of docs, and
> presenting the user a less intimidating
> experience).
>
>   *version* and repl-welcome don't seem to be overridable (at least
> not via a let). Could they be made into
> fluids? or is the current "this is definitely guile", approach to be
> enforced? Iknow I could just re-implement
> start-repl and co, but that doesn't really seem in the spirit of things.

Good questions, all! The point is definitely not to restrict the
interface, but to make it more orthogonal, (re-)usable, documented, and
maintainable. Obviously that's not yet achieved for you ;) So I have
some questions for you:

 1. Are you using a custom language?

 2. Are you presenting your users with backtraces?

 3. What should happen for your users when an error happens: a
    backtrace? A simple error reporter? A debugger? A recursive repl?

 4. What about values printing: do you need value history support ($1,
    $2 et al)?

 5. What should happen if there is an error while reading the user's
    input (as opposed to evaluating it)?

 6. What sorts of interactive help do you need?

I think answering those will help us both to understand better what you
want from Guile's repl.

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-01 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-29 12:42 use *repl-stack* instead of *repl-level* Tristan Colgate
2010-07-01 10:41 ` Andy Wingo

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).