Re: Stack Exchange

2019-12-24 Thread ToddAndMargo via perl6-users
On 2019-12-24 08:54, Shlomi Fish wrote: I intentionally sent previous email to you because I thought it is unrelated with the original post and didn't want to bother other guys. I see. In that case the sensible thing to do is to write "[sent in private]" so I'll know it is intentional see:

Re: Stack Exchange

2019-12-24 Thread Shlomi Fish
; > > > « > > > > > > > > > > > > 404 > > > > > > > > > > > > There isn't a GitHub Pages site here. > > > > > > > > > > > > If you're trying to publish one, read the full documenta

Re: Stack Exchange

2019-12-24 Thread Shlomi Fish
're trying to publish one, read the full documentation to learn > > how > > > > to > > > > set up GitHub Pages for your repository, organization, or user account. > > > > GitHub > > > > Status — @githubstatus > > > > > >

Re: Stack Exchange

2019-12-24 Thread İsmail Arılık
> > > > to > > > > > set up GitHub Pages for your repository, organization, or user > account. > > > > > GitHub > > > > > Status — @githubstatus > > > > > > > > > > » > > > > > > > >

Re: Stack Exchange

2019-12-24 Thread Shlomi Fish
t; to > > set up GitHub Pages for your repository, organization, or user account. > > GitHub > > Status — @githubstatus > > > > » > > > > Please restore your site. > > > > Regards, > > > > Shlomi > > > > On Tue, 24 Dec 20

Re: Stack Exchange

2019-12-24 Thread İsmail Arılık
> Shlomi > > On Tue, 24 Dec 2019 11:00:44 +0300 > İsmail Arılık wrote: > > > From: İsmail Arılık > > To: ToddAndMargo > > Cc: perl6-us...@perl.org > > Subject: Re: Stack Exchange > > Date: Tue, 24 Dec 2019 11:00:44 +0300 > > > > Sorry, I

Re: Stack Exchange

2019-12-24 Thread İsmail Arılık
Sorry, I have noticed that I clicked "Answer" button instead of "Answer All" button and my email was only sent to ToddAndMargo. I am writing a copy of my email below: > The issues you mentioned is actually called community moderation and is one of the most useful features of SO. It is the secret o

Re: Stack Exchange

2019-12-23 Thread ToddAndMargo via perl6-users
On 2019-12-23 16:01, ToddAndMargo via perl6-users wrote: it is not correcting my grammar that I find offensive And it is not just your grammar. One of the censors took out "Many thanks -T". Now that is just being frivolous.

Re: Stack Exchange

2019-12-23 Thread ToddAndMargo via perl6-users
On 2019-12-23 00:34, Patrick Spek via perl6-users wrote: They may be a negative to you personally because you dislike being corrected on grammar, but they're not "negative issues" for the community at large. Don't get me wrong, it is not correcting my grammar that I find offensive -- that I ap

Re: Stack Exchange

2019-12-23 Thread Patrick Spek via perl6-users
On Sun, 22 Dec 2019 14:51:52 -0800 ToddAndMargo via perl6-users wrote: > Hi All, > > I have posted a few times to Stack Exchange. There is a > lot of intellectual property over there. This I do like. > > What I do not like, is that it is hard to carry on a > conver

Stack Exchange

2019-12-22 Thread ToddAndMargo via perl6-users
Hi All, I have posted a few times to Stack Exchange. There is a lot of intellectual property over there. This I do like. What I do not like, is that it is hard to carry on a conversation do their their comments being so short and lacking in formatting. They expect you to add extra comments

[perl #132076] next/last controls loop from exception stack instead of lexical loop

2017-09-13 Thread via RT
CATCH { default { .say; last; # it should be applied too lexical `for 1..3` but it controls outsourced loop from exception stack } } } say "end outer $i";}say "end"; Code and actual/expected output are here: https://gist.github.com/anonymous/6912bd53ce24af0d76d62d522dfc0b94 . Best regards.

[perl #77170] 'maximum recursion depth exceeded' comes with complete stack trace

2016-04-07 Thread Will Coleda via RT
On Sat Aug 29 04:31:00 2015, coke wrote: > BTW, I am having a really hard time on moar making this crash. I added > some debug output to show the number of invocations on moar. > > Got up to 1000 invocations before I got bored and killed it. Here's a sample showing the iterations. sub recu

[perl #77170] 'maximum recursion depth exceeded' comes with complete stack trace

2015-08-29 Thread Will Coleda via RT
On Tue Aug 17 21:46:38 2010, coke wrote: > Here's a simple program if you're lazy and want to cut and paste > something to test: > > > > sub recursion($a) { > recursion($a) > } > > recursion("see also"); BTW, I am having a really hard time on moar making this crash. I added some debug outpu

[perl #123666] Attempt to parallelize a program produces "Internal Error: Unwound entire stack and missed handler"

2015-01-24 Thread via RT
his is what I got: Internal Error: Unwound entire stack and missed handler This is commit f17ca342f434a160d455b9d16f7d4a2d17279087 of perl6/doc, and perl6-m --version says: This is perl6 version 2015.01-5-g912a7fa built on MoarVM version 2015.01-5-ga29eaa9 This happens on a 64bit Debian Jessie Li

[perl6/specs] a7e69b: FIFO is a queue and LIFO is a stack

2014-09-16 Thread GitHub
-glossary.pod Log Message: --- FIFO is a queue and LIFO is a stack

pushing optional arguments onto the temps stack if they are missing would be a bad thing (TM)

2013-12-20 Thread Nicholas Clark
TL;DR - fix at end. If I change the MoarVM nursery size to 2034K, then the NQP build fails with a SEGV in the garbage collector. There's an item on the worklist which is an utterly bogus pointer. Adding a bit more code to try to see how it is getting onto the worklist shows it to be coming from th

[perl #77170] 'maximum recursion depth exceeded' comes with complete stack trace

2011-11-21 Thread Will Coleda via RT
On Sat Nov 19 18:56:22 2011, sprout wrote: > On Tue Aug 17 21:46:38 2010, coke wrote: > > Here's a simple program if you're lazy and want to cut and paste > > something to test: > > > > > > > > sub recursion($a) { > > recursion($a) > > } > > > > recursion("see also"); > > > > That example (

[perl #77170] 'maximum recursion depth exceeded' comes with complete stack trace

2011-11-21 Thread Father Chrysostomos via RT
On Tue Aug 17 21:46:38 2010, coke wrote: > Here's a simple program if you're lazy and want to cut and paste > something to test: > > > > sub recursion($a) { > recursion($a) > } > > recursion("see also"); > That example (with the bad prototype stripped) just gives me: perl(5674) malloc: ***

[perl #77170] 'maximum recursion depth exceeded' comes with complete stack trace

2010-08-11 Thread via RT
# New Ticket Created by Wenzel Peppmeyer # Please include the string: [perl #77170] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77170 > If somebody comes up with the brilliant idea (or has to) increase the recursion lim

r31610 -[S04] emphasize that LEAVE blocks *always* run even under stack unwinding

2010-07-09 Thread pugs-commits
Author: lwall Date: 2010-07-10 00:59:12 +0200 (Sat, 10 Jul 2010) New Revision: 31610 Modified: docs/Perl6/Spec/S04-control.pod Log: [S04] emphasize that LEAVE blocks *always* run even under stack unwinding Modified: docs/Perl6/Spec/S04-control.pod

[perl #56604] Not all error messages should include a stack trace

2010-03-31 Thread Carl Mäsak via RT
I'd just like to report that the stacktraces in Rakudo are back to being insanely long. I think they're even longer than when people were complaining about them being far too long last time, and someone fixed it. and are also back to be totally useless yes. * masak submits rakudobug Here's

[perl #70730] [BUG] rand() * Inf blows the call stack in Rakudo

2009-11-23 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #70730] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=70730 > rakudo: say rand() * Inf rakudo 7347ec: maximum recursion depth exceeded [...] o.O *

[perl #56604] Not all error messages should include a stack trace

2009-05-15 Thread jn...@jnthn.net via RT
On Fri Jul 04 01:39:12 2008, mor...@casella.verplant.org wrote: > Error messages caused by programmer's mistakes shouldn't include stack > traces. > > Rakudo r29047: > ../../parrot perl6.pbc -e 'my Int $x; $x = "str"' > Type check failed > curr

Re: [perl #60166] [BUG] Exception handling in parrot doesn't unwind stack.

2008-10-29 Thread Patrick R. Michaud
On Wed, Oct 29, 2008 at 10:06:15PM +0100, NotFound wrote: > > do_loop: > > say i > > push_eh do_inc > > $P0 = find_method i, "succ" > > i.$P0() > > do_inc: > > pop_eh > > inc i > > goto do_loop > > I've noticed an anomaly: if you

Re: [perl #60166] [BUG] Exception handling in parrot doesn't unwind stack.

2008-10-29 Thread NotFound
>> I've noticed an anomaly: if you add .get_results($P0) after pop_eh >> nothing bag happens, but if you put it before, it starts leaking a lot >> of memory. > > Is that after r32226? Before it was leaking both ways, I think. -- Salu2

Re: [perl #60166] [BUG] Exception handling in parrot doesn't unwind stack.

2008-10-29 Thread chromatic
On Wednesday 29 October 2008 14:06:15 NotFound wrote: > > With the following example (and the other patches to > > Parrot_ex_throw_from_op_args added by NotFound++), I'm able > > to run the following version and get to 250,000 without any > > difficulty. > > > >$ cat x.pir > >.sub 'main' >

Re: [perl #60166] [BUG] Exception handling in parrot doesn't unwind stack.

2008-10-29 Thread NotFound
> With the following example (and the other patches to > Parrot_ex_throw_from_op_args added by NotFound++), I'm able > to run the following version and get to 250,000 without any > difficulty. > >$ cat x.pir >.sub 'main' > .local pmc i > i = new 'Integer' > do_loop: >

Re: [perl #60166] [BUG] Exception handling in parrot doesn't unwind stack.

2008-10-28 Thread Patrick R. Michaud
On Tue, Oct 28, 2008 at 10:15:32PM -0500, Patrick R. Michaud wrote: > ... As discussed in #parrotsketch > earlier today and summarized at [1], the correct form of the > above loop would have the "pop_eh" line after the do_inc label, > so that every exception handler created in the loop is removed >

Re: [perl #60166] [BUG] Exception handling in parrot doesn't unwind stack.

2008-10-28 Thread Patrick R. Michaud
On Sun, Oct 26, 2008 at 10:05:21PM -0700, Vasily Chekalkin wrote: > Exception handling in parrot doesn't unwind used stack frames. > > Simple example: > > .sub 'main' > .local pmc i > i = new 'Integer' >do_loop: > say i >

Re: [perl #60166] [BUG] Exception handling in parrot doesn't unwind stack.

2008-10-28 Thread NotFound
> I'm working on a patch that defines the helper function > Parrot_ex_throw_from_op_args to simplfy the throwing in cases like this. After discussion in #parrotsketch, added this function in r3 -- Salu2

[perl #60166] [BUG] Exception handling in parrot doesn't unwind stack.

2008-10-28 Thread NotFound via RT
This example fails because the op find_method uses Parrot_ex_throw_from_c_args, that handles the exception in an inner runloop. From an opcode is better to use Parrot_ex_throw_from_op, wich jumps to the handler in the current runloop. I'm working on a patch that defines the helper function Parrot_

[perl #60166] [BUG] Exception handling in parrot doesn't unwind stack.

2008-10-27 Thread via RT
# New Ticket Created by Vasily Chekalkin # Please include the string: [perl #60166] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60166 > Hello. Exception handling in parrot doesn't unwind used stack frames.

[perl #57330] 'exit' from deep within rakudo call stack causes segmentation fault

2008-07-27 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #57330] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57330 > $ svn info | grep Revi Revision: 29791 The following works: $ ./perl6 -e 'exit' $ ./pe

[perl #56604] Not all error messages should include a stack trace

2008-07-04 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #56604] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=56604 > Error messages caused by programmer's mistakes shouldn't include stack tr

Re: [perl #55316] [PATCH] remove mention of "User stack" from PDD09

2008-06-07 Thread chromatic
On Wednesday 04 June 2008 20:43:09 Andrew Whitworth wrote: > This is a minor patch to remove references to the "User stack" (which > pmichaud++ ripped out recently) from PDD09. It's a small change, and > not the only one that needs to get made to this document most likel

[perl #55316] [PATCH] remove mention of "User stack" from PDD09

2008-06-05 Thread via RT
# New Ticket Created by Andrew Whitworth # Please include the string: [perl #55316] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=55316 > This is a minor patch to remove references to the "User stack" (w

[perl #54712] [TODO] remove stack ops page

2008-05-23 Thread Will Coleda via RT
Thanks for reporting, fixed.

[perl #54712] [TODO] remove stack ops page

2008-05-23 Thread via RT
# New Ticket Created by Klaas-Jan Stol # Please include the string: [perl #54712] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=54712 > the stack ops have been removed, the page describing these is empty now and can

[PATCH] Mark Stack as Defined for Valgrind (config help wanted?)

2008-04-27 Thread chromatic
The attached patch, not yet for application, uses the Valgrind memcheck header to mark items on the stack as initialized. This clears up most of the uninitialized read errors in our Valgrind checks, which makes it easier to find real errors. I'm not applying this patch yet because we n

r27153 removes user stack ops

2008-04-23 Thread Patrick R. Michaud
Based on Tuesday's #parrotsketch discussion, r27153 eliminates the user stack opcodes from Parrot. DEPRECATED.pod showed that this would occur after the 0.7.0 release, but given discussions and changes relating to the other stacks it was decided that this could probably take place now.

Re: Need info on Stack Enumeration

2008-04-05 Thread Mark Glines
On Sun, 6 Apr 2008 01:39:31 +0530 "Senaka Fernando" <[EMAIL PROTECTED]> wrote: > Hi Chromatic, > > do you trace the PMC object roots on the Stack within the GC? or in > other words is there any Stack enumeration? Some clarification: I think the question under discuss

Need info on Stack Enumeration

2008-04-05 Thread Senaka Fernando
Hi Chromatic, do you trace the PMC object roots on the Stack within the GC? or in other words is there any Stack enumeration? Regards, Senaka

[perl #44765] [PATCH] Don't reuse interpreter argument on stack

2007-08-19 Thread via RT
# New Ticket Created by Ron Blaschke # Please include the string: [perl #44765] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=44765 > Problem: JIT code ist currently optimized to reuse the interpreter on the stack.

Re: stack tracing (was: PMC/GC help needed)

2007-08-01 Thread Leopold Toetsch
Am Mittwoch, 1. August 2007 00:39 schrieb Bram Geron: > Leopold Toetsch wrote: > > It might be on the stack or just in a CPU register. While we have > > code to mark all possible pointers on the stack, this isn't generally > > true for CPU registers, as that's rathe

stack tracing (was: PMC/GC help needed)

2007-07-31 Thread Bram Geron
Leopold Toetsch wrote: > It might be on the stack or just in a CPU register. While we have > code to mark all possible pointers on the stack, this isn't generally > true for CPU registers, as that's rather system-dependent. > > See also src/cpu_dep.c():trace_system_ar

[perl #44019] PackFile_find_fixup_entry returns a pointer to a struct on the stack

2007-07-17 Thread via RT
# New Ticket Created by Andy Lester # Please include the string: [perl #44019] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=44019 > Coverity found this one. In PackFile_find_fixup_entry, ep=&e, where e is on th

[perl #40804] -j fails: Stack alignment of x86 JIT on Mac

2006-11-10 Thread via RT
of Mac system software requiring that the stack be at least 16-byte aligned at all times. I can tell this because when running with -j, Parrot ends up at an invalid instruction fault at this instruction in a Mac system library: movdqa %xmm0, 32(%esp) Note the "a" there: "Ali

Re: A dedicated per-context stack for bsr/jsr/ret

2006-09-24 Thread Bob Rogers
od thing, as code paths are simplified. Q: do we really want or need a return stack per context? The more I think about it, the more it makes sense [but see my change of heart below]. The return stack needs to be scoped to the context anyway, so that the code doesn't accidentally C into

Re: A dedicated per-context stack for bsr/jsr/ret

2006-09-24 Thread Leopold Toetsch
Am Sonntag, 24. September 2006 03:43 schrieb Bob Rogers: >The attached patch creates a C in C for > the exclusive use of the C ops. herwise. Is that right? Separating stacks is a good thing, as code paths are simplified. Q: do we really want or need a return stack per context? b

Re: Re: Re: Re: RFC: Consolidate stack-unwinding code

2006-09-23 Thread Matt Diephouse
Bob Rogers <[EMAIL PROTECTED]> wrote: From: "Matt Diephouse" <[EMAIL PROTECTED]> Date: Sat, 23 Sep 2006 20:21:32 -0400 Bob Rogers <[EMAIL PROTECTED]> wrote: > Try the attached patch . . . That *does* work. I haven't applied it because it's not necessarily urgent that Tcl w

A dedicated per-context stack for bsr/jsr/ret

2006-09-23 Thread Bob Rogers
struct Stack_Chunk *user_stack; /* Base of the scratch stack */ struct Stack_Chunk *control_stack; /* Base of the flow control stack */ +struct Stack_Chunk *return_stack; /* Base of the bsr/jsr/ret stack */ PMC *lex_pad; /* LexPad PMC */ struct Parro

Re: Re: Re: RFC: Consolidate stack-unwinding code

2006-09-23 Thread Bob Rogers
From: "Matt Diephouse" <[EMAIL PROTECTED]> Date: Sat, 23 Sep 2006 20:21:32 -0400 Bob Rogers <[EMAIL PROTECTED]> wrote: > Try the attached patch . . . That *does* work. I haven't applied it because it's not necessarily urgent that Tcl work in trunk. I'm okay with waiting a

Re: Re: Re: RFC: Consolidate stack-unwinding code

2006-09-23 Thread Matt Diephouse
Bob Rogers <[EMAIL PROTECTED]> wrote: Try the attached patch. If it works, then we have a problem, because here's the original comment (which I deleted) that went with this line of code: /* * During interpreter creation there is an initial context * and th

Re: Re: RFC: Consolidate stack-unwinding code

2006-09-23 Thread Bob Rogers
From: Bob Rogers <[EMAIL PROTECTED]> Date: Sat, 23 Sep 2006 17:43:28 -0400 From: "Matt Diephouse" <[EMAIL PROTECTED]> Date: Sat, 23 Sep 2006 16:56:44 -0400 Unfortunately, this patch breaks Tcl. There seems to be some bug with exceptions. Here's the Tcl used fo

Re: Re: RFC: Consolidate stack-unwinding code

2006-09-23 Thread Bob Rogers
From: "Matt Diephouse" <[EMAIL PROTECTED]> Date: Sat, 23 Sep 2006 16:56:44 -0400 Unfortunately, this patch breaks Tcl. There seems to be some bug with exceptions. Here's the Tcl used for this example: proc test {} {uplevel #0 {append}} test Hmm. I seem to have brok

Re: Re: RFC: Consolidate stack-unwinding code

2006-09-23 Thread Matt Diephouse
Bob Rogers <[EMAIL PROTECTED]> wrote: From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Mon, 18 Sep 2006 11:53:36 +0200 Am Montag, 18. September 2006 03:56 schrieb Bob Rogers: >The attached patch consolidates most of the existing stack-unwinding > code into C

Re: RFC: Consolidate stack-unwinding code

2006-09-18 Thread Larry Wall
location that threw the exception. That is, the stack is not unwound until some exception handler chooses to unwind it by "handling" the exception in question. So we need the Common Lisp semantics as well. Larry

Re: RFC: Consolidate stack-unwinding code

2006-09-18 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Mon, 18 Sep 2006 11:53:36 +0200 Am Montag, 18. September 2006 03:56 schrieb Bob Rogers: >The attached patch consolidates most of the existing stack-unwinding > code into Continuation:invoke; previously, RetContinuatio

Re: RFC: Consolidate stack-unwinding code

2006-09-18 Thread Leopold Toetsch
Am Montag, 18. September 2006 03:56 schrieb Bob Rogers: >The attached patch consolidates most of the existing stack-unwinding > code into Continuation:invoke; previously, RetContinuation:invoke and > find_exception_handler also did stack-unwinding, and none of the three > did it qu

RFC: Consolidate stack-unwinding code

2006-09-17 Thread Bob Rogers
The attached patch consolidates most of the existing stack-unwinding code into Continuation:invoke; previously, RetContinuation:invoke and find_exception_handler also did stack-unwinding, and none of the three did it quite the same way. Here are the effects: 1. Improved code sharing, a

CATCH: changing the topic and preserving the call stack

2006-09-07 Thread Mark Stosberg
eal with it. Is it valid to not use a when/default chain in CATCH or to change topic, using: $_ = $my_new_topic. ? An example of that would be helpful. My second point involves re-throwing errors with useful stack traces. Here's an example similar to what we do in CGI::App: try { boom();

Re: Parrot should limit its own stack usage?

2006-07-17 Thread Chip Salzenberg
On Mon, Jul 17, 2006 at 09:26:12PM -0400, Bob Rogers wrote: >But what I really meant was: Shouldn't Parrot do a 'setrlimit' on > itself in order to detect these sorts of bugs sooner, and more usefully? > Or, maybe 'ulimit -s' would be appropriate before running test cases? Running the test su

Parrot should limit its own stack usage?

2006-07-17 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Mon, 17 Jul 2006 11:50:35 +0200 Am Montag, 17. Juli 2006 03:30 schrieb Bob Rogers: >    BTW, it doesn't seem right that I can run Parrot for only a second or > two and get more than 300K stack frames deep.  Isn

bsr/ret, continuations, and other stack rewinding bugs

2006-07-08 Thread Bob Rogers
From: Allison Randal <[EMAIL PROTECTED]> Date: Wed, 05 Jul 2006 00:02:53 -0700 Bob Rogers wrote: >If, as seems likely, exception bookkeeping is moved to a separate > stack in the interpreter (with or without dynamic-wind actions), then > C/C addresses

[perl #17562] Segfault in stack handling code running ELIZA

2006-04-26 Thread Jerry Gay via RT
languages/BASIC has been broken for almost two years, and after multiple followups, nobody has claimed responsibility for the language implementation or a fix. this ticket has been marked 'stalled'.

Re: User stack: Worthwhile?

2006-03-04 Thread Will Coleda
I believe befunge is the example I was thinking of. On Mar 4, 2006, at 12:08 PM, Leopold Toetsch wrote: On Mar 1, 2006, at 14:46, Will Coleda wrote: We already have at least one language implementation that used to work just fine using the stack, but has been crippled with various

Re: User stack: Worthwhile?

2006-03-04 Thread Leopold Toetsch
On Mar 1, 2006, at 14:46, Will Coleda wrote: We already have at least one language implementation that used to work just fine using the stack, but has been crippled with various deprecations over the last few years. If you are speaking of forth here, then no. That was broken by design. It

Re: User stack: Worthwhile?

2006-03-02 Thread Patrick R. Michaud
's > > >use of save/restore opcodes in the code it generates -- indeed, > > >PGE no longer has any save or restore opcodes and thus doesn't > > >need the user stack at all. > > > > That's indeed an (indirect) answer to the 'do we really n

Re: User stack: Worthwhile?

2006-03-01 Thread Will Coleda
I don't use the user stack, myself, but one advantage that the current implementation has over "just using a PMC" is that you don't have to go out and get the global PMC you're storing things in. We already have at least one language implementation that used to

User stack: Worthwhile?

2006-03-01 Thread Bob Rogers
From: Chip Salzenberg <[EMAIL PROTECTED]> Date: Mon, 27 Feb 2006 09:46:42 -0800 On Fri, Feb 24, 2006 at 12:57:24AM +0100, Leopold Toetsch wrote: > That's indeed an (indirect) answer to the 'do we really need it' part ;) Is there any other client of the

User stack: Worthwhile?

2006-02-27 Thread Chip Salzenberg
, > >PGE no longer has any save or restore opcodes and thus doesn't > >need the user stack at all. > > That's indeed an (indirect) answer to the 'do we really need it' part ;) Is there any other client of the user stack that can't be easily replaced by som

user stack (was: [RFC] Dynamic binding design, part I: Interface)

2006-01-08 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Sun, 08 Jan 2006 17:21:25 +0100 Bob Rogers wrote: > Actually, I would have assumed that the user stack operated more or less > independently of the call chain, but I see it is kept in the context > struct

user stack (was: [RFC] Dynamic binding design, part I: Interface)

2006-01-08 Thread Leopold Toetsch
Bob Rogers wrote: Actually, I would have assumed that the user stack operated more or less independently of the call chain, but I see it is kept in the context structure and not the interpreter. Hmmm . . . I think so too. It's just in the context as it was there, w/o further r

[svn ci r9331] Deprecated 1 - remove stack call directives

2005-10-04 Thread Leopold Toetsch
Please note again: remove *stack call directives* * The 4 directives and 'call' are gone. If needed use please: .param => save .arg => restore .return => save .result => restore call => bsr * please note that *parrot calling conventions* still

[perl #37246] [TODO] IMCC - remove stack calling conventions

2005-09-23 Thread via RT
# New Ticket Created by Joshua Hoblitt # Please include the string: [perl #37246] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37246 > * get rid of support for stack calling conventions (.param and friends) in

Re: [perl #16935] [PATCH] more regex stack manipulation

2005-09-20 Thread Joshua Hoblitt
On Mon, Sep 19, 2005 at 09:57:24PM -0700, Sean O'Rourke via RT wrote: > "Joshua Hoblitt via RT" <[EMAIL PROTECTED]> writes: > > Since the rx_* ops are on the chopping block is there any objection to > > closing this bug? > > No objection from me. Actually, I'm not an active Parrot developer > now

Re: [perl #16935] [PATCH] more regex stack manipulation

2005-09-19 Thread Sean O'Rourke
"Joshua Hoblitt via RT" <[EMAIL PROTECTED]> writes: > Since the rx_* ops are on the chopping block is there any objection to > closing this bug? No objection from me. Actually, I'm not an active Parrot developer now, and don't see myself becoming one again in the near future, so you can probably

Re: Lexical scope pad stack

2005-04-02 Thread Leopold Toetsch
Cory Spencer <[EMAIL PROTECTED]> wrote: >> Is there currently any method of determining the depth of the lexical scope >> pad stack? None of the ops in var.pod seem to be able to provide that >> information at the moment... You can query the pad depth like in [1], but ..

Re: Lexical scope pad stack

2005-04-01 Thread Cory Spencer
Is there currently any method of determining the depth of the lexical scope pad stack? None of the ops in var.pod seem to be able to provide that information at the moment... Actually, I suppose I should clarify what I want to get at here, which is when lexical pads popped off the stack. Am

Lexical scope pad stack

2005-04-01 Thread Cory Spencer
Just a quick question: Is there currently any method of determining the depth of the lexical scope pad stack? None of the ops in var.pod seem to be able to provide that information at the moment... Cory

Re: [perl #32137] stack walking failing to detect pointer in local variable on x86 Linux

2004-10-26 Thread Steve Fink via RT
This doesn't address the deeper problem, but we could also simplify the whole function by just doing: static size_t find_common_mask(size_t val1, size_t val2) { size_t mask = ~0; size_t diff = val1 ^ val2; while (diff & mask) mask <<= 1; return mask; } Bit twiddli

Re: [perl #32137] stack walking failing to detect pointer in local variable on x86 Linux

2004-10-26 Thread Steve Fink
This doesn't address the deeper problem, but we could also simplify the whole function by just doing: static size_t find_common_mask(size_t val1, size_t val2) { size_t mask = ~0; size_t diff = val1 ^ val2; while (diff & mask) mask <<= 1; return mask; } Bit twiddli

Re: [perl #32137] stack walking failing to detect pointer in local variable on x86 Linux

2004-10-26 Thread Nicholas Clark via RT
remove that undefined behaviour and correctly return 0 for that case. This is enough to fix the DOD problem. I've not changed any of the code further, but I assume that the problem with small and big chunks is that their pointers differ so much that prefix will almost always be zero, and many m

Re: [perl #32137] stack walking failing to detect pointer in local variable on x86 Linux

2004-10-26 Thread Nicholas Clark
remove that undefined behaviour and correctly return 0 for that case. This is enough to fix the DOD problem. I've not changed any of the code further, but I assume that the problem with small and big chunks is that their pointers differ so much that prefix will almost always be zero, and many m

Re: [perl #32137] stack walking failing to detect pointer in local variable on x86 Linux

2004-10-26 Thread Leopold Toetsch via RT
Nicholas Clark wrote: > The for loop inside trace_mem_block steps right over it. This if fails: > > /* Do a quick approximate range check by bit-masking */ > if ((ptr & mask) == prefix || !prefix) { Argh, yes. I have pointed out quite a time ago that this mask check isn't ok. Sm

Re: [perl #32137] stack walking failing to detect pointer in local variable on x86 Linux

2004-10-26 Thread Leopold Toetsch
Nicholas Clark wrote: The for loop inside trace_mem_block steps right over it. This if fails: /* Do a quick approximate range check by bit-masking */ if ((ptr & mask) == prefix || !prefix) { Argh, yes. I have pointed out quite a time ago that this mask check isn't ok. Small and big

Re: [perl #32137] stack walking failing to detect pointer in local variable on x86 Linux

2004-10-26 Thread Nicholas Clark via RT
at dod.c:trace_mem_block, which should be called > by the stack walking code. The variables lo_var_ptr and hi_var_ptr > should be set and contain the auto variable on stack. #9 0x08173067 in string_make (interpreter=0x844f388, buffer=0x83a50b0, len=9, encoding_n

Re: [perl #32137] stack walking failing to detect pointer in local variable on x86 Linux

2004-10-26 Thread Nicholas Clark
at dod.c:trace_mem_block, which should be called > by the stack walking code. The variables lo_var_ptr and hi_var_ptr > should be set and contain the auto variable on stack. #9 0x08173067 in string_make (interpreter=0x844f388, buffer=0x83a50b0, len=9, encoding_n

Re: [perl #32137] stack walking failing to detect pointer in local variable on x86 Linux

2004-10-26 Thread Leopold Toetsch via RT
copy of the parrot source code which has had a few debugging printf()s and > static variables added, but the problem shows up with vanilla parrot source > code. Please set a breakpoint at dod.c:trace_mem_block, which should be called by the stack walking code. The variables lo_var_ptr and hi_v

Re: [perl #32137] stack walking failing to detect pointer in local variable on x86 Linux

2004-10-26 Thread Leopold Toetsch
copy of the parrot source code which has had a few debugging printf()s and > static variables added, but the problem shows up with vanilla parrot source > code. Please set a breakpoint at dod.c:trace_mem_block, which should be called by the stack walking code. The variables lo_var_ptr and hi_v

[perl #32137] stack walking failing to detect pointer in local variable on x86 Linux

2004-10-25 Thread via RT
quot;iso-8859-1", flags=0) at src/string.c:829 #3 0x08172dfa in string_from_cstring (interpreter=0x844f388, buffer=0x83a50b0, len=0) at src/string.c:658 #4 0x081b9d97 in Parrot_PMC_typenum (interp=0x844f388, class=0x83a50b0 "Perl5NULL") at src/extend.c:600 #5 0x080d20dd in S_new_SV

Re: Popping an empty stack

2004-08-18 Thread Dan Sugalski
At 5:53 PM -0700 8/17/04, Brent 'Dax' Royal-Gordon wrote: Michel Pelletier <[EMAIL PROTECTED]> wrote: if Perl or other languages want an undef returned, it would seem to make more sense that they assume to cost of catching the exception and turning it into an undef, than everyone else turning th

Re: Popping an empty stack

2004-08-17 Thread Brent 'Dax' Royal-Gordon
Michel Pelletier <[EMAIL PROTECTED]> wrote: > if Perl or other languages want an undef returned, it would seem to make > more sense that they assume to cost of catching the exception and > turning it into an undef, than everyone else turning the undef into an > exception. I believe that this is ex

Re: Popping an empty stack

2004-08-17 Thread Michel Pelletier
, then bounds checking code must go through the same overhead to check for the undef as it would need to initially just check the validity of the bounds in the first place. Compare: $I0 = .STACK if $I0 > 0 goto .$NoError new $P0, .Exception $P0["_message"] = "Sta

Re: Popping an empty stack

2004-08-17 Thread Larry Wall
On Tue, Aug 17, 2004 at 03:15:01AM -0600, Luke Palmer wrote: : Michel Pelletier writes: : > > We have to through an IndexError exception for Python. But that's not : > > done yet. : > : > Okay, I'll keep depth checking. I thought about attempting a patch, but : > Larry says return an undef contai

Re: Popping an empty stack

2004-08-17 Thread Luke Palmer
Michel Pelletier writes: > > We have to through an IndexError exception for Python. But that's not > > done yet. > > Okay, I'll keep depth checking. I thought about attempting a patch, but > Larry says return an undef containing an unthrown exception, Dan wonders > if it should be an empty undef,

Re: Popping an empty stack

2004-08-17 Thread Michel Pelletier
On Tue, 17 Aug 2004 08:54:32 +0200 Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Michel Pelletier <[EMAIL PROTECTED]> wrote: > > > $P0 = new .PerlArray > > pop $P1, $P0 > > > kills the process with a 'Array index out of bounds!'. Is there a way > > to get an exception I can catch out of this? >

Re: Popping an empty stack

2004-08-17 Thread Leopold Toetsch
Michel Pelletier <[EMAIL PROTECTED]> wrote: > $P0 = new .PerlArray > pop $P1, $P0 > kills the process with a 'Array index out of bounds!'. Is there a way > to get an exception I can catch out of this? We have to through an IndexError exception for Python. But that's not done yet. > -Michel le

Re: Popping an empty stack

2004-08-16 Thread Dan Sugalski
At 10:51 AM -0700 8/16/04, Larry Wall wrote: On Mon, Aug 16, 2004 at 05:09:45AM -0700, Michel Pelletier wrote: : : $P0 = new .PerlArray : pop $P1, $P0 : : kills the process with a 'Array index out of bounds!'. Is there a way : to get an exception I can catch out of this? Right now I check the : d

  1   2   3   4   >