;
print time= . ($t1-$t0) . \n;
$ ~/Sandpit/5162/bin/perl5.16.2 ~/test/fib.pl
fib(29) = 514229
time= 0.5503830909729
Nicholas Clark
On Sun, Feb 03, 2013 at 10:35:12AM +, Nicholas Clark wrote:
On Sat, Feb 02, 2013 at 06:32:10PM -0800, Matthew Wilson wrote:
Did you mean to use $z in the say output of the nqp and perl versions of
the microbenchmark, or did you mean to run it twice?
I didn't write the nqp
of tuning of its code generator.
That's quite impressive.
Well done Jonathan. Please don't stop :-)
Nicholas Clark
favoured by other parts of the synopses
to describe what they are *not*. But doesn't seem to be easy to find in
itself - ie what it *is* :-)
Nicholas Clark
On Mon, May 28, 2012 at 01:54:53PM -0500, B. Estrade wrote:
On Mon, May 28, 2012 at 03:38:48PM +0800, Xiao Yafeng wrote:
On Sat, May 26, 2012 at 6:34 PM, Nicholas Clark n...@ccl4.org wrote:
On Fri, May 25, 2012 at 08:44:30AM -0500, B. Estrade wrote:
Realistically, that's
backward compatibility
with insert qualification. All of a sudden you have a Perl family
Realistically, that's not going to happen. The internals of the Perl 5
interpreter are not flexible enough to implement a lot of the features that
Perl 6 has that Perl 5 does not.
Nicholas Clark
* Or Python
close means you can't be sure if your input was truncated
due to an error.
Nicholas Clark
are read-only
ie there's no need to internally actually make defensive copies, or have
some complex flag-checking system. It should be possible* to implement it
in a small, incremental obviously no bugs fashion, instead of a monolithic,
large no obvious bugs fashion.**
Nicholas Clark
* should
actually wants this lack of detail can subscribe to
http://github.com/perl6/specs/commits/master.atom
Nicholas Clark
.
That was a really good talk. I hope that it has been videoed, and will be
online soon.
Nicholas Clark
really have an opinion, other than
it needs to be simple enough to be teachable.
Nicholas Clark
your fun by working on the Parrot core, you
actually stop being a Parrot user, and hence experiencing what they
experience.
Nicholas Clark
illegal to use a numeric index less that 0.) One could
than
?
What's the URL for the svn repository for this?
Nicholas Clark
time?
Nicholas Clark
values.
+Examples:
+But note that both of these are infinite lists:
+
+1,1/2,1/4 ... 0 # 1,1/2,1/4 ... *
+1,-1/2,1/4 ... 0 # same as 1,-1/2,1/4 ... *
Should that read
# same as 1,1/2,1/4 ... *
?
Nicholas Clark
, by being optimised to a more efficient execution sequence.
Nicholas Clark
?
Nicholas Clark
it works, that is also helpful. I can analyze
the algorithm myself.
You're asking the question on the Perl 6 language list, but it's unclear
whether you're asking about hashes in Perl 6, or in Perl 5. It's not
possible to answer until you clarify that.
Nicholas Clark
On Sat, Aug 22, 2009 at 4:04 PM, Nicholas Clark n...@ccl4.org wrote:
On Sat, Aug 22, 2009 at 04:01:13PM -0500, Forrest Sheng Bao wrote:
Does anyone know the time complexity of searching elements in hash tables
in
Perl? Suppose the number of elements is n.
I have no idea on how
On Sat, Aug 22, 2009 at 10:27:58PM +0100, Nicholas Clark wrote:
Perl 5's hash tables consist of an array of linked lists. The list elements
consist of a pointer to the next element, pointer to the value stored, and
pointer to a structure, usually shared, containing the key (length, octets
argument is a file or a directory)
Nicholas Clark
aren't?
And anything else goes?
Nicholas Clark
scanning using glob('*'), which gives
a clean bill of health because it opened all files and found no problems.]
I don't know how Python 3 resolved this.
Nicholas Clark
should
instead use a simple test for size:
I don't know whether the Perl 6 apocalypses explicitly specify behaviour for
defined, or if they inherit this Perl 5 behaviour by default.
Nicholas Clark
in a formal
+parameter that is not an invocant, C:D is assumed.
+
Nicholas Clark
means that I've had a JPEG file on CPAN for
4 years now, and no-one has commented :-)
Nicholas Clark
of Chili wagging her tail, if a wall
happens to get to close. The black alarm clock sometimes can go off before
6am, if she determines that it's already time for breakfast (or exercise).
Chili: http://chili.pavlovic.at/2007_09/medium/DSC00035_medium.html
Nicholas Clark
. I don't think that the discussion on the
call did either. And if left alone I can ramble that much, is anyone surprised
that chromatic can't manage to minute several people discussing it? :-)
Nicholas Clark
* Maybe journeyman isn't the right term, but I mean the dangerous middle
state
it intentionally, but only because it's less typing than
s/.\z//m; (or whatever the canonically correct Perl 5 equivalent is)
The Perl 6 version is 1 character terser?
Nicholas Clark
On Sat, Jan 24, 2009 at 10:58:51AM -0800, chromatic wrote:
On Saturday 24 January 2009 05:56:03 Nicholas Clark wrote:
And if left alone I can ramble that much, is anyone surprised
that chromatic can't manage to minute several people discussing it?
Amusingly, you were the one who didn't
to efficiency, cache the floating point
outcome of evaluating the thunk if it gets called)
Nicholas Clark
$_ if not $^X =~ /perl/;
-e syntax OK
Nicholas Clark
to be implemented as subroutines. So that's
another obvious thing that actually isn't going to matter here.
Nicholas Clark
) such that (++$a) and ($a + 1) are not the same.
Nicholas Clark
issued a second declaration that I was done, and
baking season is open)
Nicholas Clark
Not being familiar with the big picture design* of Perl 6, I'm not able to
answer this. I assume that there is a clear reason, but what is it?
Nicholas Clark
* Heck, I'm also not familiar with the little bits either.
- Forwarded message from Ed Avis [EMAIL PROTECTED] -
Envelope
that [{1 + 1}] and [; {1 + 1}] differ?
And [; {1 + 1}] and [{1 + 1}; ] are identical?
Nicholas Clark
context for f(), list context for g()
So instead of emphasising + and ~, it feels to me that that is less to
remember (and less to teach) if the examples were prominent in their use of
(generic) scalar context:
%x{$ f()} = g(); # scalar context for f(), list context for g()
Nicholas
is true)
Nicholas Clark
once added to the core can never be removed, and 15 years later you find
that there are several generations of this is current modules in the
distribution that are a maintenance burden. Usually a burden that falls on
volunteers.
Nicholas Clark
On Sat, Sep 08, 2007 at 01:48:39PM +0100, Nicholas Clark wrote:
Have I got this correct?
state @a = foo(); # Implicit START block around call and initialisation
state (@a) = foo(); # Implicit START block around call and
initialisation
(state @a) = foo(); # foo
describing that alteration wasn't in
this change. When was it? I think I missed something.
Nicholas Clark
will
always be () in Perl 5)
Nicholas Clark
on this list, I've not written any yet, so my
opinion might be of little value)
Nicholas Clark
been dropped for
Perl 6.
Nicholas Clark
with C)
You don't want to write a linker in Perl.
For this esoteric sort of stuff can't we have named operators (short
names if you like, perhaps taken from assembly language), in a module
that can be loaded by those who need them?
I think that we can learn from PHP here. :-)
Nicholas Clark
,
which suggest that the timing is going to be different this year.
Nicholas Clark
- Forwarded message from LH [EMAIL PROTECTED] -
From: LH [EMAIL PROTECTED]
To: Summer-Admin-Announce-2006 [EMAIL PROTECTED]
Subject: GSoC 2007 is ON!!!
Date: Fri, 16 Feb 2007 04:04:19 -
User-Agent: G2/1.0
X
On Wed, Jan 31, 2007 at 01:01:13PM -0800, [EMAIL PROTECTED] wrote:
+by CKEY and the value matchis represented by CVALUE. (CKEY,
matchis must be a typo :-)
Nicholas Clark
On Tue, Jan 30, 2007 at 09:23:33AM -0800, Larry Wall wrote:
Since -0.0 is a possible Num representation, that last one probably works.
But @array[-0] probably doesn't, since Int probably doesn't represent -0,
Well, it might just be using 1's complement :-)
Nicholas Clark
for or and err)
Is it defined that $a + $b evaluates the arguments in any particular order?
Even guaranteeing that either the left or the right gets completely evaluated
first would be better than C :-)
Nicholas Clark
equality ~$_ eq $x
Nicholas Clark
that pretty much only
AIX is so stable that early perls compile unmodified. Probably someone will
tell me that VMS is also good enough, for 5.002 or later)
Nicholas Clark
vein
if 0 { q
# }
To uncomment the real code, add # before the if.
Although it is visually complex.
Nicholas Clark
mean that both could check out the same testsuite, and both could
commit back to it.
Nicholas Clark
if the repositories were different, instead of simply one being a subtree of
another. That was all.
Nicholas Clark
that sprintf needs an operator. It's not commonly used in
any code I've looked at, which to me suggests that it's not good huffman
coding to use up a terse symbol for it, denying that symbol to something
else.
Nicholas Clark
any interesting ambiguities, does it?
IIRC the fun stuff involves lowercase and Greek letter sigma following
something, which therefore isn't relevant here.
Nicholas Clark
--
I'm looking for a job: http://www.ccl4.org/~nick/CV.html
that agoraphobic processes least
want to handle. But I guess really that should be written 'SIGSPACE'
Nicholas Clark
--
I'm looking for a job: http://www.ccl4.org/~nick/CV.html
On Sun, Apr 30, 2006 at 03:47:54AM +0300, Yuval Kogman wrote:
On Sat, Apr 29, 2006 at 18:12:34 +0100, Nicholas Clark wrote:
On Sat, Apr 29, 2006 at 05:59:37PM +0200, Juerd wrote:
I get a message like this for every message that I send to this list.
Trying to contact [EMAIL PROTECTED] did
is a bracketing character. But '/' wasn't?
Can I select # as a bracketing character for my obfuscations? :-)
Nicholas Clark
swapped the 3 and 4 dots), given that the long dot eats the first dot,
and 3 eat 1 leaves 2, whereas 4 eat 1 leaves 3.
Nicholas Clark
On Sat, Apr 01, 2006 at 11:32:20AM +1100, Amos Robinson wrote:
Sorry, I missed the boat.
Everything seems to be moving at Pugs-speed these days :-)
But what you thought was correct.
Nicholas Clark
native string (finite sequence of native integers, no
Unicode)
num native floating point
complex native complex number
boolnative boolean
Why does uint autobox, when int doesn't?
(Or num, complex, bool or bit for that matter?)
Nicholas Clark
favours, how many methods would it need
to implement all the existing builtins like this?
Nicholas Clark
On Fri, Feb 24, 2006 at 05:05:03AM -0800, Larry Wall wrote:
On Thu, Feb 23, 2006 at 02:48:46PM +, Nicholas Clark wrote:
: Would it be better to do that automatically with svn tag expansion?
Yes, it would. Feel free, I'm not very svn-tag-expansion-aware yet.
Well, there's this slight
2006
@@ -12,9 +12,9 @@ Larry Wall [EMAIL PROTECTED]
Maintainer: Larry Wall [EMAIL PROTECTED]
Date: 27 Oct 2004
- Last Modified: 22 Feb 2006
+ Last Modified: 23 Feb 2006
Number: 12
Would it be better to do that automatically with svn tag expansion?
Nicholas Clark
punctuationish unicode equivalent?
Sadly I can only find
1D191;MUSICAL SYMBOL FORTE;So;0;L;N;
It sems that fortissimo doesn't appear to have a single code point, let alone
fff
Nicholas Clark
as from Perl 5 to Perl 6. And somehow I think that
$Larry has some bias about which language he'd prefer everyone to find it
easiest to migrate to, even if he's too modest to admit it.
Nicholas Clark
Y Y Y Y n n n n
Some undefs are more equal than others.
Nicholas Clark
, and is fairly flexible. Bottom up parsing
is very flexible, but is very fast.
I infer that you are missing
^not
about there.
More than that I can't comment on the practicality of your scheme, as I don't
have adequate experience in this area.
Nicholas Clark
On Fri, Dec 23, 2005 at 10:43:23AM +0100, TSa wrote:
HaloO,
Nicholas Clark wrote:
Well, I assume that the do-nothing sub is assigned into the variable, and
gets re-evaluated each time the variable is use. Which would mean that
you'd
get a new (different) empty hash each time. Whereas
the amazing prevelance of the
shallow copy idioms in perl 5:
[ @array ]
{ %hash }
We could consider .clone to be the natural extension of this (and have
the above forms be its definition for Array and Hash).
Why not call the shallow copy .copy, and the deep copy .clone?
Nicholas Clark
-{k}++;
}
my $a;
$a-{$_}++ for @ARGV;
stuff($a);
print $a-{k}\n;
__END__
Nicholas Clark
there and inspecting it with
bare hands and *eyes* might be a bad idea!
I think that Larry is referring to slightly larger and more expensive rockets
than regular fireworks: http://www.siam.org/siamnews/general/ariane.htm
(ie real software, not a metaphor)
Nicholas Clark
semantics, even
when loaded into Parrot's registers.
Nicholas Clark
to you, I think that I already have
rather too much going on to be able to take advantage of anything in the
near future. So thanks for the offer, but please do thinks in the order that
is most logical to you.
Nicholas Clark
NCI.
Nicholas Clark
of 5.005_03 or 5.6.1 for
development. Still.
The active perl community is not wholly representitive of the global usage
of perl, and would do well to remember this. For example, see
http://use.perl.org/~barbie/journal/27098
Nicholas Clark
languages that this will cause.
Perl 5 runs everywhere: http://www.cpan.org/ports/index.html
Perl 6 is intended to be an improvement on Perl 5. It would be a shame to
design in restrictions on portability.
Nicholas Clark
than you state.
Nicholas Clark
caught out by this too.
So I think that the problem is real, and is worthy of addressing.
I'm not sure of the best approach, or syntax, or defaults.
Nicholas Clark
/2005-10/msg00585.html
and how to do something functionally like:
my $foo = DBI(1.38)-new();
my $bar = DBI(1.40)-new();
or whatever to distinguish which you wanted to call a class method on.
Nicholas Clark
don't think we need
another way to say don't care. In fact, we could unify things:
rules: /Any/ matches anything (/./ is shorthand synonym)
Is that strictly correct? /./ doesn't match an empty string.
Or did I miss some context earlier in the thread?
Nicholas Clark
that they are trying to out-live
Perl 4.
Nicholas Clark
the '' eval gets compiled at run time.
IIRC the perl 6 equivalents of $` $ and $' are all lexical rather than
dynamic, so the pain will be far less. (at least in its scope)
Nicholas Clark
in Perl 6?
Nicholas Clark
.
And that's without considering the change from the C? : of C and Perl 5.
[contents of this message may settle in transit, particularly if your mail
reader uses a proportional font.]
Nicholas Clark
tokens no 5
Execution of /tmp/perl-em47tij aborted due to compilation errors.
So I think not.
(if anyone wants to compile perl4 on FreeBSD, tell Configure that libc is
/usr/lib/libc.a, rather than .so
After that you'll need to edit a couple of things, but they'll be obvious)
Nicholas Clark
frame, so for the duration of the
call would be unchanged.
But this is all arm-wavy, and needs real code to analyse before committing
to it as a strategy.
Nicholas Clark
by the
implementation in the C source. (IIRC first remarked on by Chip))
Nicholas Clark
is clearer
than silently succeeding and the error coming up somewhere else.
To me, 1.e5 is not ambiguous. But maybe I've had too much dealing with
floating point in a previous life.
I'd find it hard defending a language that treated 1.e5 as a method call.
Nicholas Clark
show up in 1582, not 1752?
I think that this demonstrates how tricky all this mess is.
Nicholas Clark
have no *particular* objection to an MMD implementation that
used RMS inheritance distance as its metric, provided the dispatch
performance was not appreciably worse.
Maybe I should cut that paragraph, to avoid re-opening a debate.
Nicholas Clark
at serialisation of a file handle, directory
handle, database handle, shared memory handle or any other external resource
should fail? (Unless that resource class has a viable serialise/deserialise
system)
Nicholas Clark
is rw is mow mutate on write
But thankfully Perl 6 is not intended to be a perfect language.
That conjecture reminded me of Allison's togs and dogs. I think I like
the verbose version we're going to keep, even though you are suggesting it
is *im*perfect. :-)
Nicholas Clark
these translations?
There are already volunteer efforts to translate into Japanese and Italian,
according to http://www.perl.org/docs.html plus I'm aware of perlchina.org,
which is actively translating documentation to Chinese:
http://wiki.perlchina.org/main/recently_revised/
Nicholas Clark
On Tue, Apr 12, 2005 at 03:09:10PM +0200, Juerd wrote:
Nicholas Clark skribis 2005-04-12 13:58 (+0100):
(Still, having them around does help many people, and that's why I think
perldocs should perhaps come in several languages (as a different
project, so translation delays don't delay
in their choice of words when suggesting things.
Nicholas Clark
with bad ideas much easier than
that even :)
Good point. Saves having to ask how would I do that?, let alone answer
it :-)
Nicholas Clark
the patch should go to.
perl6-language@perl.org
Nicholas Clark
1 - 100 of 231 matches
Mail list logo