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
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
to get
these days.
/EvilScientist
Cut the Smalltalk. It's off-topic.
--
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!
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
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
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
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
: \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
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
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
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
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
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
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
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
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:
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
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
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
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)`---
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"
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 (
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
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.
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
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
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"
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
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
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
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
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-
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
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)`---
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
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"|
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
"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
"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
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
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
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
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
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.
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
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
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
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-
49 matches
Mail list logo