»ö« | perl6-projects.org/ | evalbot: 'perl6: say 3;' | irclog: irc.pugscode.org/ | UTF-8 is our friend!
Set by moritz_ on 17 June 2009.
00:10 Muixirt left 00:11 DanielC left 00:20 kst left
pugs_svn r27152 | lwall++ | [t/spec] patching difficulties spotted by STD 00:20
00:21 kst joined
pugs_svn r27153 | lwall++ | [STD] parse 'need' 00:27
r27153 | lwall++ | [Cursor] botched earlier canonicalization of $:, didn't check for $::
r27154 | lwall++ | [t/std.t] overzealous use of 'need'; Test needs to import 00:30
00:31 damianc joined 00:32 damianc left 00:42 nErVe joined
nErVe hello every one.. 00:42
i was wndering what regular expression would define values like these 00:43
:0.210867130540167
i have them in a file and i dont need them as such
so want ot delete them
skids perl5?
nErVe yes
OHH..
i m sorry 00:44
skids \:\d+\.\d+ but yeah try #perl
nErVe i forgot this was perl 6
hey skids thanks for the help 00:49
skids np
nErVe would the regex you gave delete the value
skids s/ \:\d+\.\d+//g would, assuming you want the colon gone too.
erm, extra space in there. 00:50
nErVe i was suggested =~ /:\d+\.\d+/
byt ~perl
#perl i mean
skids Maybe, perl6 escapes all literal metas so I've been getting into that habit.
nErVe so the exact regex to delete the values would be..?? 00:51
s/ \:\d+\.\d+//g as you said ..??
right..I m sorry I am newbie at regex 00:52
skids s/:\d+\.\d+//g (minus the accidental space and the exra \)
00:58 M_o_C joined
buu nErVe: Please note that the s/// operator has nothing to do with the actual regex 01:01
01:07 dukeleto joined 01:09 sri_kraih left 01:10 sri_kraih joined 01:11 tann left 01:14 Sunbeam joined
nErVe i was reading more about regex 01:15
from what i understand in could stand for substitution
is that right buu
01:15 icwiener_ left 01:18 DemoFreak left 01:22 Whiteknight left
nErVe just a last bit 01:22
if i was to delete/substitute numbers the regex would be ? 01:23
last nErVe: If you just want to delete the numbers (without determining what they are) the s///g skids wrote should do the trick, I believe. 01:24
nErVe well this time is different i want o delete Node21 and values like them
last ..any suggestions.? 01:25
last nErVe: not sure what you mean by Node21? 01:26
nErVe well i want to delete "NODE21" similarly "NODE22" 01:27
buu NODE\d+
Maybe.
last nErVe, NODE\d+ would be NODE followed by one or more digits. Does that sound right? 01:28
deleting it would be s/NODE\d+//g
nErVe its does not delete.. 01:30
scsys.co.uk:8002/30044 01:32
last you there buddy..? 01:34
last sorry, was working in another window 01:35
nErVe ne ways i was wonderin if you could find out the error in my script 01:36
last actually, your script works great for me. 01:37
the NODE digits are deleted. 01:38
well, NODE and the digits.
Is that not happening for you?
(I'll be a minute, I've got to calm a baby here.)
nErVe welli want ot delte the node21 both
i mean the digit and the word node 01:39
also it doesnt not delete either
ne clue wat i cld be doing wrong 01:40
last is it lower case or upper case? 01:46
the way you've got it will only delete all upper case "NODE" 01:47
01:48 athomason left
nErVe oh so i have to make the smaller case in the regex ..?? 01:48
last it is case sensitive, so it will match the case you use in the regex. 01:49
01:49 sri_kraih left 01:50 sri_kraih joined
last if you want it to be case insensitive, you need to add the letter i after the g, so it's $line =~ s/NODE\d+//gi; 01:50
nErVe hey thanks a lot that is a new trick I learnt 01:51
man life as a life science student is horrible..
hehe..
but its nice to have people like yourself around
last glad I could help. 01:52
01:52 wolverian left
nErVe btw just one more thing if you would not mind...how would i open edit and save the same file again 01:52
i mean i have open the file
now i ve deleted the things i dont want
now i want to save it
01:53 mkfort joined
last I usually move the existing file to a backup, then copy it with the changes to a new file with the original file name. 01:53
give me a sec... 01:54
nErVe well thats not needed in my case because currently im working on fake data sets the actual file will be much larger 01:55
last gist.github.com/132998 is the way I do it. 01:57
(I'm sure there are better ways to write that code, that's just the script I've had sitting around for the last ten years.)
Doing it in place is more complicated, I'd suggest going with the backup unless you don't have the disc space for it. 01:58
01:59 molaf_xx joined
nErVe could you please explain the code.. 01:59
last huh, something went wrong with the gist? one sec. 02:01
Try it again, first try had an embedded ASCII 0 character that messed up github. 02:04
nErVe scsys.co.uk:8002/30045 do you think this will work..?? 02:06
last You need to move the second open statement up out of the loop.
everything else looks right. 02:07
skids For Perl5 there are commandline options for that.
last does require loading the entire file into memory to work, but as long as you've got enough memory to do that...
nErVe well i have a 3 gb ram 02:08
but i will running it on power mac at the uni
its has 8gb..
the max i ve ever seen..
i got syntax error at 8 and 16 02:09
skids e.g. perl -pne -i.bak 's/:\d+\.\d+//g'
nErVe with the open statement you told me to move 02:10
last open(TFILE,">$treeFile"); # needs quotes and semicolon
nErVe i have given them
last skids: I always forgot about the command line options. That's beautiful. 02:11
nErVe ohh i forgot to save the file.. 02:12
i ran it now it gives me..Use of uninitialized value $_ in print at ./notung_file_parser.pl line 15.
last print TFILE $line; 02:13
because you are using $line as the variable in the loop instead of $_ 02:14
02:15 M_o_C left, molaf_x left
nErVe Scalar found where operator expected at ./notung_file_parser.pl line 17, near "TFILE $line" 02:18
(Do you need to predeclare TFILE?)
syntax error at ./notung_file_parser.pl line 17, near "TFILE $line"
Global symbol "$line" requires explicit package name at ./notung_file_parser.pl line 17.
go it.. 02:19
got it..i think he errot..
error
i had used the $line at close 02:20
btw can you help me modify you code the one u posted to work with one i have written..?? 02:21
last Just replace the line # insert your s/// code here!! with the two s/// expressions you use. You don't need the $line =~ bits, because you will be working directly with $_ in my code. 02:24
Need to get my nose down into some ugly C++ code now.
02:35 last left 02:54 mkfort left 02:59 hercynium left, hercynium joined 03:01 cdarroch left 03:16 hercynium left 03:20 donaldh left 03:21 donaldh joined 03:34 nErVe left 03:48 FurnaceBoy left 03:50 skids left 03:51 meppuru joined, dduncan joined, meppl left, meppuru is now known as meppl 04:15 tann joined, justatheory left 04:34 amoc left 04:36 amoc joined 04:41 dduncan left 04:45 twigil joined 04:53 goksie_ joined 04:54 goksie_ is now known as whoisthatgoksie
whoisthatgoksie morning 04:55
04:55 drbean left
whoisthatgoksie is the negative index not allowed in perl6? 04:56
twigil whoisthatgoksie: ask p6eval :) 04:57
whoisthatgoksie my @test = (1..10); say @test[-1]; output Use of uninitialized value 04:58
twigil looks like it is not 05:01
05:01 mkfort joined
whoisthatgoksie not allowed? 05:02
twigil ah, no
rakudo: my @test = (1..10); say @test[*-1];
p6eval rakudo 1b06df: OUTPUT«10␤»
twigil just add an asterisk
whoisthatgoksie thanks for learning it the new way 05:03
mkfort except that compiling everything takes all day so everything else is slow
oops, wrong channel :/ 05:04
05:04 amoc left 05:06 amoc joined 05:07 azawawi joined
azawawi hi 05:07
05:08 drbean joined 05:09 dukeleto left
tann why did larry decide to put the asterisk in there? 05:10
> my @a = 1..10; say @a[*-1]; 05:11
10
>
lambdabot <no location info>: parse error on input `='
not an expression: `'
05:11 beggars joined
TimToady it removes a discontinuity, and a source of bugs 05:15
and it falls out of the meaning of * naturally
05:17 azawawi left 05:21 sri_kraih left
whoisthatgoksie reading S09 now.. @test[*+1] is giving Use of uninitialized value 05:24
05:30 beggars left
twigil @test[+1] works :) 05:34
lambdabot Unknown command, try @list
twigil sorry, lambdabot
whoisthatgoksie sure... 05:35
i was just trying the statement in the S09
05:40 justatheory joined 05:47 justatheory left 05:53 mkfort left 05:59 ihrd joined 06:00 whoisthatgoksie left 06:01 ihrd left
tann rakudo: for 1..5 :by(2) -> $i { say $i } 06:01
p6eval rakudo 1b06df: OUTPUT«Statement not terminated properly at line 2, near ":by(2) -> "␤in Main (src/gen_setting.pm:0)␤»
tann ^^^ looked at the code...it seems p6 relies on parrot iterator for this? 06:02
06:03 amoc left 06:04 whoisthatgoksie joined
TimToady :by is not yet implemented in rakudo, I think 06:06
tann i looked at the code and it called out to parrot iterator (or so i thought) :) 06:10
06:11 kst left, kst joined
TimToady I don't think rakudo's parser knows what to do with :by 06:14
STD parses it, however
06:14 user_793 joined
TimToady std: for 1..5 :by(2) -> $i { say $i } 06:14
p6eval std 27154: OUTPUT«ok 00:02 38m␤»
tann ah..thanks 06:15
TimToady though eventually you'll probably just say
std: for 1,3,5...* -> $i { say $i } 06:16
p6eval std 27154: OUTPUT«ok 00:03 39m␤»
TimToady if you want the whole series
that relies on laziness, which parrot does not yet provide
tann oh..neat
06:17 user_793 left, azawawi joined
azawawi feather.perl6.nl/~azawawi/padre-perl6-export.png 06:18
06:21 azawawi left 06:30 alester_ joined
Matt-W phenny: tell masak you're living in the future! 06:30
phenny Matt-W: I'll pass that on when masak is around.
06:32 iblechbot joined 06:47 alester_ left 07:20 donaldh left, donaldh joined, tann left 07:31 sitaram_ joined, sitaram_ left 07:38 ihrd joined 07:45 Su-Shee joined
Su-Shee good morning. 07:45
08:02 ihrd left 08:13 avar left, avar joined 08:41 iblechbot left 08:43 whoisthatgoksie left 08:46 gbacon left, finanalyst joined 08:54 ZuLuuuuuu joined 09:04 rfordinal left, rfordinal joined 09:09 kst left, kst joined 09:18 rfordinal3643 joined 09:23 rfordinal3643_ joined 09:25 rfordinal left 09:38 pmurias joined 09:41 rfordinal3643 left 09:46 nErVe joined 10:12 buubot left 10:17 agentzh left, agentzh joined 10:20 buubot joined 10:21 rfordinal joined 10:24 rfordinal3643 joined 10:30 iblechbot joined, kst left, rfordinal3643 left 10:31 kst joined 10:39 rfordinal3643_ left 10:48 rfordinal left 10:58 DemoFreak joined 11:07 nErVe left 11:10 lichtkind joined 11:20 donaldh left, donaldh joined
Su-Shee lichtkind: I added two urls to your xing posting. 11:27
lichtkind Su-Shee: ah thanks. schaun :) 11:28
Su-Shee: i mean schau an
Su-Shee just moritz' 5-6 tutorials and "the wikibooks book"
11:32 masak joined 11:33 last joined
masak happy weekend, #perl6 lurkers! 11:33
phenny masak: 06:30Z <Matt-W> tell masak you're living in the future!
Su-Shee masak: coulnd't be better with internet, notebook on the sofa and strawberries. :)
masak oh yes. it's great here -- you should all come, too.
Su-Shee to where? 11:34
masak the future.
Su-Shee masak mcfly? ;)
11:34 hanekomu joined, hanekomu left
masak the secret isn't a deLorean, it's Rakudo. :) 11:34
but I need to backlog to be sure what exactly Matt-W meant.
masak backlogs 11:35
11:35 lichtkind left 11:48 lichtkind joined 11:50 flexibeast joined
masak no, there's no context in the backlog to clarify Matt-W's "living in the future" remark. I'm kinda hoping he was referring to my latest blog post. 11:51
lichtkind Su-Shee: thanks but the links are know but the docs page is currently in bad state im currently reformating, im aware that what i do is only one of many tutorials but i had these links look: www.perlfoundation.org/perl6/index....inks_table 12:04
Su-Shee: are you more interested in perl 6 docs? 12:09
Su-Shee lichtkind: interested? I'm _so_ waiting for a real book... so yeah, I'm really interested. :) 12:11
lichtkind: I just added them because they're rather good right now and there's isn't too much waving the perl6 flag right now. :)
lichtkind Su-Shee: how you mean that? 12:12
Su-Shee lichtkind: it's not that we've got a perl6 hype on our hands right now so I smuggle one in with useful links. ;) 12:13
lichtkind Su-Shee: hype sucks, only lamer wnat to surf on a hype wave :)
i should write LAMORZZ
Su-Shee lichtkind: a little more recognition can't hurt. 12:14
masak lichtkind: no, it's not only lamers that would recognize Perl 6 through a hype.
lichtkind Su-Shee: it is recognized or it would'nt be headlined by Ix magazine
masak it's not nearly recognized enough. 12:15
Su-Shee lichtkind: don't know. if "ck" was the editor - he's supporting perl anyway for .. every since.
12:16 viklund joined
Su-Shee I think I've explained about 20 times within the last 12 weeks that perl isn't dead and perl 6 no vaporware. 12:16
lichtkind Su-Shee: he is supportive but has not much clue about perl 6, moritz_++ was , but what i ment, and i know that because i spoke with him, without general backing no story gets to the frontpage like the perl 6 tut did
Su-Shee which is difficult to tell because international tech media says otherwise..
lichtkind: I know, I write regularly for Heise. 12:17
lichtkind Su-Shee: did you see Perl 6 Tutorial
mom
Su-Shee lichtkind: gimme gimme gimme. ;)
lichtkind Su-Shee: did you see wiki.perl-community.de/cgi-bin/fosw...l6Tutorial
Su-Shee: i tried to write for heise maybe i wil 12:18
Su-Shee lichtkind: I don't think this is how a new technology spreads in the german realm...
lichtkind Su-Shee: what you mean ? 12:19
Su-Shee I mean that I don't think that Heise is the main source of any tech stuff which later on gets more well known (or starts a hype :)
lichtkind: _very_ nicely done. can't you do it in english?
12:20 wolverian joined
lichtkind Su-Shee: i currently do, but it was originally writte for foo magazine which is german 12:21
Su-Shee: i have here 3,4 wiki prjects on my leg thats why i currently try to bind one of them to yours :) 12:22
12:22 nsh left
Su-Shee lichtkind: ah. how sneaky. :) 12:22
lichtkind Su-Shee: i meake the 2 tutorials in parallel german and english, otherwise we have the november wiki and wikipedia 12:23
Su-Shee I'm trying to understand the parrot-to-perl-binding stuff and write about that. 12:24
which I feel having an epiphany any moment now.
lichtkind Su-Shee: seen the book in the svn ? 12:25
Su-Shee no, where?
lichtkind Su-Shee: svn: trunk/docs/book/ 12:27
Su-Shee: svn.parrot.org/parrot/trunk/docs/book/ 12:28
Su-Shee ah parrot! yes, I know it. 12:29
12:29 M_o_C joined
Su-Shee hmpf. perlcommunity.de doesn't like my login. 12:30
lichtkind Su-Shee: yes there are sometimes problems with that but try it tina is very helpfull and its much better nowadays 12:31
Su-Shee ok, I give up. 12:32
lichtkind Su-Shee: why? 12:33
Su-Shee because I'm registered but the login throws an error. :)
lichtkind Su-Shee: nevver on my side, but if you throw a bugreport it will be took care 12:34
Su-Shee: come into the #perlde tina is almost always there, battie is her child 12:37
on magnet of course
12:38 sbp joined, nsh joined
Su-Shee magnet? 12:39
lichtkind Su-Shee: also know as irc.perl.org
Su-Shee ah. I see. 12:40
lichtkind Su-Shee: so you not take one of the wikis 12:41
Su-Shee lichtkind: I can't, I have to work too much right now for another project to care for. 12:45
(thanks to annoying customers not paying their bills..)
lichtkind Su-Shee: send them love :) 12:46
Su-Shee and asked for a nice, cosy park bench to sleep on! 12:48
lichtkind Su-Shee: no need to be afraid :) 12:51
12:52 cotto left
masak perl6: for 1,2,3, { say $_ } 12:53
p6eval rakudo 1b06df: OUTPUT«Could not find non-existent sub for␤»
..pugs: OUTPUT«1␤2␤3␤»
..elf 27154: OUTPUT«Parse error in: /tmp/9lN36lTpDy␤panic at line 1 column 0 (pos 0): Can't understand next input--giving up␤WHERE: for 1,2,3, { say $_ }␤WHERE:/\<-- HERE␤ STD_red/prelude.rb:99:in `panic'␤ STD_red/std.rb:76:in `scan_unitstopper'␤ STD_red/std.rb:224:in `comp_unit'␤
..STD_red/std.rb:2…
masak arguably, Rakudo gets this one right. 12:54
but I find it fairly easy to forget a trailing comma before the block.
12:57 jdv79 joined 12:58 cotto joined 13:00 sparc left 13:02 phenny joined
lichtkind Su-Shee: what exactly was you errur msg while login? 13:05
masak hm, 'forget to remove a trailing comma', that is.
I sometimes think that a source tool that compared the previous and the current saved version of a program, would be able to do wonders with error reporting. 13:06
lichtkind Su-Shee: please try it , tina tries to analyze it 13:08
Su-Shee lichtkind: Argument-Exception: Not enough arguments
13:13 amoc joined 13:30 twigil left 13:34 Gothmog_ joined
TimToady std: for 1,2,3, { say $_ } 14:05
p6eval std 27154: OUTPUT«##### PARSE FAILED #####␤Expression needs parens to avoid gobbling block at /tmp/LuGXItuiPx line 1:␤------> for 1,2,3, { say $_ }␤Missing block (apparently gobbled by expression) at /tmp/LuGXItuiPx line 1:␤------> ␤ expecting parameterized
..block␤FAILE…
14:05 agentzh left
masak yes, that would help. 14:06
14:07 agentzh joined 14:13 ZuLuuuuuu left 14:17 jhorwitz joined 14:19 Whiteknight joined 14:20 s1n_pvmw joined 14:24 skids joined 14:25 sri_kraih joined, mj41_ joined 14:27 DHGE joined 14:40 mj41 left
masak submits rakudobug 14:44
I'm slow today. :)
15:00 DHGE left 15:02 jferrero joined 15:15 macae joined 15:18 twigil joined 15:20 donaldh left, donaldh joined 15:30 nihiliad joined 15:41 M_o_C left 15:49 cognominal left 16:00 ZuLuuuuuu joined, digitalise joined, digitalise left 16:10 justatheory joined 16:13 twigil left, fridim_ joined 16:15 s1n_pvmw left 16:20 Psyche^ joined 16:21 jferrero left 16:23 gbacon joined 16:29 jferrero joined 16:30 beggars joined 16:31 frew|work joined 16:32 Patterner left, Psyche^ is now known as Patterner
masak ok, golf challenge! given a line of input on $*IN (minus final newline), return "Yes" iff the line is a palindrome. I'm sure it can be written quite succinctly. 16:36
rakudo: say 'Yes' if .flip eq $_ given $*IN.get 16:37
16:37 jhorwitz left
p6eval rakudo 1b06df: ( no output ) 16:37
masak hm. maybe that's about it. :) 16:38
16:40 M_o_C joined
TimToady rakudo: say 'Yes'if .flip eq$_ for $*IN.get 16:42
p6eval rakudo 1b06df: ( no output ) 16:43
masak ah, 'for'. nice. 16:45
16:48 FurnaceBoy joined
masak how do I write 'the same digit, repeated one or more times' as a Perl 6 regex? 16:51
and same question, but '...that works in Rakudo?'
16:52 macae left
pmichaud masak: / (\d) $0* 16:55
lambdabot pmichaud: You have 2 new messages. '/msg lambdabot @messages' to read them.
pmichaud masak: / (\d) $0* /
masak pmichaud: thanks.
16:55 alester left 16:56 cognominal joined
masak rakudo: $_ = 1; .say; .=subst(/(.) $0*/, { $/.chars ~ $0 }, :g); .say 16:56
p6eval rakudo 1b06df: OUTPUT«1␤Use of uninitialized value␤Use of uninitialized value␤0␤»
masak I expected that one to say '11' the second time.
what am I missing?
pmichaud I'm not sure. 16:59
masak rakudo: $_ = "foo"; say .subst(/o/, { ~$/ }, :g)
p6eval rakudo 1b06df: OUTPUT«foo␤»
masak rakudo: $_ = "foo"; say .=subst(/o/, { ~$/ }, :g)
p6eval rakudo 1b06df: OUTPUT«Use of uninitialized value␤Use of uninitialized value␤f␤»
masak submits rakudobug
TimToady {} has its own $/ maybe?
masak some strange interaction between .= and $/ 17:00
TimToady: that doesn't explain why .subst works above.
pmichaud it might be an odd interaction with $_ . Or perhaps with the way .= has been implemented. 17:01
17:04 s1n1 joined 17:05 rfordinal joined 17:13 FurnaceBoy left 17:16 amoc left 17:19 fuad joined
fuad hello 17:19
17:20 amoc joined
masak fuad: hi there! 17:22
17:23 s1n1 is now known as s1n_yapc 17:25 fuad left
lichtkind is ** a regex metachar? 17:28
masak lichtkind: well, it's two chars... 17:31
lichtkind: but yes, it has a separate meaning.
lichtkind yes but i mean its that category
17:31 amoc left
lichtkind because there are 2 more regex related categories 17:31
17:31 amoc joined
masak not sure I follow. 17:32
lichtkind masak: straigth out of say02: regex_assertion:<!> /<!before \h>/ 17:34
regex_backslash:<w> /\w/ and /\W/
regex_metachar:<.> /.*/
regex_mod_internal:<P5> m:/ ... :P5 ... /
to which one belongs ** ?
i think metachar 17:35
masak I would say, neither of those.
lichtkind maybe also assertion
it hast to
masak but better ask TimToady. or look in STD.pm yourself.
17:36 azawawi joined
azawawi good evening 17:36
masak: ping 17:38
masak azawawi: pong. 17:39
azawawi masak: I have just finished quick fix feature for Padre Perl 6
masak azawawi: woot! 17:40
azawawi masak: if you had written if() and then pressed alt-/, it will asks whether to insert a space after if or insert sub if { } or comment the whole line with the error..
masak: s/ask/ask/ 17:41
masak: if you write . to string concatenate, it will suggest ~ ...
17:42 jferrero left
masak :) 17:42
azawawi masak: new Foo -> Foo.new
masak: undeclared foo; -> it will insert my $foo; before :)
masak oh, wow. :) 17:43
azawawi wonders if rakudo error messages will improve like STD's
STD error/warning messages rock. TimToady++ 17:44
pmichaud: i cant figure out how to highlight comments/pod in rakudo padre's PGE dumper 17:46
17:49 masak left
TimToady azawawi: rakudo hasn't been worrying about error messages much because the plan is to eventually run STD directly 17:56
azawawi TimToady: feather.perl6.nl/~azawawi/quick_fix/
17:58 Molaf left, Molaf joined
azawawi i see; now we can use either S:H:P6/STD or rakudo/PGE highlighting in Padre Perl 6. The quick fixe, outline tree, and useful error messages are based currently on the STD highlighter. 18:00
pmurias azawawi: the quick-fix is eclipse inspired? 18:02
azawawi pmurias: yup
pmurias: this is an initial implementation using the right click menu 18:03
pmurias: next step is integration with Ecliptic's CTRL-~, search.cpan.org/~azawawi/Padre-Plug...cliptic.pm 18:04
18:10 REPLeffect left 18:22 Su-Shee left, azawawi left
Whiteknight masak: are you going to be at YAPC? 18:28
cotto ENOMASAK 18:29
18:30 frew|work left
amoc i remember he has a presentation about perl6 18:34
18:53 [particle]ventus joined 19:02 finanalyst left 19:08 [particle]ventus left
Matt-W phenny: tell masak yes I was referring to your blog entry 19:16
phenny Matt-W: I'll pass that on when masak is around.
19:20 donaldh left, donaldh joined 19:21 m-i-l-a-1 is now known as m-i-l-a-n 19:26 fridim_ left 19:28 fridim_ joined 19:37 `alpha joined
`alpha greetings 19:37
I would like to know if perl6 has/will have a fast way to perform a deep comparison of data structures ?
19:39 kst left, kst joined, M_o_C left 19:46 [particle]ventus joined
eternaleye `alpha: Well, the === operator does a deep comparison of the contents, and =:= checks if two variables are bound to the same container 19:47
`alpha cool
thanks eternaleye
eternaleye rakudo: my $foo = [ 1, 2, [ 3, 4 ]; my $bar = [ 1, 2, [ 3, 4 ]; my $baz = [ 1, 2, [ 3, 5 ]; say "Yes" if $foo === $bar; say "Yes" if $bar === $baz; 19:49
p6eval rakudo 1b06df: OUTPUT«Statement not terminated properly at line 2, near "= [ 1, 2, "␤in Main (src/gen_setting.pm:0)␤»
eternaleye Hm, rakudo may not implement it yet, though
pugs: my $foo = [ 1, 2, [ 3, 4 ]; my $bar = [ 1, 2, [ 3, 4 ]; my $baz = [ 1, 2, [ 3, 5 ]; say "Yes" if $foo === $bar; say "Yes" if $bar === $baz;
p6eval pugs: OUTPUT«*** ␤ Unexpected "$foo"␤ expecting "=", context, ":" or "("␤ at /tmp/RmUf2VGPEF line 1, column 4␤»
`alpha rakudo: say "ok" if [1,2,3] === [1,2,3]
p6eval rakudo 1b06df: ( no output )
`alpha >.<
rakudo: say "ok" if [1,2,3] === [1,2,3]
p6eval rakudo 1b06df: ( no output )
`alpha O.o
does not work? 19:50
eternaleye Might be NYI
`alpha I see
eternaleye Here's a question for the spec-writers: If the block for a ... expression has a slurpy param, what happens? For instance, if I had 2, 3, 5, 7 ... -> *@prev_primes { for @prev_primes[*-1]..* { return $_ if isPrime( $_ ); }; }; would it work? 19:53
s/isPrime( $_ )/isPrime( $_, @prev_primes ) 19:54
[revised] 2, 3, 5, 7 ... -> *@prev_primes { for @prev_primes[*-1]^..* { return $_ if $_ % all( @prev_primes ) != 0; }; }; 20:00
20:04 justatheory left 20:13 sri_kraih left 20:14 sri_kraih joined
amoc rakudo: [1,2,3].WHICH.say; [1,2,3].WHICH.say 20:24
p6eval rakudo 1b06df: OUTPUT«-1232973856␤-1232984608␤»
amoc rakudo: say 'value identity is same' if [1,2,3] === [1,2,3] 20:27
p6eval rakudo 1b06df: ( no output )
amoc i think it's because Array is a mutable type. and there identity doesn't belong to their contents.
s/there/their/;
20:31 [particle]ventus left 20:33 s1n_yapc left 20:42 ZuLuuuuuu left 20:43 kst left, kst joined 20:50 s1n1 joined, s1n1 left 20:51 s1n1 joined 20:52 xomas is now known as xomas_, xomas_ is now known as xomas 20:57 nErVe joined 21:05 `alpha left 21:19 awwaiid joined
TimToady you want eqv for deep comparison 21:20
rakudo: say 'value identity is same' if [1,2,3] eqv [1,2,3] 21:21
p6eval rakudo 1b06df: OUTPUT«No applicable methods.␤in Main (/tmp/QawfkFdHbF:2)␤»
TimToady rakudo: say 'value identity is same' if 42 eqv 42 21:22
p6eval rakudo 1b06df: OUTPUT«No applicable methods.␤in Main (/tmp/WiIJXkpzHp:2)␤»
TimToady nyi I guess
errands &
21:28 eMaX joined 21:31 smtms left 21:32 smtms joined 21:46 kst left, eMaX left 21:47 s1n1 left, kst joined 21:48 pmurias left 21:53 Whiteknight left, fridim_ left 21:54 eMaX joined 21:57 rindolf joined
rindolf Hi all. 21:57
viklund o/ 22:04
22:05 cotto left 22:15 sbp left, phenny left 22:16 nsh left 22:17 cotto joined 22:22 Ehtyar joined 22:24 Ehtyar left 22:33 iblechbot left 22:42 nErVe left 22:55 cotto left 23:00 nsh joined 23:08 smtms left 23:09 beggars left 23:13 kst left, kst joined 23:15 lichtkind left
pugs_svn r27155 | kyle++ | [t/spec] This fixes the TASKS item for S06-signature/slurpy-params-2.t 23:18
r27155 | kyle++ | There was a todo fudge command that would extend past the end of the
r27155 | kyle++ | block it was in, and I think that's what fudge was unhappy about.
r27155 | kyle++ |
r27155 | kyle++ | Out of the tests that now run, a couple of them didn't pass. I marked
r27155 | kyle++ | them with todo fudges, but I don't really understand the tests, so the
r27155 | kyle++ | descriptions are empty.
23:20 donaldh left, donaldh joined 23:21 rindolf left 23:23 eMaX left, tann joined
tann rakudo: my @fib = 1, 1...&[+]; 23:24
p6eval rakudo 1b06df: OUTPUT«Statement not terminated properly at line 2, near "...&[+];"␤in Main (src/gen_setting.pm:0)␤»
tann std: my @fib = 1,1...&[+]; 23:25
p6eval std 27155: OUTPUT«ok 00:03 51m␤»
23:43 M_o_C joined 23:49 gbacon left 23:52 meppl left