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
[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
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
> > 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
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
---
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
>> 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,
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
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
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
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
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
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
> 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
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::
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
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
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:
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')
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
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
> > 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
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
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
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
> 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
> >> 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
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
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
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
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. :-)
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
--- 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
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
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.
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
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
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)
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
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
==
---
$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)
> 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.
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
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
44 matches
Mail list logo