From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: use *repl-stack* instead of *repl-level* Date: Thu, 01 Jul 2010 11:41:28 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1278010671 15689 80.91.229.12 (1 Jul 2010 18:57:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2010 18:57:51 +0000 (UTC) Cc: guile-devel@gnu.org To: Tristan Colgate Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jul 01 20:57:50 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OUOxI-0001YW-Ez for guile-devel@m.gmane.org; Thu, 01 Jul 2010 20:57:48 +0200 Original-Received: from localhost ([127.0.0.1]:45104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUOss-0002hI-K9 for guile-devel@m.gmane.org; Thu, 01 Jul 2010 14:53:14 -0400 Original-Received: from [140.186.70.92] (port=39082 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUOrN-0001d3-D4 for guile-devel@gnu.org; Thu, 01 Jul 2010 14:51:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUOrI-0000GA-GP for guile-devel@gnu.org; Thu, 01 Jul 2010 14:51:41 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:58037 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUOrI-0000G6-AN for guile-devel@gnu.org; Thu, 01 Jul 2010 14:51:36 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 124ABC0F5D; Thu, 1 Jul 2010 14:51:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=lqyYmFSStVvUzhMx8yYvjNSrY8Y=; b=ApwVJP ph38DASYXTapyMVi4JmapfV8lHWeTX2HZaQiC/hSZVQTS4GjOxLaQLigeVmWAbV0 0VKzdBUFoQWe6ecD7qpnoX7Ta5Eq7nc1k2ZCttvl6X3dYA62pekrKgcuJ9m46YPq wmZFoVGkUr/N9qe1Kd9y9cCC9LVwb8jRWfZPA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; q=dns; s=sasl; b=HJ/LdVzdSa+Ir0QLsxwn2sZPAaHc9B+t fiE0FRRg9mhxHNXNtNst8soIyQXUtyjxsh2gIcnv0y14lP0cwBgJw3EoE78MGvzj DmZZIiF8UvFwNgk5VUK8XULsxL1Bx7lkXjupSWjEXV2rh1+LjEkQC1W96YBdapwc +wom48S8Kcc= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id F2B5AC0F5C; Thu, 1 Jul 2010 14:51:34 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [86.164.245.70]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 5DFE1C0F5B; Thu, 1 Jul 2010 14:51:33 -0400 (EDT) In-Reply-To: (Tristan Colgate's message of "Tue, 29 Jun 2010 13:42:26 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: AC02A946-8541-11DF-94B6-9056EE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10594 Archived-At: 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 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/