object initialisers

2003-06-12 Thread Nicholas Clark
IIRC objects are in the future. However, I'm currently writing C++ and keep finding something annoying that I'd like to be able to do easily. I have objects with attributes, such as class Foo { ... std::size_t spare; std::size_t allocate; std::size_t min_readline; and then I have

Re: object initialisers

2003-06-12 Thread Rafael Garcia-Suarez
Nicholas Clark wrote: > > class Foo { > ... > std::size_t spare = 0 > std::size_t allocate = 4096 > std::size_t min_readline = 80 > > and have the compiler know that if I specify a member initialiser in my > my constructor, then that should be used, otherwise to default to using >

an idle question: returning from a nested call

2003-06-12 Thread David Storrs
So, as I sweat here in the salt mines of C++, longing for the cleansing joy that Perl(5 or 6, I'd even take 4) is, I find myself with the following problem: Frequently, I find myself writing stuff like this: void Ficp400::SaveRow(long p_row) { // if p_row is marked as deleted, return

Re: an idle question: returning from a nested call

2003-06-12 Thread Austin Hastings
--- David Storrs <[EMAIL PROTECTED]> wrote: > So, as I sweat here in the salt mines of C++, longing for the > cleansing joy that Perl(5 or 6, I'd even take 4) is, I find myself > with the following problem: > > Frequently, I find myself writing stuff like this: > > void Ficp400::SaveRow(long p_r

Re: an idle question: returning from a nested call

2003-06-12 Thread Austin Hastings
--- Austin Hastings <[EMAIL PROTECTED]> wrote: > > --- David Storrs <[EMAIL PROTECTED]> wrote: > > So, as I sweat here in the salt mines of C++, longing for the > > cleansing joy that Perl(5 or 6, I'd even take 4) is, I find myself > > with the following problem: > > > > Frequently, I find mysel

Re: an idle question: returning from a nested call

2003-06-12 Thread David Storrs
On Thu, Jun 12, 2003 at 03:12:32PM -0700, Austin Hastings wrote: > > sub Ficp400::SaveRow(Int $p_row) > { > return if IsDeleted($p_row); > } *laugh* Well, yes, there is always the obvious way. I had wanted something that would be reusable between multiple function, though (sorry, should have

Re: How do I write a language debugger?

2003-06-12 Thread Benjamin Goldberg
"Clinton A. Pierce" wrote: [snip] > DEBUGGER: > if one-stepping, DEBUG > # Loop over break list > if current statement is on global break list, DEBUG > # End loop > ret No comment on your *particular* problem, but might I suggest that you keep your b

Re: Context, continuations, and call speed

2003-06-12 Thread Melvin Smith
At 06:05 PM 6/12/2003 -0400, Dan Sugalski wrote: Second, I see that the registers themselves are in the context structure. I think this may be a good part of our speed problem with taking continuations. Now, continuations should *not* restore the registers, so this strikes me as an incorrect thi

Re: no update to archives in last couple weeks?

2003-06-12 Thread Mitchell N Charity
[...] In the mean time, you can follow along via the nntp server and the web-interface to it at http://nntp.x.perl.org/group/perl.perl6.language though the web interface isn't threaded. You can also read perl6-internals on google groups, which is threaded. There is a link to it on t

Re: [perl #22645] IMCC Nested .subs cause segfaults

2003-06-12 Thread Leopold Toetsch
Clinton A. Pierce <[EMAIL PROTECTED]> wrote: > .sub _main > .sub dummy > call inner1 > call inner2 You have to used global labels for subroutines, then all is fine. leo

Re: [perl #22633] [PATCH] convert parrot to continuation passing style

2003-06-12 Thread Leopold Toetsch
Jonathan Sillito <[EMAIL PROTECTED]> wrote: > Here is another suggestion (I think I mentioned this in another email) we > could support a few different types of continuations. The simplest > continuation could be just a saved return address (i.e. an opcode_t*). I'm fine with that, if its addition

help on java perl integration

2003-06-12 Thread Raghu
Hi , I am try to integrate a Perl application into Java. I am using Perl5.6.1 with jdk1.4 on solaris2.8. I am using JNI to access the perl api's to perform this. The C application runs fine, but the Java application core dumps at one particular function perl_parse(...). I have gone thru some of th

Re: Something to pass the time.

2003-06-12 Thread Leopold Toetsch
Clinton A. Pierce <[EMAIL PROTECTED]> wrote: > If you want something to play with, update the languages/BASIC/compiler > tree and run the chess program. Nice graphics. > ..\..\imcc\imcc.exe TARG_test.imc Please check out the latest imcc changes. Spilling performance is vastly improved now.

Re: help on java perl integration

2003-06-12 Thread Nicholas Clark
On Thu, Jun 12, 2003 at 02:41:12PM +0530, Raghu wrote: > Hi , > I am try to integrate a Perl application into Java. I am using Perl5.6.1 > > with jdk1.4 on solaris2.8. > I am using JNI to access the perl api's to perform this. The C > application runs fine, but the Java application core dumps at o

Re: [perl #22645] IMCC Nested .subs cause segfaults

2003-06-12 Thread Nicholas Clark
On Thu, Jun 12, 2003 at 12:15:21AM +, Clinton A. Pierce wrote: > Causes IMCC to segfault. Asking IMCC to generate pasm produces reasonable > code: On Thu, Jun 12, 2003 at 09:35:18AM +0200, Leopold Toetsch wrote: > Clinton A. Pierce <[EMAIL PROTECTED]> wrote: > > .sub _main > > .su

Re: [perl #22645] IMCC Nested .subs cause segfaults

2003-06-12 Thread Leopold Toetsch
Nicholas Clark wrote: On Thu, Jun 12, 2003 at 09:35:18AM +0200, Leopold Toetsch wrote: You have to used global labels for subroutines, then all is fine. But being able to craft input that causes IMCC to segfault (actually any form of segfault) is bad on principle, isn't it? For sure. But this i

Re: [perl #22633] [PATCH] convert parrot to continuation passing style

2003-06-12 Thread Piers Cawley
Leopold Toetsch <[EMAIL PROTECTED]> writes: > Jonathan Sillito <[EMAIL PROTECTED]> wrote: > >> Here is another suggestion (I think I mentioned this in another email) we >> could support a few different types of continuations. The simplest >> continuation could be just a saved return address (i.e.

Context, continuations, and call speed

2003-06-12 Thread Dan Sugalski
Okay, at the moment I'm working on getting an implementation of classes and objects working. I'm also taking a look at calling speed, as I'd really like to not suck with our call times. :) First off, the core stuff looks good. I'd not really looked at it until now, but now that I have, well...

Re: Context, continuations, and call speed

2003-06-12 Thread Luke Palmer
> Okay, at the moment I'm working on getting an implementation of > classes and objects working. I'm also taking a look at calling speed, > as I'd really like to not suck with our call times. :) > > First off, the core stuff looks good. I'd not really looked at it > until now, but now that I ha

Re: Context, continuations, and call speed

2003-06-12 Thread Dan Sugalski
At 4:28 PM -0600 6/12/03, Luke Palmer wrote: > Okay, at the moment I'm working on getting an implementation of classes and objects working. I'm also taking a look at calling speed, as I'd really like to not suck with our call times. :) First off, the core stuff looks good. I'd not really looked

Re: Context, continuations, and call speed

2003-06-12 Thread Luke Palmer
> At 4:28 PM -0600 6/12/03, Luke Palmer wrote: > > > Okay, at the moment I'm working on getting an implementation of > >> classes and objects working. I'm also taking a look at calling speed, > >> as I'd really like to not suck with our call times. :) > >> > >> First off, the core stuff looks g

[perl #22665] Stack rotate doesn't respect COW flags

2003-06-12 Thread via RT
# New Ticket Created by Dan Sugalski # Please include the string: [perl #22665] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=22665 > The stack rotate code doesn't check to see if any of the frames are COW. Really ought t

Re: Context, continuations, and call speed

2003-06-12 Thread Dan Sugalski
At 5:01 PM -0600 6/12/03, Luke Palmer wrote: > At 4:28 PM -0600 6/12/03, Luke Palmer wrote: > > Okay, at the moment I'm working on getting an implementation of >> classes and objects working. I'm also taking a look at calling speed, >> as I'd really like to not suck with our call times. :)

Re: no update to archives in last couple weeks?

2003-06-12 Thread Dan Sugalski
At 9:44 AM -0700 6/11/03, Steven Grady wrote: I don't subscribe to perl6-internals, but I do read the archive regularly. Are people aware that the archive hasn't been updated since May 26? http://archive.develooper.com/[EMAIL PROTECTED]/ Of course, you perl6-internals members probably aren't

Re: Context, continuations, and call speed

2003-06-12 Thread Luke Palmer
> >Are the register stacks saved with the continuation? > > Yes, of course they are. Er, yeah, um.. Everybody, forget everything I just said %-) Luke