»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋 Set by Zoffix on 25 July 2018. |
|||
00:10
aborazmeh joined,
aborazmeh left,
aborazmeh joined
|
|||
cpan-p6 | New module released to CPAN! KHPH (0.0.5) by 03MLDEVINE | 00:32 | |
01:13
evalable6 joined,
ChanServ sets mode: +v evalable6
01:38
aborazmeh left
|
|||
lucs | IO::Path appears to have no method to test if a file is a socket; what should I use? | 01:49 | |
01:59
molaf left
02:08
guest1001 joined
02:12
molaf joined
02:14
cpan-p6 left
|
|||
lucs & # ZZ | 02:26 | ||
02:31
mowcat joined
02:32
mowcat left,
mowcat joined
02:33
cpan-p6 joined,
cpan-p6 left,
cpan-p6 joined
02:39
Guest35343 left,
success joined
02:40
success is now known as Guest5762
02:51
guest1001 left
03:08
dogbert17 left
03:16
riatre joined
|
|||
guifa2 | TreyHarris: maybe via 'o' you could combine two whatevers | 03:19 | |
03:19
zakharyas joined
03:26
mowcat left
03:36
zakharyas left
04:27
albongo joined
05:05
wmoxam joined
05:30
jmerelo joined
|
|||
jmerelo | releasable6: status | 05:30 | |
releasable6 | jmerelo, Next release will happen when it's ready. 7 blockers. 262 out of 648 commits logged (⚠ 1 warnings) | ||
jmerelo, Details: gist.github.com/f27810511d5fada1bb...3c651100af | |||
05:36
farcas82regreg joined
05:41
john_parr joined
|
|||
Geth | doc: JJ assigned to noisegul Issue Declarators don't know the name of attributes in p6doc github.com/perl6/doc/issues/2269 JJ assigned to noisegul Issue "p6doc -f exit" doesn't work github.com/perl6/doc/issues/2532 JJ assigned to noisegul Issue p6doc does not really work github.com/perl6/doc/issues/2705 34028dcf1b | (JJ Merelo)++ | doc/Type/X/Control.pod6 Reflows and clarifies refs #1268 |
05:47 | |
doc: aecc9472fe | (JJ Merelo)++ | doc/Type/CX/Next.pod6 New CX page, refs #1268 |
|||
synopsebot_ | Link: doc.perl6.org/type/X::Control | ||
Link: doc.perl6.org/type/CX::Next | |||
06:26
jmerelo left
06:33
sjm_uk joined
06:47
sjm_uk left,
marmor joined
|
|||
Woodi | hi #perl6 | 07:02 | |
nadim: trying to install required modules... | 07:03 | ||
07:23
pecastro joined
07:26
guifa2 left
07:28
guifa2 joined
07:31
molaf left
07:44
rindolf joined
07:47
sauvin left
|
|||
Woodi | .tell nadim to install via zef DDT required: s/pm/pm6/ in META6.json, line 14 | 08:01 | |
yoleaux | Woodi: I'll pass your message to nadim. | ||
08:02
farcas82regreg left,
nadim_ joined
|
|||
Woodi | .tell nadim I tried to parse 132k html file but it instantly got 3G of 4G RAM and I killed it when swap was almoust 1G... | 08:04 | |
yoleaux | Woodi: I'll pass your message to nadim. | ||
nadim_ | Woodi: good morning | 08:05 | |
That's the parser I guess, I can't do much about that. | |||
Woodi | nadim_: no, commented ^ddt line and scritp finished realy fast | 08:06 | |
nadim_ | OK, I noticed that things got very slow, didn't check memory usage, even on simple pages | 08:07 | |
08:08
sauvin joined
|
|||
nadim_ | I tried to profile but crashed the profiler, took 13 GB memory and then my machine started to swap | 08:08 | |
Woodi | nadim_: btw: how you got that nice looking result of html ? that munging you mentioned before... | ||
is it some option ? | |||
nadim_ | look at the code in example/html.pl6 | 08:10 | |
Woodi | ook ! thanx :) | ||
nadim_ | It transforms DOM::Tiny data structure on the fly | ||
08:11
cpan-p6 left
|
|||
nadim_ | Woodi: time to read the docs ;) | 08:11 | |
08:12
cpan-p6 joined,
cpan-p6 left,
cpan-p6 joined
|
|||
Woodi | more like learning, but: right :) | 08:13 | |
nadim_ | there are a lot of small examples in the examples directory; the README lists what they do | 08:14 | |
08:16
sena_kun joined
|
|||
lizmat | weekly: blogs.perl.org/users/athanasius/201...e-013.html | 08:17 | |
notable6 | lizmat, Noted! | ||
08:32
molaf joined
08:37
molaf left
08:45
marmor left
08:46
wamiks joined
08:54
wamiks left
08:56
nadim_ left
08:58
adu left
09:01
sjm_uk joined
09:04
molaf joined
09:07
pecastro left
09:11
Sgeo_ left,
sjm_uk left,
Sgeo_ joined
09:42
nadim_ joined
09:47
pecastro joined,
nadim_ left
09:55
Sgeo_ left,
Sgeo_ joined
09:58
squashable6 joined,
ChanServ sets mode: +v squashable6
10:11
nepugia joined,
nadim_ joined
10:12
abraxxa left
10:18
MasterDuke left
10:25
sjm_uk joined
10:30
sjm_uk left
10:33
sjm_uk joined
|
|||
xinming_ | In perl6, sometimes, We may encounter Use of uninitialized value of type Any in numeric context in block at (... file-to-pm6) line xxx | 10:38 | |
But when I go to the line xxx, I saw it's a if block | |||
In this case, How can we know the concrete position of where the uninitialized value is used? | |||
10:49
sjm_uk left
|
|||
sena_kun | are you asking about how to debug such cases or is there a way for Perl 6 to exactly say the line and column where the value is? | 10:57 | |
tobs | xinming_: maybe the numeric context is in the if condition? E.g. when you do `if $x == 0` and $x is uninitialised, then you'll get this warning and the line number will be correct. | ||
10:59
pecastro left
11:01
pecastro joined
11:12
farcas82regreg joined
|
|||
Geth | doc: briandfoy++ created pull request #2868: Fix brian's name |
11:14 | |
doc: bca4312f66 | (brian d foy)++ (committed using GitHub Web editor) | doc/Language/faq.pod6 Fix my name |
11:15 | ||
doc: e747d0f91f | Altai-man++ (committed using GitHub Web editor) | doc/Language/faq.pod6 Merge pull request #2868 from briandfoy/master Fix brian's name |
|||
synopsebot_ | Link: doc.perl6.org/language/faq | ||
sena_kun | synopsebot_, help | 11:24 | |
synopsebot_ | sena_kun, See: github.com/perl6/synopsebot | ||
11:32
molaf left
11:48
dogbert17 joined
|
|||
xinming_ | sena_kun: both. | 11:50 | |
tobs: Nope, the testing condition is just a single if $var | 11:51 | ||
The way I debug this is, I comment half of the code, and try them one by one. But still a bit curious why sometimes, It doesn't report the right line of code. | |||
sena_kun | m: my $var; if $var {} else { $var + 15 } | ||
camelia | WARNINGS for <tmp>: Useless use of "+" in expression "$var + 15" in sink context (line 1) Use of uninitialized value of type Any in numeric context in block <unit> at <tmp> line 1 |
||
sena_kun | I am not sure you need to comment out much, just printing all vars that are used as operands should be enough, if some is Any, it's the thing | 11:52 | |
11:52
netrino__ joined
|
|||
sena_kun | as for the right line - I guess we can start from providing a small gist where the position is blatantly wrong, and then create a rakudo ticket something like "The error message should be better". | 11:53 | |
12:14
MasterDuke joined,
MasterDuke left,
MasterDuke joined
12:26
mowcat joined
12:35
xinming joined
|
|||
nadim_ | hi, is there a way to make junctions not thread? | 13:15 | |
13:21
gabry left
13:24
natrys joined
13:28
gabry joined,
gabry left
|
|||
lizmat | nadim: create a candidate that takes a Junction? | 13:32 | |
or Mu | 13:33 | ||
m: sub a(Mu $a) { dd $a }; a 1|2|3 | |||
camelia | any(1, 2, 3) | ||
lizmat | m: sub a(Any $a) { dd $a }; a 1|2|3 | 13:34 | |
camelia | 1 2 3 |
||
13:40
pmurias joined
|
|||
xinming | rakudo.org/files/rakudo <--- This url returns 500 | 13:55 | |
sena_kun | xinming, it is a known issue, rakudo star can be accessed at rakudostar.com/latest/star/ | 14:03 | |
14:03
ChoHag left
|
|||
sena_kun | otherwise one can use distribution packages or p6env/rakudup/rakudobrew | 14:04 | |
see github.com/perl6/problem-solving/issues/9 | 14:05 | ||
14:12
zuphinx joined
14:14
zuphinx left
14:15
MilkmanDan left,
MilkmanDan joined
14:23
ChoHag joined
14:37
sena_kun left,
sena_kun joined
14:38
molaf joined
14:39
sjm_uk joined
14:41
nepugia left
|
|||
xinming | Ok, I just report this. :-) | 14:41 | |
14:44
sjm_uk left
14:48
antoniogamiz joined
14:52
sitbk left
14:58
patrickb joined
15:09
abraxxa joined,
sjm_uk joined
15:13
abraxxa left,
abraxxa joined
15:16
patrickb left
|
|||
sena_kun | .seen atweiden | 15:18 | |
yoleaux | I saw atweiden 12 May 2017 21:44Z in #perl6: <atweiden> it's not that simple, as the datetimes are part of a class, and i will need to combine the classes | ||
15:25
antoniogamiz left
15:27
antoniogamiz joined
15:28
sjm_uk left
15:30
pmurias left
15:42
abraxxa left,
sitbk joined
15:43
robertle joined
15:50
Cabanossi left
15:52
Cabanossi joined
|
|||
cpan-p6 | New module released to CPAN! CI::Gen (0.0.1) by 03SHLOMIF | 15:56 | |
16:07
clarkema joined
16:12
louisono joined
|
|||
louisono | hello | 16:13 | |
antoniogamiz | o/ | ||
louisono | i'm starting to learn/ play with Perl6. is there somebody to answer a few questions? | 16:14 | |
antoniogamiz | I can try :D | ||
louisono | thank you in advance :) | ||
i don't quite understand how the language works, is it interpreted or compiled or something else? | 16:15 | ||
antoniogamiz | it's compiled to an intermediate bytecode | 16:16 | |
16:16
rindolf left
|
|||
sena_kun | it compiled into bytecode for a VM called moarvm. moarvm supports JIT too. | 16:16 | |
antoniogamiz | that it's used by a virtual machine | ||
louisono | ok so when i write a bit of perl6 code and type 'perl6 myfile.p6' do i get a bytecode file of some sort? | 16:17 | |
xinming | louisono: It just run the myfile.p6 | 16:18 | |
louisono: internally, It's compiled into MoarVM bytecode. | |||
for now, Only modules will be compiled cached and compiled to bytecode | 16:19 | ||
And I do actually wish that we can distribute the bytecode of perl6 program. | 16:20 | ||
louisono | that feature is not yet available? | ||
Voldenet | it is available, but it is not supported | 16:21 | |
16:22
rindolf joined,
sjm_uk joined
|
|||
Voldenet | I've seen people saying that they did this, but it's not documented and it might even get thrown out | 16:22 | |
sena_kun doesn't think it is a common usecase | 16:23 | ||
louisono | ok, and i think i've seen somewhere that it's possible to compile perl6 code into jvm bytecode. | ||
sena_kun | it is, though your mileage may vary, as moarvm is more actively developed compared to jvm backend | 16:24 | |
github.com/rakudo/rakudo#configuri...on-the-jvm | 16:25 | ||
Voldenet | overall, in perl/python/js/ruby/php land you just don't usually precompile your code | ||
louisono | ok thank you very much for the answer I was curious about this | 16:29 | |
if i get it right perl6 code get compiled into bytecode by rakudo and that bytecode is then run by moarVM? | 16:30 | ||
sena_kun | technically, there is an intermediate thing called "nqp", but from the user point of view, it doesn't matter too much unless you are interested in the structure itself | 16:31 | |
16:33
holyghost joined
|
|||
louisono | sena_kun: i actually was wondering about nqp since it is mentionned in the page you linked | 16:33 | |
holyghost | I will leave this message for who reads it with .seen, I have fielded an example in Game::Bayes, to let it rest there | 16:34 | |
16:34
sjm_uk left
|
|||
holyghost | I'm on vacation for 2 months, I might join here on the channel but I may be afk most of the time. Our university is closed until september | 16:34 | |
16:35
holyghost left
|
|||
sena_kun | louisono, once again, are you interested in developing compiler / compiler parts, or playing with Perl 6 itself? | 16:36 | |
16:36
sjm_uk joined
16:37
pmurias joined,
sjm_uk left
|
|||
louisono | nah i'm just playing, haha :D | 16:37 | |
sena_kun | louisono, I'd bet on just installing a rakudo installation with moarvm and writing something more or less simple to get taste of the language. | 16:38 | |
louisono, what os/linux distribution do you use? | 16:39 | ||
louisono | I'm on ubuntu 16 | 16:40 | |
sena_kun | louisono, github.com/nxadm/rakudo-pkg#debian-and-ubuntu <- those three commands should done the thing. :) | 16:41 | |
though I wonder if 16 is not too old... | |||
xenial should be supported | 16:43 | ||
louisono | thank you i will try that | 16:44 | |
sena_kun | louisono, after that you'd need to get a newer zef (it is current Perl 6 package manager) installation | ||
louisono | can i get it with apt-get? | 16:45 | |
sena_kun | louisono, gist.github.com/Altai-man/0f7dbe63...25c1f180dc <- these should be around right | ||
or, hmm, stop... | 16:46 | ||
I wonder if the issue I saw is fixed already | |||
louisono, well, never mind my previous gist, please, though "/opt/rakudo-pkg/bin/add-perl6-to-path" and "/opt/rakudo-pkg/bin/install-zef-as-user" are helpful commands to do after installing rakudo-pkg, from my experience | 16:47 | ||
louisono | ok thank you again! | 16:58 | |
what is the difference between installing this way and following the steps described on the rakudo website? rakudo.org/files/star/source | 17:00 | ||
sena_kun | you are welcome, as for the difference... | ||
rakudo-pkg is a precompiled package, so it just installs and works. the page on the rakudo website describes compiling everything from sources. | 17:01 | ||
what's more, it describes a way to compile "rakudo star", a thing that includes rakudo, zef and a bunch of pre-installed modules, so you are installing it avoiding apt-get help, while rakudo-pkg package contains rakudo and zef(with moarvm+nqp, of course) | 17:02 | ||
and rakudo-pkg uses apt, so you can always apt-update or apt-remove, which is a bit nicer, I guess | 17:04 | ||
louisono | ok and when I have installed rakudo with rakudo-pkg I can still get the modules that are included in rakudo star by just using zef I guess | 17:05 | |
sena_kun | exactly. :) | 17:06 | |
louisono | ok thank you very much for taking time to explain all this | ||
sena_kun | feel free to ask here in case of any issues with installation, code, general questions etc | 17:07 | |
17:09
daxim joined
17:18
louisono_ joined
17:20
louisono left
|
|||
antoniogamiz | anyone knows what means this error message? | 17:39 | |
Serialization Error: missing static code ref for closure 'run' (gen/moar/stage2/NQPHLL.nqp:1983) | |||
17:46
antoniog1miz joined,
antoniogamiz left
|
|||
antoniog1miz | it's a weird error mmm | 17:47 | |
sena_kun | antoniog1miz, with this you probably want to ask at #moarvm | 17:48 | |
moritz | antoniog1miz: to me it looks liked a botched rakudo installation | 17:49 | |
antoniog1miz | moritz: mmm maybe is that yep | 17:50 | |
how could I fix it? | |||
sena_kun: thanks too :) | |||
moritz: even though all others perl6 programs work correctly? | 17:51 | ||
uoh is this line | 17:52 | ||
my $index-name-attr is default(Failure.new('missing index link')) | |||
if I comment that it works | |||
xinming | m: my $x; given $x { when Nil { "Any".say; }; when * { "*".say; }; default { "D".say; } } | 17:55 | |
camelia | * | ||
xinming | How do we match the "undefined" value? | ||
sena_kun | m: my $x; given $x { when !*.defined { "Any".say; }; when * { "*".say; }; default { "D".say; } } | 17:56 | |
camelia | Any | ||
tobs | or smartmatch against Any:U | ||
but I don't know if those two are really equivalent | 17:57 | ||
sena_kun | they are not | ||
tobs++, Any:U is a lot better | |||
because my option matches Str, Int, everything. :p | |||
17:58
MilkmanDan left
|
|||
xinming | Thanks | 17:58 | |
Any:U is best | |||
perl6++ | 18:00 | ||
Voldenet | that may be a foolish question, but my 2k lines "scripts" are getting a bit unwieldy - how do I split my code into multiple files? :D | 18:01 | |
in perl5 it was easy, just move some code into .pm file, export some routines | 18:03 | ||
in perl6 it doesn't actually seem to work like that | |||
moritz | why not? | ||
Voldenet | "Could not find Something at line 1" | 18:04 | |
18:05
MilkmanDan joined
|
|||
moritz | oh, . is not in the search path by default | 18:05 | |
put the module into lib, and run it with perl6 -Ilib yourscript.p6 | |||
Voldenet | Ah, that's fairly silly, but I can just set PERL6LIB and forget about it, thanks. | 18:07 | |
18:07
antoniog1miz left
|
|||
ugexe | if you just set PERL6LIB=. then everytime you run `perl6` in any other directory you will have a .precomp folder generated | 18:10 | |
18:12
MasterDuke left
18:15
empee0` joined,
farcas82regreg left
|
|||
Voldenet | This doesn't sound good, I'd rather input "use {relative path to executed script}" in all the files where I actually want local modules used | 18:17 | |
18:20
empee0` left
|
|||
Voldenet | apparently `PERL6LIB="$HOME/.perl6,."` seems to work as I want, or so I really hope I didn't break anything | 18:26 | |
s/or so// | 18:27 | ||
18:27
louisono_ left
18:32
Rayler joined
18:38
natrys left
18:43
natrys joined
18:51
kaare_ joined
18:54
Rayler left
19:07
Xliff joined
|
|||
Xliff | \o | 19:07 | |
I am happy to report that Perl6 works just dandy in the WSL | |||
Compiled via rakudobrew and went through just dandy. | |||
One issue: zef seems to hang when installing particular packages. Hitting CTRL-C at the right time seems to kick it out. | 19:08 | ||
ugexe | $HOME/.perl6 is already used automatically | 19:11 | |
m: say $*REPO.repo-chain[0] | 19:12 | ||
camelia | inst#/home/camelia/.perl6 | ||
19:12
guifa2 left
|
|||
Xliff | Where are the enhanced version numbers for perl6? | 19:15 | |
I only get this, now: | 19:16 | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDfwxj6uM9krC+L7Ip2nuAAn0dF+UYhtqoKQ3nuo8JyOn2bdUqlEwS7MzzCsZFJk34F7P4LWdPWJr+L5fiudXIn9PojFVv2US8ky+TnxCG5tckxSeEUlDlCUkfs+51UaM32fW0Wf1Zc2jFzT+Bul/IQXgn8RpXIoHN7aNSlW0TfKXypWcAj2HiCv3yD3I4/ANVmzWg1mtvUrDeYwm0Qv41JHBzywHinu95T9Emh72ANm8XTDx2OJ28AU5TZdmXrrl3j017UqjHMnid8z+DZTHg60Eu4+ORtoaYKD4eKZUSY1XpLlkZpyPnsBpO9GMuV9vTLOjUe0TjMYLL6KExX1CHz cbwood@INSANITY-4 | |||
Oops. | |||
Well... theres's my public key if anyone wants it. :P | |||
This is Rakudo version 2019.03.1 built on MoarVM version 2019.03 | |||
implementing Perl 6.d. | |||
^^ Missing commit hashes. Gone now? | |||
19:21
khisanth_ left
19:23
adu joined,
MasterDuke joined
19:24
empee0 joined
19:37
khisanth_ joined
19:46
Sgeo_ left
19:47
Sgeo_ joined
20:06
nepugia joined
20:10
empee0 left
|
|||
nadim_ | what's this warning? /home/nadim/nadim/devel/repositories/rakudo/install/bin/nqp-m version 2019.03-240-g8c90f6266 is outdated, 2019.03-253-g5190ce935 expected. | 20:10 | |
20:10
empee0 joined
|
|||
nadim_ | will a newer one be downloaded or does one have to do something amnually | 20:11 | |
then I get this ATTENTION: Found /home/nadim/nadim/devel/repositories/rakudo/install/bin/moar version 2019.05-53-gcce71cdbf, which is too old. Wanted at least 2019.05-91-g81e5cbf2a | |||
lizmat | nadim_: are you on HEAD? | 20:12 | |
nadim_ | yes | ||
lizmat | hmmm.... perhaps a "git submodule update" will work | ||
nadim_ | just pulled and wanted to build the latest when I got those | ||
lizmat | or else a reclone | ||
nadim_ | ok, I'll try | 20:13 | |
lizmat | we've had some issues in the build process... it should be ok now | ||
but if you tried it somewhere during the time it was not optimal | |||
it could be that there's stuff around that prevent it from working correctly | |||
afk again& | |||
nadim_ | git submodule update didn't remove the warning | ||
20:19
pmurias left
20:31
kensanata joined
20:34
empee0 left
20:35
empee0 joined
20:39
dolmen joined
20:41
pmurias joined
20:55
clarkema left
21:03
nepugia left
21:04
nepugia joined
21:10
empee0 left
21:11
empee0 joined
21:13
empee0 left
21:14
empee0 joined
21:18
dolmen left
|
|||
xinming | m: my %t; my $x := %t<x>; $x = 5; my ($a, $b) := %t<a b>.Seq; $a = 4; %t.perl.say; | 21:23 | |
camelia | Cannot assign to a readonly variable or a value in block <unit> at <tmp> line 1 |
||
21:23
netrino__ left
21:24
kensanata left
|
|||
xinming | Sorry to repeat the question, Any one here knows wether there is a way to bind the multiple value "container" for the hash? | 21:24 | |
m: my %t; my $x := %t<x>; $x = 5; my ($a, $b) := (%t<a>, %t<b>); $a = 4; %t.perl.say; | 21:27 | ||
camelia | Cannot assign to a readonly variable or a value in block <unit> at <tmp> line 1 |
||
xinming | This does't work either. | ||
21:29
molaf left
|
|||
Geth | ¦ problem-solving: AlexDaniel assigned to rba Issue rt.perl.org is shutting down github.com/perl6/problem-solving/issues/49 | 21:45 | |
¦ problem-solving: AlexDaniel assigned to maettu Issue rt.perl.org is shutting down github.com/perl6/problem-solving/issues/49 | |||
21:53
sitbk left
21:55
nepugia left
22:09
pmurias left
22:10
pmurias joined
22:26
dolmen joined,
nadim_ left
22:38
doomvox joined
22:52
natrys left,
vrurg joined
22:56
sena_kun left
23:03
dolmen left
23:07
pmurias left
23:16
jaldhar joined
|
|||
jaldhar | Hello. When doing the Perl Weekly Challenge, I caused a bug in my code where I was trying to express "$year is not a multiple of 100" but I wrote !$year % 100 instead of !($year % 100) I caught it but it got me thinking. For symmetrys sake, shouldn't there be "is not a multiple of" operator? | 23:21 | |
It could be !% or perhaps !%. Is this a bad idea? If it is worth pursuing, who should I talk to about proposing it as an addition to the Perl6 language. It would be a fun way for me to contribute I think. | 23:22 | ||
(And yes I know I can define my own operators. This is about making it an official feature of Perl6.) | 23:23 | ||
err and above that should be "!% or perhaps !%". | 23:24 | ||
dammit !% | |||
23:24
pecastro left
|
|||
jaldhar | huh you can do "! % %" for some reason. | 23:25 | |
*sigh* can't | |||
vrurg | m: say 123 %% 100 | 23:41 | |
camelia | False | ||
vrurg | jaldhar: is that what you're looking for? | ||
23:42
rindolf left
23:46
MilkmanDan left
23:47
MilkmanDan joined
23:52
empee0 left
23:56
doomvox left
|