Re: what's new continued

2002-07-04 Thread Ariel Scolnicov
you will find that it is impossible to copy a quantum wave function. -- Ariel Scolnicov|http://3w.compugen.co.il/~ariels Compugen Ltd. |[EMAIL PROTECTED]Sometimes people write an 72 Pinhas Rosen St.|Tel: +972-3-7658117 accidental haiku. Damn! Tel-Aviv 69512, ISRAEL

Re: what's new continued

2002-07-04 Thread Ariel Scolnicov
Ariel Scolnicov [EMAIL PROTECTED] writes: [...] will apply to any method? To any sub? Can I call a sub 17 times by saying (undef) x 17 = foo(1,2,3); That should be (undef) x 17 = ^foo(1,2,3); of course. Sorry. [...] -- Ariel Scolnicov|http://3w.compugen.co.il

Re: Apoc 5 questions/comments

2002-06-10 Thread Ariel Scolnicov
to get these days. /EvilScientist Cut the Smalltalk. It's off-topic. -- Ariel Scolnicov

Re: stringification of objects, subroutine refs

2002-05-12 Thread Ariel Scolnicov
. [...] -- Ariel Scolnicov|http://3w.compugen.co.il/~ariels Compugen Ltd. |[EMAIL PROTECTED]Sometimes people write an 72 Pinhas Rosen St.|Tel: +972-3-7658117 accidental haiku. Damn! Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555 It just happened!

Re: Loop controls

2002-05-01 Thread Ariel Scolnicov
language): PLEASE ABSTAIN -- Ariel Scolnicov|http://3w.compugen.co.il/~ariels Compugen Ltd. |[EMAIL PROTECTED]Sometimes people write an 72 Pinhas Rosen St.|Tel: +972-3-7658117 accidental haiku. Damn! Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555 It just

Re: Regex and Matched Delimiters

2002-04-23 Thread Ariel Scolnicov
to produce many references to the FAQ Why doesn't /a word/ match 'a word'?. (Having to escape #s is not as bad, as they are less common). [...] -- Ariel Scolnicov|http://3w.compugen.co.il/~ariels Compugen Ltd. |[EMAIL PROTECTED] 72 Pinhas Rosen St.|Tel: +972-3-7658117 fast

Re: Defaulting params

2002-04-11 Thread Ariel Scolnicov
not sure that would be a good idea, either). And we already have 3, kinda, by passing a hash of arguments. -- Ariel Scolnicov|http://3w.compugen.co.il/~ariels Compugen Ltd. |[EMAIL PROTECTED] 72 Pinhas Rosen St.|Tel: +972-3-7658117 fast, good, and cheap; Tel-Aviv 69512

Re: [A-Z]+\s*\{

2002-01-21 Thread Ariel Scolnicov
effect free. Like I said earlier, I think the important thing is to make people think about it, not to continually frustrate them. I'd be inclined to let people choose their own level of pain by setting DbC strictness thresholds. Please set my threshold of side effect pain to undef... -- Ariel

Re: Damian Conway's Exegesis 2

2001-05-16 Thread Ariel Scolnicov
: \n). So how come `print' gets to mung about with evaluation order? [...] Hoping for illumination, -- Ariel Scolnicov|GCAAGAATTGAACTGTAG| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-5713025 (Jerusalem) \ We recycle all our Hz 72 Pinhas Rosen St.|Tel: +972-3

Re: Please make last work in grep

2001-05-03 Thread Ariel Scolnicov
we'd definitely want ((undef)x((@list+1)/2), $median) = sort {...} @list; to apply Perl's patented MindReader(tm) technology and run a median algorithm. Wait, that last one's probably a bit too far-fetched... -- Ariel Scolnicov|GCAAGAATTGAACTGTAG| [EMAIL PROTECTED

Re: Larry's Apocalypse 1

2001-04-10 Thread Ariel Scolnicov
r the main page of www.perl.org to get dumped to stdout. Well, this seems innocent enough, but how far do you want to stretch it? use ICBM; unlink 'http://www.macrosoft.com/'; # You get the idea Just as well we had the flames about what to call Cunlink, no? [...] -- Ariel

Re: Schwartzian Transform

2001-03-28 Thread Ariel Scolnicov
ften worse), since Memoize was designed with other things in mind. But it's probably a "good enough" solution, and has very low brain overhead. -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-5713025 (Jerusale

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

2001-02-07 Thread Ariel Scolnicov
doubt that outweighs the small benefits. However, unwind-protect is useful. It's either use that or use something destructor-related. That just sits on top of some unwind-protect-like hack in the internals. -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED

Re: TIL redux (was Re: What will the Perl6 code name be?)

2000-10-24 Thread Ariel Scolnicov
ammed by compiling myriads of very small "words", in gradually increasing levels. Perl code is not like that. So almost all the things you'll be threading will be words from the Perl core (rather than words defined in the program). [...] inline threaded code is something who

Re: Why does atan2 take 2 arguments?

2000-10-17 Thread Ariel Scolnicov
to unambiguously assign the correct quadrant. To expand: consider the results of atan2(1,1) and atan2(-1,-1). Now compare with the results of atan(1) and, well, atan(1). Slopes are the same going "up" and "down", but the angle is not! -- Ariel Scolnicov

Re: RFC 290 (v1) Remove -X

2000-09-27 Thread Ariel Scolnicov
s to stuff the long names into some namespace, and export them upon request (or maybe not export them, upon request). [...] -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-5713025 (Jerusalem) \ We recycle all our Hz 72 Pinh

Re: Perl6Storm: Intent to RFC #0101

2000-09-24 Thread Ariel Scolnicov
ot;is_" prefix serves only to make predicates impossible to read out, leading to thinkos. [...] -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-5713025 (Jerusalem) \ We recycle all our Hz 72 Pinhas Rosen St.|Tel:

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-15 Thread Ariel Scolnicov
has some feature does not mean you are obligated to use it in all programs. -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-5713025 (Jerusalem) \ We recycle all our Hz 72 Pinhas Rosen St.|Tel: +972-3-7658514 (M

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-14 Thread Ariel Scolnicov
ERE_DOC This is indented one char. This is on the left margin. SECOND_HERE_DOC But (1) needs to be resolved (and don't say "use tabs 8"!). -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-571

Re: $a in @b

2000-09-11 Thread Ariel Scolnicov
Creturn in Perl5? (Except, of course, that Creturn inside a Cgrep does a whole lot more nowadays). -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-5713025 (Jerusalem) \ We recycle all our Hz 72 Pinhas Rosen St.|Tel

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-09-11 Thread Ariel Scolnicov
that sets are bit vectors, drawn on some pre-specified world! -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-5713025 (Jerusalem) \ We recycle all our Hz 72 Pinhas Rosen St.|Tel: +972-3-7658514 (Main office)`---

Re: RFC 114 (v2) Perl resource configuration

2000-09-05 Thread Ariel Scolnicov
ething I'm against, I'm just trying to find a way I could use it. But for this to work, the users must not have filesystem access to the installed modules (otherwise they'll just Cuse lib). In which case the whole point is moot. [...] -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"

Re: RFC 184 (v1) Perl should support an interactive mode.

2000-09-04 Thread Ariel Scolnicov
e of being completed into a syntactically legal construct (this is a difference between "2+" and "))};;"). Access to the parser needs to be in the core... -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-5713025 (

Re: RFC 111 (v3) Here Docs Terminators (Was Whitespace and Here Docs)

2000-09-04 Thread Ariel Scolnicov
terminator. Otherwise the behaviour of Cprint 'END#17' is unclear. This issue was raised during previous discussion of the RFC. -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-5713025 (Jerusalem) \ We recycle all our Hz 72 Pi

Re: RFC 114 (v2) Perl resource configuration

2000-09-02 Thread Ariel Scolnicov
l, Cperldl, and any other application written in Perl are a nice idea (one that TomC seems to support). This has nothing to do with wanting to configure the language itself. [...] -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd.

Re: RFC 184 (v1) Perl should support an interactive mode.

2000-09-01 Thread Ariel Scolnicov
eaning to the parsed data. Such an extension of the perl-parser could definately be applied to a debugger.. This is a separate issue, which belongs in a separate RFC. The debugger syntax should be as close as possible to the Perl syntax; any extensions are probably unwarranted. [...] -- Arie

Re: RFC 111 (v2) Here Docs Terminators (Was Whitespace and Here Docs)

2000-08-28 Thread Ariel Scolnicov
e if this is a good idea. However, bear in mind that if you want a comment on the end-of-here-document line, you probably aren't going to add more `#' characters to it. [...] -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +97

Re: Maximum length input lines

2000-08-20 Thread Ariel Scolnicov
ption, as the damage is done before substr ever gets to see the "line". A better solution would be a tied-filehandle module which would do its own buffered reading and croak on long lines; presumably it would use sysread internally. -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Ariel Scolnicov
to remember a professor at the university going on about how Algol68 did _some_ dereferencing automatically. -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-6795059 (Jerusalem) \ We recycle all our Hz 72 Pinhas Rosen S

Re: RFC 76 (v1) Builtin: reduce

2000-08-17 Thread Ariel Scolnicov
Nathan Torkington [EMAIL PROTECTED] writes: Piers Cawley writes: The $a and $b of the sort comparator were A Bad Idea to begin with. Ditto. Can we ditch these in Perl 6? Don't see why $_[0] and $_[1] can't be used, or even a more standard $1 and $2. Either one makes it more

Re: RFC 109 (v1) Less line noise - let's get rid of @%

2000-08-17 Thread Ariel Scolnicov
John Porter [EMAIL PROTECTED] writes: Ariel Scolnicov wrote: John Porter [EMAIL PROTECTED] writes: foo = bar; foo could be just about anything: a string, a hashref, some other blessed ref (with op"=" possibly overloaded!), or even an lvalue sub. Do you know? Shoul

Re: RFC 84 (v1) Replace = (stringifying comma) with =

2000-08-16 Thread Ariel Scolnicov
ties were efficient, it would be trivial to implement a SortedHash which would perform "each"-style accesses in sorted order. Standard Perl library, anyone? -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-6795059 (Je

Re: RFC 90 (v1) Builtins: zip() and unzip()

2000-08-14 Thread Ariel Scolnicov
bove merge would produce [1,2,3,4,5,6,7,8]). [...] It's called `zip'. Really. -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-6795059 (Jerusalem) \ We recycle all our Hz 72 Pinhas Rosen St.|Tel: +972-3-

Re: RFC 85 (v1) All perl generated errors should have a

2000-08-11 Thread Ariel Scolnicov
will specifically warn _not_ to do this. [...] -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-6795059 (Jerusalem) \ We recycle all our Hz 72 Pinhas Rosen St.|Tel: +972-3-7658514 (Main office)`- Tel-Av

Re: RFC 76 (v1) Builtin: reduce

2000-08-10 Thread Ariel Scolnicov
evaluated in a scalar context (for things to make sense). -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-6795059 (Jerusalem) \ We recycle all our Hz 72 Pinhas Rosen St.|Tel: +972-3-7658514 (Main office)`---

Re: RFC 76 (v1) Builtin: reduce

2000-08-10 Thread Ariel Scolnicov
Chaim Frenkel [EMAIL PROTECTED] writes: "AS" == Ariel Scolnicov [EMAIL PROTECTED] writes: If the original list has no elements, Creduce immediately returns Cundef. AS I like everything except this part. Reducing an empty list should be AS an error. AS Returning undef (o

Re: RFC 64 (v1) New pragma 'scope' to change Perl's defa

2000-08-08 Thread Ariel Scolnicov
f person (which some people are). Only you must make *very* sure that the variable name you're using in your block is used *nowhere* else. So it's every bit as bad as using a global variable -- the name must be unique. -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"|

Re: RFC 64 (v1) New pragma 'scope' to change Perl's defa

2000-08-08 Thread Ariel Scolnicov
ot; for globals, if in effect). Variable declaration is good (except for some trivial programs)! -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-6795059 (Jerusalem) \ We recycle all our Hz 72 Pinhas Rosen

Re: RFC 24 (v1) Semi-finite (lazy) lists

2000-08-06 Thread Ariel Scolnicov
"Jeremy Howard" [EMAIL PROTECTED] writes: Ariel Scolnicov wrote: ...infinite lists... This (and your preceeding messages on the subject) is unfortunately not possible to do in a clean manner; for that matter, neither is the (..0) proposal. The Iorder in which results ar

Re: RFC 24 (v1) Semi-finite (lazy) lists

2000-08-06 Thread Ariel Scolnicov
"Jeremy Howard" [EMAIL PROTECTED] writes: Ariel Scolnicov wrote: Consider Cgrep {$_ = 0} (1..) . (map {-$_} (0..)). Clearly, this "should" generate the "list" C(..0). But it doesn't! Here's what really happens: Perl says to itself "1 is not non

Re: Infinite lists (was Re: RFC 24 (v1) Semi-finite (lazy) lists)

2000-08-06 Thread Ariel Scolnicov
sult each time it's called with the same arguments. Then perl would be smart enough to cache the result of calls to this sub to avoid recalculating it again later. Personally, however, I find this approach less intuitive. MJD has a perl5 package which does memoization; this is exactly what you want

Re: RFC 24 (v1) Semi-finite (lazy) lists

2000-08-06 Thread Ariel Scolnicov
egs = (..-1) would simply be C@negs = map {-$_} (1..), and the ordering of the result is again "wrong". Somebody please prove me wrong by writing useful-looking code that does not depend on the order of elements, and will work with this sort of "disordered iterator"! -- Arie

Re: PDL-P: Re: Reduce [was: Re: Random items (old p5p issues)]

2000-08-05 Thread Ariel Scolnicov
Tuomas Lukka [EMAIL PROTECTED] writes: On 4 Aug 2000, Ariel Scolnicov wrote: Karl Glazebrook [EMAIL PROTECTED] writes: OK I will raise to the bait I think it's a bit unfair to say that PDL people have failed to 'bite', there was quite a bit of discussion on our list after

Re: Deep copy

2000-08-05 Thread Ariel Scolnicov
no assignment is involved (hence the `copy' suggestion above). However, no less useful than deep copy is k-level copy, especially when k==1. Before long, we'll have `=', `:=', `-' and maybe `===' operators in the language, for the different levels of copying. This is needless bloat. [...] -- Ariel

Re: RFC 44 (v1) Bring Documentation Closer To Whatever I

2000-08-05 Thread Ariel Scolnicov
on, I'm for anything that doesn't require it to do anything. Typing is also nice for this sort of thing; if we say ##@ Update DiLithium levels sub foo(int $x) { my DiLithium $ret; # ... all returns are via $ret ... $ret; } then Perldoc6 should be able to know that foo has type int - DiLithium.

Re: RFC 44 (v1) Bring Documentation Closer To Whatever I

2000-08-05 Thread Ariel Scolnicov
others' nose hair. Have you looked at the documentation that SWIG auto-generates? -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-2-6795059 (Jerusalem) \ We recycle all our Hz 72 Pinhas Rosen St.|Tel: +972-3-7658514 (M

Re: RFC 44 (v1) Bring Documentation Closer To Whatever I

2000-08-05 Thread Ariel Scolnicov
Jarkko Hietaniemi [EMAIL PROTECTED] writes: On Sun, Aug 06, 2000 at 12:41:50AM +0300, Ariel Scolnicov wrote: [...] Have you looked at the documentation that SWIG auto-generates? Nope. Can you give a quick summary? SWIG is a tool for interfacing C (and C++ and Fortran and ...) code

Re: RFC 16 (v1) Keep default Perl free of constraints su

2000-08-04 Thread Ariel Scolnicov
doesn't need is to add a `-nobondage-and-discipline' flag, so we can't put any compulsory flags *there*. And `-w' should be the default, as we all know, so we can't put any compulsory flags on the serious programs, either! -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL

Re: RFC: lexical variables made default (revised)

2000-08-04 Thread Ariel Scolnicov
e all your variables (which I claim is essential in a language with useful scopes). Of course, it's one character longer, so I suppose `var' is out of the question... [...] -- Ariel Scolnicov|"GCAAGAATTGAACTGTAG"| [EMAIL PROTECTED] Compugen Ltd. |Tel: +972-