Nice.

Since the current J implementation uses the C stack to implement the J
stack, cutting back requires one of two things:

(1) Every C function which can take significant time to execute or
which can be live during an exception needs to implement "bail out
early" checks, or

(2) setjump/longjump (which sometimes gets into hardware and operating
system specific issues, and also has implications for memory
management because of how references can get ignored -- that said, for
example, gdb uses a linked list that emulates the stack for memory
management purposes with "primitives" to add a frame, remove a frame
or cut back to the current frame -- I don't know what the performance
implications of that would be like, here).

So... yes... I imagine it's more than a little intricate.

So... thanks!

-- 
Raul



On Tue, May 14, 2019 at 10:29 AM Henry Rich <[email protected]> wrote:
>
> This is fixed in the next beta.  (I hope: debug is convoluted)
>
> Henry Rich
>
> On 5/13/2019 8:24 PM, bill lam wrote:
> > j901 latest beta had fixed some bugs in debug (not gui debugger), please
> > test if the problem persists.
> >
> > On Fri, Mar 1, 2019, 7:02 AM Raul Miller <[email protected]> wrote:
> >
> >> I've got some code, I bring up the debugger, the "cut back the stack"
> >> button doesn't do anything.  So I try 13!:19'' and that doesn't cut
> >> back the stack either.
> >>
> >> Here's a relatively minimal way to reproduce this behavior:
> >>
> >>     NB. enable debugger with cmd-K
> >>     problem=:4 :'x,y'
> >>     example=:3 :'0&problem ;:y'
> >>     example 'this is a test'
> >>
> >>     JVERSION
> >> Engine: j807/j64/darwin
> >> Release-c: commercial/2019-02-24T10:50:40
> >> Library: 8.07.22
> >> Qt IDE: 1.7.9/5.9.7
> >> Platform: Darwin 64
> >> Installer: J807 install
> >> InstallPath: /users/rauldmiller/applications/j64-807
> >> Contact: www.jsoftware.com
> >>
> >> Thanks,
> >>
> >> --
> >> Raul
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
>
> ---
> This email has been checked for viruses by AVG.
> https://www.avg.com
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to