From MAILER-DAEMON Wed Jul 14 13:57:27 2004
Received: from mailman by lists.gnu.org with archive (Exim 4.33)
	id 1Bko0V-0007wO-MX
	for mharc-pika-dev@gnu.org; Wed, 14 Jul 2004 13:57:27 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33)
	id 1Bko0U-0007vt-AT
	for pika-dev@nongnu.org; Wed, 14 Jul 2004 13:57:26 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33)
	id 1Bko0T-0007vh-OH
	for pika-dev@nongnu.org; Wed, 14 Jul 2004 13:57:26 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.33) id 1Bko0T-0007ve-M4
	for pika-dev@nongnu.org; Wed, 14 Jul 2004 13:57:25 -0400
Received: from [199.232.41.8] (helo=mx20.gnu.org)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.34) id 1Bknxb-0005gB-4R
	for pika-dev@nongnu.org; Wed, 14 Jul 2004 13:54:27 -0400
Received: from [205.149.2.142] (helo=morrowfield.regexps.com)
	by mx20.gnu.org with esmtp (Exim 4.34) id 1BknqW-0008UZ-BR
	for pika-dev@nongnu.org; Wed, 14 Jul 2004 13:47:10 -0400
Received: (from lord@localhost)
	by morrowfield.regexps.com (8.9.1/8.9.1) id KAA06512;
	Wed, 14 Jul 2004 10:56:38 -0700 (PDT) (envelope-from lord)
Date: Wed, 14 Jul 2004 10:56:38 -0700 (PDT)
From: Tom Lord <lord@emf.net>
Message-Id: <200407141756.KAA06512@morrowfield.regexps.com>
To: pika-dev@nongnu.org
Subject: [Pika-dev] (hackerlab--devo--1.0--patch-93) Summary: [NOTE] [PIKA]
	udstr review cleanups (jivera)
X-BeenThere: pika-dev@nongnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: pika-dev.nongnu.org
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/pika-dev>,
	<mailto:pika-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/pika-dev>
List-Post: <mailto:pika-dev@nongnu.org>
List-Help: <mailto:pika-dev-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/pika-dev>,
	<mailto:pika-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jul 2004 17:57:26 -0000

Revision: hackerlab--devo--1.0--patch-93
Archive: lord@emf.net--2004
Creator: Tom Lord <lord@emf.net>
Date: Wed Jul 14 10:56:28 PDT 2004
Standard-date: 2004-07-14 17:56:28 GMT
Modified-files: strings/udstr.c strings/udstr.h
    strings/ustr.c
New-patches: jivera@flame.org--2004/hackerlab--udstr-patches--1.0--base-0
    jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-1
    jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-2
    jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-3
    jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-4
    jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-5
    jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-6
    jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-7
    jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-8
    jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-9
    lord@emf.net--2004/hackerlab--devo--1.0--patch-93
Summary: [NOTE] [PIKA] udstr review cleanups (jivera)
Keywords: 

(Significance: this helps clear the way for making the Furth 
default string type a Unicode string type from the start.)

Patches applied:

 * jivera@flame.org--2004/hackerlab--udstr-patches--1.0--base-0
   tag of lord@emf.net--2004/hackerlab--devo--1.0--patch-87

 * jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-1
   Call ustri_ not ustr_ functions in ustr.c

 * jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-2
   add error handling to udstr_append_fw_x

 * jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-3
   udstr_cv_delete_x's logic is wrong

 * jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-4
   udstr_unref doesn't need an explicit alloc_limits

 * jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-5
   refactor udstr_cp_to_cv_range

 * jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-6
   memory leak in udstr_append_fw_x

 * jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-7
   numerous memory leaks in udstr.c

 * jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-8
   sync with Tom

 * jivera@flame.org--2004/hackerlab--udstr-patches--1.0--patch-9
   use udstr_cp_to_cv_range in replace




From MAILER-DAEMON Sun Jul 25 12:37:49 2004
Received: from mailman by lists.gnu.org with archive (Exim 4.33)
	id 1Bom0S-00075O-Mk
	for mharc-pika-dev@gnu.org; Sun, 25 Jul 2004 12:37:48 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33)
	id 1Bom0R-000752-82
	for pika-dev@nongnu.org; Sun, 25 Jul 2004 12:37:47 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33)
	id 1Bom0P-00074i-DM
	for pika-dev@nongnu.org; Sun, 25 Jul 2004 12:37:46 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.33) id 1Bom0P-00074Y-Am
	for pika-dev@nongnu.org; Sun, 25 Jul 2004 12:37:45 -0400
Received: from [213.165.64.20] (helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.34) id 1Bolx6-0000ic-Js
	for pika-dev@nongnu.org; Sun, 25 Jul 2004 12:34:21 -0400
Received: (qmail 5687 invoked by uid 65534); 25 Jul 2004 16:34:18 -0000
Received: from chello080109053157.14.14.univie.teleweb.at (EHLO garibaldi)
	(80.109.53.157)
	by mail.gmx.net (mp011) with SMTP; 25 Jul 2004 18:34:18 +0200
X-Authenticated: #3102804
Received: from ivanova.rhinosaur.lan ([192.168.1.9] helo=ivanova)
	by garibaldi with esmtp (Exim 4.34) id 1Bolwr-00010c-Di
	for pika-dev@nongnu.org; Sun, 25 Jul 2004 18:34:16 +0200
Received: from andy by ivanova with local (Exim 4.34) id 1Bolwr-0001PS-5k
	for pika-dev@nongnu.org; Sun, 25 Jul 2004 18:34:05 +0200
To: Pika Developers <pika-dev@nongnu.org>
References: <200407240155.SAA19686@morrowfield.regexps.com>
From: Andreas Rottmann <a.rottmann@gmx.at>
Date: Sun, 25 Jul 2004 18:34:05 +0200
In-Reply-To: <200407240155.SAA19686@morrowfield.regexps.com> (Tom Lord's
	message of "Fri, 23 Jul 2004 18:55:59 -0700 (PDT)")
Message-ID: <87ekn09hc2.fsf@ivanova.rotty.yi.org>
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Sender: Andreas Rottmann <a.rottmann@gmx.at>
X-Spam-Score: -4.9 (----)
Subject: [Pika-dev] Re: Round IV: xl and all that (looking ahead, mostly)
X-BeenThere: pika-dev@nongnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: pika-dev.nongnu.org
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/pika-dev>,
	<mailto:pika-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/pika-dev>
List-Post: <mailto:pika-dev@nongnu.org>
List-Help: <mailto:pika-dev-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/pika-dev>,
	<mailto:pika-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 25 Jul 2004 16:37:47 -0000

Tom Lord <lord@emf.net> writes:

> * Next Step
>
>   For the next step I'll build an xl1 interpreter by writing
>   a meta-circular xl1 vm (xl1 vm written in xl1) and either
>   hand-translating it to C or writing a specialized xl1->C compiler=20
>   for that.
>
Now that I have probably quite a few hacking cycles left over in the
next few weeks, I'd like to know how this xl stuff relates to Pika and
what should be done on the Pika side, given that I want to spend some
of those cycles on Pika hacking. AFAIR, the thing that keeps us from a
complete runtime is a few lacking udstr pieces in hackerlab, and
wrapping those up in libscm (which I have in preperation to a certain
extent, already). On the eval part, I've no clear impression how this
will work out. Could you describe how xl, furth and Pika come together
and where one could help with this?

Cheers, Andy
--=20
Andreas Rottmann         | Rotty@ICQ      | 118634484@ICQ | a.rottmann@gmx.=
at
http://yi.org/rotty      | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B=
62

Latein ist das humanoide =C3=84quivalent zu Fortran.
   -- Alexander Bartolich in at.linux



From MAILER-DAEMON Mon Jul 26 13:40:33 2004
Received: from mailman by lists.gnu.org with archive (Exim 4.33)
	id 1Bp9Si-0000Zm-S3
	for mharc-pika-dev@gnu.org; Mon, 26 Jul 2004 13:40:32 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33)
	id 1Bp9Sh-0000YF-Bc
	for pika-dev@nongnu.org; Mon, 26 Jul 2004 13:40:31 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33)
	id 1Bp9Sf-0000WG-I6
	for pika-dev@nongnu.org; Mon, 26 Jul 2004 13:40:30 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.33) id 1Bp9Sf-0000W9-Ca
	for pika-dev@nongnu.org; Mon, 26 Jul 2004 13:40:29 -0400
Received: from [205.149.2.143] (helo=morrowfield.regexps.com)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bp9PL-0001D3-Rz
	for pika-dev@nongnu.org; Mon, 26 Jul 2004 13:37:04 -0400
Received: (from lord@localhost)
	by morrowfield.regexps.com (8.9.1/8.9.1) id KAA06988;
	Mon, 26 Jul 2004 10:50:51 -0700 (PDT)
	(envelope-from lord@morrowfield.regexps.com)
Date: Mon, 26 Jul 2004 10:50:51 -0700 (PDT)
Message-Id: <200407261750.KAA06988@morrowfield.regexps.com>
From: Tom Lord <lord@emf.net>
To: a.rottmann@gmx.at
In-reply-to: <87ekn09hc2.fsf@ivanova.rotty.yi.org> (message from Andreas
	Rottmann on Sun, 25 Jul 2004 18:34:05 +0200)
Subject: Re: [Pika-dev] Re: Round IV: xl and all that (looking ahead, mostly)
References: <200407240155.SAA19686@morrowfield.regexps.com>
	<87ekn09hc2.fsf@ivanova.rotty.yi.org>
Cc: pika-dev@nongnu.org
X-BeenThere: pika-dev@nongnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: pika-dev.nongnu.org
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/pika-dev>,
	<mailto:pika-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/pika-dev>
List-Post: <mailto:pika-dev@nongnu.org>
List-Help: <mailto:pika-dev-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/pika-dev>,
	<mailto:pika-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 26 Jul 2004 17:40:31 -0000




    > From: Andreas Rottmann <a.rottmann@gmx.at>

    > Now that I have probably quite a few hacking cycles left over in
    > the next few weeks, I'd like to know how this xl stuff relates
    > to Pika and what should be done on the Pika side, given that I
    > want to spend some of those cycles on Pika hacking. AFAIR, the
    > thing that keeps us from a complete runtime is a few lacking
    > udstr pieces in hackerlab, and wrapping those up in libscm
    > (which I have in preperation to a certain extent, already). On
    > the eval part, I've no clear impression how this will work
    > out. Could you describe how xl, furth and Pika come together and
    > where one could help with this?

Yes, udstr is getting closer.

About eval...

The very general idea is to use a register machine, furth/gtgc
essentially.  We can start by intepreting a simple graph-code (ala SCM
but without so much tag hair) and go from there.

Such an interpreter _can_ be coded by hand but it can also be written
in xl pretty effectively.   The advantage of writing it in xl is that
while a trivial ->C translation gets you almost exactly the by-hand
graph-interpreter, the xl code is easier to optimize both by hand and
by better compilation ->C.

You could think of it this way:

A Scheme graph-interpreting VM resembles a little finite state machine
that, each cycle, transforms the contents of registers, possibly
side-effecting the store and the external environment.

XL is a little equation language that's nice for implementing finite
state machine rules.

Some things we want from the Scheme finite state machine are that it
run "stackless" (i.e., not use the C stack for recursion), that it be
multithreaded (allow "timesharing" between multiple runs of the state
machine), and that it be nicely interruptable.  Xl provides all that,
too.

They (pika and xl) should ultimately join up pretty seemlessly
although I don't have all of the details worked out yet.

-t






