»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
lookatme morning 01:04
raschipi It's possible to tell the time by lookatme 01:05
lookatme ~~hmm? 01:09
[Coke] Jan-Olof Hendig ? 01:16
[Coke] doc commit 20fe051092320fafdf2416a9470add2a5fb5a30c added a failing code snippet. 01:23
Geth doc/master: 4 commits pushed by (Will "Coke" Coleda)++ 01:24
tbrowder if i want to go back and test an old rakudo release named 2017.04.3-275-g84502dc how do i get it. 01:26
geekosaur git checkout 84502dc
tbrowder i don't see any branches with that name. is it a tag?
geekosaur it's the start of a commit hash
well. the full string is from git describe 01:27
<most recent tag before the commits>-<number of commits since then>-g<commit hash>
(the "g" is because you can import from a non-git repo; those will have hashes not prefixed with "g")
tbrowder on the nom branch? 01:28
geekosaur yes
or whatever branch has that tag on it
tbrowder i don't see it there... 01:30
geekosaur has to update... 01:33
anyway I would expect that to be on nom 01:34
[Coke] are you testing a particular version from a bug report? 01:37
tbrowder no, i'm working on improving my read-write tests per critiques and will need to go back and add some tests... 01:56
for comparison after jnthn's major io improvements 01:57
travis-ci Doc build passed. Will "Coke" Coleda 'String is not a valid type' 01:58
travis-ci.org/perl6/doc/builds/249834552 github.com/perl6/doc/compare/55e10...3a56b0240b
MasterDuke tbrowder: fyi, that commit was from may 16 02:02
lookatme Why I have to add `use nqp;` to every statement in REPL mode ? 02:44
tbrowder MasterDuke: thnx 02:48
zengargoyle lookatme: REPL is a work in progress and is *hard*. it's something like every line you enter is a new scope of some sort because it's got to be compiled into a unit just like a file would be (mostly, maybe, -ish) 03:44
some things stick around line to line, some things don't, some things need to be made 'my' to work. etc. 03:45
for anything non-trivial, i setup inotify to watch a file and run p6 on it whenever it changes and then just edit the file in $EDITOR in another window. 03:47
lookatme zengargoyle, oh. 03:49
I wonder is something different between `nqp` and other module ? 03:50
use other module would be affect all lines
zengargoyle i could guess, but i don't really know. :) 03:57
andrzejku someone already tried perl pdl? 05:49
lizmat clickbaits p6weekly.wordpress.com/2017/07/03/...-on-speed/ 07:48
masak lizmat++ 08:10
can I construct a Routine at runtime, the way I can construct a class using the MOP? 08:11
specifically, can I programmatically populate the parameter list of a Routine I'm creating? 08:12
melezhik HI! 08:13
masak hi, melezhik 08:14
melezhik timotimo: " we have shaped native arrays, which is much like a numpy ndarray" are you sure that you are asking me? )))
hi, masak ))
lookatme lizmat++ 08:15
masak hm, Routine is Block is Code... 08:18
...which has a Signature...
I suspect for what I want to do, I'm better off slurping in all the arguments, and then writing the checks in the routine body 08:19
lizmat m: sub a() {}; BEGIN dd MY::<&a> # was hoping that would work :-(
camelia Nil
lizmat masak: ^^^ 08:20
masak expecting that to work does not seem terribly unreasonable to me
m: sub a() {}; dd MY::<&a>
camelia Sub a = sub a () { #`(Sub|33849992) ... }
lizmat well, I guess there isn't a MY:: yet until runtime
masak yeah, perhaps not 08:21
but lexical variables definitely exist at BEGIN time :)
m: sub a() {}; dd &a
camelia Sub a = sub a () { #`(Sub|55816856) ... } 08:21
masak so it seems more of a mismatch between MY:: and the actual variables, than anything else 08:21
perhaps even a...
dun dun *DUN*
...bug
lizmat m: sub a() {}; BEGIN dd &a # why not simpler ? 08:22
camelia Sub a = sub a () { #`(Sub|63099800) ... }
lizmat m: sub a() {}; BEGIN dd &a.signature
camelia :()
jamesaxl Hello 11:01
masak jamesaxl: \o 11:10
masak jnthn++ # 6guts.wordpress.com/2017/07/02/opt...om-a-file/ 12:36
cschwenz \o/ another jnthn blog post! :-D 12:40
lizmat cschwenz: if you read p6weekly.wordpress.com/ every week, you would have known already :-) 12:44
</plug>
cschwenz :-P
lizmat afk&
tadzik :P 12:58
I have to say, that post had an unexpected outcome for me
timotimo how so? 13:01
cschwenz perl6 being 120ms slower despite doing more work is still impressive. 13:03
sacomo hi #perl6
sacomo do we have any way to specify a module dependency with version in META6? 13:04
llfourn sacomo: yup 13:05
"depends" : ["DispatchMap","JSON5::Tiny","Terminal::ANSIColor", "JSON::Fast"],
# from my META6.json
sacomo I mean, the version number
llfourn ugexe: ^^
llfourn (oh sorry I didn't see the version bit :S) 13:06
sacomo something like this: "depends" : ["JSON::Fast:ver<1.2.2.2>"],
np
llfourn I'm not sure as where would get get the version from. Right now mostly everything is done with git so you'd have to tag the version for it to have a chance of working. 13:07
El_Che fixing versions instead of minimal versions for a lib can be tricky (what happen when different libs depends on the same lib but impose different versions?) 13:08
llfourn though there was some cpan integration project that I haven't looked at
sacomo there is a description of the concept here design.perl6.org/S22.html#depends
hmm
llfourn anyways ugexe is the person who'd know for sure 13:09
sacomo ok, thanks 13:10
seems like that syntax from that link works for zef
araraloren I don't know how to upload my module to CPAN, in details. Such as the document .. 13:13
araraloren ` perl6 -e 'prompt "123"' ` this produce an error message under `bash on win10`: 13:25
123Cannot flush handle: Failed to flush filehandle: Input/output error
lizmat araraloren: which version? 13:26
I recall jnthn fixing that before the 2017.06 release ?
araraloren 2017.06
This is Rakudo version 2017.06 built on MoarVM version 2017.06 13:27
lizmat hmmm... :-(
araraloren gist.github.com/araraloren/11969a5...e3d32e2f65 13:28
this is report with --ll-exception
lizmat araraloren: please rakudobug it, it was thought to have been fixed with 2017.06 13:33
araraloren ok
jnthn It'll be a bash on win10 oddity I suspect. And not the first one we've had.
araraloren jnthn++, I watch your video about Perl6 concurrency, it was nice ! 13:34
jnthn Glad you enjoyed it :)
araraloren lizmat, so what prepositive text should I use would be better, [IO] ? 13:42
lizmat [Win10] perhaps ? 13:43
araraloren It's bash on win10, I think IO would be better. 13:45
jnthn Yeah, I very much doubt it happens on a native Win10 build 13:49
araraloren Hm, anyway I reported that bug: perl #131700 13:52
synopsebot6 Link: rt.perl.org/rt3/Public/Bug/Display...?id=131700
amits2878 help 14:49
hi all
amits2878 I am new here ... however i came here through perl6 site, telling someone here can help to get started with contributions 14:50
[Coke] amits2878: hi 14:51
amits2878 hello 14:52
[Coke] if you're looking to help out, there's many different places; lots of different areas of code, docs, bug management, infrastructure... 14:59
amits2878 i am well versed with perl 5, so to help/learn for perl 6 which direction wud u suggest 15:01
lizmat docs.perl6.org/language/5to6-perlsyn might be a good start ? 15:04
or maybe docs.perl6.org/language/5to6-nutshell
or any of the other first 5 entries on docs.perl6.org/language.html 15:05
[Coke] sure, there's a lot of TBD markers in that that need some review. 15:07
feel free to ask here about corresponding six-isms.
[Coke] github.com/perl6/doc is the project site 15:10
amits2878 okies ... thanks for the pointers. i will look into it and see where do I fit in (if at all i fit in) else i will ping here for further guidance. 15:11
[Coke] dogbert17: assigned github.com/perl6/doc/issues/1406 to you; failing xt test from one of your commits 15:19
rindolf amits2878: hi. 15:22
amits2878 hello 15:23
@rindolf hi
rindolf amits2878: I knew an Amit S. in the past
amits2878 ok
rindolf amits2878: good luck with Perl 6! 15:24
amits2878 thanks ... just trying to be good and neat as all others here 15:25
rindolf amits2878: nice 15:26
Maybe I'll translate another euler solution to p6
amits2878 hey rindolf where did that amits belonged? 15:28
rindolf amits2878: he was a friend - I live in Tel Aviv 15:29
rindolf amits2878: Amit is a common Israeli name 15:30
amits2878 ok ... i am in mumbai india
rindolf amits2878: ah
amits2878 amit is a common indian name too
rindolf amits2878: yes
amits2878: what does it mean?
jamesaxl hi rindolf 15:31
amits2878 in isreali context i am not sure. amit is hindi word meaning without limits, something in extreme in general 15:31
rindolf amits2878: en.wikipedia.org/wiki/Amit 15:32
amits2878: ah
jamesaxl: hi
amits2878 :-) 15:33
your name is rindolf or is it a combination of ur first and last name
jamesaxl amits2878, there is no Israeli context, because Israel is Jacoub, 15:34
amits2878 well you know it is sheer luck i got someone to talk and make things easy for myself ... as i suppose u been here more than me.
rindolf amits2878: it's a nickname 15:35
amits2878 okies
rindolf amits2878: see www.shlomifish.org/me/rindolf/
amits2878: this is about my real name - www.shlomifish.org/meta/FAQ/#your_name
amits2878 okies 15:36
great to know that. now at least i have some one to help for sure ... :-) 15:37
rindolf amits2878: I'm not a perl 6 expert
Geth doc: dcb3cc5633 | (Jan-Olof Hendig)++ | doc/Type/Parameter.pod6
Fixed broken code example. [Coke]++

Closes #1406
15:39
amits2878 may be ...
amits2878 i am not a geek too 15:40
[Coke] gives up trying to get docs built on os x and works in a docker container instead. :P
Geth doc: 4b60c95476 | (Jan-Olof Hendig)++ | doc/Type/Supply.pod6
Fixed typo
15:41
rindolf amits2878: well, I'm a geek
[Coke] dogbert17: can you expand "approx." whil eyou're in there? 15:42
amits2878 i can see that from your page 15:43
dogbert17 [Coke]: will do 15:47
Geth doc: 03490932f2 | (Jan-Olof Hendig)++ | doc/Type/Supply.pod6
approx. -> approximately
15:50
zengargoyle aaarrrggghhhh, DateTime::Format::strptime -- Stub code executed 15:53
travis-ci Doc build errored. Jan-Olof Hendig 'Fixed broken code example. [Coke]++ 16:29
travis-ci.org/perl6/doc/builds/250036411 github.com/perl6/doc/compare/123a5...b3cc56332d
travis-ci Doc build errored. Jan-Olof Hendig 'Fixed typo' 16:31
travis-ci.org/perl6/doc/builds/250037032 github.com/perl6/doc/compare/dcb3c...60c95476ca
travis-ci Doc build errored. Jan-Olof Hendig 'approx. -> approximately' 16:40
travis-ci.org/perl6/doc/builds/250040603 github.com/perl6/doc/compare/4b60c...490932f284
zengargoyle do we have an 'after' along: <a b c d e f g>.after: 'd' --> <e f g> 17:56
timotimo no, but you can use grep and a flip-flop operator 17:57
m: say <a b c d e f g>.grep(* eq 'd' ff False)
camelia Use of uninitialized value $_ of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in whatevercode at <tmp> line 1
()
timotimo m: say <a b c d e f g>.grep({ $_ eq 'd' ff False })
camelia (d e f g)
timotimo m: say <a b c d e f g>.grep({ $_ eq 'd' ^ff False })
camelia (e f g)
timotimo there we go 17:58
zengargoyle sweet.
zengargoyle timotimo++ -- my `at` parser now has a strict mode that passes the original `at` disribution's test suite modulo their todo tests. *yay* 18:31
zengargoyle thinks their 2 TODO tests are wrong and i get them right. :P 18:38
zengargoyle *woot* TimToady's TPC (YAPC::NA) talk is up on youtube: www.youtube.com/watch?v=EwQoSZdEl2s 19:04
lucasb watching the talk right now. thanks for the link 19:08
andrzejku who is german here? 19:11
moritz
and a few others :-)
andrzejku moritz could you help me 19:12
moritz andrzejku: depends :-)
andrzejku moritz I am looking for the website where are jobs for IT in Germany
moritz andrzejku: there's more than one :-) 19:14
andrzejku what about that one?
germanitjobs.com/jobs
moritz andrzejku: I tend to like stackoverflow.com/jobs which has jobs from all over the world
including Germany
andrzejku: never heard of it before 19:15
www.monster.de/ is pretty big in Germany too, though not specific to IT
moritz m: say '"a,b","' ~~ / ^ \" .*? \" : $ /; 19:54
camelia 「"a,b","」
moritz why does this regex match?
m: say '"a,b","' ~~ / ^ \" .*? \"/;
camelia 「"a,b"」
moritz I'd expect the first attempt to only match '"a,b"'
and then the : to forbid backtracking over that point 19:55
ah no, that's not what : does
what's what <commit> would do, which is NYI :(
thanks for being my rubber duck, #perl6 :-)
stmuk interesting LW QnA from TPC 20:08
timotimo was there a presentation in front of the q&a? 20:40
gdonald Anyone see what might be wrong with this: rosettacode.org/wiki/Keyboard_inpu...nse#Perl_6 When I try it's still buffered, I have to input several keystrokes to get True or False to appear. 21:32
timotimo getc is about characters, and a single character can be many unicode codepoints 21:34
perl6 is trying its best to never give you a broken-off combiner character 21:35
so it dutifully waits for some kind of confirmation that there's not going to be a "combining acute" or something
timotimo you'll want to use .read(1) instead, or maybe have a timeout or something 21:35
timotimo i tried the automatic subtitler 21:39
it's not even bad
a nice detail is that it put "[Applause]" at the end
timotimo gdonald: does that help? 21:46
gdonald Works great, thank you. 21:51
Geth doc: c7c1b8cbde | (Will "Coke" Coleda)++ | template/search_template.js
Improve fuzzy searching

maxdistance - the expression we had here was causing a comparison of 'val' vs. 'val' to return an offset of 3, instead of -0 maxoffset - prefer smaller number here.
OK_distance - use a more restrictive match distance.
Fixes #1404
21:55
Geth perl6-examples: fa39ef8147 | (Steve Mynott)++ | README.md
Minor doc change to force a new examples build
21:55
samcv my friend found a possible regression. it only shows when launching the script with a command line argument. and for some reason tries to open the command line argument as a file, but only at the end of execution 21:59
this is the file pastebin.com/raw/MaURicBg if you download it, and start it as perl6 deckofpain.p6 easy 22:00
then press enter until the end (like 10 seconds if you just hit enter) then it tries to access the filename provided "easy" which is just the mode of the file. but if you have no command line argument, $mode defaults to easy anyway
but it doesn't try and open the file
they tell me it didn't do this last release 22:01
Geth perl6.org: 6a91ba5132 | (Steve Mynott)++ | source/resources/index.html
Correct typo
22:04
Lambd0x_ Hi there! Can anyone help me with a windows issue regarding zef?
samcv what's the problem Lambd0x_ 22:10
Lambd0x_ samcv I'm unable to install any module. timotimo had a look yesterday with me, but the problem seems a little tricky 22:16
samcv :( what's the error
timotimo it seems unable to get the ecosystem lists
it does claim that the pswebrequest module is available and working 22:17
Lambd0x_ pastebin.com/SwGUPWNd
samcv, the most meaningful paste is this pastebin :D 22:18
timotimo, also, I've tried to use directly PowerShell; 22:19
samcv here's your problem. "mirror" is misspelled /s
"Failed to update cpan miror:" heh
Lambd0x_ ahah
geekosaur heh 22:20
samcv hmm i don't know what's going on here :(
geekosaur several typoes in the messages indeed. there's also a "Cheching" earlier :p 22:21
samcv XD 22:23
that's great
Lambd0x_ geekosaur, samcv, timotimo. I've written this log due to the fact windows PowerShell or cmd won't allow me to copy its content. The message is ok, just a few typos because I was in a hurry yesterday.
samcv you can't copy? 22:24
timotimo should be possible by just marking and it'll immediately be in your copy buffer
geekosaur otherwise I would wonder if a proxy needs to be configured for something other than browsers
Lambd0x_ Well, it's Windows. 22:25
ugexe looks like it happened in 0.1.18 when I added file locking to some things. you could try `perl6 -Ilib bin/zef install github.com/ugexe/zef/archive/v0.1.17.zip`
geekosaur copy is normally in the window menu
Lambd0x_ geekosaur, Agreed. However a cmd or Powershell app, doesn't have this menu. 22:26
geekosaur edit > mark, or control-m
er? it does here
click the icon at the left side of the titlebar
Lambd0x_ Ah, here is windows 8.1 22:27
yours?
geekosaur 8.1 should still have that menu
(I'm on 10)
8.0 I'm not sure about but 8.1 reversed some of 8.0's more questionable decisions
Lambd0x_ geekosaur, You're right man
the icon is a menu, never even dreamed about it. 22:28
geekosaur and in any case control-m should work
Lambd0x_ Well, it will improve the report. Will get a decent copy for you guys now.
geekosaur puts you into mark mode
Lambd0x_ ugexe, will try what you suggested soon. 22:29
geekosaur, :D 22:30
guys, here: pastebin.com/RRXhe2QX 22:31
travis-ci Doc build passed. Will "Coke" Coleda 'Improve fuzzy searching 22:32
travis-ci.org/perl6/doc/builds/250141775 github.com/perl6/doc/compare/03490...c1b8cbde2c
ugexe github.com/ugexe/zef/blob/master/l...ms.pm6#L36 - How is he getting both a message from KEEP and UNDO? 22:33
ugexe ah n/m i see it just works with the .git url 22:39
Lambd0x_ ugexe, about your early suggestion... the bin/zef is intended for C:\rakudo\ or C:\rakudobrew\ (I've tried first with the lastest Rakudo Star release and then with the latest possible build using rakudobrew) 22:41
?
ugexe oh, you would `git clone github.com/ugexe/zef`, `cd zef`, then run that 22:44
Lambd0x_ ok
ugexe you might have to do `perl6 -Ilib bin/zef uninstall zef` before installing that older version
Lambd0x_ ugexe, yes I had to. 22:46
Lambd0x_ ugexe, pastebin.com/Zc67i0cJ 22:50
It won't work yet. 22:51
ugexe did a command other than `zef update` work for you with the latest zef? 22:54
Lambd0x_ ugexe, no. I tried fetch, update and install neither worked.
ugexe what is the output for `zef install --debug CSV::Parser` 22:55
Lambd0x_ ugexe, all of them gave similar error messages.
ugexe but fetching worked for the ecosystem, just not the first mirror
Lambd0x_ ugexe, pastebin.com/xa7Y1FdM 22:59
ugexe, It still give errors, but it already had it installed I had to force it anyway. 23:00
ugexe looks like it works for you. 23:05
if you get the latest (as of 5 minutes) ago zef it will show the proper 'Distribution count' when you do `zef update`
Lambd0x_ will rebuild zef and check it out then 23:08
Geth doc: gdonald++ created pull request #1408:
Fix grammer around IO::Handle.getc.
23:09
Lambd0x_ ugexe, what's the latest version now?
it's building the 1.20 with rakudobrew
ugexe, built the 1.20 with rakudobrew and it doesn't work. Same errors :/ 23:11
Geth doc: 25d00a2026 | (Greg Donald)++ (committed by Aleks-Daniel Jakimenko-Aleksejev) | doc/Type/IO/Handle.pod6
Fix grammer around IO::Handle.getc.
23:14
ugexe its not an error 23:18
its trying a url and zef can't figure out how to download it with what your system has available, so it tries the next mirror which uses `git` which you apparently do have available 23:19
Lambd0x_ ugexe, Ok, but then Simgle::GTK fail to get installed 23:21
*fails
*Simple::GTK 23:22
Lambd0x_ That's, if I issue a cmd like: zef install Simple::GTK 23:23
ugexe you did `zef install CSV::Parser` and it worked 23:26
Lambd0x_ ugexe, found what happened
ugexe, I still had a earlier zef installed. Which after removing it solved the problem 23:27
Geth doc: 6582ed0003 | (Will "Coke" Coleda)++ | template/search_template.js
Sort exact matches first in category

Sort prefix matches next
Cheat with a global variable to keep track of the last search term
For #247
23:48
TimToady m: say slip ("57" .. "61") 23:55
camelia (57 56 55 54 53 52 51 67 66 65 64 63 62 61)
TimToady m: say slip ("57" .. "61") + 0
camelia (57 58 59 60 61)
TimToady there's another way to force the endpoints of a range into numerics