Re: take: bug or feature?

2006-12-18 Thread Sean O'Rourke
Ovid [EMAIL PROTECTED] writes: Did something break? If so, I'll add a test. Otherwise, what's wrong with this code? I noticed this as well, and believe it's a bug -- pugs accepts the code if you remove all the newlines. Then again, I'm not sure this is the desired behavior: pugs

[patch] no strict for -e scripts

2006-10-16 Thread Sean O'Rourke
The enclosed patch removes strict 'vars' for -e scripts via the nonstandard $?STRICT variable. /s Index: src/Pugs/Eval.hs === --- src/Pugs/Eval.hs (revision 13160) +++ src/Pugs/Eval.hs (working copy) @@ -268,6 +268,10 @@ --

Re: [perl #801] [PATCH] PerlArray in scalar context

2005-09-19 Thread Sean O'Rourke
Joshua Hoblitt via RT [EMAIL PROTECTED] writes: Isn't this a semantics issue that needs to be resolved via p6l? It is however a design issue so I'm passing the buck to Chip to make a call about this. Parrot/perl6 was completely different then, so this bug should be marked irrelevant or

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: bootstrapping the grammar

2004-09-14 Thread Sean O'Rourke
At Tue, 14 Sep 2004 12:31:44 -0400, Uri Guttman [EMAIL PROTECTED] wrote: just a few musings on bootstrapping the grammar. someone mentioned the idea of using Perl6::Rules to help with this and i think that could be a great way to go for several reasons. FWIW, this was the idea motivating

Re: Synopsis 9 draft 1

2004-09-04 Thread Sean O'Rourke
At Fri, 3 Sep 2004 17:08:00 -0700, [EMAIL PROTECTED] (Larry Wall) wrote: On Fri, Sep 03, 2004 at 05:45:12PM -0600, John Williams wrote: : If not, does @ints[-1] mean the element with index -1 or the last element? The element with index -1. Arrays with explicit ranges don't use the minus

Re: Pipeline Performance

2004-09-01 Thread Sean O'Rourke
At Tue, 31 Aug 2004 13:23:04 -0400, [EMAIL PROTECTED] (Aaron Sherman) wrote: I would think you actually want to be able to define grep, map, et al. in terms of the mechanism for unraveling, and just let the optimizer collapse the entire pipeline down to a single map. Even for map and grep this

Re: Pipeline Performance

2004-08-31 Thread Sean O'Rourke
At Tue, 31 Aug 2004 13:23:04 -0400, [EMAIL PROTECTED] (Aaron Sherman) wrote: I would think you actually want to be able to define grep, map, et al. in terms of the mechanism for unraveling, and just let the optimizer collapse the entire pipeline down to a single map. Even for map and grep this

Re: Numeric semantics for base pmcs

2004-08-24 Thread Sean O'Rourke
At Tue, 24 Aug 2004 13:33:45 -0400, Dan Sugalski wrote: 6) Division of two ints produces a bignum Where bignum means both bigger than 32-bit integer and rational number? So 4 / 2 == Bignum(2/1) which doesn't get automatically downgraded to a normal int. Ok. 7) Strings are treated as

Re: Numeric semantics for base pmcs

2004-08-24 Thread Sean O'Rourke
At Tue, 24 Aug 2004 15:19:52 -0400, Dan Sugalski wrote: At 11:47 AM -0700 8/24/04, Sean O'Rourke wrote: At Tue, 24 Aug 2004 13:33:45 -0400, Dan Sugalski wrote: 7) Strings are treated as floats for math operations I think we can do better than this by first converting a string

Re: Progressively Overhauling Documentation

2004-08-23 Thread Sean O'Rourke
At Mon, 23 Aug 2004 19:46:34 +0200, [EMAIL PROTECTED] (Juerd) wrote: I also think POD should be overhauled completely. I've been thinking about proposing something like: sub foo ( Foo::Bar$bar, Quux::Xyzzy $xyzzy, +$verbose, +$foo ) description

Re: Instantiation

2004-08-23 Thread Sean O'Rourke
At Mon, 23 Aug 2004 15:51:00 -0400, [EMAIL PROTECTED] (Aaron Sherman) wrote: On Mon, 2004-08-23 at 15:19, Paul Seamons wrote: So, I was wondering about a synonym, like: uses Some::Module::That::Defines::A::Class $foo; Well if the long name is the problem: use

one shootout result

2004-06-18 Thread Sean O'Rourke
fib_native_nopcc.pasm Description: Binary data fib_native.imc Description: Binary data fib_pmc.imc Description: Binary data

Re: one shootout result

2004-06-18 Thread Sean O'Rourke
fib_native.imc Description: Binary data

Re: simple grammar example

2004-06-09 Thread Sean O'Rourke
[EMAIL PROTECTED] (Aldo Calpini) writes: I'm preparing a talk about Perl6 for the Italian Perl Workshop, and I would like to have a slide comparing a BNF (yacc/bison) grammar to a Perl6 one, to show how powerful in parsing/lexing Perl6 regexen are. ... am I missing something obvious here?

Re: simple grammar example

2004-06-09 Thread Sean O'Rourke
[EMAIL PROTECTED] (Rafael Garcia-Suarez) writes: Sean O'Rourke wrote: * To really show where P6 rocks, you need to show dynamic features. A simple example might be using a language with keywords kept in variables, allowing you change between e.g. for, while, if, pour, tandis-que, si

Re: backticks (or slash, maybe)

2004-04-19 Thread Sean O'Rourke
[EMAIL PROTECTED] (Juerd) writes: Angel Faus skribis 2004-04-19 22:43 (+0200): If we really need a ultra-huffman encoding for hash subscriptors, I have always dreamt of being able to do: %hash/key $hashref/foo/bar/baz/quux ... I'd hate to give up dividing slash. It's one of the few

Re: backticks

2004-04-16 Thread Sean O'Rourke
[EMAIL PROTECTED] (Juerd) writes: I think it has to go because `pwd`, `hostname`, `wget -O - $url` should not be easier than the purer Perl equivalents and because ``'s interpolation does more harm than good. I have to disagree with you here. The Perl way is not always the Perl way -- the

Synopsis 3: quick junction question

2004-03-18 Thread Sean O'Rourke
S3 says: 1|2 + 34; # (4|5) (5|6) but shouldn't that equal (1 + (34)) | (2 + (34)) = (45) | (56) = (4|6) 5 # ??? For one thing, OR's of AND's (DNF) is just nicer than AND's of OR's (CNF). For another, I read that as

Re: Some PIR How do I? questions

2003-12-01 Thread Sean O'Rourke
At 5:38 PM + 11/27/03, Pete Lomax wrote: At 12:02 PM 11/27/2003 +, Pete Lomax wrote: Perl6 already does interpolation without special support from IMCC. I'll rephrase. Is there anything knocking about which would help with eg: printf (pFile, Amount %12.3f [%-10.10s]\n,balance,name); Also,

Re: Control flow variables

2003-11-19 Thread Sean O'Rourke
[EMAIL PROTECTED] (Austin Hastings) writes: What does Cscatter do? That's the operator that's used to assign values to C$^x and friends in closures. In all its glory, you give it a set of values, and it assigns them to a block's undefined variables, quieting those annoying warnings: @x =

Re: [perl #24403] [PATCH] Force Perl6's make test to use perl6 rather than prd-perl6

2003-11-04 Thread Sean O'Rourke
Thanks. 'bout time, I suppose, since even _I_ have stopped using prd-perl6.pl... /s [EMAIL PROTECTED] (Joseph F . Ryan) writes: # New Ticket Created by Joseph F. Ryan # Please include the string: [perl #24403] # in the subject line of all future correspondence about this issue. # URL:

Re: [perl #24392] [PATCH] P6C xor really does return a value

2003-11-03 Thread Sean O'Rourke
applied thanks. /s

Re: [perl #24391] [PATCH] P6C closures use 'newsub' instead of assigning integer address

2003-11-03 Thread Sean O'Rourke
thanks, applied. /s

Re: P5 B backend for languages/perl6 - quasi-announcement

2003-10-30 Thread Sean O'Rourke
[EMAIL PROTECTED] (Scott Walters) writes: I have work-related reason to add a B backend for Perl 5 to the perl6 compiler. I'm looking at creating an assembler for Perl 5's B bytecode along the lines of IMCC, and creating patches against languages/perl6/IMCC.pm and languages/perl6/IMCC/* to

Re: Pondering argument passing

2003-09-24 Thread Sean O'Rourke
Leopold Toetsch [EMAIL PROTECTED] writes: Luke Palmer [EMAIL PROTECTED] wrote: Okay, considering that it's hard to pack registers into an array, and that it's easy to unpack an array into registers (in the context of signatures), why don't we make the unprototyped calling conventions just to

Re: Pondering argument passing

2003-09-16 Thread Sean O'Rourke
Leopold Toetsch [EMAIL PROTECTED] writes: This sounds like the beginning of a whole set of things like Warning #238: suboptimal implementation of xxx. Are you sure you know what you are doing? If the user turns on optimization and the compiler finds such code, yes, why not. SBCL, a fast and

Re: cvs commit: parrot/languages/imcc/t/syn pcc.t

2003-09-16 Thread Sean O'Rourke
Leopold Toetsch [EMAIL PROTECTED] writes: Gordon Henriksen [EMAIL PROTECTED] wrote: | A C D E G I| | N S T V| WTF ... Hangman -- the goal is to guess the letters of a

Re: Problems building perl6 (perl version dependency?)

2003-09-15 Thread Sean O'Rourke
Andy Dougherty [EMAIL PROTECTED] writes: So the problem is actually a dependency on a module not shipped with perl5.00503. This problem's been around a while -- I know I've reported it before. Is it time to give up on 5.00503? I will retest with 5.8.x, but the compilation takes a *long*

Re: mission haiku

2003-08-28 Thread Sean O'Rourke
Nicholas Clark [EMAIL PROTECTED] writes: Perl internals slow, nigh on unmaintainable. So we write parrot. Parrot: not just Perl but punctuated prowess perfected -- Befunge. /s

Re: PerlHash.get_pmc_keyed of non existing key

2003-08-23 Thread Sean O'Rourke
Luke Palmer [EMAIL PROTECTED] writes: Gordon Henriksen writes: my $ref = [EMAIL PROTECTED]; $$ref = value; print '@ary[0] : ', @ary[0], \n; # - @ary[0] : value That has to do with autovivification semantics. Particularly, do things autovivify when you take a nonconstant

Re: [CVS ci] PackFile-15: print warning location

2003-08-22 Thread Sean O'Rourke
Benjamin Goldberg [EMAIL PROTECTED] writes: I like the ideas of a range of characters, and of variable amount of information. So, how about multiple setline variants? setline Ix # all code from here to the next set{line,file} op is line x setline Ix, Iy # set line,col number from here

Re: Registers vs. Stack

2003-08-21 Thread Sean O'Rourke
Tom Locke [EMAIL PROTECTED] writes: p.s. (and at the risk of being controversial :) Why did Miguel de Icaza say Parrot was based on religion? Was it realted to this issue? Why is he wrong? IIRC it is -- his take is that stack VM code provides useful information about variable lifetimes, which

Re: hash access

2003-08-20 Thread Sean O'Rourke
Leopold Toetsch [EMAIL PROTECTED] writes: We have keyed_int shortcuts to get/set items on array like aggregates. Is there a reason, that we not have keyed_str to access hash elements by STRING directly. I'm not so sure this would be worth it; since hash lookups are much more expensive than

Re: languages using parrot

2003-08-19 Thread Sean O'Rourke
Leopold Toetsch [EMAIL PROTECTED] writes: What about one subdir per language under languages containing at least a README with a pointer to the author(s) webpage. How about just a single languages/OTHER or some such (maybe in doc/ instead) with this information? Adding extra directories may

Re: there's no undef!

2003-08-18 Thread Sean O'Rourke
Benjamin Goldberg [EMAIL PROTECTED] writes: There's no way, in this program, for $x to be out of scope while $y is in scope. But we're in Perl6(66)-land, where delete caller.MY{'$x'} and delete %OUTER::x (sp?) can wreak havoc on your pad from all sorts of strange places. It ain't moral, but it

Re: keyed vtables

2003-08-17 Thread Sean O'Rourke
Leopold Toetsch [EMAIL PROTECTED] writes: Dan Sugalski [EMAIL PROTECTED] wrote: And semantic differences--don't forget those. A keyed add vtable doesn't help to provide more semantics. The set vs assign thread applies here too. On the contrary: to provide all semantics you would need

Re: [perl #23346] [PATCH] docs/running.pod: command line arguments

2003-08-17 Thread Sean O'Rourke
Kenneth A Graves (via RT) [EMAIL PROTECTED] writes: Should the word argv be explicitly mentioned, or is command line arguments clear enough? Thanks, applied (w/ mention of argv). /s

Re: [PATCH] imcc vim syntax file

2003-08-17 Thread Sean O'Rourke
Luke Palmer [EMAIL PROTECTED] writes: FWIW, here's my personal imcc syntax highlighting file for vim. I've found it very useful in reading imc code (but then, I'm very attached to my syntax highlighting). Auto-generated editor configuration? Cool... I'm still not sure how to add new files

Re: getprop and find_lex?

2003-08-16 Thread Sean O'Rourke
Michal Wallace [EMAIL PROTECTED] writes: I expected getprop to behave like find_lex and throw an exception if the property doesn't exist, but it doesn't: Are you sure that properties are what you want to use here, rather than attributes (via get_pmc_keyed() or similar)? IIRC parrot's

Re: pirate 0.01 ALPHA!

2003-08-16 Thread Sean O'Rourke
Michal Wallace [EMAIL PROTECTED] writes: Tadaa! /me blinks at the list comprehensions. Cool stuff. test_microthreads failed for some reason I still need to look into, but there's a lot of cool stuff working already. Time for Dan to begin thinking about which direction the pie will fly. /s

Re: Calling parrot from C?

2003-08-15 Thread Sean O'Rourke
Luke Palmer [EMAIL PROTECTED] writes: How does one call a parrot Sub from C and get the return value(s)? I'd vote for stuffing args into the interpreter, calling the sub's invoke() method, then digging through the registers to pull out the return values (see e.g. Parrot_pop_argv in

Re: why new_pad *INT*?

2003-08-14 Thread Sean O'Rourke
Michal Wallace [EMAIL PROTECTED] writes: Okay, I definitely need some help understanding this. Okay, I definitely did a suboptimal job trying to clarify... Here's some python code that defines a closure: def make_adder(base): def adder(x):

Re: pirate status / need help with instances

2003-08-14 Thread Sean O'Rourke
K Stol [EMAIL PROTECTED] writes: invoke is defined in core.ops, and the return value of the PMC implementation should be an address, because this result is used in the GOTO macro. So, only an address can be returned. Sorry, I mean return in the parrot sense, i.e. place on top of the stack, or

Re: Approaching m4

2003-08-14 Thread Sean O'Rourke
Bernhard Schmalhofer [EMAIL PROTECTED] writes: I have started an implementation of m4 in PIR. The implications are staggering... Sure, plenty of compilers can bootstrap themselves, but how many can generate their own configure scripts via autoconf? With p4rrot, we may live to see this dream.

Re: why new_pad *INT*?

2003-08-14 Thread Sean O'Rourke
Michal Wallace [EMAIL PROTECTED] writes: 1. Should there be a new_pad that takes no arguments to do this, so we don't have to keep count manually? 2. When would you NOT want to use new_pad (current_depth+1) ? Remember, the pad depth reflects lexical scope nesting, not

Re: pirate status / need help with instances

2003-08-14 Thread Sean O'Rourke
K Stol [EMAIL PROTECTED] writes: I may be wrong, but where should the class be stored? The newclass op has an out-parameter where the newly created class is stored. Invoke doesn't have that. (right?) Presumably it would just return the new object like an ordinary function call. /s

Re: pirate status / need help with instances

2003-08-11 Thread Sean O'Rourke
Michal Wallace [EMAIL PROTECTED] writes: Py-pirate can now handle: Cool... * make parrotclass handle invoke this strikes me as the most efficient, but I'm not really confident with C so I'm hesitant to try it This seems to me like the way to go, except you might subclass

Re: parrot, win32, stand-alone distribution, separate Parrot maillist

2003-08-04 Thread Sean O'Rourke
Jonathan Worthington [EMAIL PROTECTED] writes: work something out. :-) However, Brent said If you mean precompiled binaries, not yet. Parrot is still under development, so we aren't shipping binaries., This doesn't make sense to me. People who don't like hacking C can still use a

Re: [perl #23203] [PATCH] move languages/scheme to continuation passing style.

2003-08-02 Thread Sean O'Rourke
Jürgen Bömmels (via RT) [EMAIL PROTECTED] writes: # New Ticket Created by Jürgen Bömmels # Please include the string: [perl #23203] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt2/Ticket/Display.html?id=23203 Hello, this patch lies

Re: PMC methods?

2003-07-23 Thread Sean O'Rourke
On 23 Jul 2003, Luke Palmer wrote: Instead of having a bunch of specialized ops made for constructing/working on specific pmcs, have, say, four general-purpose ops whose meaning could be given by each pmc that uses them. So, instead of, for instance, newsub, we'd make a new .Sub pmc and call

Re: Protocols

2003-07-19 Thread Sean O'Rourke
On 19 Jul 2003, Luke Palmer wrote: [1] It would be totally cool to use a Haskell- or ML-style type inference system, but those things just don't work in procedural languages. Could you clarify what you mean by don't work here? ML has both assignment and type inference, so it seems like it's

Re: Event handling (was Re: [CVS ci] exceptions-6: signals, catch a SIGFPE (generic platform)

2003-07-17 Thread Sean O'Rourke
On Thu, 17 Jul 2003, Leopold Toetsch wrote: PC = ((op_func_t*) (*PC)) (PC, INTERP); // prederef functions To be able to switch function tables, this then should become: PC = ((op_func_t*) (func_table + *PC)) (PC, INTERP); Thus predereferncing the function pointer would place an offset

Re: Event handling (was Re: [CVS ci] exceptions-6: signals, catch a SIGFPE (generic platform)

2003-07-17 Thread Sean O'Rourke
On Thu, 17 Jul 2003, Leopold Toetsch wrote: Replacing the next instruction with a branch to the signal handler (like adding a breakpoint) out of the question? I don't know, how to get the address of the next instruction i.e. the PC above. Going this way would either mean: - fill the

Re: [CVS ci] hash iter: buggy initial try

2003-07-05 Thread Sean O'Rourke
On Sat, 5 Jul 2003, Leopold Toetsch wrote: This is a first attempt to iterate over hashes. The hash is scanned linearly, until the given integer index is found. Is there a better way to locate the next entry, either by an integer idx or by a key or some other means? It's constant time if

Re: [perl #22765] Unary '+' is not symmetric to unary '-' in languages/perl6

2003-06-24 Thread Sean O'Rourke
Looks good, except that this needs to make sure an int is being returned, e.g. +42- 42 +forty-two - 0 The lazy man in me would just shove it through an int reg, but that loses precision if we go to bignums. Though for the moment I can't think of a better way. /s

Re: This week's summary

2003-06-24 Thread Sean O'Rourke
On Tue, 24 Jun 2003, Leopold Toetsch wrote: Piers Cawley [EMAIL PROTECTED] wrote: He's worried that the P6C tests break, ... albeit this is still an issue. Nobody answered, if we need another Sub class implementing the old invoke/ret scheme ... I'd say no. P6C is now compiling to

Re: This week's summary

2003-06-09 Thread Sean O'Rourke
On Mon, 9 Jun 2003, Adam Turoff wrote: - roll-your-own inheritance mechanisms (see NEXT.pm) On a related note, you might also want to take a look at CLOS (the Common Lisp Object System) where it talks about method selection. They've got a pretty clear and general model that describes every

Re: Register access

2003-05-31 Thread Sean O'Rourke
On 30 May 2003, Bryan C. Warnock wrote: Ha ha, just kidding, of course. I'm all for it, but given my record today, that might be an imminent sign of its rejection. Or, given your historical record, you may have just killed the thread ;). /s

Re: [perl #22353] JIT!

2003-05-29 Thread Sean O'Rourke
On Wed, 28 May 2003, Luke Palmer wrote: I get segfaults with both imcc -Oj and parrot -j (with assemble.pl) on mandel.pasm and a bunch of others. I've noticed a number of these as well (linuxppc, gcc3.3), but then again I've been tweaking my copy of the JIT. I get these failures: Failed Test

Re: [perl #21668] APL doesn't use sigils

2003-03-25 Thread Sean O'Rourke
On Mon, 24 Mar 2003, Benjamin Goldberg wrote: And what happens if a programmer wants to have two different variables, of two different types, with the same name, such as @data and %data? Without sigils, it cannot be done. Actually, if you squint, other languages are far ahead of Perl in this

Re: Rules and hypotheticals: continuations versus callbacks

2003-03-19 Thread Sean O'Rourke
On Tue, 18 Mar 2003, Matthijs van Duin wrote: and maybe also: What is the current plan? although I got the impression earlier that there isn't any yet for invoking subrules :-) See line 1014, languages/perl6/P6C/rule.pm. The hack I used was to call rules like ordinary subs, and have them

Re: Rules and hypotheticals: continuations versus callbacks

2003-03-19 Thread Sean O'Rourke
On Wed, 19 Mar 2003, Jonathan Scott Duff wrote: Are you implying that $fred = rx/fred/; $string ~~ m:w/ $fred { $fred = rx/barney/; } rubble / won't match barney rubble? Or, worse, that $fred = rx/fred/; $string ~~ m:w/ { $fred = rx/barney/; } $fred rubble /

Re: This week's Perl 6 Summary

2003-02-26 Thread Sean O'Rourke
than parrot -j' so he's been experimenting with adding smarts to IMCC, making it add hardware register allocation hints to its emitted bytecode. Sean O'Rourke liked the basic idea, but reckoned that the information generated by IMCC should really be platform-independent, suggesting

Re: Shortcut: ?=

2003-02-03 Thread Sean O'Rourke
On Mon, 3 Feb 2003, Dave Mitchell wrote: $var ??= 'succeeded' :: 'failed'; Aha! $var 'succeeded' || 'failed'; Thank you, precedence. /s

Re: Shortcut: ?=

2003-02-03 Thread Sean O'Rourke
Argh. Please disregard that last message as the ramblings of a pre-caffeinated mind. /s On Mon, 3 Feb 2003, Sean O'Rourke wrote: On Mon, 3 Feb 2003, Dave Mitchell wrote: $var ??= 'succeeded' :: 'failed'; Aha! $var 'succeeded' || 'failed'; Thank you, precedence. /s

Re: Bytecode metadata

2003-01-26 Thread Sean O'Rourke
On Sat, 25 Jan 2003, Leopold Toetsch wrote: Is one PBC file a small thing? Or in other words, should we have a low limit where we start again to malloc and copy PBC files? Configure option? Commandline switch? Maybe a config option? The app I'm thinking of was pathological, in that it mapped

Re: Bytecode metadata

2003-01-25 Thread Sean O'Rourke
On Sat, 25 Jan 2003, Leopold Toetsch wrote: Dan Sugalski wrote: At 5:32 PM + 1/24/03, Dave Mitchell wrote: I just wrote a quick C program that successfully mmap-ed in all 1639 files in my Linux box's /usr/share/man/man1 directory. Linux is not the universe, though. How true.

Re: Bytecode metadata

2003-01-25 Thread Sean O'Rourke
On Sat, 25 Jan 2003, Dave Mitchell wrote: On Sat, Jan 25, 2003 at 06:18:47AM -0800, Sean O'Rourke wrote: On Sat, 25 Jan 2003, Leopold Toetsch wrote: Dan Sugalski wrote: At 5:32 PM + 1/24/03, Dave Mitchell wrote: I just wrote a quick C program that successfully mmap-ed

Re: Arc: An Unfinished Dialect of Lisp

2003-01-22 Thread Sean O'Rourke
On Wed, 22 Jan 2003, Austin Hastings wrote: I'm done with 'P'. That's it. Putative planners of programming paradigms must proffer some prefix preferable to the pathetic palimpsest that is 'P'! As with operators, so with programming languages -- Unicode comes not a moment too soon. /s

Re: L2R/R2L syntax

2003-01-19 Thread Sean O'Rourke
On Sat, 18 Jan 2003, Michael Lazzaro wrote: So 'if' and friends are just (native) subroutines with prototypes like: sub if (bool $c, Code $if_block) {...}; IIRC it's not that pretty, unfortunately, if you want to support this: if $test1 { # blah } elsunless $test2 {

Re: The perl 6 parser

2003-01-08 Thread Sean O'Rourke
On Wed, 8 Jan 2003, Dan Sugalski wrote: Could one of the folks working on the perl 6 parser give us a status update as to where it stands? languages/perl6/README mostly reflects the status with respect to the language definition of about 4-5 months ago. Differences include: - IIRC

Re: [perl #19183] languages/perl6/t/compiler.t -- multiple ways to spell Inf

2002-12-16 Thread Sean O'Rourke
On Mon, 16 Dec 2002, Nicholas Clark wrote: Also, is the first of these a bug? $ ./perl6 -e 'print 3/undef; print \n' Can't call method tree on an undefined value at ./perl6 line 342. Yes. The Cundef function isn't fully, well, defined. /s

Re: Literal tests [was: Help with setting up Perl6]

2002-12-13 Thread Sean O'Rourke
On Thu, 12 Dec 2002, Jared Rhine wrote: On to some tests, although I'm curious to see how tests of literals turn out. Probably a lot of comparisons between different representations of the same thing. Warning: most of the tests won't work now because the languages/perl6 is woefully

Re: Help with setting up Perl6

2002-12-12 Thread Sean O'Rourke
On Wed, 11 Dec 2002, Jared Rhine wrote: In languages/perl6/t/compiler/1_1.err, I get: Can't find loader Parrot_DynOp_core_0_0_7: ../imcc/imcc: undefined symbol: Parrot_DynOp_core_0_0_7 which is suspicious for the 0_0_7 when I actually checked out 0_0_8. You're right on the mark here.

[perl #19090] [PATCH] make parrot_v[sfn]*printf behave itself

2002-12-12 Thread Sean O'Rourke
# New Ticket Created by Sean O'Rourke # Please include the string: [perl #19090] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt2/Ticket/Display.html?id=19090 The following defines a macro VA_TO_VAPTR(x) to convert va_list arguments

Re: purge: opposite of grep

2002-12-06 Thread Sean O'Rourke
On 5 Dec 2002, Rafael Garcia-Suarez wrote: John Williams wrote in perl.perl6.language : If you want good'ol Unix flavor, call it vrep. Compare the ed(1) / ex(1) / vi(1) commands (where 're' stands for regular expression, of course) : :g/re/p :v/re/p Or, to follow the spirit rather

Re: purge: opposite of grep

2002-12-06 Thread Sean O'Rourke
On Thu, 5 Dec 2002, Sean O'Rourke wrote: On 5 Dec 2002, Rafael Garcia-Suarez wrote: John Williams wrote in perl.perl6.language : If you want good'ol Unix flavor, call it vrep. Compare the ed(1) / ex(1) / vi(1) commands (where 're' stands for regular expression, of course) : :g/re/p

Re: Literal Values

2002-11-12 Thread Sean O'Rourke
On Tue, 12 Nov 2002, Michael Lazzaro wrote: What should be the syntax for closing a section? I'm partial to the LaTeX approach, where you specify the level and the computer figures out the rest. It seems like either level or closing-tag is sufficient by itself. Levels put all the information

Re: HOWTO: Writing Perl6 Tests (was: Project Start: Section 1)

2002-11-11 Thread Sean O'Rourke
On Mon, 11 Nov 2002, David Wheeler wrote: I think it'd be useful for folks to get a pointer to some existing Perl 6 tests that they can model off of. Do any exist yet? languages/perl6/t/*/*.t is what we've got, though they're intended to exercise the prototype compiler, not the real language

Re: HOWTO: Writing Perl6 Tests (was: Project Start: Section 1)

2002-11-11 Thread Sean O'Rourke
On Mon, 11 Nov 2002, Dave Whipp wrote: This is fine as a test, but not as documentation. Furthermore, it is depending on the print statement for its comparison (not necessarily bad; but I find that golden-output style tests tend to become difficult to maintain -- specific assertions tend to

Re: RFC: static line number information

2002-10-07 Thread Sean O'Rourke
On Mon, 7 Oct 2002, Nicholas Clark wrote: On Mon, Oct 07, 2002 at 08:27:29PM +0200, Juergen Boemmels wrote: But there must also be a way the higher level languages can assign line numbers. Maybe C-like #line 1 foo.c directives are a solution. or create dedicated assembler macros

Re: Return of RE match

2002-10-07 Thread Sean O'Rourke
On Mon, 7 Oct 2002, Dakkar wrote: print Yes r\n if 0 =~ /0/; print Yes s\n if 0 =~ 0; prints: Yes s It appears that the RE match returns a false value. If I match: print Yes r\n if 1 =~ /1/; it does print Yes r. I also tried: Probably a bug. Is this CVS parrot? If you want

Re: Parrot file list

2002-10-04 Thread Sean O'Rourke
On Fri, 4 Oct 2002, mark sparshatt wrote: Basically I'd like to know if there's any sort of listing that gives a general description of what each file is used for. If there isn't, I've started making some notes of my own and if anyone else thinks this would be useful then I can type them up

Re: Parrot file list

2002-10-04 Thread Sean O'Rourke
On Fri, 4 Oct 2002, Tanton Gibbs wrote: I agree with this; however, I also think it would be nice to have it all in one place. It's a nuisance to have to open every file just to see what it is. By the time I figure out what the 60th file does, I've forgotten what the first does. It would

Re: Self documenting comments for parrot

2002-10-02 Thread Sean O'Rourke
On Wed, 2 Oct 2002, Erik Lechak wrote: I was wondering if you could take a look at it and tell me if it has any merrit, or if I should not waste my time on it and get back to the getting started guide. Have you had a chance to look at doxygen? It doesn't support Perl, but Perl is on the todo

Re: Self documenting comments for parrot

2002-10-02 Thread Sean O'Rourke
On Wed, 2 Oct 2002, Erik Lechak wrote: I'm looking at it right now. Thanks for the link. This is the first time I have heard of doxygen. I meant the pointer at least partly as a reminder that this is one wheel we shouldn't have to reinvent. I think there are plenty of solutions out there to

Re: Split Buffer

2002-09-27 Thread Sean O'Rourke
On Thu, 26 Sep 2002, Luke Palmer wrote: Before people get Itoo far on the regex engine, is there any plan to implement split buffers; i.e. storing one string in multiple places and tying them together? Has this already been done? I don't understand how this would affect the regex engine --

Re: for loop and streams

2002-09-26 Thread Sean O'Rourke
On Thu, 26 Sep 2002 [EMAIL PROTECTED] wrote: Hi folks! I did some tests with the new for loop and don't understand some of the results. Perhaps this is just due to some warts in the implementation at the moment. Yes. I personally think it makes more sense, in a language that allows

Re: perl6 on HP-UX 11.00

2002-09-26 Thread Sean O'Rourke
On Thu, 26 Sep 2002, Andy Dougherty wrote: On Thu, 26 Sep 2002, Dan Sugalski wrote: At 5:05 PM +0200 9/26/02, H.Merijn Brand wrote: perl t/harness t/builtins/array.Can't bless non-reference value at ../../assemble.pl line 163. Hrm. What version of perl are you running?

Re: pre-PATCH: functions in languages/scheme

2002-09-26 Thread Sean O'Rourke
On 26 Sep 2002, Juergen Boemmels wrote: These may be nice but not needed for scheme * get keyed with INTVAL (getting direct to the Hashes) * set keyed with INTVAL;STRING Both get(INTVAL;STRING) and set(INTVAL;STRING) are needed (or at least useful) for accessing hidden lexicals in outer

Re: for loop and streams

2002-09-26 Thread Sean O'Rourke
On Thu, 26 Sep 2002, Paul Johnson wrote: Is that sufficiently vague? Not vague enough, because the current implementation manages to miss the broad side of that semantic barn... Different operators doing different things sounds awful to me, because it makes it hard to predict what will happen,

Re: perl6 operator precedence table

2002-09-26 Thread Sean O'Rourke
Thanks for taking the time to write this out. On Thu, 26 Sep 2002, John Williams wrote: perl6 operator precedence leftterms and list operators (leftward) [] {} () quotes left. and unary . nonassoc++ -- leftis but This

Re: [perl #17549] [PATCH] direct accesss for intlist 10 times faster

2002-09-24 Thread Sean O'Rourke
On Tue, 24 Sep 2002, Leopold Toetsch wrote: Sean O'Rourke (via RT) wrote: What happens if you presize the PerlArray to its final size Then it is of course faster, but this is not a real world proposal IMHO, The real-world version would increase the array's allocation by some fixed

Re: [perl #17549] [PATCH] direct accesss for intlist 10 times faster

2002-09-24 Thread Sean O'Rourke
On Tue, 24 Sep 2002, Leopold Toetsch wrote: Sean O'Rourke wrote: If we expect these (especially shift) to be as frequent as push/pop, and we want fast indexing as well, then maybe something like the SGI STL implementation of a dequeue (dequeueue?) would be best: keep an array

Re: [perl #17537] [PATCH imcc 0.0.9.2 containing #17533

2002-09-24 Thread Sean O'Rourke
On Tue, 24 Sep 2002, Leopold Toetsch wrote: Andy Dougherty wrote: On Mon, 23 Sep 2002, Leopold Toetsch wrote: ./imcc examples/sample.imc This doesn't even compile on my computer. I'm away from parrot-source at the moment, but if sample.imc breaks, that sounds like a bug. /s

Re: pre-PATCH: functions in languages/scheme

2002-09-24 Thread Sean O'Rourke
On 24 Sep 2002, Juergen Boemmels wrote: I just got functions running in scheme. It uses a pre-version of Sean O'Rourkes scratchpad.pmc. (Sean, I had to reimplement some functions to get it compile, did I get them right?) Hopefully it will be easy to reconcile our different versions (and will

Re: [perl #17549] [PATCH] direct accesss for intlist 10 times faster

2002-09-23 Thread Sean O'Rourke
On Tue, 24 Sep 2002, Leopold Toetsch wrote: intlist_3.pbc is with 1) already 10 times faster then the same test with PerlArray (ok, that's not fair, .PerlArray has to new_pmc, which accounts for ~40% difference). What happens if you presize the PerlArray to its final size before the loop?

Re: fingerprinting PBC files

2002-09-21 Thread Sean O'Rourke
On Sat, 21 Sep 2002, Leopold Toetsch wrote: As PBC files might be built from different core.ops aka core_ops.c, it is necessary to add a fingerprint to PBC files, to validate, that the interpreter uses the very same ops, when running the PBC. - during make a fingerprint of core_ops.c is

Re: 16 Bit integer math

2002-09-20 Thread Sean O'Rourke
On Fri, 20 Sep 2002, Clinton A. Pierce wrote: I have a sudden need to do signed 16-bit integer math in PASM. Any suggestions on where to begin? Does shifting everything left by 16 bits (on 32-bit platforms) to operate on, then shifting it back to the right to use, work? /s

  1   2   3   >