Re: what's new continued

2002-07-04 Thread raptor
|Comments (otherwise you have things pretty much right): ]- that is good :") | |> Every subrotine or variable or method or object can have a "notes" (out of bound |data) |out-of-band data ]- yep |> we can even have hyper-assignment : |> |> my ($a, $b) ^= new Foo; | |This is unlikely to do w

what's new continued

2002-07-01 Thread raptor
me again, At the moment based on Apo1->4 no ex's "walked" yet. - There is a questions inside feel free to answer ... [?? ... ??] - Also links for other reference implementation will be good. - Also feel free to correct my english :") What's new ? Let me first mention this is in no means ful

<= ?

2002-06-22 Thread raptor
I've seen in theDamian Sypnosys following code : $val <= $key does this mean that we now have also reversed syntax possible for hashes ? and pairs too ? raptor

Re: 6PAN (was: Half measures all round)

2002-06-12 Thread raptor
|On 6/4/02 12:22 PM, David Wheeler wrote: |> I think that if we can agree to forego backwards compatibility, we might |> also be in a better position to set up a CP6AN with much better quality |> control. All of the most important modules will be ported very quickly |> (e.g., the DBI), and a l

gcc vs ICC comparison

2002-05-15 Thread raptor
Does Parrot compile on ICC , if yes is it faster ? http://www.osnews.com/story.php?news_id=1056 CoyoteGulch.com has published an interesting article, benchmarking GCC 3.04 and ICC 6 (the article will be updated again after GCC 3.1's release). In the tests, ICC seems to pull ahead in most t

PRE-POST methods [Was: Selective exporting of properties/methods]

2002-05-13 Thread raptor
aren't it ?) raptor PS. One thing just pooped to me... is the "class { }" a block so that we can do all block mumbo-jumbo with it :") |> What I've often wanted would be standard method that is called before |> every |> subroutine call. If that method returns

[off] NG PThreads

2002-05-11 Thread raptor
kernel threads, thus giving the advantages of fast thread creation/deletion, and as much concurrency as the hardware will support. raptor

Re: Loop controls

2002-05-06 Thread raptor
perfect... in fact during the middle of the read someting similar come to my mind.. i.e the best way should be to have several in-loop-proprietes that we can test and decide what to do ... There have to be CAPITALISED words only for the block stuff ... raptor

Re: Loop controls

2002-05-06 Thread raptor
|> Damian, now having terrible visions of someone suggesting C ;-) | |Then may I also give you nightmares on: elsdo, elsdont, elsgrep, elstry ... ]- unlessdo, unlesdont, unlessgrep, unlesstry what about "elsunless/unlesselse" then :")

Re: Loop controls

2002-05-06 Thread raptor
|On Mon, Apr 29, 2002 at 02:55:09PM -0500, Allison Randal wrote: |> I still don't like the idea of Cs on loops. I already do an |> instant double take with C of "Where's the if?" (with visions of |> old Wendy's commercials dancing in my head). | |Me too. That's why the looping "else" should be s

Re: Loop controls

2002-05-06 Thread raptor
|Oh! I have an idea! Why don't we make the lexer just realize a prefix |"els" on any operator. Then you could do C. :P | |My point is that, IMO, this whole "els" thing is completely preposterous. |I'm the kind of person that likes to keep down on keywords. And I never |liked Perl5's C anyway; I

Re: Loop controls

2002-04-28 Thread raptor
]- me too . |I actually like Andy Wardly's suggestion of iterators. It makes a lot of |sense and looks a lot cleaner to read and write and adds less new syntax |to remember (and parse). | |Clayton raptor

Re: Roadmap for Parrot

2002-04-19 Thread raptor
Also slowing down 0.0.99 so that 0.1.0 has atleast 2-3 times speed up over 0.0.99 :")) |I don't see "World Domination" or "Nervous Breakdown" in there anywhere.

Re: I'll show you mine...

2002-04-10 Thread raptor
great idea :") I've just tried gnuCash program and think it is very cool (i've enjoyed to take first steps in double-entry accounting, i was always wondering what the hell is this :") )... http://www.ncsysadmin.org/july2001/ncsa-gnucash-talk.html#toc1 (very entertaining intro :") ) Meanw

Apo-Ex arhive

2002-04-04 Thread raptor
hi, I thought it will be good if on dev.perl6.org we have an arhive with all Apo's and Ex's, so anyone can get them in pack... (prefebaly printed version) Throught the links I got all except Apo1. Anyone to have the link nearby iVAN [EMAIL PROTECTED] - Danke very much :")

Re: VM, closures, continuation

2002-02-09 Thread raptor
es) that will speed up closures & continuation ? > > raptor > [EMAIL PROTECTED]

VM, closures, continuation

2002-02-09 Thread raptor
I was just reading this : http://www.javalobby.com/clr.html and a question raised to me. Will Parrot have some optimisation (features) that will speed up closures & continuation ? raptor [EMAIL PROTECTED]

I'm amazed - Is this true :")

2002-02-04 Thread raptor
mops tests : on perl5,python I get - 2.38 M/ops ruby ~ 1.9 M/ops ps ~ 1.5 M/ops parrot - 20.8 M/s parrot jitted - 341 M/ops and it finish in half second ... for most of the other I have to wait more that a minute .. I didnt expected it to be so fast :") ... Celeron800@1096Mhz (Mandrake 8.1) >

how to JIT ?

2002-02-02 Thread raptor
hi, how to compile JITed code ... !! Is there some list of tweaks, switches that can be used to speed up the Parrot? Particulary for people like me that are not very close to C programming :") thanx alot raptor [EMAIL PROTECTED]

Ex4, Apo5, when ?

2002-01-18 Thread raptor
Did u passed "Bermuda Triangle" :") raptor

use parrot;

2001-10-20 Thread raptor
hi, will it be possible to do this inside Perl program : use parrot; ...parrot code... no parrot; OR sub mysub is parrot { parrot code ... } = iVAN [EMAIL PROTECTED] =

http://www-124.ibm.com/developerworks/oss/jikesrvm/

2001-10-18 Thread raptor
http://www-124.ibm.com/developerworks/oss/jikesrvm/ The JikesT Research Virtual Machine (Jikes RVM) provides the academic and research communities with a flexible open testbed to prototype new virtual machine technologies and experiment with a large variety of design alternatives. The virtual mac

Links

2001-09-08 Thread raptor
All I found with lycos... but no speed comparison only mumbo-jumbo : http://language.perl.com/versus/ http://www.jvoegele.com/software/langcomp.html http://www.geocities.com/tablizer/langopts.htm http://www.cs.usyd.edu.au/~sholden/pythonperl.html http://www.pixeldate.com/dev/comparison/ = iVA

Re: An overview of the Parrot interpreter [speed]

2001-09-07 Thread raptor
hi, I see that it was mentioned that Perl5 is fast than Java, Python etc... and was wondering is there any comparison how-much, if ? and if why ? and if we know the reason can we exploit it further ... and similar... And does really Perl6 will be faster. how much u expect ? Thanx = iVAN

Re: LangSpec: Statements and Blocks

2001-09-07 Thread raptor
will the iterator variable be available in map, grep, join...etc... I was also wondering if the join syntax be extended in a way that it can support preffix and suffix... what i have in mind ... not necesary but : #pair join ($prefix => $suffix), @ary; so : my $select = join (qq{} => '

Re: LangSpec: Statements and Blocks [first,last]

2001-09-02 Thread raptor
| I don't know if (and if so, how) you would see if you were on the last | iteration. (And would that be last, as in the very last argument passed in, | or last, as in you're not going to iterate again?) ]- yep I didn't thougth about that I can be sure I'm at the last iteration only with some

Re: LangSpec: Statements and Blocks [first,last]

2001-09-02 Thread raptor
hi, As we read in Damian Conway- Perl6-notes, there will by a var-iterator that can be used to see how many times the cycle has been "traversed" i.e. foreach my $el (@ary) { .. do something print $#; <--- print the index (or print $i ) } shall we have : foreach my $el (@ary) {

Re: !< and !>

2001-09-02 Thread raptor
| | > !< and !> | | How is !< different from >=? ]- the way of Expression or syntax-sugar if u like it :"), and is faster to prononce :") if, if not, unless bigger, smaller, equal less than or equal, bigger than or equal not bigger, not smaller ...etc. Personally I almost always make error wh

!< and !>

2001-09-01 Thread raptor
hi, I was looking at Interbase SELECT syntax and saw these two handy shortcuts : = {= | < | > | <= | >= | !< | !> | <> | !=} !< and !> Personaly i didn't liked if (! ...) construct too much, so even that starting to use "unless" is harder for non-english speaker, I think is much cleaner and

Qouting and white-space etc..

2001-08-15 Thread raptor
hi, I was wondering if there was some way when using qouting to specify triming of white space or other type of charachters we may need ... say like TT or may be ...one example.. my $javascripCode = qq{ | |function blah() |if ( ) |}; | }; |<-inner

That could be interesting ... CPAN? and why there is no C/C++ CPAN

2001-08-07 Thread raptor
http://www.kuro5hin.org/story/2001/6/8/11126/34098

Re: new syntax idea: eval "..."o;

2001-08-07 Thread raptor
> David L. Nicol wrote: > > eval ${code}o; > > Another brilliant idea from David Nicol! > > However, I'm not keen on the syntax. > I'd rather see a different keyword. I'm thinking "eval1", > but I'm not very creative. :-/ ]- what about : qe//;# qe{}; OR qo//

two-way hashes

2001-08-03 Thread raptor
hi, I tought about a posibility to access a HASH in way that the VALUES can also be used like KEYS...i.e in perl6 I will say this : %hash{key} = value; I want to say also : {value}hash% = key; print {value}hash%;#will print the key for this value... joking :")) but is this good... or I'm tal

Re: two-way hashes

2001-08-03 Thread raptor
> >I want to say also : > > > >{value}hash% = key; > Just use two hashes for this purpose. If you can write a class that help > keeping > track of the two hashes, that will be more useful than inventing weird > syntax. ]- this was not a proposed syntaxI was just joked about it ... sorry. :"|

the Parser

2001-08-01 Thread raptor
hi, I see nobody is talking here ... so ! Anyone to have idea how the Parser will work... I mean mostly at the language-developer side (not the internals). It will be written in Perl, right ?! some striped-version of Perl ?! i.e. what will be allowed and will not ? Will it support lookahead, look

Re: if then else otherwise ...

2001-07-29 Thread raptor
> in ?:: or any other condition checking block, 0 is true, everything else is > false. I am yet to see why otherwise or any third condition is needed. If > that's then we can have 4 conditions 1,0,-1,undef, and we can keep going. > That is why there are conditions, if you want to check for -1 you

Re: if then else otherwise ...

2001-07-29 Thread raptor
> Linguistically, "if then else, otherwise" doesn't make sense, since 'else' > and 'otherwise' are synonymous. ]- ok .. I choosed wrong word... I'm not native English sorry... but I agree that if-else-otherwise construct is not so good, for most of the people... I forgot about it already :") > ?

Re: if then else otherwise ...

2001-07-29 Thread raptor
But at least the second shortcut is worth it, i think : > >cond ? then : else : otherwise This has a vague smell of Fortran. ]- I don't know Fortran sorry :") = iVAN [EMAIL PROTECTED] =

Re: if then else otherwise ...

2001-07-29 Thread raptor
> This makes no sense. ?: tests a boolean value, which is either true or false. > There is no ternary state for a boolean value. True/False, Yes/No, On/Off, > 1/0. Are you suggesting Yes/No/Maybe? Or are you redefining True and False? ]- I'm not talking about boolean's... but mostly this can be r

Re: if then else otherwise ...

2001-07-29 Thread raptor
> I'm lost. How would you decrease the number of elsif statements with > otherwise??? ]- it is not to decrease the number of "elsif" (this that i hate elsif was just comment :") not that u have to stop using it ), but to give a shortcut ... ok forget about "otherwise" ( i also think no one will

Re: if then else otherwise ...

2001-07-28 Thread raptor
I've/m never used/ing "elseif" ( i hate it :") from the time I have to edit a perl script of other person that had 25 pages non-stop if-elsif sequence) ... never mind there is two conditions in your example... of coruse i've think of this just like a shortcut nothing special ... later on : $x =

if then else otherwise ...

2001-07-28 Thread raptor
hi, we have <=> and 'cmp' operators but we don't have the conditional constroct to use better their result : May be forthcomming switch will solve this in some way, but isn't it better to have shortcut like this : if (cond) { } else {} otherwise {} i.e. if cond == 1 then 'then-block' if cond

freezing, thawing, cloning etc...

2001-07-25 Thread raptor
hi, I just wanted to ask, 'cause i've not seen info on this anywhere does functionality like those of Storable/Data::Dumper be available in the perl-core ( i mean runtime ) ... thanx = iVAN [EMAIL PROTECTED] =

Re:aliasing a value [...]

2001-07-25 Thread raptor
I'm ok with both : alias (%foo, %bar); AND my \%foo = \%bar; the first variant look better to me (I mean it is easy to spot when u are reading the code), but I also expected as U the second to work in Perl5 and was very dissapointed to see that it doesn't work.:"( The keyword "alias" on the oth

Re: array/hash manipulation [was :what's with 'with'?]

2001-07-20 Thread raptor
ooops I forgot if the vars in for are aliesed then it will be ok for using it like 'with' : for my $el ( $Request->{Param} ) { print $el{qsParam1} print $el{qsParam2} } but then what will be $_ ... alias OR copy !?! :") I mean mostly backward compatibility... One other way is 'local' to

Re: array/hash manipulation [was :what's with 'with'?]

2001-07-20 Thread raptor
> Hmmm. Didn't think about that. That would be a nice way, that way you can > manipulate it's behaviour depending with how many aliases you provide. > > for my $el1, $el2 ( (@foo, @bar) ) { > print "$el\n" > } > > $el1 and $el2 would of course be aliases, right? ]- yes ALIASING will be bett

Re: array/hash manipulation [was :what's with 'with'?]

2001-07-20 Thread raptor
> So my initial code (which I modified a little...) > > for ( @foo, @bar ) { > print "$_[0] : $_[1]\n"; > } > > for would set each element of the @_ array to correspond to the arguments in > for() , therfore $_[0] will equal to the current element of @foo and $_[1] > will equal to the correspo

one more nice2haveit

2001-07-18 Thread raptor
hi, As I was programming i got again to one thing i alwas needed to have... especialy when write something fast or debug some result... words comes about for/foreach and accessing the current-index of the array I'm working with i.e. say I have two arrays @a and @b and want to print them (al

Re: aliasing - was:[nice2haveit]

2001-07-18 Thread raptor
>> Does such a thing exist already? > >A WTDI exists already: > >for ( $XL->{Application}->{ActiveSheet} ) { > $_->cells(1,1) = "Title"; > $_->language() = "English"; >} > >(presuming lvalue-methods, of course...) So, in this case, a "with" synonym for "for" would work. ]- OR

http://www.go-mono.com/faq.html

2001-07-17 Thread raptor
http://www.go-mono.com/faq.html

Re: aliasing - was:[nice2haveit]

2001-07-17 Thread raptor
> > > I mean something like this : > > > > > instead of : > > > #$Request->{Params} > > > local *myhash = \%{$$Request{Params}}; > > > > > my %myhash alias %{$$Request{Params}};#see - it is my (now as far as I know > > > u can't have it 'my') > > > >You don't need a typeglob there; you can do the

Re: nice2haveit

2001-07-13 Thread raptor
> Yes but can't the same be accomplished with... > > my $myhash = (%{$Request->{Params}}); > print $myhash{abc}; > > Though again it copies the structure, I don't see how dereferencing can be > unclear? ]- if u have someting like this anything u can remove in some way is worth it:)) $tables{

Re: nice2haveit

2001-07-13 Thread raptor
the structure is something like this : $Request = { Params => { abc => 1, ddd => 2 } } the idea is that U don't dereference i.e. : my $myhash = ($Request->{Params}); if u want to use it U have to do this : print $$myhash{abc}; #or if u preffer print $myhash

Re: nice2haveit

2001-07-13 Thread raptor
>> Two things i think is good to have it : >> >> 1. ALIAS keyword. >> - first reason is 'cause many people don't know that this is possible.. at >> least any newscommer and it will help not to forgot that it exist :"). >> - Code become more readable. >> - can be Over

nice2haveit

2001-07-13 Thread raptor
hi, Two things i think is good to have it : 1. ALIAS keyword. - first reason is 'cause many people don't know that this is possible.. at least any newscommer and it will help not to forgot that it exist :"). - Code become more readable. - can be Overloaded - the syntax for aliasing can becom

Re: Thought for the day

2001-02-01 Thread raptor
ok, "I've done it in one row, why you want it to fit in 80 columns ?!" (or something like that can't remember well) -- Larry Wall :") = iVAN [EMAIL PROTECTED] = > Ok, if we're all contributing quotes, here's mine: > > "I'm sorry for writing you such a long letter; I didn't have time > t

Re: Backtracking through the source

2000-11-28 Thread raptor
> Is there any reasonable case where we would need to backtrack over > successfully parsed source and redo the parsing? I'm not talking about the > case where regular expressions run over text and ultimately fail, but > rather cases where we need to chuck out part of what we have and restart? ]-

A naive opinion

2000-11-22 Thread raptor
hi, I don't know very much about internals or about how the parser works in reality but something like this can be helpfull I think !! What I have in mind ? Micro-perl-parser may be this is external interface (written in perl). rule:do { /do/ and "{" call(token) and "}" and action } rule:t

Re: What will be the Perl6 code name ?!!

2000-10-24 Thread raptor
> What will be the Perl6 code name ? ]- OK what about Velociraptor ;") - It is animal - continuing the tradition ... - it is one of the CLEVEREST dinos. (only truodont!! is thought that is clever) - it is PREDATOR - will hunt all other "languages" - small - little bigger than human ... (leane

Re: perl6storm #0050

2000-09-23 Thread raptor
> On Thu, 21 Sep 2000, Tom Christiansen wrote: > > > =item perl6storm #0050 > > > > Radical notion: consider removing precedence. > > Wrong precedence makes people miserable. > > (Some people already suggest that Perl only has two precedence rules: (1) > multiplication and division come before add

Re: Perl Implementation Language

2000-09-15 Thread raptor
> > On Tue, Sep 12, 2000 at 03:17:47PM -0400, Ken Fox wrote: > > > That's fine for the VM and the support libraries, but I'd *really* > > > like to see the parser/front-end in Perl. There are dozens of RFCs > > > that require some non-trivial extensions to the parser. It would > > > be nice to cod

Re: Don't require braces

2000-09-13 Thread raptor
hi, > so, > >while $i < 10 print $i; print $j; > > should become > >while ($i < 10) { print $i; print $j; } > > or > >while ($i < 10) { print $i; } print $j; > ??? ]- !!! ;") problem can be solved again in this way i.e. shell like syntax : while $i > 10 && $i++ && print $i; mean thi

Check this !! messaging langage or so ...!!!

2000-09-12 Thread raptor
hi, REBOL is the next generation of distributed communications. By "distributed" we mean that REBOL code and data can span more than 40 platforms without modification using ten built-in Internet protocols. The pieces of a program can be distributed over many systems. By "communications" we mean t

Re: RFC 178 (v2) Lightweight Threads(multiversionning)

2000-09-08 Thread raptor
> I don't even want to take things out a step to guarantee atomicity at the > statement level. There are speed issues there, since it means every > statement will need to conditionally lock everything. (Since we can't > necessarily know at compile time which variables are shared and which > aren't

"Counting the birds" :")

2000-09-04 Thread raptor
hi, here is one simple script (Requires Parse::RecDescent) that count operators in scripts.(and my fisrt grammar ;") ) OK. I started this against my current perl installation. (it is not pure RH6.2 install, but many things are added) i.e. find /perl_dir -name *.pm | ./count.pl | tee allops.txt i

Re: {....} if condidion

2000-08-30 Thread raptor
> >$x =10, $z =15 if $y > 12; # 8 click shorter > > Should work now. I just tested it in 5.6, but I think that's been valid > since Perl4 or earlier. ]- yep my mistake...sorry :") > >instead of this : > > > >if ($y > 12) {$x =10; $z =15} ; > > > >4 keyboard click shorter - Shift+( and Shift+)

{....} if condidion

2000-08-30 Thread raptor
hi, We now can say : $x = 10 if $y > 12; It will be good if this also work.( i.e. block before if ). {$x =10; $z =15} if $y > 12; or $x =10, $z =15 if $y > 12; # 8 click shorter instead of this : if ($y > 12) {$x =10; $z =15} ; 4 keyboard click shorter - Shift+( and Shift+) = iVA

Nice to have'it

2000-08-28 Thread raptor
Hi, I have couple of ideas which may or may not worth it, so I didn't wrote the RFC but will list them here in short. Here are the nice to have'it. 1. There will be good to have some sort of "match and/or assign" operator for structures i.e. HASHES. Can't still figure out the syntax but may be i

Multiway comparisons

2000-08-17 Thread raptor
RFC 25 (v1): Multiway comparisons and now snip from the Icon language : http://www.cs.arizona.edu/icon/docs/ipd266.htm 2.1 Conditional Expressions In Icon there are conditional expressions that may succeed and produce a result, or may fail and not produce any result. An example is the compariso

Re: RFC 104 (v1) Backtracking :ref

2000-08-17 Thread raptor
=head1 REFERENCE Icon language brief intro : http://www.cs.arizona.edu/icon/intro.htm

Re: RFC 104 (v1) Backtracking

2000-08-17 Thread raptor
hi, > > So how is that different from: > > > > do BLOCK1 until do BLOCK2 > > It's the same. > But the real fun starts when blocks and functions can suspend and > resume. > >{ ... > # Return value and suspend. > suspend $i; > # Next iteration will resume here > ... >} a

Re: RFC 104 (v1) Backtracking:example

2000-08-17 Thread raptor
hi jeremy, all, here is one simple example , let say we have this XML file: how we can implement the following XPath expression - "file://code" I'm giving here very simplified example (orthen works as shown in first interpretation i

Re: RFC 104 (v1) Backtracking

2000-08-16 Thread raptor
> > They behave similarly like &&, ||, and, or operator with one main > > distinction they "backtrack" for example: > > > > { block1 } B { block2 }; > > This would be a good use of the to-be-liberated => operator: > > { block1 } => { block2 }; > > In any case, "andthen" doesn't seem like a good

Re: RFC 104 (v1) Backtracking

2000-08-16 Thread raptor
> There's also the cut operator which I didn't see mentioned in the RFC. > It blocks backtracking so that something like this: > > B1 andthen B2 andthen cut B3 andthen B4 andthen B5 > wouldn't backtrack to B2 once it forwardtracked to B3. ]- I tried minimalistic approach as small as possible addi