Re: backticks

2004-04-14 Thread Jarkko Hietaniemi
hash slices aren't used much at all. People *always* overgeneralize.

Re: Larry's State of the Onion slides

2002-05-14 Thread Jarkko Hietaniemi
On Mon, May 13, 2002 at 05:48:17PM -0700, Ask Bjoern Hansen wrote: On Wed, 8 May 2002, Nathan Torkington wrote: Larry's State of the Onion slides from TPC5 are now available from http://dev.perl.org/perl6/talks/ http://dev.perl.org/perl6/talks/onion5.pdf Better sooner than never, I

Re: Between-Opcode Callbacks

2001-07-10 Thread Jarkko Hietaniemi
On Tue, Jul 10, 2001 at 09:45:19PM +0200, Paul Johnson wrote: On Mon, Jul 09, 2001 at 11:46:30PM -0500, Jarkko Hietaniemi wrote: comment language=en encoding=iso-8859-1 sentence subjectXML/subject verbis/verb adverbmuch/adverb adverbtoo/adverb objectverbose/adverb

Re: Between-Opcode Callbacks

2001-07-09 Thread Jarkko Hietaniemi
do s%([A-Z]+)([BE])%${\(($2 eq 'E')?'/':'')}$1%g on that and you've almost got XML! comment language=en encoding=iso-8859-1 sentence subjectXML/subject verbis/verb adverbmuch/adverb adverbtoo/adverb objectverbose/adverb punctuation./punctuation /sentence /comment --

Re: Anyone actually experienced with object inheritance?

2001-07-02 Thread Jarkko Hietaniemi
On Mon, Jul 02, 2001 at 01:30:11PM -0700, Damien Neil wrote: On Mon, Jul 02, 2001 at 12:59:51PM -0700, David Whipp wrote: Its not quite the same thing, but Java does have the concept of anonymous classes (it names them 'inner' classes): Is Perl6 going to have a similar concept? Inner

Re: ~ for concat / negation (Re: The Perl 6 Emulator)

2001-06-21 Thread Jarkko Hietaniemi
On Thu, Jun 21, 2001 at 11:49:21PM +0100, Simon Cozens wrote: On Thu, Jun 21, 2001 at 10:31:22PM +0100, Graham Barr wrote: We can have a huge thread, just like before, but until we see any kind of update from Larry as to if he has changed his mind it is all a bit pointless. For what

Re: 'is' and action at a distance

2001-05-18 Thread Jarkko Hietaniemi
On Fri, May 18, 2001 at 06:22:10AM -0700, Austin Hastings wrote: --- Damian Conway [EMAIL PROTECTED] wrote: It's probably just a matter of coding what you actually mean. In Perl 5 and 6 your version means if $fh is true in *any* possible way..., whereas you seem to want if $fh is

Re: Properties and 0 but true.

2001-05-18 Thread Jarkko Hietaniemi
The statement I read was true in any possible way, which implies that if $retval had a true property, the result of func would be irrelevant, since if func gave 0, any possible way would see the $retval is true property and take the it worked route. Thus, this code: my $retval is true;

Re: Separate as keyword? (Re: 'is' and action at a distance)

2001-05-18 Thread Jarkko Hietaniemi
Maybe I missed it... but what is the relationship of (Perl 5) attributes and Perl 6 properties? my $answer : constant = 42; my $answer is constant = 42; my sub ... dang, no lexical subs, but can we please have them in Perl6? :-) sub terfuge :

Re: what I meant about hungarian notation

2001-05-10 Thread Jarkko Hietaniemi
On Thu, May 10, 2001 at 12:43:13PM -0500, David L. Nicol wrote: John Porter wrote: Larry Wall wrote: : do you think conflating @ and % would be a perl6 design win? Nope, I still think most ordinary people want different operators for strings than for numbers. Different

Re: So, we need a code name...

2001-05-06 Thread Jarkko Hietaniemi
On Sun, May 06, 2001 at 01:31:17AM -0600, Dan Brian wrote: For your collective amuse() abuse() dismiss() I humbly submit: duran (or derivatives) Aside from conjuring images of reflex, rio, and maybe Barbarella for a select few, the word occurs in some interesting contexts. It means

Re: So, we need a code name...

2001-05-06 Thread Jarkko Hietaniemi
On Sun, May 06, 2001 at 11:51:27AM -0700, Peter Scott wrote: At 08:33 AM 5/6/01 -0500, Jarkko Hietaniemi wrote: On Sun, May 06, 2001 at 01:31:17AM -0600, Dan Brian wrote: For your collective amuse() abuse() dismiss() I humbly submit: duran (or derivatives) Aside from conjuring

Re: Apoc2 - STDIN concerns

2001-05-06 Thread Jarkko Hietaniemi
On Sun, May 06, 2001 at 10:10:24PM +0200, Bart Lateur wrote: On Sat, 5 May 2001 15:22:40 -0700, Nathan Wiger wrote: I suggest that we simply create another q-op to do the qw-ish things you're proposing. Perhaps qi() for interpolate or something else. qqw Why I'm reminded of car,

Re: sandboxing

2001-05-04 Thread Jarkko Hietaniemi
Memory limits we should be able to do, assuming Perl 6 continues to have its own malloc. Well... Perl doesn't use it's own malloc *that* widely. E.g. Linux doesn't, since at least 5.005_03. FreeBSD doesn't. OpenBSD doesn't. Darwin doesn't. AIX doesn't. IRIX doesn't. Starting from 5.8.0

Re: apo 2

2001-05-04 Thread Jarkko Hietaniemi
On Fri, May 04, 2001 at 09:47:18AM -0600, Nathan Torkington wrote: Michael G Schwern writes: $foo has true doesn't flow as well as $foo is true. Dunno quite what the other expected uses are. $foo has truth; # :-) This leads naturally to: $foo has the_buddha_nature; $foo has

Re: Please make last work in grep

2001-05-02 Thread Jarkko Hietaniemi
On Wed, May 02, 2001 at 05:36:11PM +0100, Graham Barr wrote: On Wed, May 02, 2001 at 06:29:51PM +0200, Bart Lateur wrote: On Wed, 2 May 2001 17:05:31 +0100, Graham Barr wrote: wantarray-ness is already passed along the call stack today. Thats the whole point of it. So what is the

Re: .NET

2001-05-02 Thread Jarkko Hietaniemi
On Wed, May 02, 2001 at 05:22:26PM -0400, David Grove wrote: am seeing some similarities between some of the proposed goals of Perl 6 and the .NET platform. . . . many things in .NET have been discussed similarly here. That's because .NET attempts to address real-world issues. The

Re: Flexible parsing (was Tying Overloading)

2001-04-26 Thread Jarkko Hietaniemi
On Thu, Apr 26, 2001 at 04:13:30PM -0700, Larry Wall wrote: Eric Roode writes: : John Porter wrote: : IIUC, this ability is precisely what Larry was saying Perl6 would have. : : I may have my history wrong here, but didn't Ada try that? Not at all. The syntax of Ada was nailed down

Re: Flexible parsing (was Tying Overloading)

2001-04-26 Thread Jarkko Hietaniemi
On Fri, Apr 27, 2001 at 02:28:58AM +0100, Simon Cozens wrote: On Thu, Apr 26, 2001 at 06:25:03PM -0500, Jarkko Hietaniemi wrote: In a sick way I kinda liked how compilers were able to give out error messages not unlike: foo.ada: line 231: Violation of sections 7.8.3, 9.11.5b and 10.0.16

how about just juxtaposing? (Re: Sane + string concat proposal)

2001-04-24 Thread Jarkko Hietaniemi
I think the magical + isn't going to work. Has the road of just putting things next to each other been extensively tried? It works for Awk... juxtapose, the Famous Invisible Perl Operator. Perl 5 Perl 6 $a = $b . $c; $a = $b $c; # or $b$c

Re: YA string concat proposal

2001-04-24 Thread Jarkko Hietaniemi
On Tue, Apr 24, 2001 at 01:42:43PM -0700, Nathan Wiger wrote: Uri Guttman wrote: on the other hand, i use .= all the time and wouldn't like to lose it. schwern idea of ce doesn't work for me as only the op= stuff means assignment and ce would break that (e for = isn't visual enough).

Re: Tying Overloading

2001-04-23 Thread Jarkko Hietaniemi
Or we change the concatenation operator. $a = $b $c; # Do people really use Perl for bit fiddling? Oy! You keep your greedy fingers off my bitvectors. (Incidentally I hope that in Perl 6 there's a way to shift the bitvector aspect of $s: currently $s and $s to shift the numeric aspect

Re: Parsing perl 5 with perl 6 (was Re: Larry's Apocalypse 1)

2001-04-16 Thread Jarkko Hietaniemi
I don't get it. The first and foremost duty of Perl 6 is to parse and execute Perl 6. If it doesn't, it's not Perl 6. I will call this the Prime Directive. I think as the first approximation the implementation of Perl 6 should get that "simple" task right. If it doesn't, all our talk and work

Re: Larry's Apocalypse 1

2001-04-10 Thread Jarkko Hietaniemi
On Tue, Apr 10, 2001 at 09:28:29AM -0400, John Porter wrote: Dan Sugalski wrote: if (-M "http://www.perl.com/" -M "http://www.python.org/") {...} Nope. Doesn't work with other magic filenames, why should it with these? Because Perl6 will be better than Perl5. I wouldn't mind (in

one more language to assimilate

2001-04-07 Thread Jarkko Hietaniemi
http://www.zdnet.com/intweek/stories/news/0,4164,2705101,00.html http://www.curl.com/html/technology/documentation.jsp (and you have to admit the name is amusingly close) -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologist word we use for 'stable'. # It is

Re: Larry's Apocalypse 1

2001-04-06 Thread Jarkko Hietaniemi
It might even mean that we can have a URL literal type, I trust that you will think long and hard about that. Agreed. Saying "URL literal type" is rather bold since "URL" is an open-ended story. It is certainly nice to think of them as opaque filenames for "opening" them and doing IO on

Re: Larry's Apocalypse 1

2001-04-06 Thread Jarkko Hietaniemi
On Fri, Apr 06, 2001 at 07:57:28PM +0100, Simon Cozens wrote: On Fri, Apr 06, 2001 at 07:55:26PM +0100, Graham Barr wrote: Ah OK. So I assume that do "you"; will do the file in a void context Theoretically, yes. (ie, probably not.) From bleadperl t/op/do.t: if (open(DO, "$$.16")) {

Re: Larry's Apocalypse 1

2001-04-06 Thread Jarkko Hietaniemi
On Fri, Apr 06, 2001 at 01:19:30PM -0600, Dan Brian wrote: It might even mean that we can have a URL literal type, I trust that you will think long and hard about that. Agreed. Saying "URL literal type" is rather bold since "URL" is an open-ended story. It is certainly nice

Re: Larry's Apocalypse 1

2001-04-06 Thread Jarkko Hietaniemi
On Fri, Apr 06, 2001 at 03:37:35PM -0400, Adam Turoff wrote: On Fri, Apr 06, 2001 at 03:31:56PM -0400, John Porter wrote: Jarkko Hietaniemi wrote: So URLs are not literals, they have structure, and only thinking of them as filenames may be too simplistic. Yeah. But Rebol manages

Re: Larry's Apocalypse 1

2001-04-06 Thread Jarkko Hietaniemi
On Fri, Apr 06, 2001 at 08:42:18PM +, [EMAIL PROTECTED] wrote: Jarkko Hietaniemi [EMAIL PROTECTED] writes: But the structure you speak of exists only on the server. A URL as accessor reference doesn't really need to know anything about the opening of that path other than the fact

Re: Larry's Apocalypse 1

2001-04-05 Thread Jarkko Hietaniemi
On Wed, Apr 04, 2001 at 11:46:12PM -0700, Nathan Torkington wrote: Not a comment at all on it? Was I accidentally unsubscribed to perl6-language? *tap* *tap* is this thing on? Nat Me, I've been racking my brain to figure out whether Damian is Famine, War, Plague, or Death... --

Re: Perl culture, perl readabillity

2001-03-29 Thread Jarkko Hietaniemi
Nicely put, Merijn. Stomping into (any) programming language camp and telling loudly that what you are doing is wrong is a bit like stomping into a Mongol camp and asking what's up with the funny fur hats. Or, in the of case Perl, accusing us of too much line noise and being too hard to read,

Re: What can we optimize (was Re: Schwartzian transforms)

2001-03-29 Thread Jarkko Hietaniemi
On Thu, Mar 29, 2001 at 10:25:06AM -0500, James Mastros wrote: On Wed, Mar 28, 2001 at 03:41:42PM -0800, Hong Zhang wrote: Are we over-optimizing? The Perl is just an interpreter language. Who really needs this kind of optimization for Perl? Even C does not provide this feature. Umm, art

Re: What can we optimize (was Re: Schwartzian transforms)

2001-03-29 Thread Jarkko Hietaniemi
On Thu, Mar 29, 2001 at 11:29:16AM -0500, Dan Sugalski wrote: At 05:19 PM 3/29/2001 +0100, Dave Mitchell wrote: Jarkko Hietaniemi [EMAIL PROTECTED] wrote: Somewhat tangentially: this reminds me of a message a week ago or so (can't find it anymore in my inbox) which proposed writing C

Re: Schwartzian Transform

2001-03-26 Thread Jarkko Hietaniemi
On Mon, Mar 26, 2001 at 05:17:38PM -0500, John Porter wrote: Simon Cozens wrote: With all due respect, that's not been my experience. Even beginners know how to do things like "length", by far the most common case for the ST. You must be kidding. Sorting a list of strings by length is

Re: Schwartzian Transform

2001-03-26 Thread Jarkko Hietaniemi
On Mon, Mar 26, 2001 at 05:29:24PM -0500, John Porter wrote: Jarkko Hietaniemi wrote: ST (or GR) applies to any situation where you your sort comparator function isn't directly expressible with (Perl) primitives, and worthwhile it is (like Yoda feel I) when the cost of converting

Re: Schwartzian Transform

2001-03-21 Thread Jarkko Hietaniemi
On Wed, Mar 21, 2001 at 10:24:05AM -0500, John Porter wrote: Uri Guttman wrote: records can be strings, or any perl [LH]o[LH]. y/L/A/; for a schwartz (drop the 'ian') or GR transform. Why? So it conforms with the "Guttman-Rosler" naming standard? Which *I* would call "Macdonald

quote for the day

2001-02-27 Thread Jarkko Hietaniemi
What is this talk of software 'releases'? Klingons do not 'release' software; our software ESCAPES, leaving a bloody trail of designers and quality assurance people in its wake! -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologist word we use for 'stable'. # It

Re: quote for the day

2001-02-27 Thread Jarkko Hietaniemi
What is this talk of software 'releases'? Klingons do not 'release' software; our software ESCAPES, leaving a bloody trail of designers and quality assurance people in its wake! Sorry, forgot the annotation: -- seen as the .sig of Malcolm Purvis [EMAIL PROTECTED], used completely without

Re: The binding of my (Re: Closures and default lexical-scope for subs)

2001-02-16 Thread Jarkko Hietaniemi
FOR --- 1. It becomes more consistent with other Perl functions my is not a function. It is a declaration. Functions take arguments and return values. my does not. It is language construct like if. Unless, of course, you claim that if is a function, too. That ways lies LISP.

Re: Auto-install (was autoloaded...)

2001-02-12 Thread Jarkko Hietaniemi
On Mon, Feb 12, 2001 at 12:36:53PM -0300, Branden wrote: John Porter wrote: Branden wrote: For example, with tgz it would be complex to deal with running without extracting, What? tar -z not good enough for you? The problem is that we cannot access individual files inside

Re: Auto-install (was autoloaded...)

2001-02-12 Thread Jarkko Hietaniemi
par can do something similar. It can slap a copy of pun (and thus perl) onto the archive. Its not simple, and its platform dependent, but its useful. I'm more and more seeing par as a way of embrace/extend/destroying perl2exe. And I think we could squeeze something into 5.8. Careful

Re: Auto-install (was autoloaded...)

2001-02-12 Thread Jarkko Hietaniemi
On Mon, Feb 12, 2001 at 02:19:54PM -0500, [EMAIL PROTECTED] wrote: On Mon, Feb 12, 2001 at 01:03:31PM -0600, Jarkko Hietaniemi wrote: The problem of unpacking, or in other words, installing, or in other words, embedded hardwired paths is hard. Think library paths: both pure Perl libraries

Re: Auto-install (was autoloaded...)

2001-02-12 Thread Jarkko Hietaniemi
On Mon, Feb 12, 2001 at 02:41:01PM -0500, [EMAIL PROTECTED] wrote: Oh, I fully realize that *none* of this "self-extracting" nonsense is going to be cross-platform by any means. For each variation of Unix Whew! I was starting to think I'm surrounded by tunnel visioned penguins. you'll need

Re: Auto-install (was autoloaded...)

2001-02-09 Thread Jarkko Hietaniemi
On Fri, Feb 09, 2001 at 06:17:34PM -0200, Branden wrote: I had the time to do a research in Internet about rpm/jar. The correct URLs are: * http://www.rpm.org * http://java.sun.com/products/jdk/1.1/docs/guide/jar/ I found great utilitaries in http://www.rpm.org/software.html, we could

Re: Auto-install (was autoloaded...)

2001-02-09 Thread Jarkko Hietaniemi
On Fri, Feb 09, 2001 at 06:46:26PM -0200, Branden wrote: Jarkko Hietaniemi wrote: Whatever we do I would much prefer being package format agnostic instead of tying ourselves too tightly with some single format. Any ideas on how to do that? Without breaking requirements? There isn't

Re: Auto-install (was autoloaded...)

2001-02-09 Thread Jarkko Hietaniemi
On Fri, Feb 09, 2001 at 04:05:54PM -0500, John Porter wrote: Jarkko Hietaniemi wrote: There isn't a software problem another abstraction layer can't fix... "...except the problem of too many layers of abstraction". tchrist (for those of you who didn't get the reference

Re: Auto-install (was autoloaded...)

2001-02-09 Thread Jarkko Hietaniemi
On Fri, Feb 09, 2001 at 04:09:28PM -0500, John Porter wrote: Jarkko Hietaniemi wrote: (for those of you who didn't get the reference) Well, I certainly heard the reference before even hearing of Perl or Tom... I only ever saw it with his name on it. I believe the first part

Re: Auto-install (was autoloaded...)

2001-02-09 Thread Jarkko Hietaniemi
On Fri, Feb 09, 2001 at 09:18:55PM +, Nicholas Clark wrote: On Fri, Feb 09, 2001 at 04:07:51PM -0500, John Porter wrote: Branden wrote: For example, with tgz it would be complex to deal with running without extracting, What? tar -z not good enough for you? I believe

Re: Auto-install (was autoloaded...)

2001-02-09 Thread Jarkko Hietaniemi
On Fri, Feb 09, 2001 at 09:22:13PM +, Nicholas Clark wrote: On Fri, Feb 09, 2001 at 02:53:43PM -0600, Jarkko Hietaniemi wrote: On Fri, Feb 09, 2001 at 06:46:26PM -0200, Branden wrote: problems (like `oh! I don't have bzip2 and the developper only supplied a bzip2 version

Re: assign to magic name-of-function variable instead of return

2001-02-08 Thread Jarkko Hietaniemi
On Tue, Feb 06, 2001 at 05:01:03AM +1100, Damian Conway wrote: Really? Are lexicals in the sub visible in the post handler? No. Only the original arguments and the return value. (Of course I realize *F does not illustrate this...) Exactly. ;-) Actually, I do agree that

Re: Really auto autoloaded modules

2001-02-02 Thread Jarkko Hietaniemi
I wasn't clear. I was thinking that somehow a module would register with the core what interfaces it support when it is installed. Anything else is madness (ok, my idea is madness too). Your idea's not madness--it is, in fact, what I'm looking for us to define. A gut feeling that I have

Re: Really auto autoloaded modules

2001-02-02 Thread Jarkko Hietaniemi
On Fri, Feb 02, 2001 at 02:36:43PM -0500, James Mastros wrote: On Fri, Feb 02, 2001 at 01:17:35PM -0600, Jarkko Hietaniemi wrote: What I think is needed is some sort of opaque tag: the name of the 'contract' the API claims to fulfill. The name can be the name of the standard, the name

Re: Really auto autoloaded modules

2001-02-02 Thread Jarkko Hietaniemi
On Fri, Feb 02, 2001 at 02:57:20PM -0500, James Mastros wrote: On Fri, Feb 02, 2001 at 01:47:29PM -0600, Jarkko Hietaniemi wrote: A DNS name is assuming too much about the organizational structure and a mile long hex digit isn't very friendly, and neither of them is very descriptive

Re: Really auto autoloaded modules

2001-02-02 Thread Jarkko Hietaniemi
I rather like the idea that contract names are themselves namespace I rather dislike it: I think we are trying to stuff to much information on the package namespaces. names. A contract version's name is thus defined within that contract's namespace. E.g. "specifies Foo::Bar" -- I

Re: Really auto autoloaded modules

2001-02-02 Thread Jarkko Hietaniemi
On Fri, Feb 02, 2001 at 03:54:33PM -0500, John Porter wrote: Jarkko Hietaniemi wrote: I rather like the idea that contract names are themselves namespace I rather dislike it: I think we are trying to stuff to much information on the package namespaces. Well, I didn't say *package

Re: Why shouldn't sleep(0.5) DWIM?

2001-02-01 Thread Jarkko Hietaniemi
On Wed, Jan 31, 2001 at 05:35:03PM -0500, Michael G Schwern wrote: On Wed, Jan 31, 2001 at 05:23:43PM -0500, Dan Sugalski wrote: Pulling out or mangling time strikes me as intensely pointless, and I don't see it happening. The socket stuff is really the only core functionality that makes

Re: Really auto autoloaded modules

2001-02-01 Thread Jarkko Hietaniemi
On Thu, Feb 01, 2001 at 04:54:53PM +, Simon Cozens wrote: On Thu, Feb 01, 2001 at 11:52:37AM -0500, Dan Sugalski wrote: just a method for doing what we currently do with, say, glob or the heavy unicode things? None of the above. What I'm looking for is the pieces that turn the use

Re: Why shouldn't sleep(0.5) DWIM?

2001-01-30 Thread Jarkko Hietaniemi
On Tue, Jan 30, 2001 at 04:13:39AM -0500, Michael G Schwern wrote: Is there any really good reason why sleep() doesn't work for microseconds? I mean, if I can do this: sub sleep { my($time) = shift; if( /^[+-]?\d+$/ ) { sleep($time); }

Re: JWZ on s/Java/Perl/

2001-01-29 Thread Jarkko Hietaniemi
On Sun, Jan 28, 2001 at 11:07:10PM -0700, Nathan Torkington wrote: Jarkko Hietaniemi writes: True, but you can't do any of all that without knowing the platform accurately (nontrivial and requires core mod or XS). Once that's done, the rest is just a matter of extending File::Spec

Re: JWZ on s/Java/Perl/

2001-01-28 Thread Jarkko Hietaniemi
On Sun, Jan 28, 2001 at 08:56:33PM -0500, Michael G Schwern wrote: On Sun, Jan 28, 2001 at 10:07:55PM +0100, Bart Lateur wrote: Uhm, I'm sorry, but that's not good enough. You cannot distinguish between Windows 95/98/ME on one side, and NT/2k on the other, using $^O alone. After all, $^O

Re: JWZ on s/Java/Perl/

2001-01-28 Thread Jarkko Hietaniemi
On Mon, Jan 29, 2001 at 01:08:21AM -0500, Michael G Schwern wrote: On Sun, Jan 28, 2001 at 11:54:13PM -0600, Jarkko Hietaniemi wrote: The desire to know the name of the runtime platform is a misdirected desire. What you really want to know is whether function Foo will be there, what kind

Re: RFC on Coexistance and simulaneous use of multiple module version s?

2001-01-27 Thread Jarkko Hietaniemi
Larry mumbled something like "implements" and "interface". So to say package Net::FTP::Foo implements Net::FTP; But I don't think, anybody wrote an RFC about the plan. I did. Or something like it. And I've got a couple of modules on CPAN (that I really must document better)

Re: JWZ on s/Java/Perl/

2001-01-27 Thread Jarkko Hietaniemi
I like the final point: Stay tuned, I'm sure I'll have found something new to hate by tomorrow. (Well, that's how this document originally ended. But it's not true, because I'm back to hacking in C, since it's the still only way to ship portable programs.) -- $jhi++; #

Re: [FWP] sorting text in human-order

2001-01-05 Thread Jarkko Hietaniemi
On Fri, Jan 05, 2001 at 09:42:12PM -0500, Brian Finney wrote: generally speaking when you look a number and convert it into text you go through some simble steps say we start with this number 123,456,789 first we divide into sets of three (123,000,000)+(456,000)+(789) then we expand

Re: [Fwd: Re: [FWP] sorting text in human-order]

2001-01-01 Thread Jarkko Hietaniemi
On Mon, Jan 01, 2001 at 02:04:25PM -0600, Jonathan Scott Duff wrote: On Fri, Dec 29, 2000 at 11:47:59PM -0600, Jarkko Hietaniemi wrote: The sorting algorithm? Before 5.005 (I think...my memory is going) vendors' quicksort, after that Tom Horsley's excellent ultratuned quicksort (since

Re: [Fwd: Re: [FWP] sorting text in human-order]

2000-12-29 Thread Jarkko Hietaniemi
On Sat, Dec 30, 2000 at 05:31:29AM +, David L. Nicol wrote: Piers Cawley wrote: "David L. Nicol" [EMAIL PROTECTED] writes: After reading Cawley's method, I wondered if using it we could make radix-sorts the default sort method. Er... the point behind changing numbers to

Re: [Fwd: Re: [FWP] sorting text in human-order]

2000-12-28 Thread Jarkko Hietaniemi
On Wed, Dec 27, 2000 at 06:36:56PM -0600, David L. Nicol wrote: Is there a perl6 sort committee yet? AFter reading Cawley's method here, I wonder if using it we could make radix-sorts the default sort method. Radix sorts are great if the data cooperates, radix sorts can really fly in such

Re: [Fwd: Re: [FWP] sorting text in human-order]

2000-12-28 Thread Jarkko Hietaniemi
On Thu, Dec 28, 2000 at 03:43:21PM -0500, John Porter wrote: Dan Sugalski wrote: use sort qw(radix_sort); sort \radix_sort @data; Isn't that the slot where the comparison function goes? Maybe something more like this: use sort::radix_sort; sort @data; # magically uses

Re: Larry update

2000-12-18 Thread Jarkko Hietaniemi
On Mon, Dec 18, 2000 at 11:33:36AM -0700, Nathan Torkington wrote: I just got off the phone with Larry. He's been laid up for three weeks with a trip to Japan followed by a virus from Japan. He's on So Perl 6 will be...Ruby? :-) -- $jhi++; # http://www.iki.fi/jhi/ # There is this

Re: Perl 5's non-greedy matching can be TOO greedy!

2000-12-15 Thread Jarkko Hietaniemi
Please give it a rest. I think everybody got it by now. Everybody understands how the current implementation works and what the semantics are, and you disagree with the current semantics. I think that's the end of story since changing current default semantics is simply not an option. We

Re: Perl 5's non-greedy matching can be TOO greedy!

2000-12-15 Thread Jarkko Hietaniemi
More generally, it seems to me that you're hung up on the description of "*?" as "shortest possible match". That's an ambiguous Yup, that's a bit confusing. It's really "start matching as soon as possible, and stop matching as soon as possible". (The usual greedy one is, of course, "keep

more food for thought

2000-12-15 Thread Jarkko Hietaniemi
Limbo, the systems programming language of Inferno, nee Plan 9, nee UNIX. http://www.vitavuova.com/inferno/papers/limbo.html ( Found thorough the the recent /. link where a whole operating system (Inferno) is available as a browser (IE) plugin:

Re: more food for thought

2000-12-15 Thread Jarkko Hietaniemi
On Fri, Dec 15, 2000 at 03:22:48PM -0600, Jarkko Hietaniemi wrote: Limbo, the systems programming language of Inferno, nee Plan 9, nee UNIX. http://www.vitavuova.com/inferno/papers/limbo.html ( Found thorough the the recent /. link where a whole operating system (Inferno) is available

Re: more food for thought

2000-12-15 Thread Jarkko Hietaniemi
On Fri, Dec 15, 2000 at 04:30:59PM -0500, Sam Tregar wrote: On Fri, 15 Dec 2000, Jarkko Hietaniemi wrote: Limbo, the systems programming language of Inferno, nee Plan 9, nee UNIX. http://www.vitavuova.com/inferno/papers/limbo.html What are your thoughts about Limbo? I did some Limbo

one major flaw in the RFC processn

2000-10-04 Thread Jarkko Hietaniemi
Status: Frozen I'm sorry, I was gonna bite my lip, but I've gotta say: Freezing RFC's like this when the following is true: A lot of good, heated discussion was generated on the mailing lists. The majority seems against using XML-DTD documentation, but granted there are

Re: RFC 357 (v2) Perl should use XML for documentation instead of POD

2000-10-04 Thread Jarkko Hietaniemi
I disagree. The RFC process is for generating ideas, not making decisions, nor is any author obliged to include ideas he/she doesn't agree with; that's why others can (or could) submit RFCs that contradict it, if they want to. The author is no more obliged to include opposing opinions in

Re: Expunge use English from Perl?

2000-10-02 Thread Jarkko Hietaniemi
On Mon, Oct 02, 2000 at 07:32:42AM -0400, Bryan C. Warnock wrote: On Wed, 27 Sep 2000, Nathan Wiger wrote: Yeah, I've never liked the _ syntax, I've always thought it was weird (to say the least). I think grouping file tests would be much cleaner. As long as you are okay with having to

Re: Conversion of undef() to string user overridable for easy debugging

2000-10-02 Thread Jarkko Hietaniemi
On Mon, Oct 02, 2000 at 09:17:31PM -0500, David L. Nicol wrote: Jarkko Hietaniemi wrote: This reminds me of a related but rather opposite desire I have had more than once: a quotish context that would be otherwise like q() but with some minimal extra typing I could mark a scalar

Re: $a in @b (RFC 199)

2000-09-14 Thread Jarkko Hietaniemi
David L. Nicol wrote: "Randal L. Schwartz" wrote: I think we need a distinction between "looping" blocks and "non-looping" blocks. And further, it still makes sense to distinguish "blocks that return values" (like subroutines and map/grep blocks) from either of those. But

Re: $a in @b (RFC 199)

2000-09-14 Thread Jarkko Hietaniemi
On Thu, Sep 14, 2000 at 11:46:31AM -0400, 'John Porter' wrote: Jarkko Hietaniemi wrote: In the other camp, Cyield has been suggested; but the conflation of that with its thread-related semantics may not be a such good idea. Cpass. Well, "pass" might be o.k.; but it usu

Re: RFC 226 (v1) Selective interpolation in single quotish context.

2000-09-14 Thread Jarkko Hietaniemi
On Thu, Sep 14, 2000 at 06:04:41PM -0400, Mark-Jason Dominus wrote: seconded by Mark-Jason Dominus [EMAIL PROTECTED] Except that I don't think adding this feature to the existing q{...} is a good idea. If I had to vote on your proposal, I would instantaly vote against it. I think you

Re: RFC 226 (v1) Selective interpolation in single quotish context.

2000-09-14 Thread Jarkko Hietaniemi
On Thu, Sep 14, 2000 at 05:11:39PM -0500, Jarkko Hietaniemi wrote: On Thu, Sep 14, 2000 at 06:04:41PM -0400, Mark-Jason Dominus wrote: seconded by Mark-Jason Dominus [EMAIL PROTECTED] Except that I don't think adding this feature to the existing q{...} is a good idea. If I had

Re: RFC 226 (v1) Selective interpolation in single quotish context.

2000-09-14 Thread Jarkko Hietaniemi
On Thu, Sep 14, 2000 at 06:17:07PM -0400, Mark-Jason Dominus wrote: One could for example have a pragma to *really* tag variables lexically to be expanded within singlequotes. Or a pragma that simply changes the semantics of q{...} so that it has the proposed feature for the rest of

Re: RFC 226 (v2) Selective interpolation in single quotish context.

2000-09-14 Thread Jarkko Hietaniemi
On Thu, Sep 14, 2000 at 10:01:23PM -0400, Jerrad Pierce wrote: What's wrong with extending current syntax such that: Please read the discussion so far. -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologist word we use for 'stable'. # It is 'dead'. -- Jack Cohen

Re: RFC 226 (v2) Selective interpolation in single quotish context.

2000-09-14 Thread Jarkko Hietaniemi
Hang on... \I \E amounts to the same number of characters as using '. .' (that is, terminating this q-string, concat the thing, start a new q-string) So for scalars, there would be no savings at all. For arrays, yes, the proposed \I \E would still be useful. Maybe the \I should just scan for

Re: RFC 226 (v2) Selective interpolation in single quotish context.

2000-09-14 Thread Jarkko Hietaniemi
On Fri, Sep 15, 2000 at 01:56:39PM +1100, Damian Conway wrote: Hang on... \I \E amounts to the same number of characters as using '. .' (that is, terminating this q-string, concat the thing, start a new q-string) You can't do that in a 'HERE' doc. True. For arrays,

Re: Conversion of undef() to string user overridable for easy debugging

2000-09-13 Thread Jarkko Hietaniemi
On Wed, Sep 13, 2000 at 10:49:41PM +0200, Bart Lateur wrote: Imagine the following scenario: your script contains a doiuble-quotish 40 line here-doc, with a bunch of variables in it. Unforetunately, you forgot to set one, and you get the not so helpful complaint: use of unitialized

Re: $a in @b (RFC 199)

2000-09-11 Thread Jarkko Hietaniemi
On Mon, Sep 11, 2000 at 05:31:33PM -0400, 'John Porter' wrote: Garrett Goebel wrote: I'd be surprised if sub mygrep (@) { my ($coderef, @list, @stack) = @_; $coderef and push(@stack, $_) foreach (@list); return @stack; } @a = mygrep { return ($_ = 2) ? 1 : 0 } (1,

Re: XML/HTML-specific ? and ? operators? (was Re: RFC 145 (alternate approach))

2000-09-07 Thread Jarkko Hietaniemi
On Thu, Sep 07, 2000 at 03:42:01PM -0400, Eric Roode wrote: Richard Proctor wrote: I think what is needed is something along the line of : $re = qz{ '(' \$re ')' | \$re \$re | [^()]+ }; Where qz is some hypothetical

Re: $a in @b

2000-09-07 Thread Jarkko Hietaniemi
On Thu, Sep 07, 2000 at 10:05:58PM +0200, Bart Lateur wrote: On Fri, 8 Sep 2000 05:59:02 +1100 (EST), Damian Conway wrote: But it makes "short-circuit as soon as Cgrep lets through a specific value" ugly: my $seen; $has_odd_elem = grep { $seen last; $_%2 ++$seen }

Re: $a in @b

2000-09-07 Thread Jarkko Hietaniemi
I would propose that the Cgrep operation should short-circuit if the block throws an exception, with the value of the expection determining whether the final invocation of the block should accept the element it was filtering: Otherwise nice but until now die() has been a serious thing, now

Re: $a in @b

2000-09-07 Thread Jarkko Hietaniemi
Exactly the sort of chicanery grep/last is meant to avoid. So the question becomes, how do we crowbar "last" in without altering the returned value in Cmap blocks. I'm for putting it after a comma. Which matches the syntax of John Porter's proposal about internally converting the block to a

Re: XML/HTML-specific ? and ? operators? (was Re: RFC 145 (alternate approach))

2000-09-06 Thread Jarkko Hietaniemi
On Wed, Sep 06, 2000 at 03:47:57PM -0700, Randal L. Schwartz wrote: "Mark-Jason" == Mark-Jason Dominus [EMAIL PROTECTED] writes: Mark-Jason I have some ideas about how to do this, and I will try to Mark-Jason write up an RFC this week. "You want Icon, you know where to find it..." :)

Re: $a in @b

2000-09-06 Thread Jarkko Hietaniemi
On Wed, Sep 06, 2000 at 09:43:03AM -0500, Garrett Goebel wrote: From: Jonas Liljegren [mailto:[EMAIL PROTECTED]] Does any other RFC give the equivalent to an 'in' operator? I have a couple of times noticed that beginners in programming want to write if( $a eq ($b or $c or $d)){...}

Re: $a in @b

2000-09-06 Thread Jarkko Hietaniemi
On Wed, Sep 06, 2000 at 09:46:13AM -0600, Tom Christiansen wrote: grep { $_ == 1 } 1..1_000_000 grep doesn't short-circuit. I never did figure out why "last" {w,sh,c}ouldn't be made to do that very thing. Agreed, that would be very natural. -- $jhi++; # http://www.iki.fi/jhi/

Re: RFC 194 (v1) Standardise Function Pre- and Post-Handling

2000-09-06 Thread Jarkko Hietaniemi
On Thu, Sep 07, 2000 at 06:28:25AM +1100, Damian Conway wrote: I should have an RFC out on this by next week. Feel free to hijack and/or infiltrate my RFC. Damian -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologist word we use for 'stable'. # It is 'dead'.

Re: RFC 177 (v1) A Natural Syntax Extension For Chained References

2000-08-30 Thread Jarkko Hietaniemi
On Wed, Aug 30, 2000 at 11:10:54AM -0400, John Porter wrote: Snatch two syntax constructs away from the jaws of illegal syntax and an unfortunate syntax, and make them useful weapons of the Perl arsenal. The constructs are: $ref-[[LIST]] $ref-{{LIST}} The proposed

Re: RFC 151 (v1) Merge C$!, C$^E, and C$@

2000-08-27 Thread Jarkko Hietaniemi
: That numerical part could then form the basis of the extended exception : mechanism. No, the programmer shouldn't memorize the error numbers: : there should be predefined constants, like : : ERROR::filenotfound : : which are numeric, and which could then be used for the catch

Re: RFC 140 (v1) One Should Not Get Away With Ignoring System Call Errors

2000-08-24 Thread Jarkko Hietaniemi
On Thu, Aug 24, 2000 at 02:09:15PM -0400, Chaim Frenkel wrote: "JH" == Jarkko Hietaniemi [EMAIL PROTECTED] writes: JH "The first operation done on the return value of open() shall be defined() JH or you shall regret your pitiful existence."? (a flag on the scalar

  1   2   >