Re: release?

2015-12-29 Thread Andy_Bach
On Tue, Dec 29, 2015 at 01:57:57AM -0800, Darren Duncan wrote: >> On that note, are there going to be Perl 6 versions 6.x.y where {x,y} are > > integers? Will 6.0.0 be the first such one? -- Darren Duncan On Tue, Dec 29, 2015 Patrick Michaud wrote: > "Perl 6" is a language, not an implementation

Re: Proposed docs for C

2015-09-15 Thread Andy_Bach
[1 1 1 1] next [1 1 1 1 1 1] next [1 1 1 1 1 1 1 1] vs [1 2 3] next [1 2 3 3] next [1 2 3 3 3] I think the latter is clearer, though perhaps the problem is the original code is a bit overly-contrived (I'm thinking ;-). It shows better the variation after each call, maybe. my 2.00e-02 dolla

Re: threads?

2010-10-13 Thread Andy_Bach
I haven't enough smarts to see if this is at all what you're looking for but is used some of the same terms: http://dpj.cs.uiuc.edu/DPJ/Home.html?cid=nl_ddjupdate_2010-10-12_html Welcome to the home page for the Deterministic Parallel Java (DPJ) project at the University of Illinois at Urbana-C

Re: [perl #62478] C-style for loop does not give an error

2009-01-20 Thread Andy_Bach
> > prints 2 instead of giving an intelligent error message that one should use loop > > or better yet for 1..3 -> $i { } > Presumably "say $_" would also yield 2, since I gather the for is looping over ($i). $ perl6 -e ' for (my $i = 1; $i <= 3; $i++) { say $i; }' 2 $ perl6 -e ' for (my $i = 1

Re: [perl #61904] [BUG] r34778 - code takes forever

2009-01-02 Thread Andy_Bach
class Prime { has @!primes is rw; has Int $!number is rw = 1; method next() { my $not_prime = 1; while($not_prime && $!number++) { $not_prime = @!primes.grep({$!number % $^a == 0}); } Appears that last assignment changes $not_prime.WHAT from "Int" into "Array". a ---

Apoclypse 04 - update hint update

2008-12-29 Thread Andy_Bach
In A04 the sub section RFC 022: Control flow: Builtin switch statement There's the table: Table 1: Matching a switch value against a case value and the remark at the end: [Update: This is inaccurate in several ways; see the most recent table in S04.] as best I can tell, the actual table is in S0

Re: how to call Grammars correctly?

2008-12-18 Thread Andy_Bach
>> So, I try to use that way: >> >> grammar G { >> token TOP { ^ + $ }; >> token foo { ':' ? }; >> token bar { \w }; >> }; >> >> ":a:b:c" ~~ //; >> >> say $/; >> say $/; #Use of uninitialized value >> say $_ for $/; # Use of uninitialized value > > Try $/ Or even $/ (haven't tried it,

Re: Parrot doesn't build on OS X

2008-11-03 Thread Andy_Bach
Just a data point - fresh svn on a Macbook pro x86 failsr3205: c++ -o dan_ops_switch.bundle dan_ops_switch.o -L/usr/local/lib -L/usr/share/cvs/afbach/parrot/blib/lib -L/usr/share/cvs/afbach/parrot/blib/lib -undefined dynamic_lookup -bundle -L/usr/share/cvs/afbach/parrot/blib/lib -lparrot make

Re: make: *** [perl6] Segmentation fault

2008-07-17 Thread Andy_Bach
Seeing the same thing Linux 2.6.18-53.1.21.el5xen #1 SMP gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14) perl, v5.10.0 built for i686-linux however: ./parrot languages/perl6/perl6.pbc -e 'say "hello world" ' hello world $ languages/perl6/perl6 > say "hello" hello > [EMAIL PROTECTED] parrot]$ languag

Re: [perl #56304] AutoReply: smokej consumes all memory Revision: 28672 on linux

2008-07-07 Thread Andy_Bach
chromatic wrote: > That should have been: # TEST_PROG_ARGS="-j" prove -v t/stm/runtime.t Okay, I can get the box to hang/consume everything this way - adding a -D flag and various digits (as of Revision: 29128) avoids the hang: TEST_PROG_ARGS="-j -D7 " prove -v t/stm/runtime.t t/stm

Re: [perl #56304] AutoReply: smokej consumes all memory Revision: 28672 on linux

2008-07-05 Thread Andy_Bach
Better, in a sense: $ TEST_PROG_ARGS="-j" prove -v t/stm/runtime.t t/stm/runtime.. 1..5 ok 1 - choice (one thread) ok 2 # SKIP Intermittently failing everywhere ok 3 # SKIP Intermittently failing everywhere not ok 4 - queue adapted for the library # Failed test 'queue adapted for the librar

Re: [perl #56304] AutoReply: smokej consumes all memory Revision: 28672 on linux

2008-07-04 Thread Andy_Bach
Chromatic suggested > I don't know how to get the -j flag into prove though. # ENV_TEST_PROG_ARGS="-j" prove -v t/stm/runtime.t Not sure it's getting the -j in there on OSX leopard (not able to get to the box where them mem issue is) - on ver 28985 $ ENV_TEST_PROG_ARGS="-j" prove -v

Re: [perl #56266] rand gets "invoke() not implemented in class 'Float' " - Revision: 28671

2008-06-25 Thread Andy_Bach
Hi Thanks for the replies: : =item rand : : our Num method rand ( Num $x: ) : our Num term: : : Pseudo random number in range C<< 0 ..^ $x >>. That is, C<0> is : theoretically possible, while C<$x> is not. The C function : is 0-ary and always produces a number from C<0..^1>. Hmm, I'd've thou

Re: "All classes imply the existence of a role of the same name."

2008-05-02 Thread Andy_Bach
> What's the point of omnipotence if you can't swoop down from the rafters once in a while and save your hero from almost certain peril? To quote *Larry from "Time Bandits" - "er, something to do with free will." a --- Andy Bach Systems Mangler Internet: [EMAIL PROTECTED] Voic

Re: rand in Rakudo

2008-05-01 Thread Andy_Bach
Following up on this, I found it odd that '~~' didn't work in the rps.pl script (or "sleep()" ;-) if $you ~~ $my { say 'Draw.' } # don`t work ( as in: ./perl6 languages/perl6/t/02-test-pm/3-output.t Statement not terminated properly at line 26, near ":P5/output" current instr.: 'parrot;PGE::

Re: [perl #53356] Misc. build warnings

2008-04-28 Thread Andy_Bach
chromatic wrote > What if the PMC passed in isn't a Key PMC, but has an integer value? Ah (sound of scales falling from my eyes) - the reason for the test/switch: if (VTABLE_isa(interp, key, CONST_STRING(interp, "Key"))) { switch (PObj_get_FLAGS(key) & KEY_type_FLAGS) { ... is to handl

Re: [perl #53356] Misc. build warnings

2008-04-28 Thread Andy_Bach
On 26 April 2008 chromatic wrote: > src/key.c:306: warning: switch missing default case Fixed in 27195. Just a query, wouldn't: Index: src/key.c === --- src/key.c (revision 27216) +++ src/key.c (working copy) @@ -329,12 +329,14

Re: [perl #52894] AutoReply: config detection perldoc failing due to write permissions

2008-04-15 Thread Andy_Bach
Okay a patch using File::Temp Index: config/auto/perldoc.pm === --- config/auto/perldoc.pm (revision 26971) +++ config/auto/perldoc.pm (working copy) @@ -20,6 +20,7 @@ use strict; use warnings; +use File::Temp; use base qw(Parrot:

Re: [perl #43305] [TODO] config/auto/perldoc.pm: Write unit tests

2008-04-15 Thread Andy_Bach
Sorry, I know this is closed but it seemed to be related to what I'm seeing. Due to my (perhaps unorthodox) permission settings, I'm getting "No Perldoc found" due to: config/auto/perldoc.pm trying: sub runstep { my ( $self, $conf ) = @_; my $cmd = $conf->data->get_p5('scriptdirexp')

Re: [perl #52710] key.c and missing default in key_integer switch

2008-04-10 Thread Andy_Bach
Yeah, it wasn't really a patch as it doesn't work. It was more of a question 'does anybody know if it's a missing "Key__FLAG" or something else' that's bringing in the unexpected (I guess) switch case value. The code was for illustrative purposes, just tracking what I've found so far. Tha

key.c and missing default in key_integer switch

2008-04-10 Thread Andy_Bach
Hey, I *thought* I'd try and clean up an easy one, so I took src/key.c src/key.c: In function `key_integer': src/key.c:368: warning: switch missing default case After a little poking I tracked the rest of the Key__FLAG s down to include/parrot/key.h (and pobj.h) [1] and so I rearrainged the

Re: [perl #52130] [BUG] postconfigure tests hanging on feather.

2008-03-26 Thread Andy_Bach
> > I'll try to look into this. What's puzzling is that we get tested on >> *many* Linux boxes but the overwhelming majority report no problem here. > something to do with svk being on the box but never having been run by that user? > istr something like this before. iirc hitting will make th

Re: Parrot r26458 Darwin 10.5 (x86) results

2008-03-18 Thread Andy_Bach
As of r26458 - configure has the readline issue: Determining if your platform supports readline...dyld: lazy symbol binding failed: Symbol not found: _rl_get_keymap Referenced from: /usr/share/cvs/parrot/./test Expected in: dynamic lookup dyld: Symbol not found: _rl_get_keymap Referenced fr

Re: Let's use snprintf()

2008-02-06 Thread Andy_Bach
Perl (5.10) seems to handle this this way, util.c: for apidoc my_snprintf The C library C functionality, if available and standards-compliant (uses C, actually). However, if the C is not available, will unfortunately use the unsafe C which can overrun the buffer (there is an overrun c

Re: Let's use snprintf()

2008-02-05 Thread Andy_Bach
Just a note: snprintf is problematic on older Solaris systems (x86 anyway), for one. At least through 2.7 (2.8?) it's no included in any lib. So other apps needed to test and bring in their own version. a Andy Bach Systems Mangler Internet: [EMAIL PROTECTED] Voice: (608) 261-5738 Fax: 264-5932

Re: t/postconfigure/03-revision test 1 taking forever?

2008-02-02 Thread Andy_Bach
> ok 3 - Able to make Parrot dir > ok 4 - Able to copy Parrot::Revision > > After a C^c > > ok 5 - Got numeric value for reversion number Let me guess - you've got svk installed, but never used it. Try 'n' instead of Ctrl-C. svk is asking (unnecessarily, one might conclude) if you want to create

Re: t/postconfigure/03-revision test 1 taking forever?

2008-02-02 Thread Andy_Bach
> >> svk is asking (unnecessarily, one might conclude) > >> if you > >> want to create the local Replica before it answers the question 'svk > >> info' > >> on a newly created test dir. >> But shouldn't the test be non-interactive? :) > The test could check for the existence of $HOME/.svk or $SV

Re: [perl #49794] Configure.pl syntax errors - revision 24880

2008-01-15 Thread Andy_Bach
Okay, fine w/ me. I'd not changed anything since ... since well 11/30/06 when I ran into the updated svn issue. Perhaps this is the first Configure change since then ... Anyway, just wanted to get it in there in case it was something worthwhile. Close the bug, please. a Andy Bach Systems Ma

Re: [perl #47998] r23293: Make smoke "invalid format" failure

2007-12-03 Thread Andy_Bach
Yes, up upgrading svn does it. I had noticed that the configure listing *wasn't* showing the revision number (D'oh!) and now it does Determining whether (exuberant) ctags is installed.yes. Running CPU specific stuffdone. Determini

Re: [perl #47998] r23293: Make smoke "invalid format" failure

2007-12-03 Thread Andy_Bach
Hey, I believe I've found it. There was an update to lib/Parrot/Revision.pm (#23179) to add "--xml" to the snv info request used to get the current Parrot checkedout revision. However, on svn v1.2 (1.2.1) that fails and you get a revision of zero which nobody likes. So, while upgrading svn

Re: [perl #47882] r22900 on Darwin/leopard 10.5.1 (intel) make failure "Parrot_DynOp_core_cgp_0_5_0' undeclared"

2007-11-28 Thread Andy_Bach
Appears to be fixed as of r23207 - made smoke w/ 99.99% ok (failed 1 of 4 for stm/basic_mt.t (line 168)) a Andy Bach Systems Mangler Internet: [EMAIL PROTECTED] VOICE: (608) 261-5738 FAX 264-5932 Remember, the first rule of optimisation is: don't do it yet. :-)

r22900 on Darwin/leopard 10.5.1 (intel) make failure "Parrot_DynOp_core_cgp_0_5_0' undeclared"

2007-11-27 Thread Andy_Bach
Hi. Hope this is the right place - just checked out r22900, did a make realclean (which worked) and then config/make smoke. Died w/ src/interpreter.c src/interpreter.c: In function 'get_op_lib_init':src/interpreter.c: In function 'get_op_lib_init': src/interpreter.c:373: error: 'Parrot_DynOp_cor

Re: [perl #47349] [BUG] 'make' failure on Darwin

2007-11-11 Thread Andy_Bach
--- trunk/include/parrot/atomic/gcc_pcc.h2007/06/12 14:08:35 18945 +++ trunk/include/parrot/atomic/gcc_pcc.h2007/10/10 06:31:20 22000 @@ -28,7 +28,7 @@ { void *tmp; /* see http://www-128.ibm.com/developerworks/linux/librar

Re: [perl #45783] gcc warnings flag problem on linux - init-self, invalid_pch, old-style-definition, strict-alias

2007-09-27 Thread Andy_Bach
Just a following followup - I looked ath changes in rev 21619 and noticed that the troublesome warning flags are still in the "cage" settings for the default. Should they be moved to a v3.4 section also for the cage cleaners? a Andy Bach Systems Mangler Internet: [EMAIL PROTECTED] VOICE: (608

Re: [perl #45783] gcc warnings flag problem on linux - init-self, invalid_pch, old-style-definition, strict-alias

2007-09-27 Thread Andy_Bach
Paul wrote: > This should be corrected as of revision 21619. Could you confirm that this works for you? Yep, make smoke worked last night. Thanks. > Have you been using the parrotbug script? If so, it is known that it doesn't work properly. Yeah, I tried that twice and then went to the email.

Re: Parrot 0.4.14 "Now, with Seat Belts!" Released

2007-07-17 Thread Andy_Bach
Hi Jerry, I never know exactly how to handle this - making the latest release: - t/configure/106-init_headers.t - t/configure/base.t - t/configure/config_steps.t Use of bare << to mean <<"" is deprecated at config/init/hints/linux.pm line 57. Use of bare << to mean <<"" is deprecated at config/i

Re: Newb: path/LD_LIBRARY_PATH/other

2007-05-31 Thread Andy_Bach
Hi Andrew, I just svn-ed the latest and I got the same error. I'm no parrot expert but it appears it's looking for the include file .include 'src/abc_gen.pir' and there's no such file. It appears the generated (?) abc_gen.pir file isn't there. Other langs have that (lua/src/lua.pir) so my gu

Re: Is Parrot 1.0 too late?

2007-04-25 Thread Andy_Bach
Parrot has @larry? a Andy Bach Systems Mangler Internet: [EMAIL PROTECTED] VOICE: (608) 261-5738 FAX 264-5932 "So it goes " Kurt Vonnegut, Jr. (November 11, 1922 ? April 11, 2007)

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-06-01 Thread Andy_Bach
How about something a little less mercenary - a 1000$ donation to the Perl Foundation/Perl 6 development in the winner's name from Athena Labs? Might take out some of the difficulty and, who knows, get you a better wiki (you know, the less immediately reward driven programmer or something

Re: Hyperop question

2006-05-19 Thread Andy_Bach
Never mind: New Revision: 9303 Modified: doc/trunk/design/syn/S03.pod Log: Typo from aufrank++. Feeble attempt to make .foo optional on nodes that only contain children. Modified: doc/trunk/design/syn/S03.pod == ---

Hyperop question

2006-05-19 Thread Andy_Bach
$Larry has just updated the pod: doc/trunk/design/syn/S03.pod =head1 Changes to existing operators -If one argument is insufficiently dimensioned, Perl "upgrades" it: +If either argument is insufficiently dimensioned, Perl "upgrades" it: (3,8,2,9,3,8) >>-<< 1; # (2,7,1,8,2,7)

Re: Nested captures

2005-05-11 Thread Andy_Bach
> That's a very interesting generalization. There are plenty of *other* cases where one wants an ordinal, or some other kind of $n-1 value. If C (and C, C, C) was a "subtract one" operator, you could write: my $n = prompt "How many elems? "; print @array[1st.

Question about Parrot and Omniscient Debugging

2005-05-10 Thread Andy_Bach
Hi, Please excuse the possible 'out of left field' (as we say) aspect of this question but I recently heard about Omniscient Debugging (ODB): http://www.lambdacs.com/debugger/debugger.html There is an article in the latest Dr Dobbs (6/05) by the above fellow (Bil Lewis - former Sun scientist an

Re: parrot on x86 solaris 2.5.1 (and 2.7)

2005-01-03 Thread Andy_Bach
Please let me know if I'm being too dense or too, er, flippant here, I've just gotten sucked, er, just joined the parrot world (dang O'Reilly books ;-) and I'm not sure how formal this list is or how much detail you'll want off the bat. If these issues are too picayune at this point, I'll desis