Re: vm branch now uses vm repl by default

2008-09-10 Thread Neil Jerram
2008/9/10 Andy Wingo <[EMAIL PROTECTED]>: > > Oh it has some. Here are the hooks: > >vm-next-hook vm-apply-hook vm-boot-hook vm-return-hook >vm-break-hook vm-exit-hook vm-halt-hook vm-enter-hook > > They sound sufficient, but perhaps more could be added. Unless I > misunderstand what the tr

Re: vm branch now uses vm repl by default

2008-09-10 Thread Andy Wingo
Howdy, On Tue 09 Sep 2008 23:01, [EMAIL PROTECTED] (Ludovic Courtès) writes: >> On Tue 09 Sep 2008 10:41, [EMAIL PROTECTED] (Ludovic Courtès) writes: > >>> It'd be nice if we could find a way to "do something" with the >>> `current-reader' fluid at compilation time, like detecting top-level >>> `

Re: vm branch now uses vm repl by default

2008-09-10 Thread Andy Wingo
Hi, On Wed 10 Sep 2008 00:43, "Neil Jerram" <[EMAIL PROTECTED]> writes: > I guess source information is of interest for debugging Of course :) > you've observed previously elsewhere that the VM doesn't yet have much > debugging support - by which I presume you mean something like the > traps th

Re: vm branch now uses vm repl by default

2008-09-09 Thread Neil Jerram
2008/9/9 Andy Wingo <[EMAIL PROTECTED]>: > >Sources: > > 8#(1 11 #f) > > Some instructions are annotated with source information. I guess source information is of interest for debugging, and I think you've observed previously elsewhere that the VM doesn't yet have much debugging supp

Re: vm branch now uses vm repl by default

2008-09-09 Thread Neil Jerram
2008/9/9 Andy Wingo <[EMAIL PROTECTED]>: > Hi, > > On Tue 09 Sep 2008 10:27, "Neil Jerram" <[EMAIL PROTECTED]> writes: >> >> Where in the bytecode is `pk', or some kind of reference to it? > > It's object 0: Thanks, I see now. (I guess I misread the # in object 0 as being the same as the # being

Re: vm branch now uses vm repl by default

2008-09-09 Thread Ludovic Courtès
Hello! Andy Wingo <[EMAIL PROTECTED]> writes: > On Tue 09 Sep 2008 10:41, [EMAIL PROTECTED] (Ludovic Courtès) writes: > >> So, previously, there was `variable-ref': > > There still is. It is used when a variable is bound immediately, when it > is pushed on the stack by a link-now instruction. OK

Re: vm branch now uses vm repl by default

2008-09-09 Thread Andy Wingo
On Tue 09 Sep 2008 10:41, [EMAIL PROTECTED] (Ludovic Courtès) writes: > So, previously, there was `variable-ref': There still is. It is used when a variable is bound immediately, when it is pushed on the stack by a link-now instruction. scheme@(guile-user)> ,c (define x a) Disassembly of

Re: vm branch now uses vm repl by default

2008-09-09 Thread Andy Wingo
Hi, On Tue 09 Sep 2008 10:27, "Neil Jerram" <[EMAIL PROTECTED]> writes: > 2008/9/9 Andy Wingo <[EMAIL PROTECTED]>: > >>scheme@(guile-user)> (lambda () (pk a #:bar)) >>$2 = # >>scheme@(guile-user)> ,x $2 >>Disassembly of #: >> >>nargs = 0 nrest = 0 nlocs = 0 nexts = 0 >> >>

Re: vm branch now uses vm repl by default

2008-09-09 Thread Ludovic Courtès
Hey! Andy Wingo <[EMAIL PROTECTED]> writes: > I've enabled the VM repl by default on the vm branch. Here's a brief > annotated tour: > > $ ./pre-inst-guile > Guile Scheme interpreter 0.5 on Guile 1.9.0 > Copyright (C) 2001-2008 Free Software Foundation, Inc. > > Enter `,help' for

Re: vm branch now uses vm repl by default

2008-09-09 Thread Neil Jerram
Hi Andy, This is looking like fun! But I'm not fully understanding... 2008/9/9 Andy Wingo <[EMAIL PROTECTED]>: >scheme@(guile-user)> (lambda () (pk a #:bar)) >$2 = # [...] >scheme@(guile-user)> ,x $2 > > There is a wealth of meta-commands at the repl, commands that start with > `,