»ö« 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. |
|||
AlexDaniel | yea, and you only need use WWW; | 00:00 | |
perllover | AlexDaniel still error pastebin.com/7HcPmqLR | 00:01 | |
AlexDaniel | yeah, that's the point | 00:02 | |
perllover | yea i understand. but you're saying you wouldn't get such an error when you run that 2-line code ? | ||
AlexDaniel | yeah, no error here | 00:03 | |
HoboWithAShotgun | do we use prepan for 6 modules? if not, is there a similar place? | ||
perllover | AlexDaniel what can i do? | 00:04 | |
AlexDaniel | well, as I said, you can try disabling ipv6 and trying again | ||
perllover | do you think there's an easy way to do it in perl5? | 00:06 | |
i'm a bit rusty with perl5, however. but a quick way to convert that same code over | |||
i'm nervous to disable ipv6. it looked risky | 00:07 | ||
am i overreacting about ipv6 ? | |||
AlexDaniel | it depends | 00:08 | |
perllover | depends on? | 00:09 | |
00:11
mr-foobar left
|
|||
AlexDaniel | stuff. :) But if I were you I'd try it, it is probably harmless | 00:11 | |
00:14
mr-foobar joined
|
|||
perlawhirl | ed'ed | 00:16 | |
oops | |||
00:19
perlawhirl joined
00:23
Cabanossi left
00:25
atta joined,
Cabanossi joined,
ggoebel joined
00:31
atta left
00:32
Mrofnet joined
00:36
Morfent left
00:37
MasterDuke_ joined
00:39
atta joined
00:47
cdg joined,
cognominal joined
00:51
cdg left
00:57
aborazmeh joined,
aborazmeh left,
aborazmeh joined
00:59
geekosaur joined
01:11
cdg joined
01:12
mr-foobar left
01:14
mr-foobar joined
01:15
Morfent joined
01:16
cdg left
01:17
Merfont joined
01:18
Mrofnet left
01:20
Morfent left
|
|||
comborico1611 | Quiet tonight. | 01:28 | |
01:28
astj joined
|
|||
Geth | doc/master: 11 commits pushed by W4anD0eR96++, (Alex Chen)++ review: github.com/perl6/doc/compare/dbce2...42d87cf59e |
01:32 | |
01:34
xinming_ joined
01:41
mr-foobar left
01:45
mr-foobar joined
01:57
kalkin-- joined
02:04
wander joined
02:06
colomon joined
|
|||
Geth | doc: 2212ab26dd | (Alex Chen)++ (committed using GitHub Web editor) | type-graph.txt Introduce new classes |
02:06 | |
02:07
cdg joined
02:10
ch3ck3r joined
02:11
mr-foobar left
02:12
cdg left
|
|||
comborico1611 | map { ++$_ } #WRONG map { $_ + 1 } #RIGHT | 02:15 | |
Tricky business. | |||
02:15
mr-foobar joined
|
|||
Geth | perl6-most-wanted: holli-holzer++ created pull request #40: WIP: Units |
02:15 | |
HoboWithAShotgun | when your brain starts to feel like a wet ball of cotton it's time to sleep | 02:17 | |
comborico1611 | lol | 02:18 | |
That's actually quite accurate comparison. | |||
Are you a poet? | 02:19 | ||
HoboWithAShotgun | yeah, and it really gets critical when the fabric dries | ||
comborico1611 | I haven't been there. | ||
02:20
colomon left
|
|||
HoboWithAShotgun | what are your dealings with Perl6 comborico1611? | 02:20 | |
comborico1611 | A non programmer trying to become a programmer. | 02:21 | |
HoboWithAShotgun | in hindsight of doing it for a living? | 02:22 | |
comborico1611 | Correct. | ||
HoboWithAShotgun | Oh, that's painful. | ||
comborico1611 | Just finished Chapter Nine! 😂 | ||
02:23
colomon joined
|
|||
comborico1611 | On to hashes! | 02:23 | |
HoboWithAShotgun | Because, if you learn to program with Perl6, you will get used to all those great features that simply not exist in other laguages | ||
comborico1611 | I learned on C++ | 02:24 | |
HoboWithAShotgun | And I doubt you will find a Perl 6 job anytime soon. | ||
Geth | perl6-most-wanted: ade8a5c53f | holli-holzer++ (committed using GitHub Web editor) | most-wanted/modules.md WIP: Units |
02:25 | |
perl6-most-wanted: 52c6e3796b | (Aleks-Daniel Jakimenko-Aleksejev)++ (committed using GitHub Web editor) | most-wanted/modules.md Merge pull request #40 from holli-holzer/master WIP: Units |
|||
comborico1611 | And i agree with you on the first point. As for jobs, i think Rakudo is a promising place for a guy without a certification. | ||
HoboWithAShotgun | AlexDaniel++ 24/7 | ||
AlexDaniel | :) | ||
02:26
colomon left
|
|||
AlexDaniel is actually going to bed now | 02:28 | ||
have a good whatever everyone o/ | |||
02:28
colomon joined
|
|||
comborico1611 | I'm almost am, too. | 02:28 | |
Night! | |||
AlexDaniel | releasable6: next | ||
releasable6 | AlexDaniel, Next release in 12 days and ≈16 hours. No blockers. 0 out of 134 commits logged | ||
02:28
araujo_ joined
|
|||
releasable6 | AlexDaniel, Details: gist.github.com/95ccab329b19bc3528...1c5886ff64 | 02:28 | |
AlexDaniel | whoops. 12 days | ||
time flies | 02:29 | ||
comborico1611 | How long have hashes been in programming languages? | 02:31 | |
HoboWithAShotgun | m: my @a = 1, 2; my ($a, $b) = @a; $a.say | 02:33 | |
camelia | 1 | ||
HoboWithAShotgun | m: my %a = :a(1); my (:$a) = %a; $a.say | 02:34 | |
camelia | a => 1 | ||
02:34
Mrofnet joined
|
|||
HoboWithAShotgun decides to do as AlexDaniel | 02:35 | ||
byebye | 02:36 | ||
02:37
Merfont left
|
|||
comborico1611 | Night! | 02:37 | |
02:38
Cabanossi left,
Exodist joined
02:39
cdg joined
02:40
Cabanossi joined
02:42
mr-foobar left
02:43
mr-foobar joined
02:44
cdg left
02:46
colomon left
|
|||
comborico1611 | Goodnight! | 02:47 | |
02:50
colomon joined
02:55
ilbot3 joined,
ChanServ sets mode: +v ilbot3
03:07
piojo joined
03:13
mr-foobar left
03:15
Mrofnet left,
mr-foobar joined,
Morfent joined
03:17
Morfent left
03:18
colomon left
03:22
colomon joined
03:23
noganex joined,
Cabanossi left
03:25
colomon left,
Cabanossi joined
03:34
darkmorph joined
03:37
ryn1x_ joined
|
|||
Geth | doc: 0db8f8c7b7 | (Jeremy Studer)++ | 172 files Add vim modeline at end of every file without one The settings in the modeline do the following: * Highlight this file as Perl6 * Expand tabs into 4 spaces This is helpful for vim users for highlighting an atypical file format and creates formatting consistency with regards to tabs and spacing. |
03:37 | |
[Coke] | ^^ someone might want to make a test for that. (or a ticket to make a tst anyway) | 03:39 | |
wander | what is declarator `monitor` means | 03:40 | |
looks like `class`, what's the difference | |||
timotimo | en.wikipedia.org/wiki/Monitor_(synchronization) - wander, it's this thing | 03:42 | |
timotimo disappears into bed | |||
(nobody saw me) | |||
03:42
mr-foobar left
03:44
mr-foobar joined
|
|||
wander suddenly find it's in my exam this afternoon | 03:45 | ||
OS lesson | 03:46 | ||
04:03
MasterDuke joined
04:04
MasterDuke_ left
04:07
wander left
04:09
aborazmeh left
04:11
cdg joined
04:12
colomon joined
04:16
cdg left
|
|||
[Coke] | m: Telemetry.say | 04:24 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared name: Telemetry used at line 1 |
||
[Coke] | lizmat: Alex Chen added Telemetry to the typegraph in docs, but it's not a publicly available class. Guessing it should actually be in the type graph. Thoughts? | 04:25 | |
04:25
Actualeyes joined
04:26
wander joined
04:35
sena_kun joined
04:38
Cabanossi left,
Cabanoss- joined
04:39
Cabanoss- is now known as Cabanossi
04:41
sena_kun left
|
|||
geekosaur | m: use Telemetry; | 04:43 | |
camelia | ( no output ) | ||
04:43
mr-foobar left
04:46
mr-foobar joined
04:57
ryn1x joined,
ryn1x_ left
05:04
mson joined
05:13
mr-foobar left
05:14
mr-foobar joined
05:18
Morfent joined
05:19
darkmorph left
05:36
Cabanossi left
05:39
Cabanossi joined
05:42
mr-foobar left
05:46
mr-foobar joined
05:48
imcsk8 joined
|
|||
Geth | Pod-To-HTML/toc-escape: f8db64ba8d | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm Escape toc text |
05:49 | |
Pod-To-HTML: W4anD0eR96++ created pull request #27: Escape toc text |
05:51 | ||
05:51
wamba joined
|
|||
wander | [Coke]: yes, I hesitate if it should be add | 05:53 | |
1. Telemetry::Period inherits from Telemetry, this is the main reason I add it | |||
2. However, it's a rakudo-specific class, I wonder if it should even not be in /Types | 05:57 | ||
That's the problem, other classes in rakudo/rakudo/lib, such like `Pod::To::..`, `NativeCall` are not documented in /Types. But `Telemetry` is thought a useful class, at least lizmat wrote a initial doc of it. | 06:00 | ||
To resolve this problem, maybe we have to think about where a rakudo-specific class should be documented, if the doc.perl6.org, how we should doc it. | 06:01 | ||
06:08
mempko joined
|
|||
wander | BTW, docs.perl6.org/type/snapper should not be documents in this place. | 06:12 | |
06:12
mattp__ joined
06:13
mr-foobar left,
labster_ joined
|
|||
wander | We can start with "Roadmap for our language/ docs" github.com/perl6/doc/issues/114 and consider how the site we want it be. | 06:14 | |
06:14
mattp_ left,
lucs_ joined,
titsuki_ joined,
labster_ is now known as labster
06:16
TEttinger joined
|
|||
wander go to take an exam | 06:16 | ||
06:17
evalable6 left,
evalable6 joined,
eater joined,
nativecallable6 left,
benchable6 left,
statisfiable6 left,
unicodable6 left,
bisectable6 left,
releasable6 left
06:18
stux|RC left,
unicodable6 joined,
statisfiable6 joined,
bisectable6 joined,
benchable6 joined,
nativecallable6 joined
06:19
stux|RC joined
06:20
mr-foobar joined
06:26
notostraca joined
06:31
TEttinger left,
titsuki_ left,
mempko left,
colomon left,
astj left
06:32
john51 joined,
konsolebox joined
06:34
ribasushi joined,
evalable6 left,
evalable6 joined,
releasable6 joined,
ChanServ sets mode: +v releasable6,
unicodable6 left,
statisfiable6 left,
bisectable6 left,
benchable6 left,
nativecallable6 left
06:44
mr-foobar left,
Piotr_ joined
06:46
wander left
06:49
atta left
06:50
atta joined,
mr-foobar joined
06:51
bisectable6 joined,
unicodable6 joined,
nativecallable6 joined,
ChanServ sets mode: +v bisectable6,
ChanServ sets mode: +v unicodable6,
ChanServ sets mode: +v nativecallable6,
benchable6 joined,
Cabanossi left,
statisfiable6 joined
06:54
Cabanossi joined
07:02
darutoko joined
07:11
nadim joined,
titsuki_ joined,
mempko joined,
colomon joined,
astj joined,
vike joined,
APic joined,
epony joined,
cgfbee joined,
shadoxx joined,
dogbert17 joined,
kshannon joined,
Alikzus_ joined,
charsbar joined,
ab5tract joined,
masak joined,
preaction joined,
silug joined
07:12
APic left,
cgfbee left
07:13
mr-foobar left,
darutoko- joined,
APic joined
07:14
john51 left,
mson left
07:15
ccntrq joined,
statisfiable6 left,
benchable6 left
07:16
benchable6 joined,
statisfiable6 joined,
darutoko left,
evalable6 left,
evalable6 joined,
mr-foobar joined,
ZzZombo joined
07:17
ch3ck3r left,
HTTP_____GK1wmSU joined,
HTTP_____GK1wmSU left
07:18
AlexDaniel` left,
pm51 joined,
cgfbee joined,
ugexe joined
07:19
Altreus joined,
john51 joined
07:20
evalable6 left,
benchable6 left,
statisfiable6 left
07:21
statisfiable6 joined,
benchable6 joined,
evalable6 joined,
ccntrq left,
xui_nya[m] left
07:22
tyil[m] left,
wictory[m] left,
CIAvash[m] left,
wamba[m] left,
mienaikage left,
Garland_g[m] left,
ilmari[m] left,
tadzik left,
unclechu left,
Matthew[m] left,
M-Illandan left
07:23
mack[m] left,
ccntrq joined
07:25
statisfiable6 left,
benchable6 left,
evalable6 left
07:29
ZzZombo left
07:30
ZzZombo joined,
ZzZombo left
07:31
ZzZombo joined
07:36
Cabanossi left
07:39
Cabanossi joined
07:42
benchable6 joined,
evalable6 joined,
statisfiable6 joined
07:43
mr-foobar left
07:46
mr-foobar joined
07:47
parv joined
07:48
ZzZombo left,
ZzZombo joined
08:02
ZzZombo left
08:03
ZzZombo joined
08:08
ZzZombo left
08:09
ZzZombo joined
08:15
lowbro joined,
lowbro left,
lowbro joined
08:22
zakharyas joined
08:32
abraxxa joined
08:39
rindolf joined
08:44
notostraca is now known as TEttinger,
mr-foobar left
08:45
mr-foobar joined
08:50
Actualeyes left
|
|||
holyghost | alt.test | 08:54 | |
CTCP #perl6 client | 08:57 | ||
08:58
holyghost joined,
araujo_ left
08:59
mempko left,
sena_kun joined
09:03
jonas1 joined
09:12
tadzik joined
09:14
mr-foobar left
09:15
mr-foobar joined
09:18
dogbert17 left
09:20
cdg joined
09:24
atta left
09:25
cdg left,
HoboWithAShotgun joined
09:37
Cabanossi left,
tadzik left
09:39
Cabanossi joined
09:40
tadzik joined
09:41
ilbot3 left
09:42
rgrau joined
09:44
mr-foobar left
09:45
mr-foobar joined,
ilbot3 joined,
ChanServ sets mode: +v ilbot3
09:46
atta joined
09:57
HaraldJoerg joined,
HoboWithAShotgun left
|
|||
Geth | Pod-To-HTML/toc-escape: d57051b2fc | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm escape html in toc ``` =begin pod =TITLE Regex ... (8 more lines) |
10:06 | |
10:09
wander joined
10:13
salva joined
10:14
mr-foobar left
10:17
mr-foobar joined,
margeas joined
|
|||
Geth | Pod-To-HTML: f8db64ba8d | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm Escape toc text |
10:18 | |
Pod-To-HTML: d57051b2fc | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm escape html in toc ``` =begin pod =TITLE Regex ... (8 more lines) |
|||
Pod-To-HTML: 329bc915b3 | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm Merge pull request #27 from perl6/toc-escape Escape toc text |
|||
10:19
HoboWithAShotgun joined
10:22
Matthew[m] joined,
CIAvash[m] joined,
M-Illandan joined,
ilmari[m] joined,
wamba[m] joined,
mack[m] joined,
tyil[m] joined,
unclechu joined,
AlexDaniel`1 joined,
wictory[m] joined,
mienaikage joined,
Garland_g[m] joined,
xui_nya[m] joined
10:25
ChoHag joined
10:28
robertle joined
10:31
ChoHag_ joined
10:33
ChoHag left
10:34
konsolebox left
10:36
ChoHag_ left
10:37
ChoHag joined
10:41
cognominal left,
konsolebox joined,
cognominal joined
10:44
mr-foobar left
10:48
Ven joined,
Ven is now known as Guest53102
10:49
mr-foobar joined,
wander left
10:52
Cabanossi left
10:54
Cabanossi joined
10:55
raschipi joined
10:58
darutoko- left
11:00
darutoko joined
11:02
ryn1x left
11:03
wamba left,
sproctor joined,
HTTP_____GK1wmSU joined
|
|||
HoboWithAShotgun | g'day | 11:03 | |
11:03
HTTP_____GK1wmSU left
|
|||
raschipi | day | 11:05 | |
11:09
raschipi left
11:15
mr-foobar left
11:19
mr-foobar joined,
parv left,
HTTP_____GK1wmSU joined,
HTTP_____GK1wmSU left
11:22
Guest53102 left,
Cabanossi left
11:24
Cabanossi joined
11:30
Mrofnet joined
11:32
ryn1x joined
11:33
Morfent left
11:40
llfourn joined
11:42
Raider_ joined
11:43
Raider_ is now known as Twixx,
Twixx left
11:45
mr-foobar left
11:46
comborico1611 joined,
mr-foobar joined
11:49
Merfont joined
11:51
Cabanossi left
11:52
Mrofnet left
11:54
Cabanossi joined
12:00
wamba joined
12:03
zakharyas left
12:04
HaraldJoerg1 joined
12:06
HaraldJoerg left
12:11
census_ joined
12:14
mr-foobar left
12:17
mr-foobar joined
12:19
census_ left
12:20
piojo left
12:25
ufobat joined
|
|||
ufobat | ola :-) | 12:25 | |
census | hi | 12:29 | |
12:34
ryn1x left
|
|||
ZzZombo | Hey, if I `make` a value, calling `<match object>.made` is supposed to give that value back, isn't it? | 12:35 | |
12:42
ryn1x joined,
wamba left
12:44
mr-foobar left,
darkmorph joined
12:45
mson joined
12:46
mr-foobar joined,
wamba joined,
ryn1x left
12:47
kerframil joined
12:48
aborazmeh joined,
aborazmeh left,
aborazmeh joined
|
|||
HoboWithAShotgun | m: my %a = :a(1), :b(2); my %b = :a(1); say %a <<+>> %b;" | 12:50 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Unable to parse expression in double quotes; couldn't find final '"' (corresponding starter was at line 1) at <tmp>:1 ------> 3 :b(2); my %b = :a(1); say %a <<+>> %b;"7⏏5<EOL> expecting … |
||
HoboWithAShotgun | m: my %a = :a(1), :b(2); my %b = :a(1); say %a <<+>> %b; | 12:51 | |
camelia | {a => 2} | ||
HoboWithAShotgun | what's the idiomatic way to get { a => 2, b => 2 } ? | ||
12:51
Cabanossi left
12:52
salva left
12:54
Cabanossi joined
|
|||
HoboWithAShotgun | m: my %a = :a(1), :b(2); my %b = :a(1); say %( |%a, |%b, |(%a <<+>> %b) ) | 12:54 | |
camelia | {a => 2, b => 2} | ||
HoboWithAShotgun | too ugly | ||
timotimo | what are you trying to do? | ||
add the values together? | |||
HoboWithAShotgun | that. summing two hashes, result must have all keys | 12:55 | |
timotimo | well, with >>+>> it works for that example at least | 12:56 | |
aha | |||
>>+<< gives you the union of keys | |||
docs.perl6.org/language/operators#..._Operators | |||
HoboWithAShotgun | mmh. actually i am trying to do that with a hash of int. | 13:07 | |
m: my $a = (my Int % = :A(-2), :g(1), :m(2), :s(-3)); my $b = (my Int % = :A(1)); say $a >>+<< $b; | |||
camelia | Invocant of method 'Bridge' must be an object instance of type 'Int', not a type object of type 'Int'. Did you forget a '.new'? in block <unit> at <tmp> line 1 |
||
13:10
wamba left
13:14
mr-foobar left
13:15
llfourn left
13:16
ryn1x joined
13:17
mr-foobar joined
|
|||
timotimo | oh? it's perhaps misunderstanding the default return value of an Int hash? | 13:18 | |
13:21
ryn1x left
13:22
itaipu joined
13:23
ryn1x joined,
iviv left,
kipd joined,
clkao joined,
scott joined
|
|||
timotimo | m: my $a = (my Int % is default(0) = :A(-2), :g(1), :m(2), :s(-3)); my $b = (my Int % is default(0) = :A(1)); say $a >>+<< $b; | 13:24 | |
camelia | {A => -1, g => 1, m => 2, s => -3} | ||
13:24
iviv joined,
ccakes joined,
SmokeMachine joined,
pnu__ left
13:27
statisfiable6 left,
benchable6 left,
evalable6 left,
evalable6 joined,
benchable6 joined,
statisfiable6 joined
13:28
ryn1x left
|
|||
timotimo | aha, hyper hypers the values from both hashes together "quietly", that's why the + operator won't complain when one of the sides is undefined | 13:29 | |
but this "undefined turns to 0" is a feature of Any, not of Int | |||
m: say Int + 5 | 13:30 | ||
camelia | Invocant of method 'Bridge' must be an object instance of type 'Int', not a type object of type 'Int'. Did you forget a '.new'? in block <unit> at <tmp> line 1 |
||
timotimo | i feel like the + operator (and likely many others) should also support one or both sides being undefined | ||
lizmat | m: say 1 + Any # it does ? | 13:35 | |
camelia | Use of uninitialized value of type Any in numeric context 1 in block <unit> at <tmp> line 1 |
||
lizmat | m: quietly say 1 + Any # it does ? | 13:36 | |
camelia | 1 | ||
13:36
Cabanossi left
|
|||
ZzZombo | <ZzZombo> Hey, if I `make` a value, calling `<match object>.made` is supposed to give that value back, isn't it? | 13:36 | |
13:39
Cabanossi joined
|
|||
timotimo | sorry | 13:44 | |
i mean one of the side being undefined Int | |||
m: say Int + 1 | 13:45 | ||
camelia | Invocant of method 'Bridge' must be an object instance of type 'Int', not a type object of type 'Int'. Did you forget a '.new'? in block <unit> at <tmp> line 1 |
||
timotimo | that's what breaks >>+<< with Int-declared hashes | ||
(unless you have a default) | |||
13:52
ryn1x joined
13:54
mcmillhj joined
|
|||
timotimo | ZzZombo: yes, it's supposed to. what are you seeing? | 13:55 | |
13:55
aborazmeh left
|
|||
tyil | !p6 my $i = 0; $i += 5; say $i; | 13:56 | |
m: my $i = 0; $i += 5; say $i; | 13:57 | ||
camelia | 5 | ||
tyil | !p6 my $i = 0; $i ⁺= 5; say $i; | ||
m: my $i = 0; $i ⁺= 5; say $i; | |||
camelia | 5===SORRY!5=== Error while compiling <tmp> Confused at <tmp>:1 ------> 3my $i = 0; $i7⏏5 ⁺= 5; say $i; expecting any of: infix infix stopper statement end statement modifier sta… |
||
AlexDaniel | p6: my $i = 0; $i ⁺= 5; say $i; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Confused at <tmp>:1 ------> 3my $i = 0; $i7⏏5 ⁺= 5; say $i; expecting any of: infix infix stopper statement end statement modifier sta… |
||
tyil | anyway, that | ||
AlexDaniel | u: ⁺ | ||
unicodable6 | AlexDaniel, U+207A SUPERSCRIPT PLUS SIGN [Sm] (⁺) | ||
tyil | it doesnt like it when using the unicode + | ||
AlexDaniel | there's no unicode + that I know of | 13:58 | |
that's superscript + | |||
there is unicode minus tho | |||
u: MINUS SIGN | |||
unicodable6 | AlexDaniel, U+00B1 PLUS-MINUS SIGN [Sm] (±) | ||
AlexDaniel, U+02D7 MODIFIER LETTER MINUS SIGN [Sk] (˗) | |||
AlexDaniel, 13 characters in total: gist.github.com/de6599a35d4de60f97...298007def7 | |||
AlexDaniel | m: my $x = 5; $x −= 2; say $x | ||
camelia | 3 | ||
tyil | its the small + as seen on docs.perl6.org/language/unicode_ascii | ||
13:59
sproctor left
|
|||
AlexDaniel | but that's so that you can do this: | 13:59 | |
m: say 2⁺³² | |||
camelia | 4294967296 | ||
AlexDaniel | m: say 2⁻³² | ||
camelia | 0.00000000023 | ||
tyil | ah | ||
my bad then | |||
sorry | 14:00 | ||
14:00
zakharyas joined
|
|||
AlexDaniel | note that it doesn't do math, so you can't do ³⁺² | 14:00 | |
14:00
sproctor joined
|
|||
AlexDaniel | docs also say “as part of exponentiation” :) | 14:00 | |
sproctor | If we require a c lib to be installed for a module is there anyway of specifying it in the Meta? Or should the module include tests that fail in a helpful fashion if the lib doesn't exist? | 14:01 | |
AlexDaniel | hmmm but the provided ASCII equivalents are maybe wrong, because it's a feature of its own | ||
tyil | sproctor: currently none afaik | ||
I've tried using the method expained in the design docs, but I was told those were wrong | 14:02 | ||
14:04
wander joined
|
|||
Geth | Pod-To-HTML: 6eaff49839 | (Alex Chen)++ (committed using GitHub Web editor) | META6.json Bump version |
14:04 | |
14:07
cdg joined
|
|||
wander | several hours ago I saw this page | 14:08 | |
github.com/perl6/perl6-most-wanted...ntation.md | |||
so hyper is an interesting while confusing part of Perl 6 | 14:09 | ||
timotimo | last update was on 10 dec 2015? | ||
wander | especially whitespace matters | ||
timotimo | given that hyper has just been re-implemented, i'd say this page might want to be reconsidered | 14:10 | |
wander | yes, I saw it because the latest update of the repo is some hours ago | ||
`has just`? when | |||
jdv79 | every midnight i want to calc "tomorrow at midnight" in my local tz and handle daylight savings and leap seconds properly. how would you do that in p6? | 14:11 | |
14:11
aborazmeh joined,
aborazmeh left,
aborazmeh joined
|
|||
ZzZombo | ugh, it's strange, I `make` an object that is then saved into an attribute of the actions object for the grammar, but it somehow always comes as the type object, i. e. it's not initialized to the value I gave. | 14:13 | |
wander | ZzZombo: what's the code | ||
timotimo | ZzZombo: could be a different match object you're looking at for some reason. or you could be storing Nil and it's restoring the default value because your rakudo is too old? | 14:15 | |
14:15
holyghost2 joined
|
|||
timotimo | m: "a" ~~ /./; make Nil; say $/.made | 14:15 | |
camelia | Nil | ||
timotimo | c: 2017.01 "a" ~~ /./; make Nil; say $/.made | ||
committable6_ | timotimo, ¦2017.01: «Nil» | ||
timotimo | oh, that wasn't the bug, then? | ||
14:23
Cabanossi left
14:24
Cabanossi joined
|
|||
comborico1611 | Why does a hash print out with => instead of -> ? | 14:25 | |
timotimo | because the => operator is how you create pairs | ||
wander | m: :b(3).perl | ||
camelia | ( no output ) | ||
wander | m: :b(3).perl.say | ||
camelia | :b(3) | ||
timotimo | there's different ways to print out a hash, though | ||
wander: that's just the pair, though | |||
wander | m: { :b(3), c(4)}.perl.say | 14:26 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: c used at line 1 |
||
wander | m: { :b(3), :c(4)}.perl.say | ||
camelia | {:b(3), :c(4)} | ||
comborico1611 | But printing-out a value is not involved with creating pairs. | ||
14:26
ryn1x left
|
|||
wander | m: { :b(3), :c(4)}.^name.say | 14:26 | |
camelia | Hash | ||
wander | comborico1611: for what reason you think it should print out with -> ? | 14:27 | |
comborico1611 | The book reads printouts with -> | ||
wander | Think Perl 6? which page? | ||
14:27
philomath joined
|
|||
timotimo | m: say { hello => "world", seeya => "goodbye" } | 14:28 | |
camelia | {hello => world, seeya => goodbye} | ||
comborico1611 | Technically as comments. # -> value | ||
timotimo | that's not about hashes | ||
that just means "here's what that evaluates to" | |||
wander | agree | ||
comborico1611 | All the pages. 167 for instance. | ||
timotimo | (either "what it evaluates to" or "what it prints out", depending on what the author likes more) | 14:29 | |
comborico1611 | Oh, i see. | ||
wander | in the very page, I've only found "# -> Found it!" | ||
comborico1611 | That's the print out. | 14:30 | |
I thought prompt returned -> value | |||
wander | I think it means "# OUTPUT: «Found it»" | ||
14:30
pmurias joined
|
|||
comborico1611 | I see. | 14:30 | |
timotimo | there ought to be a section near the front of the book that explains things like that | ||
wander | so it has nothing to do with hash | 14:31 | |
comborico1611 | P.184 top is where my question was. | ||
14:31
eliasr joined
|
|||
comborico1611 | He should have wrote on page 184 this: -> one => uno | 14:31 | |
He's just not been consistent with how he is doing the output. Actually now that I think about it, what's going on is he's using the other mode of rikudo. | 14:32 | ||
ZzZombo | I `make` it this way in my `section` action method: `make my $section=Grammar::VDF::Section.new(:name($<name>.made),:condition($<conditional>.made));` | ||
later I assign that in another action method (by calling `$<section>.made`) and I get the type object instead. | |||
14:33
salva joined
|
|||
comborico1611 | Question answered thanks guys | 14:33 | |
timotimo | dumb question, but the value in $section is correct afterwards? | ||
wander | code snip? | 14:34 | |
m: "a" ~~ /./; make my $x = 42; $/.made.say | |||
camelia | 42 | ||
wander | m: class A { has $.x }; "a" ~~ /./; make my A $x = A.new(:x(4096)); $/.made.say | 14:35 | |
camelia | A.new(x => 4096) | ||
comborico1611 | Perl6 alias Rekudo! | 14:36 | |
wander | I have been working on Grammar for some time. There are problems caused not always as you think. | 14:37 | |
comborico1611 | That would handle the Rakudo compiler vs alias confusion. | ||
14:37
huggable joined,
ChanServ sets mode: +v huggable
|
|||
comborico1611 | Or Racoondo! | 14:38 | |
wander | maybe you call `$<section>.made`, but `$<section>` is this time an Array | ||
comborico1611 | Rakundo! | ||
wander | well in this case it cause compile error, but FWIW, grammar is something new | 14:39 | |
comborico1611 | RakUNDO, get it? | ||
timotimo | m: say [1, 2, 3].made | 14:40 | |
camelia | No such method 'made' for invocant of type 'Array'. Did you mean any of these? map max name race in block <unit> at <tmp> line 1 |
||
timotimo | wander: if you accidnetally call .made on an array it explodes like that | ||
wander | "[22:39] <wander> well in this case it cause compile error," | ||
14:40
Actualeyes joined
|
|||
wander | I see XD | 14:40 | |
timotimo | oh | 14:41 | |
Geth | mu: aaa173d49c | (Zoffix Znet)++ (committed using GitHub Web editor) | misc/perl6advent-2017/schedule dibsify Dec 12: "Concise Perl 6 IO" |
14:42 | |
14:44
aindilis left,
Piotr_ left
14:45
mr-foobar left
|
|||
wander | m: grammar { token TOP { | 'if ' <mywords>+ | 'else ' <mywords> }; token mywords { \w } }.parse("else w", actions => class { method TOP($/) { say $/<mywords>.^name }}) | 14:46 | |
camelia | Array | ||
wander | m: grammar { token TOP { | 'if ' <mywords> | 'else ' <mywords> }; token mywords { \w } }.parse("else w", actions => class { method TOP($/) { say $/<mywords>.^name }}) | ||
camelia | <anon|79556384> | ||
14:46
mr-foobar joined
|
|||
holyghost2 | I misposted my HollyGame toolkit for writing games at pause, I am probably going to port it to non-inline perl6 | 14:47 | |
wander | real world issue, I crashed it once | ||
holyghost2 | It's at holyghost.yellowcouch.org/perl5/src | ||
timotimo | holyghost2: i was quite confused by the email you sent :) | ||
comborico1611 | Is Binding the same as Aliasing? | ||
holyghost2 | you were ? | ||
timotimo | yeah, the file you attached looked like 1:1 my particle system example from the SDL2::Raw repository | 14:48 | |
holyghost2 | ok, I tried to port a small game library | ||
It's still an issue | |||
timotimo | the url you just posted is also 404 :( | ||
holyghost2 | aaaaaagh! | ||
I do not remember the /ctcp send | 14:49 | ||
census | i'm unable to run this code on my computer pastebin.com/qnYAZJ7v but it should work. it works on other perl6 computers | ||
holyghost2 | timotimo : I will first try to make it perl6 from perl5 | ||
I need a little time for that as I forgot my perl6 skills | 14:50 | ||
wander | census: error msg? | ||
timotimo | holyghost2: you'll probably find many sdl2 functions missing; that's just because i didn't know what order to do things in. if you need anything, feel free to open an issue on github or maybe even a pull request | ||
14:51
kerframil left
|
|||
census | wander actually it just worked | 14:51 | |
for weeks it wasn't working | |||
wander | sounds fine :) | 14:53 | |
14:53
philomath_ joined
|
|||
holyghost2 | timotimo : It's SDL 1.2 in HollyGame module now | 14:53 | |
census | wander can i show you the next part of my code now? | ||
holyghost2 | I still need to port it to SDL 2 :: Raw or something | ||
14:54
kerframil joined
|
|||
timotimo | the sdl2 module doesn't expose any of the surface blitting stuff that you'd use if you only have sdl 1 | 14:54 | |
wander | I'm not an expert on that. | ||
census | wander an expert on what? | ||
wander | WWW or net | ||
census | what am i doing wrong that the code outputs '3' every time? pastebin.com/FAicYnH3 | 14:55 | |
14:55
philomath left
|
|||
holyghost2 | timotimo : should I port to SDL 2 ? | 14:56 | |
timotimo | i haven't seen your game kit yet, so i have no idea | ||
holyghost2 | WAM | 14:57 | |
It's in the ftp incoming of pause | |||
perlpilot | holyghost2: I haven't seen your stuff either, but I think you should port it to SDL2 ;-> | ||
holyghost2 | perlpilot : yeah that's something I have to do | 14:58 | |
wander | .ask zoffix I bump version for Pod::To::HTML, but cannot upgrade with zef. also seems doc.perl6.org don't build with the newest Pod::To::HTML. why? | ||
yoleaux | wander: I'll pass your message to zoffix. | ||
holyghost2 | It's a stupid class overriding system of a 2D collision system and some lists for NPCs | 14:59 | |
It's ok but basic | |||
You can override with SDL images and so on | 15:00 | ||
15:00
ryn1x joined
15:01
mcmillhj left
|
|||
comborico1611 | Ryn, where you from? | 15:01 | |
holyghost2 | timotimo : does holyghost.yellowcouch.org resolve ? | 15:02 | |
comborico1611 | I think might know you. | ||
15:03
mcmillhj joined
|
|||
census | is someone good with WWW ? | 15:03 | |
timotimo | yes, but it just gives me the yellowcouch.org website | ||
census | for any input, i always get 3 as the output pastebin.com/FAicYnH3 | 15:04 | |
ZzZombo | <timotimo> dumb question, but the value in $section is correct afterwards? | ||
Well, almost... it itself lacks another object field that is set later in the `section` method... I wonder if it's the same thing. | |||
holyghost2 | ok | 15:05 | |
15:05
ryn1x left
|
|||
ZzZombo | I mean, the the name and value attributes of sections are ok, but not parent. | 15:05 | |
parent is another section, and it's also undefined, even tho I do set it. | 15:06 | ||
Example: `Grammar::VDF::Section.new(condition => Grammar::VDF::Condition, name => "04", parent => Grammar::VDF::Node)` | |||
(condition is supposed to be undef right now, but maybe it's bugged as well). | 15:07 | ||
15:07
llfourn joined
15:08
mcmillhj left
15:09
mcmillhj joined
15:14
mr-foobar left
15:15
araujo joined,
araujo left,
araujo joined
|
|||
holyghost2 | timotimo : gomez.yellowcouch.org/hollysrc-1.24.tar.gz | 15:15 | |
timotimo : the HollyGame module | |||
15:16
mr-foobar joined
|
|||
comborico1611 | m: my %test = <a 1 b 2 c 3>; say %test.kv ; | 15:17 | |
camelia | (a 1 c 3 b 2) | ||
comborico1611 | m: my %test = <a 1 b 2 c 3>; say pairs %test; | ||
camelia | (a => 1 c => 3 b => 2) | ||
15:19
khw joined
15:20
holyghost left,
pnu__ joined
15:22
Zoffix joined
|
|||
Zoffix | wander: RE: "but cannot upgrade with zef" did you do `zef update`? RE: "seems doc.perl6.org don't build with the newest" did anyone upgrade the module on the build box? | 15:23 | |
3.9 installed, so no | 15:25 | ||
Zoffix upgrades | |||
wander: you can also install from github URLs btw; that way you don't need to wait for ecosystem list to update or to run `zef update`: zef --force install github.com/perl6/Pod-To-HTML.git | 15:26 | ||
15:26
mcmillhj left
|
|||
Zoffix | census: so number of rows in parsed CSV always gives you three... Sounds like dumping that CSV and ensuring it got right data up in it might be a good idea. | 15:29 | |
You'll find it's not CSV at all, but just an HTML document, so your URL is wrong | 15:30 | ||
15:30
Piotr_ joined,
census2 joined
|
|||
census2 | Zoffix thanks. I've made some progress. | 15:31 | |
census | pastebin.com/6t6x05sj | ||
census2 | It should say 755, but it says 978 | ||
15:32
mcmillhj joined
|
|||
wander | yes, i miss `update` | 15:33 | |
Zoffix | census2: why do you think it shouls say 755? | 15:34 | |
15:34
ryn1x joined
|
|||
census2 | Zoffix because when i downloaded the .csv manually there are 757 rows but the first 2 are meaningless so 755 | 15:34 | |
Zoffix | census2: I get 993 rows total when I open that CSV in Excel. With first 2 meaningless. | 15:35 | |
"that CSV" => the file downloaded by the program | 15:36 | ||
census2 | Zoffix i'm a little confused even why 993 if the code i'm running says 978 | 15:37 | |
I appreciate your looking into it! Are you saying the code is telling you 993 or you went to the website directly and got 993 | |||
wander | Zoffix: what is "upgrade the module on the build box" means? | ||
15:37
Phi_mb joined
|
|||
wander | bad syntax :( | 15:37 | |
Zoffix | census2: if I go to patents.google.com/?q=Cancer&c...g:20010101 and click "Download CSV" I get 793 rows. But if I use the link the program uses ( patents.google.com/xhr/query?url=q...nload=true ) I get 993 rows. So sounds like you got your CSV URL in the program wrong. | 15:39 | |
census2: the program says there's 991 rows, not 978 to me | |||
15:39
ChoHag_ joined
|
|||
wander | what "upgrade the module on the build box" means? | 15:39 | |
15:40
troys joined,
philomath_ left
|
|||
Zoffix | wander: the docs site is built every $n minutes in a cronjob on our "hack" server. It doesn't get updated modules automatically. Someone needs to log into is as `rakudobrew` user and install the upgraded module if updates in a module need to be propagated to the docs site | 15:40 | |
15:40
cdg left
15:41
cdg joined
|
|||
Zoffix | I already done it for the last update. So the docs site should be using latest version now | 15:41 | |
census2 | Zoffix that's because it's 2 different years. the first one is based on 2001 and the second one is based on 1990. i thought both attempt in my code are based on 1990 | ||
15:41
mcmillhj left
|
|||
Zoffix | OK | 15:41 | |
15:41
holyghost2 left
|
|||
wander | thanks | 15:41 | |
15:42
ChoHag left
|
|||
census2 | Zoffix okay I got the 993 you got now too when I did it manually with the internet | 15:43 | |
okay it worked just now ! :) | 15:44 | ||
15:44
callyalater joined
|
|||
Zoffix | Sweet \o/ | 15:44 | |
15:45
cdg left
|
|||
census2 | Zoffix i feel it's like a random number generator though. it's so bizarre | 15:46 | |
i ran the code 3 times. i got 991, 981, and 988. only 991 is correct though | |||
15:49
ChoHag_ left
|
|||
comborico1611 | What is the \t here: $key\t%histogram{ } | 15:49 | |
Zoffix | comborico1611: tab character | 15:50 | |
m: :42foo.gist.perl.say | |||
camelia | "foo => 42" | ||
Zoffix | m: :42foo.Str.perl.say | ||
camelia | "foo\t42" | ||
comborico1611 | Thank you. What is /t ? | ||
Zoffix | /t? | ||
comborico1611 | Nothing? | ||
Zoffix | Which /t? | ||
comborico1611 | I thought newline was /n. | 15:51 | |
Zoffix | It's \n | ||
jast | \t is a tab character | ||
comborico1611 | Oh. Thank you. | ||
15:51
ChoHag joined
15:53
Cabanossi left
|
|||
Zoffix | m: (^0x110000).grep({.chr ~~ /\s/}).map({"U+{.base: 16} {.chr.perl}"}).Str.say | 15:54 | |
camelia | U+9 "\t" U+A "\n" U+B "\x[b]" U+C "\x[c]" U+D "\r" U+20 " " U+85 "\x[85]" U+A0 " " U+1680 " " U+2000 " " U+2001 " " U+2002 " " U+2003 " " U+2004 " " U+2005 " " U+2006 " " U+2007 " " U+2008 " " U+2009 " " U+200A " " U+2028 " … | ||
15:54
Cabanossi joined
|
|||
Zoffix | c: HEAD (^0x110000).grep({.chr ~~ /\s/}).map({"U+{.base: 16} {.chr.perl}"}).Str.say | 15:54 | |
committable6_ | Zoffix, gist.github.com/8ca434ded8cb7ab153...b9e60faff9 | ||
wander | zoffix: Could you please show me the way to upgrade modules on "hack" server? I find the escapeHTML logic has something wrong and want to upgrade it for the doc site once fix it. | 15:55 | |
Zoffix | u: { /\s/ } | ||
unicodable6 | Zoffix, Found nothing! | ||
Zoffix | u: /\s/ | ||
unicodable6 | Zoffix, Regexes are not supported yet, sorry! Try code blocks instead | ||
Zoffix | I did try! | ||
u: { so /\s/ } | |||
jast | aeons later... | 15:56 | |
unicodable6 | Zoffix, «timed out after 30 seconds» «exit signal = SIGHUP (1)» | ||
Zoffix | wander: you'd need a sudo on the hack server. I don't know if I'm authorized to give it out. timotimo? moritz? maybe you could hook wander up? | ||
15:57
Phi_mb is now known as philomath,
philomath left
|
|||
moritz | or compile your own rakudo | 15:58 | |
15:58
Phi_mb joined
|
|||
Zoffix | It's to upgrade modules for the docs site build job | 15:58 | |
15:59
mempko joined
|
|||
moritz | oh | 15:59 | |
Zoffix | wander: FWIW you can ping me if needing upgrading. I'm glance at my mentions once in a while | ||
s/'m//; | 16:00 | ||
wander | sure :-) | ||
moritz | i'm building 2017.10 rakudo on hack | 16:01 | |
for doc.perl6.org | |||
Zoffix | u: {use nqp; nqp::iscclass(nqp::const::CCLASS_WHITESPACE, .chr, 0)} | ||
unicodable6 | Zoffix, U+0009 <control-0009> [Cc] (control character) | ||
Zoffix, U+000A <control-000A> [Cc] (control character) | |||
Zoffix, 25 characters in total: gist.github.com/1bb5453d9844c16c6b...2ab0f994de | |||
Zoffix | win | ||
16:06
unicodable6 left
|
|||
AlexDaniel | aaaand… it pinged out? :D | 16:07 | |
16:07
HoboWithAShotgun left,
ryn1x left
|
|||
Zoffix | heh | 16:08 | |
comborico1611 | m: my %test = <a 1 b 2 c 3 a 1>; say %test.pairs.first: *.value == 1; | 16:09 | |
camelia | a => 1 | ||
comborico1611 | m: my %test = <a 1 b 2 c 3 a 1>; say %test.pairs.first *.value == 1; | ||
camelia | No such method 'value' for invocant of type 'Any'. Did you mean 'values'? in block <unit> at <tmp> line 1 |
||
comborico1611 | What is the colon doing here? | 16:10 | |
Zoffix | comborico1611: `.first: $some-arg` is just another way to write `.first($some-arg)`. Lets you avoid using parens. DEATH TO PARENS! | ||
robertle | guess you mean "DEATH TO PARENS THAT ARE NOT GROUPING" | 16:11 | |
Zoffix | No, to all parens | ||
robertle | like "($a + $b) / 2"? | ||
comborico1611 | Blasphemy! | ||
Geth | Pod-To-HTML: 1ad05c5a71 | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm Escape exactly raw string |
||
ilmari | robertle: $a $b + 2 / | 16:12 | |
FORTH LOVE? IF HONK THEN | |||
robertle | yay! | ||
16:12
darkmorph left
|
|||
Zoffix | m: 2 + 2 andthen say $_ / 2; # yes | 16:12 | |
camelia | 2 | ||
Zoffix | :) | ||
comborico1611 | Zoffix, i see. What is the colon called here? | 16:13 | |
Zoffix | comborico1611: no idea | ||
wander | Now it escapeHTML for exactly raw string, not js code. It renders correctly on /language/regex.pod6. I'm sorry that I should test carefully before committing changes. | 16:14 | |
comborico1611 | I learned last night you are the author of the alias campaign. | ||
AlexDaniel | m: my $a = 2; my $b = 3; say 2 R/ sum $a, $b | ||
camelia | 2.5 | ||
AlexDaniel | m: my $a = 2; my $b = 3; say 0.5 × sum $a, $b | ||
camelia | 2.5 | ||
AlexDaniel | m: my $a = 2; my $b = 3; say 0.5 × [+] $a, $b | 16:15 | |
camelia | 2.5 | ||
Zoffix | m: say ½.&[*]: 2 + 2 | ||
camelia | 2 | ||
16:15
mr-foobar left
|
|||
comborico1611 | The colon shall be called DTP operator (death to parens). | 16:15 | |
Zoffix | \o/ | ||
comborico1611 | I want to submit Racoondo as a possible alias. | 16:16 | |
census2 | Zoffix I'm wondering if I may ask you if there's a more efficient way to run the code if I run a situation by you? | 16:17 | |
jast | Rakvoodoo | ||
comborico1611 | The alias mascot is Rocky the Jeet Kun Do Raccoon. | ||
Zoffix | m: sub infix:</> is looser(&[+]) { &CORE::infix:</>($^a, $^b) }; say 2 + 2 / 2 | ||
camelia | 3 | ||
16:17
mr-foobar joined
|
|||
Geth | Pod-To-HTML: adc5351d0f | (Alex Chen)++ (committed using GitHub Web editor) | META6.json Bump version |
16:17 | |
AlexDaniel | Zoffix: haha :D | ||
Zoffix | Weird. I expected the precedence to be affected there :/ | ||
AlexDaniel | bend the language to your need! | ||
well, you can define your own op | 16:18 | ||
new one I mean | |||
Zoffix | m: sub infix:<zzz> is looser(&[+]) { &CORE::infix:</>($^a, $^b) }; say 2 + 2 zzz 2 | ||
camelia | 2 | ||
Zoffix | I'm curious tho why the `/` isn't affected. | ||
comborico1611 | Rocky wears a bandana. Get it, alias, bandana? | ||
Zoffix | mc: sub infix:</> is looser(&[+]) { &CORE::infix:</>($^a, $^b) }; say 2 + 2 / 2 | ||
committable6_ | Zoffix, ¦2015.12: «3» | ||
moritz | I guess you can't re-prioritize an existing operator | 16:19 | |
Zoffix | Ohhh. right | ||
AlexDaniel | .oO( Nnoooooooo ) |
||
Zoffix | There's a shortpart for categorization. | ||
Well, for adding new ops. And I think it's shortcurcuiting without adding a new one if it spots we already got a grammar rule for parsing it. It probably should check the precedence and things | |||
AlexDaniel | m: say ½ Z× 2 + 3 | ||
camelia | (2.5) | ||
Zoffix | m: sub infix:<zzz> is tighter(&[+]) { &CORE::infix:</>($^a, $^b) }; say 2 + 2 zzz 2; { sub infix:<zzz> is looser(&[+]) { &CORE::infix:</>($^a, $^b) }; say 2 + 2 zzz 2 } | 16:20 | |
camelia | 3 3 |
||
Zoffix | Yeah, I'd call that a bug. Your code can change from under you because the shadowing of existing ops is only half-done | 16:21 | |
16:22
unicodable6 joined
|
|||
Zoffix | *change because someone added an op you'd normally want to just shadow | 16:22 | |
moritz | though what would be the correct behavior? throw an exception on the attept to redefine with a changed prec? | ||
Zoffix | This needs to be smarter: github.com/rakudo/rakudo/blob/mast...4799-L4802 | 16:23 | |
moritz: I think it can just be made to work. | |||
16:23
Ven joined
|
|||
moritz | Zoffix: can it? can you remove something from an existing grammar during derivation? | 16:23 | |
or is it just the OPP that changes? | 16:24 | ||
16:24
Ven is now known as Guest53864,
zakharyas left
|
|||
Zoffix | moritz: not 100% sure, but my understanding of these ops is they just mix in a new rule into the language braid: github.com/rakudo/rakudo/blob/mast....nqp#L4936 | 16:24 | |
So I figure it's possible to mixin the override, since you can override methods by mixing stuff into normal classes | 16:25 | ||
[Coke] | m: (1 - 1/4 - 1/3).Rat.nude # good thing I didn't have this doing fractions back in the day | ||
camelia | ( no output ) | ||
[Coke] | m: say (1 - 1/4 - 1/3).Rat.nude # oops | ||
camelia | (5 12) | ||
Zoffix | :) | ||
16:26
Piotr_ left
|
|||
AlexDaniel | m: say Rat.new(2 + 2, 2) | 16:26 | |
camelia | 2 | ||
census2 | Zoffix my code i think got IP banned but I myself didn't; perhaps I should have put a much longer sleep () in the code | 16:27 | |
AlexDaniel | oh, oops, my mistake | ||
m: say Rat.new: 2 + 2, 2 # there | |||
camelia | 2 | ||
Zoffix | census2: not sure what you mean by more efficient way to run code... I usually don't hang in this channel. Just pastebin your code and someone in the channel will help. | 16:28 | |
16:29
troys is now known as troys_
|
|||
Zoffix | Filed op stuff as RT#1237 | 16:30 | |
I mean R#1237 | |||
synopsebot | R#1237 [open]: github.com/rakudo/rakudo/issues/1237 Overriding precedence of custom ops silently fails for existing ops | ||
Zoffix & | |||
16:30
Zoffix left
16:31
mcmillhj joined
|
|||
census | astebin | 16:35 | |
16:35
mson left,
ChoHag left
|
|||
census | pastebin.com/Z1vzRVHG Can I circumvent possibly getting perl6 getting a 503 error? | 16:37 | |
16:41
konsolebox left
16:42
robertle left
16:45
jonas1 left
16:46
mr-foobar left,
konsolebox joined
|
|||
timotimo | retry a few times with a delay in between? | 16:48 | |
16:48
census2 left
16:50
ryn1x joined,
cdg joined,
mr-foobar joined
|
|||
timotimo | pmurias: what were you going to show in the perl6-to-js demo at tpcia? | 16:50 | |
16:51
Cabanossi left,
cdg left,
cdg_ joined
16:52
ChoHag joined
16:54
Cabanossi joined,
ryn1x left
16:55
mcmillhj left
16:56
ZzZombo left,
ZzZombo joined
16:57
cdg joined,
mcmillhj joined
16:58
mempko left,
zakharyas joined
16:59
abraxxa left
17:00
cdg_ left
17:05
philomath_ joined
17:07
Phi_mb left
17:08
HoboWithAShotgun joined
|
|||
pmurias | timotimo: JSX/react.js running in electron | 17:08 | |
17:10
Phi_mb joined
17:11
ChoHag left,
aborazmeh left
17:12
troys_ is now known as troys
17:13
HTTP_____GK1wmSU joined,
philomath_ left
17:15
HTTP_____GK1wmSU left
|
|||
pmurias | timotimo: I notice the talk video has been uploaded ;) | 17:16 | |
17:16
mr-foobar left,
holyghost joined,
setty1 joined
17:17
HTTP_____GK1wmSU joined,
HTTP_____GK1wmSU left,
HTTP_____GK1wmSU joined,
HTTP_____GK1wmSU left
17:20
mr-foobar joined
17:21
Cabanossi left
|
|||
timotimo | it has! | 17:21 | |
can i get that demo locally? :3 | |||
17:22
ryn1x joined
17:23
mempko joined,
lowbro left
17:24
Cabanossi joined
|
|||
timotimo is trying nqp with --backends=moar,js | 17:24 | ||
it's rather unhappy about something | 17:25 | ||
17:28
ChoHag joined,
Piotr_ joined
|
|||
timotimo | Error: Cannot find module './strip-marks.js' - this is what i get for basically every invocation of nqp-js (even nqp-js-cross after inputting a single line of code) | 17:28 | |
oh, i need a fork of rakudo to get rakudo-js? | 17:29 | ||
17:30
sproctor left
|
|||
pmurias | timotimo: there is a rakudo branch | 17:30 | |
timotimo: re stip-marks, sorry it seems like I forgot to declare a dependency | 17:31 | ||
17:31
zakharyas left
|
|||
timotimo | yay, i caught a bug :D | 17:31 | |
17:32
zakharyas joined
|
|||
timotimo | ah yes the js branch | 17:33 | |
pmurias | timotimo: it was a missing file | ||
timotimo: I need to setup automatic building on travis (or something like that) | |||
timotimo | sure d) | ||
:) | |||
oh, your latest nom merge is 9 weeks old? | 17:35 | ||
pmurias | timotimo: forgot to push todays one | 17:36 | |
17:36
darkmorph joined
|
|||
timotimo | OK! | 17:37 | |
17:37
st_elmo joined
|
|||
pmurias | I'll try building rakudo.js from a fresh clone so hopefully I can encounter build bugs before you do ;) | 17:38 | |
El_Che | pmurias: travis? | 17:39 | |
17:40
dogbert17 joined
|
|||
timotimo | a fuse-based filesystem that reads only from the latest git commit :P | 17:40 | |
17:40
ChoHag left
|
|||
El_Che | git --depth=1 | 17:40 | |
pmurias | El_Che: I should definitely look into it | 17:41 | |
El_Che | pmurias: ping if you need some guidance. This is how I build rakudo packages: github.com/nxadm/rakudo-pkg/blob/0...travis.yml | 17:42 | |
pmurias: if the process is complicated docker is always an option | 17:43 | ||
if, let's say, you want to build the rakudo js against different distros, you can use a matrix and docker. Run are parallel, so you won't hit the 50m max | 17:44 | ||
pmurias | timotimo, El_Che: I have to leave now, I'll get back to fixing any rakudo.js build problems first thing tommorow | ||
El_Che: building rakudo.js takes loads of RAM is that an issue with travis? | 17:45 | ||
timotimo | OK,c ool :) | ||
El_Che | docs.travis-ci.com/user/reference/overview/ | ||
I don't think so | |||
sudo machines (which I use for docker) have 7,5gb | 17:46 | ||
container machines have 4gb | |||
both seem ok | |||
17:46
mr-foobar left
|
|||
El_Che | I use the sudo machines because with docker I can run different distro's | 17:46 | |
17:47
mr-foobar joined
|
|||
wander | m: say Grammar.^mro | 17:47 | |
camelia | ((Grammar) (Match) (Capture) (Cool) (Any) (Mu)) | ||
El_Che | I have an other project that is build in windowas as well, with appveyor | ||
wander | m: say so Grammar.isa(Cursor) | ||
camelia | True | ||
El_Che | so that is also an option | ||
wander | m: say so Match.isa(Cursor) | 17:48 | |
camelia | True | ||
wander | m: say so Capture.isa(Cursor) | ||
camelia | False | ||
wander | m: say so Cursor.isa(Match) | 17:49 | |
camelia | True | ||
wander | moritz: what is the relation between Cursor and Match? | ||
timotimo | cursor and match used to be two different things | 17:50 | |
ilmari | s: Cursor | ||
SourceBaby | ilmari, Something's wrong: ERR: Cannot resolve caller sourcery(Match); none of these signatures match: ($thing, Str:D $method, Capture $c) ($thing, Str:D $method) (&code) (&code, Capture $c) in block <unit> at -e line 6 | ||
17:50
mson joined
|
|||
timotimo | s: Cursor, "new", \() | 17:50 | |
SourceBaby | timotimo, Sauce is at github.com/rakudo/rakudo/blob/4fca...Mu.pm#L112 | ||
timotimo | nope. | 17:51 | |
s: Cursor, "ws", \() | |||
SourceBaby | timotimo, Something's wrong: ERR: Died with X::Method::NotFound in block at /home/zoffix/services/lib/CoreHackers-Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 26 in sub sourcery at /home/zoffix/services/lib/CoreHackers-Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 29 in block <unit> at -e line 6 | ||
ilmari | github.com/rakudo/rakudo/blob/mast.../Cursor.pm | ||
my constant Cursor = Match; | |||
so Cursor is just an alias for Match | |||
wander | gotcha | ||
interesting | 17:52 | ||
17:52
Cabanossi left
|
|||
census | what does a 503 error mean? | 17:53 | |
[Coke] | internal server error | ||
dylanwh_ | "The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state." | ||
17:53
dylanwh_ is now known as dylanwh
|
|||
wander | Zoffix: plz build the doc site using the newest module Pod::To::HTML. I've locally make and ensure it fixes perl6/doc#1662 | 17:53 | |
synopsebot | DOC#1662 [open]: github.com/perl6/doc/issues/1662 "<!|w>" disappears in ToC of Regexes | ||
census | dylanwh is it an IP type ban? | ||
17:54
Cabanossi joined
|
|||
wander | nice bot :) | 17:54 | |
census | wander i love a good regex :) | ||
timotimo | 5xx http codes are the server's fault | ||
4xx codes are your fault | |||
census | timotimo i was getting a 503 error for a website in which i was still able to get to the website in my browser | 17:55 | |
wander | census: pardon? | ||
[Coke] | I would say that 4xx codes are "normal" errors and 5xx are "exceptional" ones. | ||
dylanwh | census: no, it usually means some backend server is down, IME | ||
census | <[Coke]> so i've added a sleep(120) to the code -- far from ideal though | ||
dylanwh it's google | |||
ugexe | i'd be surprised if google lets you crawl their services the way you are | ||
dylanwh | that's... interesting | ||
[Coke] | census: the request from your browser and the request from your command line are not necessarily the same request, and the server can respond how it wants. | ||
17:55
ryn1x left
|
|||
sena_kun | if I have some non-BMP character(like '😂'), is there a way to get its surrogate pair? | 17:56 | |
[Coke] | if you're doing a crawler, for example, and you're not respecting the robots file, they can stop you however they want. | ||
sena_kun | I've found algo to do it by hands, but just in case there is some predefined thing exists. | 17:57 | |
census | <[Coke]> i don't know what the robots file is. i'm okay making the code run very slowly. i read somewhere there's a limit of searchers per every 30 mins | ||
sena_kun | s/to do it/that can be used to do it/ | ||
ugexe | patents.google.com/robots.txt | 17:58 | |
census | ugexe what does that mean? i don't follow | ||
[Coke] | if you're writing a crawler and dont know what robots.txt is, that could be problematic. (but as ugexe points out, that one seems permissive enough). but they could still be rate limiting you, sure. If there's no defined API, I'm not sure what you can do other than guess (if it were not google, I'd say "try to ask the support team for the site") | 17:59 | |
ugexe | it doesnt allow /q= | ||
[Coke] | census: lmgtfy.com/?q=What+is+a+robots.txt+file%3F | ||
17:59
Ven joined,
Guest53864 left
18:00
Ven is now known as Guest72122
|
|||
[Coke] | ugexe: ah, good catch, thank you. | 18:00 | |
census | <[Coke]>> i can google just fine. i meant i don't know how to interpret the robot.txt | ||
[Coke] | census: if you can google just fine, google how to read a robots.txt file. | 18:01 | |
18:01
geekosaur left
|
|||
ugexe | they are regexes it matches on the path portion of the url | 18:01 | |
wander | .tell moritz plz build the doc site using the newest module Pod::To::HTML:ver<0.3.11>. I've locally made and ensure it fixes perl6/doc#1662. | ||
yoleaux | wander: I'll pass your message to moritz. | ||
18:01
sena_kun left
18:02
sena_kun joined
|
|||
census | ugexe is there a way to redo the code i have that would be consistent with the file? | 18:02 | |
18:02
philomath_ joined
|
|||
ugexe | yes, crawl links instead of making search queries | 18:02 | |
18:02
Phi_mb left,
geekosaur joined
|
|||
census | ugexe what does that mean? i don't follow the difference | 18:03 | |
i understand i'm looping through links. then doing something with the .csv on the page | |||
ugexe | patents.google.com/?q={$term}&...nload=true | ||
that link was not discovered that way | |||
18:04
Phi_mb joined
|
|||
census | ugexe are you saying to not make a for loop? | 18:04 | |
18:04
zakharyas left
|
|||
census | i just don't follow your implication | 18:04 | |
18:04
buggable joined,
ChanServ sets mode: +v buggable
|
|||
census | i appreciate your taking the time to explain :) | 18:04 | |
18:06
census2 joined
|
|||
timotimo | they might have protection against people just grabbing the data from that url, but would allow people who are legit browsing the page through. so your program needs to seem like it's a legit human legit browsing their site? | 18:07 | |
18:07
philomath_ left
|
|||
census2 | timotimo how may i set that up? | 18:07 | |
timotimo | no clue how exactly they do it | 18:08 | |
ugexe | basically. the less ethical way would be to use a pool of proxies and legit user agent strings, although driving a headless browser is becoming more of a requirement | ||
census2 | timotimo the only way i know is making changes like the user-agent to one that isn't perl6 | ||
18:08
ryn1x joined
18:10
buggable left,
buggable joined,
ChanServ sets mode: +v buggable
18:11
buggable left
|
|||
ugexe | they provide a (deprecated) patents API, so they probably want things that don't have a return from advertising to use that (hence enforcement) | 18:12 | |
18:13
ryn1x left,
buggable joined,
ChanServ sets mode: +v buggable
|
|||
[Coke] | ugexe++ # I was definitely a little grumpy there. | 18:14 | |
census2 | <[Coke]> yes, i agree: ugexe++ | ||
ugexe is there anything i can do to the code i have or the way i'm approaching the code? | |||
[Coke] | You should rewrite the code to avoid using the URL you're using, because they do not permit it to be used by a robot. | 18:15 | |
18:16
mr-foobar left,
albongo joined,
albongo left,
albongo joined
18:20
mr-foobar joined
|
|||
census | <[Coke]> I'm totally okay with that. However, I can't even envision how such a code would go | 18:20 | |
ugexe | use Net::HTTP::GET; say Net::HTTP::GET("patents.google.com/?q=cancer&c...19900101") # this returns 200, but i imagine if i do it enough times it will start to 503 | 18:21 | |
18:21
Cabanossi left
|
|||
census2 | ugexe you mean it returns a 200 error but you envision a 503 error | 18:21 | |
ugexe | 200 is not an error, it is success | 18:22 | |
18:22
mcmillhj left
|
|||
[Coke] | when I've done this sort of exercise, I start with the browser, find what I need there, and assuming the urls are permissible, go through there. If the data is only available via an ajax call from a permissible page, then setting up a headless browser as ugexe suggested is probably the way to go (using something like selenium) | 18:22 | |
but if there's an old API, I'd definitely go through that route. | |||
APIs are easier to code against, less fragile... | |||
screen scraping HTML is always at best, problematic. | |||
ugexe | especially scraping google stuff | 18:23 | |
18:24
Cabanossi joined
|
|||
census2 | ugexe okay then what would you suggest so there wouldn't be a 503 error? isn't what you showed basically what I did just with NET::HTTP::GET rather than the libraries I did ? | 18:24 | |
<[Coke]> i appreciate your help, but i don't follow how to change my approach to do your approach | 18:25 | ||
1. start with the browser. (? is that not what i'm currently doing) 2. find what's needed there (i'm finding the .csv?) | |||
<[Coke]> how do I know if there's an API. i wrote this code--i did try hard | 18:26 | ||
ugexe | basically even if this isn't your current problem, it will be eventually since you are crawling and not using their api | ||
18:26
setty1 left
18:27
Zoffix joined,
ChoHag joined
|
|||
Zoffix | wander: done. | 18:28 | |
census2 | ugexe is there an API i can use? | ||
18:29
Zoffix left
|
|||
wander | [Coke] remind that you can restart perl6/doc#1090 | 18:29 | |
synopsebot | DOC#1090 [open]: github.com/perl6/doc/issues/1090 [big][site][wishlist] docs.perl6.org design | ||
18:29
ryn1x joined
|
|||
wander | Zoffix: thanks | 18:29 | |
ugexe | census2: doesn't look like it (I a made a query to it and it says it is closed). and the page you -were- using looks like it uses javascript to do the actual searching (so to scrape anything useful you need to render the page) | 18:32 | |
and to render a page you need to render javascript, so again need to use a browser in some fashion | |||
18:33
cdg left
|
|||
census2 | ugexe so the only approach is the less ethical approach of a proxy? changing IP and user agents. is that what you're saying | 18:33 | |
18:34
bwisti joined
|
|||
ugexe | in perl5 i would recommend something like metacpan.org/pod/WWW::Mechanize::Firefox to get started | 18:34 | |
18:34
ryn1x left,
philomath_ joined
|
|||
ugexe | well that will certainly become a problem, even if its not the one you currently face (we can't really tell) | 18:34 | |
but looking at the html for the pages you want, there is nothing useful in the html and the useful stuff is brought in with javascript | 18:35 | ||
census | ugexe i used to work in perl5 | ||
18:35
geekosaur left
|
|||
census | i can't remember how to write the code anymore in perl5 but i can go through my notes. i did use WWW::Mechanize::Firefox | 18:35 | |
ugexe | you can probably use that in perl6 with Inline::Perl5 | ||
census | ugexe how would that work? | 18:36 | |
18:36
ilbelkyr joined,
geekosaur joined
|
|||
census | am i writing the code in perl6 or perl5. i'm just a little in over my head, trying to meet an urgent deadline | 18:36 | |
18:36
Phi_mb left
|
|||
census | so i'm very grateful for your help ugexe | 18:36 | |
18:38
bwisti left
|
|||
ugexe | you `use WWW::Mechanize::Firefox:from<Perl5>` after installing WWW::Mechanize::Firefox to perl5 and Inline::Perl5 to perl6, then you use the object as explained in the docs but use perl6 calling convention on the object instances you create (.foo() instead of ->foo()) | 18:38 | |
although i believe WWW::Mechanize::Firefox also requires some extension to be installed. you'll have to read its docs | 18:39 | ||
18:39
Piotr joined
|
|||
census | ugexe okay i'm doing cpan inline::perl5 | 18:41 | |
18:41
Piotr_ left
18:43
notbenh joined,
philomath_ left
|
|||
ugexe | maybe you can find a way around google by getting the entire data set somewhere else and working on a local copy of that | 18:43 | |
developer.uspto.gov/data for instance | |||
census2 | ugexe yes i thought about that | 18:44 | |
ugexe i don't know. what i'm looking for in the data isn't readily searchable and i need it pronto | |||
i found a database online but it didn't break it down by diseases like cancer | |||
18:44
callyalater left
18:46
mcmillhj joined,
mr-foobar left
18:47
callyalater joined,
geekosaur left
18:48
mr-foobar joined,
geekosaur joined
18:49
darutoko left
18:50
callyalater left
|
|||
dylanwh | the newer one that uses geckodriver is much better. :P | 18:50 | |
18:51
Cabanossi left
18:52
troys left,
geekosaur left
18:54
geekosaur joined,
Cabanossi joined
18:55
ChoHag left
18:56
ChoHag joined
19:01
kyan joined
|
|||
census2 | ugexe so far it's working much better with a sleep | 19:01 | |
i also changed the user agent | |||
19:01
ChoHag left
|
|||
census2 | when i ran it before i got a 503 after about 30 querie. now i'm up to about 50 with no error. who knows, i'll probably hit error in a few mins though | 19:01 | |
19:02
knight__ joined
|
|||
knight__ | Hello, I am using a use lib 'lib'; use myModule etc, I have dir/file structure: main.p6 , lib/myModule.pm6... when I am calling main.p6 from different directory, for example, my cwd is /usr/local/bin and my script is in directory /home/a/main.p6, when I am calling the script from usr/local/bin ./main.p6 it will die | 19:04 | |
But, question is | |||
Which "PATHS" I have to set? | 19:05 | ||
I understand where is the problem | |||
19:05
geekosaur left
|
|||
knight__ | I must set "lib" to proper directory, but how I can set these proper directory, when | 19:05 | |
19:06
geekosaur joined
19:07
ryn1x joined
|
|||
knight__ | Is there something like @INC? | 19:10 | |
lizmat | not really like that: in Perl 6 the equivalent is in $*REPO | 19:12 | |
m: dd $*REPO | |||
camelia | CompUnit::Repository::Installation home = CompUnit::Repository::Installation.new("/home/camelia/.perl6") | ||
lizmat | m: dd $*REPO[1] | ||
camelia | Failure.new(exception => X::OutOfRange.new(what => "Index", got => 1, range => "0..0", comment => Any), backtrace => Backtrace.new) | ||
lizmat | m: dd $*REPO[0] | ||
camelia | CompUnit::Repository::Installation home = CompUnit::Repository::Installation.new("/home/camelia/.perl6") | ||
knight__ | lizmat: I have problem with modules | 19:13 | |
when I am executing script with modules from different directories | 19:14 | ||
And I have not clue, how to fix it. | |||
i use lib 'lib' | |||
lizmat is not very versed in that area of the system either, maybe nine or ugexe or timotimo can help | |||
use lib gives you P5 module loading semantics | 19:15 | ||
wander | Zoffix: does doc site really build with Pod::To::HTML:ver<0.3.11>? It's strange because /language/Regex still not escapeHTML in toc, but it should work since I built it locally(source same as perl6/doc:master) and got correct result | ||
19:15
mr-foobar left
|
|||
lizmat | aka: a module Foo::Bar needs to be in lib/Foo/Bar.pm6 | 19:15 | |
knight__ | ok, thank you | ||
I will try it | |||
wander | or its build spends a lot of time | 19:16 | |
19:17
cdg joined
|
|||
knight__ | lizmat: Ehm, it does not work :-X | 19:20 | |
lizmat | knight__: if you don't tell us what the error is (e.g. by gisting the output somewhere), we cannot help you :-( | 19:21 | |
19:21
mr-foobar joined
|
|||
knight__ | @sirius:~/Skola/PJS2/projekt$ perl6 perl/main.p6 | 19:22 | |
===SORRY!=== | |||
Could not find Bank::currency-value at line 67 in: /home/a/Skola/PJS2/projekt/lib | |||
lizmat: | |||
so, as you can see, it will add path | 19:23 | ||
but it is incorrect | |||
it should be PJS2/projekt/perl/lib | |||
I am using use lib 'lib'; | |||
and I am calling from directory one level up. | |||
lizmat | so in what directory are you ? | 19:24 | |
knight__ | a@sirius:~/Skola/PJS2/projekt | ||
lizmat | looks like you should do use lib 'perl/lib' then | ||
knight__ | yep, but if someone call script from "something else" | ||
It will not work | 19:25 | ||
And it is problem for me. | |||
lizmat | use lib '/home/a/Skola/PJS2/projekt/perl/lib' ? | ||
knight__ | but, what If I am on different computer? | ||
And My script is not there | |||
;-) | |||
is in different directory | 19:26 | ||
i need make lib | |||
with relative path | |||
lizmat | then don't put the use lib in the code, but do it externally perl6 -Iperl/lib ? | ||
knight__ | I do not understand what is the point of doing NOT relative 'use lib 'lib'' | 19:28 | |
Because I am calling module, which is in somewhere in directory | |||
in relative path | |||
And now I must use library arguments... | |||
moritz: Are you there? | 19:29 | ||
^ | |||
Or, how can I do it. | 19:32 | ||
19:36
mcmillhj left
|
|||
moritz | hm, what's up? | 19:40 | |
yoleaux | 18:01Z <wander> moritz: plz build the doc site using the newest module Pod::To::HTML:ver<0.3.11>. I've locally made and ensure it fixes perl6/doc#1662. | ||
synopsebot | DOC#1662 [open]: github.com/perl6/doc/issues/1662 "<!|w>" disappears in ToC of Regexes | ||
perlpilot | knight__: sounds like you want Dir::Self for Perl 6. | ||
knight__ | perlpilot: It will work? | 19:41 | |
I think with "use" | |||
because it is in compile time I guess.. | |||
19:41
ryn1x left
|
|||
moritz | wander: "zef upgrade Pod::To::HTML" says "All requested distributions are already at their latest versions" | 19:42 | |
wander | `zef update && zef upgrade Pod::To::HTML`? | 19:43 | |
moritz | same result | 19:44 | |
perlpilot | knight__: too many unknowns for me. $*CWD tells you the dir from which you're running things if you want to make something relative to that. Or if you need something like Dir::Self, you can make a sub that uses callframe.file to get the full path to the file that the sub is in, then make something relative to that. | ||
19:44
mcmillhj joined,
bdmatatu joined
|
|||
wander | hmm, that is strange. different result between local make and the doc site | 19:45 | |
moritz | wander: it seems there is some lag in the ecosystem; will have to try again tomorrow | ||
19:46
mr-foobar left
|
|||
knight__ | perlpilot: | 19:47 | |
wander | ok, I'll keep track of it :-) | ||
19:47
mr-foobar joined
|
|||
knight__ | perlpilot: I want something like that, I am calling the file from different directory | 19:47 | |
So | 19:48 | ||
I must change the path to the use lib some_path ~ '/lib'; | |||
because 'lib' is static path not relative | |||
Yep, Dir::self | |||
19:49
philomath joined
|
|||
knight__ | But, Is there any option for perl6 except P5 modules? | 19:49 | |
19:49
cognominal left
19:50
cognominal joined
|
|||
ugexe | if you want to call a module by namespace where you dont know where it mat reside then -install- it | 19:52 | |
otherwise its the same as in perl5 where you have to figure out inside your module what your current location is and what location you are looking for | 19:53 | ||
census2 | ugexe are you talking to me still? thanks :) | ||
ugexe | census2: no | 19:54 | |
census2 | ugexe so far i'm doing better with the sleep() and useragent in the program | ||
moritz | to knight__ I guess | ||
19:55
Zoffix joined
|
|||
comborico1611 | m: my %test = <1 2>; say %test.elems; | 19:55 | |
camelia | 1 | ||
knight__ | m: say $?FILE: | ||
camelia | <tmp> | ||
knight__ | m: say $?FILE; | ||
camelia | <tmp> | ||
Zoffix | wander: moritz I already upgraded the module. That's why it says it's latest | 19:56 | |
wander | :P | ||
Zoffix | wander: yeah, I'm sure I upgraded. Did any new commits to the doc site go in for the change to reflect on teh doc site? It's only rebuilt when there's stuff to rebuild | ||
wander | oops | 19:57 | |
[Coke] | you can also touch a file on the server to trigger it | ||
wander | maybe this is the problem | ||
[Coke] | for this very reason. :) | ||
ugexe | also note that non-installed module use is not cross platform. for instance on mac osx `perl6 -Ilib -e 'use Bar;'` will load lib/bar.pm or lib/Bar.pm whereas on linux only lib/Bar.pm | 19:58 | |
[Coke] | github.com/perl6/doc/blob/master/u...d-sync#L12 | ||
Zoffix touches | |||
moritz | Zoffix: and I misread the output from `zef list --installed`; it lists both the 0.3.10 *and* the 0.3.11 version (and not next to each other), so I only caught one of them | ||
20:02
mcmillhj left,
cdg left,
ggoebel left
|
|||
comborico1611 | m: my %seen; while %seen.elems < 10 { my $random = 50.rand.Int; push %seen, ( $random => 1 ) unless %seen {$random}:exists ; }; say keys %seen; | 20:02 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Unexpected block in infix position (missing statement control word before the expression?) at <tmp>:1 ------> 3ush %seen, ( $random => 1 ) unless %seen7⏏5 {$random}:exists ; }; say keys %seen;… |
||
Zoffix | knight__: I only skimmed through your questions, but sounds like you just want: se lib $*PROGRAM.sibling: '../lib'; | 20:03 | |
knight__ | ugexe: Ok, I am using use lib IO::Path($?FILE).dirname | ||
comborico1611 | m: my %seen; while %seen.elems < 10 { my $random = 50.rand.Int; push %seen, ( $random => 1 ) unless %seen {$random} :exists ; }; say keys %seen; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Unexpected block in infix position (missing statement control word before the expression?) at <tmp>:1 ------> 3ush %seen, ( $random => 1 ) unless %seen7⏏5 {$random} :exists ; }; say keys %seen;… |
||
knight__ | Zoffix: ^ | ||
m: say IO::Path($?FILE).dirname; | |||
camelia | Cannot find method 'IO::Path' on object of type Str in block <unit> at <tmp> line 1 |
||
Zoffix | m: say $?FILE.IO.dirname; | 20:04 | |
camelia | /tmp | ||
knight__ | m: say IO::Path.new($?FILE).dirname; | ||
camelia | IO::Path is disallowed in restricted setting in sub restricted at src/RESTRICTED.setting line 1 in method new at src/RESTRICTED.setting line 32 in block <unit> at <tmp> line 1 |
||
Zoffix | knight__: that'd be missing volume on Windows | ||
knight__ | hmm | ||
thank you | |||
moritz | comborico1611: you can't have a space between %seen and the {...} postfix | ||
Zoffix | knight__: use lib $*PROGRAM.sibling: '../lib'; or adjust it to whatever | ||
20:05
cdg joined
|
|||
Zoffix | knight__: basically give `use lib` an IO::Path object; .dirname just returns a string of part of the path | 20:05 | |
(without volume and file) | |||
comborico1611 | Thanks. I didn't realize i was using .. operator. heh. | ||
knight__ | Zoffix: ok, it works | ||
Thank you | |||
Zoffix | \o/ | ||
knight__ | Also work IO::Path... | 20:06 | |
:-) but your version is better :-) | |||
comborico1611 | m: my %seen; while %seen.elems < 10 { my $random = 50.rand.Int; push %seen, ( $random => 1 ) unless %seen{$random}:exists ; }; say keys %seen; | ||
camelia | (8 21 44 5 49 13 30 31 29 28) | ||
comborico1611 | i see now. | ||
Zoffix | m: my %seen; %seen{50.rand.Int} = 1 while %seen.elems < 10; say keys %seen; | 20:07 | |
camelia | (42 49 5 1 41 47 3 36 16 40) | ||
Zoffix | m: my %seen is SetHash; %seen{50.rand.Int}++ while %seen.elems < 10; say keys %seen; | ||
camelia | (33 12 0 16 32 28 47 6 8 2) | ||
20:08
ryn1x joined
|
|||
moritz | m: my %seen is SetHash; %seen{^50 .pick}++ while %seen < 10; say keys %seen | 20:08 | |
camelia | (42 40 5 15 36 14 47 38 20 2) | ||
comborico1611 | m: my %seen; while %seen.elems < 10 { my $random = 50.rand.Int; push %seen, ( $random => 1 ) unless %seen{$random}:exists ; }; say keys %seen.pairs; | 20:09 | |
camelia | (0 1 2 3 4 5 6 7 8 9) | ||
20:09
mcmillhj joined
|
|||
moritz | m: say ^50 .pick(10) | 20:10 | |
camelia | (47 18 9 41 36 29 16 17 4 30) | ||
comborico1611 | So the key is 0-9 and the value is pseudo-random? | ||
20:11
cdg_ joined
|
|||
Zoffix | m: my %seen := set ^50 .pick: 10; say %seen; | 20:11 | |
camelia | set(10 11 21 24 28 29 33 45 47 5) | ||
Zoffix | m: say ^50 .pick: 10; | ||
camelia | (18 41 0 14 17 12 27 38 43 47) | ||
Zoffix | \o/ I win the golf :P | ||
m: my %seen is SetHash = ^50 .pick: 10 # not sure why it's unhappy about it here | |||
camelia | ( no output ) | ||
moritz | m: say ^50 .pick: 10 | ||
camelia | (35 24 11 38 13 39 48 30 5 46) | ||
comborico1611 | I'm confused because .elems < 10 should print five keys and five values. | ||
Zoffix | Ah. Too old rakudo locally | 20:12 | |
moritz | one character shorter than Zoffix++ :-) | ||
Zoffix | comborico1611: .elems gives number of pairs in a hash | ||
20:12
st_elmo left
|
|||
comborico1611 | Ahh! That's right. | 20:12 | |
Thank you. | |||
20:12
ryn1x left
|
|||
TimToady | m: say ^Ⅼ .pick: Ⅹ | 20:13 | |
camelia | (19 31 10 13 40 16 21 20 18 2) | ||
Zoffix | :O | ||
What sourcery is that! | |||
moritz | cheating! | ||
Zoffix | Ahh. Romans :) | ||
moritz | cheating is technique! | ||
TimToady | .oO(any sufficiently advanced cheatology...) |
20:14 | |
Zoffix | :) | ||
moritz | (fwiw this is a reference to "Harry Potter and the Methods or Rationality") | ||
20:14
cdg left
20:15
xui_nya[m] left,
unclechu left,
Zoffix left,
tadzik left,
wamba[m] left,
Matthew[m] left,
wictory[m] left,
ilmari[m] left,
M-Illandan left,
mienaikage left,
mack[m] left,
ggoebel joined,
CIAvash[m] left,
AlexDaniel`1 left,
Garland_g[m] left,
tyil[m] left
20:16
mr-foobar left
|
|||
mspo | can you get say to use the same utf8 group yo ustarted with? | 20:17 | |
20:18
Guest72122 left
|
|||
HoboWithAShotgun | started with? | 20:19 | |
timotimo | utf8 group? | ||
mspo | so the say ^Ⅼ stays in roman numeral | ||
jnthn | What's a "utf8 group"? | ||
Ah, timotimo was faster | |||
mspo | a thing I just made up | ||
timotimo | it'd be possible if the roman numeral module from drforr were amped up to XI | 20:20 | |
HoboWithAShotgun | must be one of these self help circles for programmers scarred by encoding issue | ||
20:20
Ven joined
20:21
Ven is now known as Guest66292
|
|||
timotimo | because the translation from decimal to roman is so nontrivial | 20:21 | |
mspo | so when you are .pick ing playing cards you get a card back | ||
timotimo | .u card | ||
yoleaux | U+2135 ALEF SYMBOL [Lo] (ℵ) | ||
U+2136 BET SYMBOL [Lo] (ℶ) | |||
U+2137 GIMEL SYMBOL [Lo] (ℷ) | |||
timotimo | huh? | ||
TimToady | .u diamond | ||
yoleaux | U+20DF COMBINING ENCLOSING DIAMOND [Me] (◌⃟) | ||
U+22C4 DIAMOND OPERATOR [Sm] (⋄) | |||
U+233A APL FUNCTIONAL SYMBOL QUAD DIAMOND [So] (⌺) | |||
[Coke] | u: card | ||
unicodable6 | [Coke], U+1F0A0 PLAYING CARD BACK [So] (🂠) | ||
[Coke], U+1F0A1 PLAYING CARD ACE OF SPADES [So] (🂡) | |||
timotimo | haha, denied! | ||
unicodable6 | [Coke], 87 characters in total: gist.github.com/340d880de1c13749b3...4b351c77e1 | ||
HoboWithAShotgun | .u smiley face | ||
yoleaux | No characters found | ||
HoboWithAShotgun | .u smily face | 20:22 | |
yoleaux | No characters found | ||
[Coke] | .u is old and busted, use u: | ||
yoleaux | U+0020 SPACE [Zs] ( ) | ||
U+002C COMMA [Po] (,) | |||
U+003A COLON [Po] (:) | |||
timotimo | m: say parse-names("PLAYING CARD BACK") | ||
camelia | 🂠 | ||
HoboWithAShotgun | u: smiley face | ||
unicodable6 | HoboWithAShotgun, Found nothing! | ||
[Coke] | (also zef install App::Uni) | ||
timotimo | m: .say for (parse-names("PLAYING CARD BACK"), *.succ ... *)[^20] | ||
camelia | 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 🂠 |
||
HoboWithAShotgun | bah. useless | ||
timotimo | hm, ok | ||
HoboWithAShotgun | ;-) | ||
timotimo | m: .say for (parse-names("PLAYING CARD BACK"), { chr(ord($_) + 1) } ... *)[^20] | ||
camelia | 🂠 🂡 🂢 🂣 🂤 🂥 🂦 🂧 🂨 🂩 🂪 🂫 🂬 🂭 🂮 🂱 🂲 🂳 |
||
timotimo | interesting, two in there aren't rendered in my terminal | 20:23 | |
mspo | okay maybe cards were a bad example | ||
timotimo: probably the stupid knights | |||
u: 🂼 | 20:24 | ||
unicodable6 | mspo, U+1F0BC PLAYING CARD KNIGHT OF HEARTS [So] (🂼) | ||
mspo, U+0020 SPACE [Zs] ( ) | |||
TimToady | m: say '🂡' ... '🃟' | ||
camelia | (🂡 🂢 🂣 🂤 🂥 🂦 🂧 🂨 🂩 🂪 🂫 🂬 🂭 🂮 🂱 🂲 🂳 🂴 🂵 🂶 🂷 🂸 🂹 🂺 🂻 🂼 🂽 🂾 🂿 🃁 🃂 🃃 🃄 🃅 🃆 🃇 🃈 🃉 🃊 🃋 🃌 🃍 🃎 🃏 🃑 🃒 … | ||
mspo | u: 🃏 | ||
unicodable6 | mspo, U+1F0CF PLAYING CARD BLACK JOKER [So] (🃏) | ||
timotimo | i see that one | ||
mspo | u: | ||
unicodable6 | mspo, U+1F0AF <reserved-1F0AF> [Cn] () | ||
mspo, U+0020 SPACE [Zs] ( ) | |||
mspo, 4 characters in total ( ): gist.github.com/50e042a38fc82d20ae...ac5c72c38b | |||
timotimo | 🂮  🂱 - the two in the middle here | ||
wander | cannot find available unicode name of "一" gets me down :( | ||
u: 一 | |||
unicodable6 | wander, U+4E00 <CJK Ideograph-4E00> [Lo] (一) | ||
wander | u: 无 | 20:25 | |
unicodable6 | wander, U+65E0 <CJK Ideograph-65E0> [Lo] (无) | ||
wander | u: 乐土 | ||
unicodable6 | wander, U+4E50 <CJK Ideograph-4E50> [Lo] (乐) | ||
wander, U+571F <CJK Ideograph-571F> [Lo] (土) | |||
wander | one, Mu and rakudo :-) | ||
20:25
philomath_ joined
20:26
setty1 joined
|
|||
TimToady | music personage, eh? | 20:26 | |
oh, no, that's earth | 20:27 | ||
timotimo | where are wind and fire? | ||
TimToady | 风 and 火 | 20:28 | |
or 風 in traditional | |||
20:28
philomath left
|
|||
timotimo | time to make food | 20:28 | |
make: *** No rule to make target 'food'. Stop. | 20:29 | ||
0.00user 0.00system 0:00.00elapsed 50%CPU (0avgtext+0avgdata 4016maxresident)k | |||
TimToady | one without music is dirt? :) | 20:30 | |
wander | one without music? | 20:32 | |
20:32
mr-foobar joined
|
|||
TimToady | 一无乐 | 20:33 | |
wander | lol | ||
TimToady | lunch & | 20:34 | |
wander | I lost in Chaizi(拆字) | ||
20:35
nhywyll joined
|
|||
wander | remove 一 from 乐 results symbol looks like 木(wood), which, in WuXing, generate fire, and then generate soil/dirt | 20:36 | |
my thoughts :) | |||
20:40
philomath_ left
20:46
HoboWithAShotgun left,
cdg joined
20:48
ryn1x joined
20:50
cdg_ left
|
|||
wander | \o | 20:51 | |
20:51
cdg left,
dct joined
|
|||
wander | the doc site is rebuilt, looks fine | 20:51 | |
wander go to bed | |||
20:52
ChoHag joined,
Exodist left
|
|||
wander | thank you Zoffix moritz | 20:54 | |
20:55
Exodist joined,
mempko left
20:56
Piotr left,
Piotr joined,
bdmatatu left
|
|||
[Coke] | ff/win 5 | 20:59 | |
21:00
HelpWithPerl joined
|
|||
HelpWithPerl | Hey guys | 21:00 | |
My script has been running for a few hours now and still hasn't finished | |||
Any ideas why? | |||
AlexDaniel | Well, what's in the script? | 21:01 | |
21:01
comborico1611 left
|
|||
HelpWithPerl | Well, it's my attempted solution to Project Euler problem 3 | 21:01 | |
Do you mind if I post the code in a pastebin, so you can see it? | 21:06 | ||
geekosaur | please do | ||
HelpWithPerl | Here's a link: pastebin.com/Fi4X1RiL | 21:10 | |
21:13
khw left
21:16
mr-foobar left
21:18
perigrin joined
21:20
mr-foobar joined
21:22
ryn1x left
|
|||
dogbert17 | HelpWithPerl: it looks as if you have forgotten to check if the product of your prime factors (in facteurs_premiers_du_nombre) are equal to 600_851_475_143 | 21:22 | |
you should also check that your factors are indeed prime numbers | 21:23 | ||
HelpWithPerl | Yes, I wanted to add that part after making sure my code so far works ;) | 21:24 | |
21:24
HoboWithAShotgun joined
21:25
itaipu_ joined
|
|||
HelpWithPerl | Neither of those things explain why my code is taking so long to run though :P | 21:25 | |
El_Che | HelpWithPerl: you have your priorities wrong :) | ||
optimize later | |||
21:26
khw joined
|
|||
dogbert17 | HelpWithPerl: I think it does actually, you don't have to go through all numbers since the largest factor (which I won't mention) isn't that large | 21:27 | |
21:27
Guest66292 left
21:28
itaipu left
21:32
azawawi joined
|
|||
azawawi | hi #perl6 | 21:32 | |
21:32
ryn1x joined
|
|||
azawawi | geekosaur: ping | 21:33 | |
[Coke] | o/ | ||
geekosaur | pong | 21:34 | |
azawawi | geekosaur: github.com/azawawi/perl6-msgpack/c...e5b7f60834 # Passing unpacks... | 21:35 | |
geekosaur: was able to break the cyclic behavior and forward struct declaration problem github.com/azawawi/perl6-msgpack/b...e.pm6#L151 | 21:36 | ||
geekosaur: Perl 6 rocks :) | |||
21:37
ryn1x left
21:47
mr-foobar left
21:48
Exodist left
21:49
mr-foobar joined
|
|||
azawawi | geekosaur: thx for your help | 21:50 | |
21:51
dct left
21:57
mienaikage joined,
Exodist joined
|
|||
Geth | DBIish: 0aa144e711 | (Dan Zwell)++ (committed by Dan) | lib/DBDish/Pg/StatementHandle.pm6 Fix infinite loop when passing certain arrays to pg-array-str The inputs that show the problem are: an array in item context, or a nested array with one element. The problem is that `my @arr = ...` creates a new array instead of binding to the RHS. So use `my @arr := ...` instead. This fixes issue #107. |
22:07 | |
DBIish: ea5a9504fe | (Jonathan Stowe)++ (committed using GitHub Web editor) | lib/DBDish/Pg/StatementHandle.pm6 Merge pull request #108 from lefth/master Fix infinite loops when passing certain arrays to pg-array-str |
|||
22:07
Piotr left
|
|||
22:07
dct joined
22:08
comborico1611 joined
22:09
mcmillhj left
22:15
cdg joined
22:16
mr-foobar left
22:17
setty1 left
|
|||
HelpWithPerl | Thanks for the advice guys | 22:17 | |
22:18
mr-foobar joined,
mempko joined
22:20
nhywyll left,
aindilis joined
|
|||
comborico1611 | Is the method Int in 50.rand.Int modifying random or 50? | 22:20 | |
22:22
rgrau left
|
|||
geekosaur | it's operating on the result of 50.rand | 22:23 | |
22:23
HaraldJoerg1 left
|
|||
comborico1611 | Thank you. | 22:23 | |
geekosaur | if you replace rand with something else, you can't know just by looking at it what it will do; that method could potentially return an object of any type, and Int is applied to that object | 22:24 | |
22:25
niceperl joined
|
|||
comborico1611 | I see. | 22:25 | |
HelpWithPerl | Quick question: does if @x[$a] %% $y[^100000] be false if x[$a] is indivisible for just a single value of $y[something]? | 22:29 | |
AlexDaniel | HelpWithPerl: oh, that's not exactly what it does | 22:31 | |
HelpWithPerl | What does it do? | ||
AlexDaniel | HelpWithPerl: it will probably numify $y[^100] and it'll turn into a number of elements | ||
22:31
dct left
|
|||
AlexDaniel | so it's @x[$a] by the number of elements in $y[^10000] | 22:31 | |
HelpWithPerl | Oh | ||
Did not expect that :P | |||
AlexDaniel | you need $y[^10000].any | 22:32 | |
or $y[^10000].all | |||
depending on your intent | |||
HelpWithPerl | Wow, that is so useful... | ||
22:32
espadrine joined
|
|||
HelpWithPerl | Thanks. | 22:33 | |
AlexDaniel | HelpWithPerl: we have a section on things that are Cool when you don't want them to be Cool: docs.perl6.org/language/traps#Cool_tricks | ||
22:34
azawawi left
|
|||
HelpWithPerl | "Cool when you don't want them to be Cool" ... "Traps to avoid" lol | 22:36 | |
comborico1611 | m: my %seen; %seen {50.rand.Int} = 1 while %seen < 10; say values %seen; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Unexpected block in infix position (missing statement control word before the expression?) at <tmp>:1 ------> 3my %seen; %seen7⏏5 {50.rand.Int} = 1 while %seen < 10; say expecting any of… |
||
comborico1611 | m: my %seen; %seen{50.rand.Int} = 1 while %seen < 10; say values %seen; | ||
camelia | (1 1 1 1 1 1 1 1 1 1) | ||
22:37
bisectable6 left,
bisectable6 joined,
ChanServ sets mode: +v bisectable6
|
|||
comborico1611 | m: my %seen; %seen{50.rand.Int} = 1 while %seen < 10; say value %seen; | 22:37 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared routine: value used at line 1. Did you mean 'values'? |
||
AlexDaniel | m: say 42 %% <2 4 5> | ||
camelia | True | ||
AlexDaniel | m: say 42 %% <2 4 5>.any | ||
camelia | any(True, False, False) | ||
AlexDaniel | m: say 42 %% <2 4 5>.all | ||
camelia | all(True, False, False) | ||
AlexDaniel | m: say so 42 %% <2 4 5>.any | 22:38 | |
camelia | True | ||
AlexDaniel | m: say so 42 %% <2 4 5>.all | ||
camelia | False | ||
HelpWithPerl | Aha! I've solved the problem! Thanks so much for your help everyone! | 22:39 | |
lizmat | and another Perl 6 Weekly hits the Net: p6weekly.wordpress.com/2017/11/06/...tablished/ | ||
El_Che | lizmat = hero | 22:40 | |
22:41
kyan left
22:42
ryn1x joined,
espadrine left,
espadrine joined
22:43
ChoHag left
|
|||
El_Che | ing daemon | 22:44 | |
zeroc-icegridgui - IceGrid Admin graphical client | |||
damn | |||
sorry | |||
I meant this: news.ycombinator.com/item?id=15625322 : " perl6 will be renamed to rakudo, officially. Very soon. | |||
22:44
pmurias left
|
|||
HelpWithPerl | Probably a good thing | 22:44 | |
lizmat | note who said that: rurban :-) | 22:45 | |
HelpWithPerl | Too many people hear Perl6 and make syntax jokes :P | ||
El_Che | lizmat: I was being nice. Full text is: | 22:46 | |
ing daemon | |||
zeroc-icegridgui - IceGrid Admin graphical client | |||
damn | |||
lizmat | que? | ||
El_Che | question is: | ||
"Would Renaming Perl Save It from Terminal Unpopularity?" | |||
answer: "Already done. | |||
perl5 was forked to cperl. | |||
And perl6 will be renamed to rakudo, officially. Very soon." | |||
the perl5 thing sound a little like trolling :) | |||
lizmat | it *is* :-) | 22:47 | |
22:47
mr-foobar left
|
|||
dylanwh is happy that newsy is blocked at the router level. | 22:47 | ||
El_Che | lizmat: you missed the point of my tweet. The point was not that there were new packages, but they are completely built and relased by travis. On the open | 22:48 | |
22:49
mr-foobar joined
22:50
ryn1x left
|
|||
lizmat | El_Che: updated | 22:50 | |
22:53
troys joined
22:54
ChoHag joined
22:55
azawawi joined
|
|||
Juerd | "Stage parse : 199.663" | 22:55 | |
That was around 70 before, on my laptop. Should I be worried? | |||
gfldex | Juerd: I will build Rakudo and tell you if your laptop is broken. | 22:56 | |
Juerd | :) | ||
[Coke] | El_Che: "Citation Needed" | 22:58 | |
azawawi | Juerd: maybe laptop is on battery power? lower CPU state? | ||
[Coke] | (I mean from rurban, not from you. :) | ||
Juerd | I just found out there was a Chromium process that was keeping my laptop busy | 22:59 | |
Sorry for the false alarm :) | |||
lizmat | *phew* :-) | ||
geekosaur is wondering about chrome/chromium any more | |||
23:00
mienaikage left,
ryn1x joined
|
|||
geekosaur | random sudden bloat-outs, tendency to get into tight loops inside itself with little evidence in the UI aside from slowness and top showing a process churning through CPU | 23:00 | |
also, if you accept a bad certificate (from my router in this case; kinda hard for those to DTRT) that eventually times out, and instead of reporting an error chrome starts consuming 100% cpu time | 23:01 | ||
23:01
niceperl left
|
|||
Juerd | Stage parse : 74.740 | 23:01 | |
That's better :) | |||
geekosaur | and lots of network, apparently trying to fetch something repeatedly | ||
(which I determined only by capturing snapshots of netstat -4 -p and diffing...) | 23:02 | ||
23:02
mr-foobar left
23:06
mr-foobar joined
23:09
HelpWithPerl left
23:11
mienaikage joined
|
|||
azawawi | github.com/azawawi/perl6-msgpack/ # Experimental status removed | 23:14 | |
lizmat | azawawi++ :-) | ||
azawawi | gist.github.com/azawawi/22e2609578...a6c78bced2 # 2x performance native vs perl6 implementation (pack, unpack) | ||
Now over 10k records we have that nasty heap corruption bug | 23:15 | ||
records = elements | 23:16 | ||
23:16
sena_kun left
|
|||
azawawi | lizmat: thanks | 23:16 | |
23:17
ryn1x left
|
|||
azawawi | github.com/azawawi/perl6-msgpack/b...sgpack.pl6 # Corruption beyond 10k :) | 23:17 | |
Absolute power corrupts absolutely :) | 23:18 | ||
.tell nine Could you please take a look at the rakudo heap corruption bug when setting size to beyond 10k elements github.com/azawawi/perl6-msgpack/b...sgpack.pl6 . Thanks | 23:22 | ||
yoleaux | azawawi: I'll pass your message to nine. | ||
23:30
troys is now known as troys_,
jferrero joined,
espadrine left
23:35
mienaikage left,
troys_ is now known as troys
23:38
Cabanossi left,
Cabanossi joined
23:39
unicodable6 left,
benchable6 left,
statisfiable6 left,
mcmillhj joined,
statisfiable6 joined,
benchable6 joined,
unicodable6 joined
23:41
mienaikage joined
23:42
pecastro joined
23:43
mienaikage left,
azawawi left
23:46
ryn1x joined
23:47
aindilis left
23:50
Aaronepower joined
23:51
ryn1x left
23:52
cdg left,
mienaikage joined
23:53
cdg joined
23:58
comborico1611 left
|