l5;
I've also discovered that I missed a reference - rfc226
"Selective interpolation in single quotish context."
Nicholas Clark
a feature. Every
non-useful irregularity removed aids advocacy, teaching and documenting,
without hindering programming.
Nicholas Clark
On Sat, Sep 30, 2000 at 09:56:43PM +0100, Nicholas Clark wrote:
Similarly modules' formatting breaks if you set $/;
$\;
D'oh
How many of the punctuation variables would be better with less-than-global
scope?
Nicholas Clark
o know how to handle it.
Yes. I think I suggest something similar (doing it per array) but Bart's
explanation made me realise this was not wanted. One doesn't want to change
the array in any way, just how the local code sees arrays. Its use can
still be discouraged, but that's not the same as saying "never use this"
Nicholas Clark
delimiters
that q() etc support, did they? :-)
Does Unicode define bracket pairings for character sets? ducks
Nicholas Clark
on how to install BSD
Nicholas Clark
e "1;" Modules that did
BEGIN {$locale::hint_bits = 0x800;}
still do what's expected of perl5 when written:
INIT {
BEGIN {$locale::hint_bits = 0x800;}
}
Nicholas Clark
__value_in_regs you get the results in r0 to r3.
Oh, and who said I didn't want to write my programs in perl and assembler?
Nicholas Clark
, the firm running perl.com). It's a reasonable question to
ask, but you'll be more likely to get a meaningful answer if you can find
an address as perl.com (no, sorry, I don't know offhand which address)
Nicholas Clark
I hope
I'm not asking an already asked question.
Nicholas Clark
ally want to do something a lot more
complex than simple "$y =~" in your expression.
Or do I guess wrong?
Nicholas Clark
long you slept for.
How does the program discover if sleep can do subseconds?
use Config; ?
Nicholas Clark
loads AnyDBM_File to do the real work without the
user (or script) knowing, so this idea could be extended.
Nicholas Clark
ot;s"), ($b/100) **
$n * 100' 90 4
Proportion of stuff still working 90%
4 modules
chance of it all working 65.61%
[OK, not strictly fair, as 4 modules are not independent variables - they
may all happen to fall over on the same thing]
Changes have compound effects.
Nicholas Clark
d like Foo
[although modules ought to be good and get their dependencies right in
Makefile.PL]
and so on. But this has the disadvantage that you don't know how much
you're letting yourself in for (in terms of new modules) until you've
already started committing them to your installed tree.
Nicholas Clark
certainly possibly to read raw memory with suitable (ab)use
of pack and unpack in perl (P and p)
I can't remember if it's possible to write to raw memory, and I'm
not currently on an operating system where I can test this sensibly.
But it's not obvious, safe or portable.
Nicholas Clark
On Wed, Feb 07, 2001 at 05:15:41PM -0600, David L. Nicol wrote:
Nicholas Clark wrote:
On Wed, Feb 07, 2001 at 04:30:24PM -0600, David L. Nicol wrote:
sub has_post_blocks{
my $i = 3;
post { print "i ended up as $i"};
r gunzip in a perlio layer)
4: Can't do XS
5: not sure if it's a sick hack or an elegant hack
It is also possible to place the include zipfile on the end of the perl
executable and put $^X in @INC to make a 1 file perl distribution, but
I don't think anyone ever tried this
Nicholas Clark
On Wed, Feb 07, 2001 at 10:59:00PM -0600, David L. Nicol wrote:
Nicholas Clark wrote:
on the other hand, I'll argue the other side that
{
my $flag
open FOO, "bar" ? $flag=1 : die "aargh $!";
...
}
post {
close FOO if $flag;
}
is clearer
, assuming we can get permission. )
Do we really want to use tar format (over say cpio) as tar rounds files
up to 512 block boundaries, and has some arbitrary restrictions on filename
lengths in the headers?
Nicholas Clark
On Thu, Feb 08, 2001 at 12:41:34PM -0500, Dan Sugalski wrote:
At 05:39 PM 2/8/2001 +, Nicholas Clark wrote:
Do we really want to use tar format (over say cpio) as tar rounds files
up to 512 block boundaries, and has some arbitrary restrictions on filename
lengths in the headers
t; as I've heard it called by the advocates.
(yes, I get irritated when I forget that BSD cp doesn't have a -a flag)
However, in our portability quest "Get New Utilities" is not good
[unless we package TomC's Perl Power Tools and just use those]
Nicholas Clark
abhor is the idea of hardwiring the zip assumption deeply into
our design.
I would agree - hardwiring is to be avoided.
Nicholas Clark
ompression method number.
Notice also the distinction - zip an archive format (put lots of files in
one file and take them out again) which allows entries to be compressed.
tar is just an archive format, gzip just a compression system.
how very unix - combine small tools to get a job done :-)
]
at we want to be able to do with it is more important?
2: Is this really still language? If not, where should we be discussing it?
Nicholas Clark
On Mon, Feb 12, 2001 at 01:14:58PM -0500, [EMAIL PROTECTED] wrote:
On Mon, Feb 12, 2001 at 05:45:17PM +, Nicholas Clark wrote:
When I last tried it (over a year ago) running the 5.005 regression tests
with the standard libraries coming out of a zip file took about the same
time
that perlbench would also not object to OO code for benchmarking.
Nicholas Clark
works no problem once all the .al files are in a zip
(it uses require)
s/zip/something else/g to generalise
Nicholas Clark
uot;return
if $AUTOLOAD =~ /:DESTROY$/", however.
Doesn't
sub DESTROY {}
have the same effect but with less typing?
Nicholas Clark
On Thu, Feb 15, 2001 at 10:29:33PM +0100, [EMAIL PROTECTED] wrote:
On Thu, Feb 15, 2001 at 08:19:27PM +, Nicholas Clark wrote:
On Thu, Feb 15, 2001 at 09:05:55PM +0100, [EMAIL PROTECTED] wrote:
On Thu, Feb 15, 2001 at 11:23:10AM -0800, Nathan Wiger wrote:
But I have never found
as to whether using .. as concatenation is a good idea]
Nicholas Clark
in C89]
Nicholas Clark
:-)
Which in turn reminds me of a patch by Jan Dubois that implemented copy on
write for perl5:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/1999-07/msg00550.html
Is it time to experiment with this in bleadperl?
[hmm. that's a reply-to perl5-porters question]
Nicholas Clark
. oops]
Nicholas Clark
]
What is bad about this, apart from we're creating a new interface that perl6
may not like? [and doing something that perl6 isn't doing is bad enough not
to do it]
Nicholas Clark
is evaluated and its result is constant folded
onwards. If your macro isn't given constants, then it is substituted
into the syntax tree at that point, and called correctly each time at
run time.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
. :-)
Comments are for wimps, Perl is for regression tests]
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
that I'm feeling
sufficiently pessimistic that I don't think there are reasonable solutions
to the problems. However, that's only my opinion, and others' will differ.
On the other hand, I think the idea of multiple platforms automatic CPAN
testing is a very good idea.
Nicholas Clark
--
Even better
only returns on failure)
And everything else is serene and swan-like?
(ie the language gives the appearance of moving smoothly on the surface,
but under water its feet are paddling furiously to implement motion)
Nicholas Clark
--
Even better than the real thing:http://nms
any duplicate my, which continues
until the point the current block ends.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
value, you can use any letterlike
My understanding was that Unicode has now escaped the base plane (or whatever
it's called) and now has started using code points 65536. How does Java
cope with this?
Nicholas Clark
Nicholas Clark
that works. :-)
Nicholas Clark
,pIOK)
IV = 2
Elt alpaca HASH = 0x5af8b041
SV = PVNV(0x12a6d8) at 0x111b40
REFCNT = 1
FLAGS = ()
IV = 0
NV = 0
PV = 0
As you can see, the ingredients for magic are quite cumbersome, but do get
the job done.
Nicholas Clark
--
Even better than the real thing:http
superpositions too :). But, what would this mean?
my all(str, int) $foo;
#...
That you need some *serious* psychotherapy! ;-)
Mr Palmer, the doctor is ready to see you now...
oops, wrong sort of doctor.
Nicholas Clark
--
Even better than the real thing:http://nms
$bday object at compile time? (and hence get compile time checking)
Without affecting general run time behaviour.
Nicholas Clark
be faster than
calling expat? Or will they be the same (because the regexp compiler has
certain builtin rules that are actually implemented as calls to C code
(unless they are over-ridden))?
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
?)
It would be interesting to see whether there are classes of problems that
go in different directions.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
it
accepts?
Nicholas Clark
in list context, I was wondering what happens
If I pathologically define
sub silly ($foo, foo) {
}
and then call it
silly (foo=somearray, otherarray);
Presumably, it's a fatal error as it's ambiguous what the crazy programmer
wanted, but fatal errors don't feel very perl.
Nicholas
; # Or some other suitable default
}
or what?
And what happens if I write
%hash4 = (Something, mixing, pairs = and, scalars);
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
?
Nicholas Clark
)
Or am I mis-interpreting INTERNAL, because in this context INTERNAL
refers to an op that uses PMCs already existing?
Nicholas Clark
::AbstractSyntax;
$0 := (expr (invoke 'new (class 'Date) $1 $2 $3))) }
I'm confused. Why has that last line got a lisp expression for the spliced
in code?
Nicholas Clark
On Fri, Sep 06, 2002 at 02:20:10PM +0100, Piers Cawley wrote:
Nicholas Clark [EMAIL PROTECTED] writes:
On Wed, Sep 04, 2002 at 10:46:24PM -0400, Ken Fox wrote:
What is really needed is something that converts the date syntax
to normal Perl code:
rule iso_date { (Perl.term
On Fri, Sep 06, 2002 at 02:49:13PM +0100, Piers Cawley wrote:
Nicholas Clark [EMAIL PROTECTED] writes:
This idea of just switching language syntax in a context-sensitive way is
trying to make my head explode.
But you mean that in a good way right? Anyway, he did introduce the
Yes. Now
in the match object,
because if I've understood perl6 symbol tables correctly they are going to
be storing names-with-sigils. (To allow the elimination of typeglobs)
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
m//g starts from the beginning
or from pos)
This is from perl5-porters, and the wrong code was in a patch I sent:
On Sun, Sep 08, 2002 at 03:57:44PM +0100, [EMAIL PROTECTED] wrote:
Nicholas Clark [EMAIL PROTECTED] wrote:
Thanks, applied as #17859.
This bit:
-s/^(\w+)=(true|\d+)\s*$/$1
On Sun, Sep 08, 2002 at 09:50:45PM +0200, Damian Conway wrote:
Nicholas Clark wrote:
Related, I think: no-one answered my question about what happens when I
define
sub dumb ($var, var) {
...
}
and then call it with the pair var=$thing
Exception, probably. Perhaps
to produce results
better than calling out to general purpose parrot assembler would be nice.
Although my biased opinion is that probably best to write the perl builtins
as tidy C code rather than parrot assembler. But I know C better.
Nicholas Clark
--
Even better than the real thing:http
that the first syntax
class Car::Q is Car renames(eject = ejector_seat)
is CD_Player renames(drive = cd_drive);
makes it more clear that I'd like to pick and choose which methods
the composite object gets from which parent.
Nicholas Clark
--
Even better than the real thing
to
richardc /ger/ging/
richardc :2nd
So they are useful :-)
(and people will come to use them, and presumably perl6, as they discover
that it's more powerful than their current chainsaw. We already assume
that, but it's reassuring to find anecdotal evidence that backs it up)
Nicholas Clark
..;
(0..) # pass infinite lists as parameters with less typing
{0..} # not sure, but it follows on
Nicholas Clark
On Wed, Oct 09, 2002 at 10:35:32AM -0700, Larry Wall wrote:
On Wed, 9 Oct 2002, Nicholas Clark wrote:
: On Tue, Oct 08, 2002 at 06:07:09PM -0700, Larry Wall wrote:
: Would that mean that three other special cases of postfix .. might exist?
:
: 0..; # useful for return 0..;
I bet
, and that's not
good. We'll have trouble occupying all the time that will free up. We might
even be forced to do fun stuff. :-)
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
... () of Borg { }
but I can't work out what ... should be for the best joke. Nevermind. I'll
just blatantly plug the spoofathon. (The Borg are better than perl
because...?)
Nicholas Clark
--
INTERCAL better than perl? http://www.perl.org/advocacy/spoofathon/
the left argument has no change in dimensionality, and even swapping things
round doesn't help, as the replication count is scalar.
Nicholas Clark
--
INTERCAL better than perl? http://www.perl.org/advocacy/spoofathon/
, log and exp are missing, and the listop
atan2. (And is perl6 going to have other more unusual transcendental maths
functions such as acos, asin, cosh, sinh, cosec, erf as builtin keywords?)
Nicholas Clark
--
INTERCAL better than perl? http://www.perl.org/advocacy/spoofathon/
.
Nicholas Clark
--
Befunge better than perl? http://www.perl.org/advocacy/spoofathon/
= Good; print -$x'
-Good
$ perl -lwe '$x = -Good; print -$x'
+Good
$ perl -lwe '$x = -Good; print -$x'
+Good
$ perl -lwe '$x = +Good; print -$x'
-Good
Unary plus is actually irrelevant:
$ perl -lwe '$x = +Good; print -$x'
-Good
Nicholas Clark
--
Brainfuck better than perl? http://www.perl.org
other current languages.
Nicholas Clark
--
Brainfuck better than perl? http://www.perl.org/advocacy/spoofathon/
know that literal ASCII bel characters:
do pass quite successfully from 7 bit ASCII to EBCDIC and back again during
their travels. Maybe we can use them for something :-)
Nicholas Clark
--
C++ templates better than perl? http://www.perl.org/advocacy/spoofathon/
as the patch pending sections are known - I suspect my finite time is better
spent on code implementing things.
Nicholas Clark
--
INTERCAL better than perl? http://www.perl.org/advocacy/spoofathon/
myself a cup of tea
by hand). I prefer this to checking by hand and machine brewed tea.
Nicholas Clark
to everyone else?
cacheable is rather long and sufficiently made up that my copy of ispell
doesn't recognise it. But at least all English speakers can agree how to
spell words that don't end in i[zs]e (or end ou?r or [cs]e :-)
Nicholas Clark
prefer the software term
1: more likely that people will know what it means
2: in the words of the adverts of a certain UK varnish manufacturer:
cached - does exactly what it says on the tin
Nicholas Clark
--
COBOL better than perl? http://www.perl.org/advocacy/spoofathon/
) at 0x132f10
REFCNT = 3
FLAGS = (POK,pPOK)
PV = 0x10c398 Morrdor\0
CUR = 11
LEN = 12
'Morrdo'
Nicholas Clark
--
INTERCAL better than perl? http://www.perl.org/advocacy/spoofathon/
levels down)
(And for that matter the obvious solution of local ($_) in perl5 is also
action at a distance if $_ is tied, as local is an immediate fetch and a
store at end of scope. Special case local on $_ ?)
Nicholas Clark
--
perl6 better than perl (this week)? http://www.perl.org/advocacy
(If it moves^Wis a reference - bless it! :-))]
Nicholas Clark
PS Time for a second edition:
perl5.8.0 -lwe 'format FOO = ' -e '.' -e '$a = *FOO{FORMAT}; print ref $a'
FORMAT
On Sat, Dec 07, 2002 at 01:20:26PM +1100, Damian Conway wrote:
Nicholas Clark mused:
I just had this thought - can I interpolate in there?
Something like
\c[$(call_a_func())]
Why not just:
$(chr call_a_func()]
???
Well, I was wondering if my function returned CR, then
\c
On Sun, Dec 08, 2002 at 03:41:22PM +1100, Damian Conway wrote:
Nicholas Clark wrote:
Well, I was wondering if my function returned CR, then
\c[$(call_a_func())] would mean that the CR gets run thought the
\c[...] conversion and a single byte (\r) is what ends up in the string.
I seriously
.
Enough the the golfers get upset that some of the shortest solutions don't
work because they run out of swap. IIRC Hugo is lucky because his auction of
an improvement for perl 5.10 could easily have ended up with a bidder who
wanted multiway globs to work in much less RAM.
Nicholas Clark
ears
~ ... ~ # My brain collapses because it's under too much pressure.
Nicholas Clark
of trigraphs.
I was shooting for the good old days of sarcasm that people noticed,
but alas I missed.
I think dry, unlabled sarcasm may be unwise, considering the number of
crazy ideas that have been put forward in all seriousness. Some have
even been adopted, and hence redefined as inspired.
Nicholas
received make no mention of character set - does your mailer
mark the message in any way? If not, then STMP will assume it's good old
7 bit ASCII
Nicholas Clark
else worthy.
Nicholas Clark
? A junction of all the possible contexts valid here?
ducks
Nicholas Clark
of exists distinct from defined, then several
more graduations appear.
Nicholas Clark
?
(Message ID [EMAIL PROTECTED] if that helps - I don't
have an archive link).
Nicholas Clark
On Mon, Jan 27, 2003 at 01:02:28PM -0800, Austin Hastings wrote:
--- Nicholas Clark [EMAIL PROTECTED] wrote:
On Mon, Jan 27, 2003 at 11:00:17AM -0800, Michael Lazzaro wrote:
locked = 1, # read-only, can't store new values
There was a discussion on p5p about
this difference to scalar values.
Although it may be one leap too far.
Nicholas Clark
of behaviour.
Nicholas Clark
an Amen, brothers and sisters?
I'm not sure. I thought about vices, but I can remember that Larry doesn't
like the idea of a curse function to un-bless things, so I suspect
that vices aren't going to see much favour. flaws, maybe. There's
always scope for redeeming your flaws. :-)
Nicholas Clark
.
And the demonstration was as expected?
(I don't know two strings that clash for the hash algorithms used in 5.6 and
in 5.005 and earlier, hence why I'm specifying 5.8.0
pie = 1 , good = 1 works for the first example in 5.8.0 and 5.6.1,
perl = 1, rules = 1 for the second in both)
Nicholas Clark
has different ideas about what would be useful,
and they aren't all compatible. Eliminating the speed hit from perl 5 tie
and perl 5 overloading is one big reason why parrot should be nicer to work
with than any language built on the perl 5 internals.
Nicholas Clark
that mean that after a while you turn blue and
then fall over? :-)
Nicholas Clark
...
No need to apologise. Thanks for the informative, well thought out and well
reasoned post.
Nicholas Clark
it's a special case. And an ordering related
special case, which seems to feel more bad to me.
Nicholas Clark
is loaded at it wraps
DISPATCH, then the script removes Acme::Foo, is the wrapping now as if
only Acme::Bar was the only module ever loaded?
Nicholas Clark
, surely they're either each going to roll their own
(different) ways of extending the compile time syntax, or do it at run time
and so not benefit from compile time error detection.
Or would such a feature be a complete white elephant?
Nicholas Clark
1 - 100 of 231 matches
Mail list logo