»ö« 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.
00:00 markong left 00:01 markong joined 00:04 mcmillhj joined 00:09 mcmillhj left 00:16 AlexDaniel joined 00:19 pharv left, markong left 00:24 mcmillhj joined 00:26 pierre joined 00:28 pierre left, pierre joined 00:29 mcmillhj left 00:43 pierre left, pierre joined 00:44 mcmillhj joined 00:49 mcmillhj left 00:50 pharv joined 00:52 mr_ron left 00:53 comborico1611 left 00:54 aborazmeh joined, aborazmeh left, aborazmeh joined 00:55 pharv left 00:58 mcmillhj joined 01:03 mcmillhj left, splatt9990 joined 01:08 pierre left 01:12 mcmillhj joined 01:17 mcmillhj left 01:18 pierre joined 01:22 pierre left 01:32 FROGGS left 01:33 splatt9990 left, splatt9990 joined 01:36 pierre joined 01:40 pierre left 01:45 FROGGS joined 01:46 ilbot3 left 01:47 mcmillhj joined 01:52 mcmillhj left 01:54 pierre joined 01:55 aborazmeh left 01:56 ilbot3 joined, ChanServ sets mode: +v ilbot3 01:59 pierre left 02:00 vcv left 02:03 pierre joined 02:15 Actualeyes left, mcmillhj joined 02:20 mcmillhj left 02:27 mcmillhj joined 02:29 pierre left, splatt9990 left 02:30 pierre joined 02:32 mcmillhj left 02:40 mcmillhj joined 02:44 mcmillhj left 03:14 mcmillhj joined 03:18 mcmillhj left 03:20 pharv joined 03:21 Herby_ left 03:25 pharv left 03:31 mcmillhj joined 03:35 mcmillhj left 03:37 sena_kun joined 03:44 mcmillhj joined 03:48 koto joined, eliasr left 03:49 mcmillhj left, sena_kun left, rjbs joined 03:50 wmoxam joined, jeek left, jeek joined 03:51 speedChicken left 03:52 reportable6 left, quotable6 left, nativecallable6 left, cdg joined, nativecallable6 joined, reportable6 joined, quotable6 joined, notable6 left 03:54 camelia joined, speedChicken joined, shadowpaste joined 03:55 ChanServ sets mode: +v camelia 03:56 cdg left 03:57 athenot left, athenot joined 04:02 mcmillhj joined, pierre left 04:03 pierre joined 04:05 skids left, koto left 04:06 AlexDaniel left, mcmillhj left 04:07 pierre left 04:13 mcmillhj joined 04:14 wamba joined 04:17 kurahaupo joined, troys left 04:18 mcmillhj left 04:19 kurahaupo_ left 04:22 khw left 04:25 bartolin joined 04:29 mcmillhj joined 04:31 kurahaupo left 04:32 kurahaupo joined 04:33 kurahaupo_ joined 04:35 mcmillhj left 04:36 kurahaupo left 04:42 kurahaupo joined 04:43 kurahaupo_ left 04:44 mcmillhj joined 04:49 mcmillhj left, notable6 joined, ChanServ sets mode: +v notable6 04:52 kurahaupo_ joined 04:53 kurahaupo left 04:55 mcmillhj joined 05:00 mcmillhj left 05:07 kurahaupo_ left, Actualeyes joined, kurahaupo joined 05:10 mcmillhj joined 05:14 mcmillhj left 05:18 kurahaupo left, kurahaupo joined 05:20 pharv joined 05:23 sauvin joined 05:25 pharv left 05:27 wamba left 05:29 mcmillhj joined 05:30 kurahaupo left, kurahaupo joined 05:31 FROGGS left 05:35 mcmillhj left 05:38 pierre joined 05:42 sena_kun joined 05:46 mcmillhj joined 05:50 mcmillhj left 06:02 mcmillhj joined 06:05 wamba joined 06:06 mcmillhj left 06:08 cdg joined
moritz o good morning 06:09
I've just received my royalty statement from my publisher; it seems that the regex book sold 113 print and 14 ebook copies in December when it came out 06:11
I don't quite know what numbers to compare it against to make sense of it, but if 100 people actually read the book, it was worth the effort :-) 06:12
06:12 cdg left 06:13 cdg joined
TEttinger you wrote a book on regexes? perl 6 variety? 06:14
moritz sure did: smile.amazon.com/dp/1484232275/ 06:15
and "Perl 6 Fundamentals" sold 76 print copies, 58 ebook in Q4 2017 06:17
06:18 cdg left
moritz TEttinger: seems I haven't spammed enough about it :-) 06:18
06:20 mcmillhj joined
TEttinger moritz: could have made a pun on reducing the difficulty of regexes by "seeing through Lenz's Lenses" 06:21
06:22 darutoko joined 06:23 cdg joined 06:25 mcmillhj left 06:27 domidumont joined 06:28 cdg left
moritz TEttinger: I must say I'm quite happy with the current subtitle :-) 06:29
06:32 robertle joined, domidumont left 06:33 domidumont joined
TEttinger ah, didn't see it 06:36
that is clever
06:38 rindolf joined, mcmillhj joined 06:42 espadrine left 06:43 mcmillhj left 06:51 dogbert17 left 06:53 dogbert17 joined 06:54 rindolf left 06:56 mcmillhj joined 06:58 dakkar joined 07:02 mcmillhj left 07:09 mcmillhj joined 07:13 mcmillhj left 07:19 mcmillhj joined 07:21 pharv joined 07:24 mcmillhj left 07:26 pharv left 07:29 mcmillhj joined 07:34 uvb left, mcmillhj left
masak noticed the subtitle :) 07:38
07:48 zakharyas joined 07:49 mcmillhj joined, scimon joined 07:53 mcmillhj left 07:59 zakharyas left 08:00 zakharyas joined 08:02 mcmillhj joined 08:06 zakharyas left
Geth doc: 306b4e59a3 | (Elizabeth Mattijsen)++ | doc/Type/Proc.pod6
Minimally document Proc.pid
08:06
synopsebot Link: doc.perl6.org/type/Proc
08:07 mcmillhj left, zakharyas joined 08:17 dogbert17 left
scimon So over Easter I think I may have to do something I've been avoiding. Install Rakudo Star on a Windows machine. Yay. 08:18
08:19 mcmillhj joined 08:24 mcmillhj left, afresh1 joined 08:25 cdg joined, sena_kun left 08:26 athenot left 08:27 athenot joined 08:29 lowbro joined, cdg left 08:30 lowbro left, dogbert17 joined 08:36 mcmillhj joined 08:41 wamba left, mcmillhj left 08:42 kurahaupo_ joined 08:44 kurahaupo left 08:52 mcmillhj joined
stmuk scimon: just install the MSI! or use chocolatey which does the same thing and allows other installs as well! 08:55
08:56 kurahaupo_ left 08:57 kurahaupo joined, mcmillhj left 08:59 zakharyas left 09:00 zakharyas joined 09:05 zakharyas left 09:07 zakharyas joined 09:08 kurahaupo left, kurahaupo joined
buggable New CPAN upload: Image-QRCode-0.0.2.tar.gz by FRITH cpan.metacpan.org/authors/id/F/FR/...0.2.tar.gz 09:11
09:18 kurahaupo left, kurahaupo joined
mienaikage I was trying out rakudo on the microsoft/windowsservercore docker container this morning, might play around a bit more later. Still need to get to grips with powershell 09:20
09:22 pharv joined, kurahaupo left, kurahaupo joined 09:23 rindolf joined
tyil scimon: just reinstall the machine with a better OS and install rakudo star like usual :D 09:23
El_Che mienaikage: keep us posted on how that works out. Interesting 09:25
09:26 pharv left 09:29 wamba joined 09:36 cdg joined 09:37 w_richard_w1 joined 09:39 w_richard_w left 09:40 cdg left 09:41 dalek left 09:44 zakharyas left
scimon It's just my Windows machine at home is really just for gaming. When I develop on it it's generally in a Virtual Machine (or more recently Unity, but that's it's own environment). But I would like to get Proc::InvokeEditor working cross platform so it's useful so I feel I really need ot. 09:47
(Actually testing on a Mac might be harder)
09:49 Util left 09:50 wamba left, athenot left 09:51 markong joined 09:53 sena_kun joined 09:57 wamba joined 10:06 Geth left 10:07 zakharyas joined, Actualeyes left 10:12 domidumont left, aindilis left 10:18 w_richard_w1 left 10:44 natrys joined 10:48 wamba left 10:49 SourceBaby left 10:50 dalek joined, p6lert left, ChanServ sets mode: +v dalek, synopsebot left, sergot left, Geth joined, ChanServ sets mode: +v Geth, p6lert joined, synopsebot joined, ChanServ sets mode: +v synopsebot 10:51 SourceBaby_ joined, ChanServ sets mode: +v SourceBaby_, SourceBaby_ left 10:52 SourceBaby joined, ChanServ sets mode: +v SourceBaby 11:01 pierre left, pierre joined
Geth doc: e4ee4ce9fa | (JJ Merelo)++ | xt/links-not-links.t
Adds tests for not-<L>inked links closes #1856
11:03
11:05 pierre left
Geth doc: 4a113a7e79 | (Wenzel P. P. Peppmeyer)++ (committed using GitHub Web editor) | doc/Type/Signature.pod6
return type constraints also work for pointy blocks

also, links are nice
11:12
doc: e67da64ae4 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Type/Signature.pod6
Merge pull request #1881 from gfldex/patch-12

return type constraints also work for pointy blocks
Well, `htmlify.p6`is what is going to process it anyway... Having a `type` preffix is also a heuristic, because it's where it goes now, as processed with htmlify.p6. Be that as it may, that's fair enough, so I'll accept it anyway. If we change this to some other thing it will go to the pile of links that have to be changed.
synopsebot Link: doc.perl6.org/type/Signature
11:18 zakharyas left 11:21 wamba joined, pmurias joined 11:22 pharv joined 11:23 travis-ci joined
travis-ci Doc build failed. JJ Merelo 'Adds tests for not-<L>inked links closes #1856' 11:23
travis-ci.org/perl6/doc/builds/359789677 github.com/perl6/doc/compare/306b4...ee4ce9fac6
11:23 travis-ci left
buggable [travis build above] ☠ Did not recognize some failures. Check results manually. 11:23
11:26 eliasr joined 11:28 pharv left 11:29 splatt9990 joined, splatt9990 left, splatt9990 joined, travis-ci joined
travis-ci Doc build failed. Juan Julián Merelo Guervós 'Merge pull request #1881 from gfldex/patch-12 11:29
travis-ci.org/perl6/doc/builds/359792719 github.com/perl6/doc/compare/e4ee4...7da64ae438
11:29 travis-ci left
buggable [travis build above] ☠ Did not recognize some failures. Check results manually. 11:30
11:31 splatt9990 left, splatt9990 joined, splatt9990 left 11:32 splatt9990 joined
Geth doc: 537e3a3643 | (JJ Merelo)++ | xt/links-not-links.t
Eliminates one mention of bare http
11:35
doc: 373b62aeba | (JJ Merelo)++ | doc/Type/Signature.pod6
Merge branch 'master' of github.com:perl6/doc
doc: 94a0d3ca05 | (JJ Merelo)++ | 16 files
Left only 8, mainly false positives
synopsebot Link: doc.perl6.org/type/Signature
doc: 760fabc904 | (JJ Merelo)++ | xt/links-not-links.t
Now I'm positive: I hate the no tabs rule
11:37
11:38 athenot joined 11:47 domidumont joined 11:51 MasterDuke left 11:54 Voldenet left 11:56 travis-ci joined
travis-ci Doc build failed. JJ Merelo 'Left only 8, mainly false positives' 11:56
travis-ci.org/perl6/doc/builds/359799890 github.com/perl6/doc/compare/e67da...a0d3ca0524
11:56 travis-ci left
buggable [travis build above] ☠ Did not recognize some failures. Check results manually. 11:56
11:58 sergot joined 12:00 Voldenet joined, Voldenet left, Voldenet joined
[Coke] .tell jmerelo re 760fabc904 and other similar commit messages; now I'm sure, I dislike commit messages like this. 12:11
yoleaux [Coke]: I'll pass your message to jmerelo.
buggable New CPAN upload: Lingua-Stopwords-0.0.1.tar.gz by CHSANCH cpan.metacpan.org/authors/id/C/CH/...0.1.tar.gz
New CPAN upload: Proc-InvokeEditor-0.0.3.tar.gz by SCIMON cpan.metacpan.org/authors/id/S/SC/...0.3.tar.gz 12:21
12:32 pierre joined 12:33 splatt9990 left 12:34 mscha joined 12:49 wamba left 12:57 mcmillhj joined 12:58 mahafyi joined
Geth doc: b09c781c54 | (Will "Coke" Coleda)++ | xt/links-not-links.t
fix whitespace
12:58
12:59 vcv joined 13:03 wamba joined
Geth doc: b40bc13ffd | (Will "Coke" Coleda)++ | xt/links-not-links.t
Set executable bit for test
13:06
13:16 athenot_ joined 13:17 athenot left 13:20 athenot joined 13:21 athenot_ left 13:23 zakharyas joined 13:27 vcv left 13:28 vcv joined 13:30 scimon left
perlawhirl hi perlers 13:34
I'm probably going about this the wrong way... but say i want to move functions into their own sub-modules, but still be importable by the user 13:36
is there a better way to go about it than this?
gist.github.com/0racle/a8121cfbb8b...d47ca1861a
ie. without explicitly creating export packages for each sub-module 13:37
13:37 scimon joined 13:40 zakharyas left, zakharyas joined 13:46 skids joined 13:50 cfa joined
lizmat perlawhirl: this is the approach I took in P5built-ins: github.com/lizmat/P5built-ins/blob...lt-ins.pm6 13:57
perlawhirl lizmat++ thanks 14:00
14:01 Util joined 14:06 pierre left 14:07 pierre joined, AlexDaniel joined 14:25 zakharyas left 14:26 pugdes joined 14:27 zakharyas joined 14:28 pugdes left 14:29 FROGGS joined 14:30 pierre left, pierre joined 14:39 cdg joined 14:49 khw joined
AlexDaniel squashable6: next 14:50
squashable6 AlexDaniel, Next SQUASHathon in 7 days and ≈19 hours (2018-04-07 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
14:58 vcv left 15:01 vcv joined
FROGGS uhh, we have a squashathon! \o/ 15:01
buggable New CPAN upload: cro-core-0.7.4.tar.gz by JNTHN cpan.metacpan.org/authors/id/J/JN/...7.4.tar.gz 15:11
New CPAN upload: cro-tls-0.7.4.tar.gz by JNTHN cpan.metacpan.org/authors/id/J/JN/...7.4.tar.gz
New CPAN upload: cro-0.7.4.tar.gz by JNTHN cpan.metacpan.org/authors/id/J/JN/...7.4.tar.gz
New CPAN upload: cro-websocket-0.7.4.tar.gz by JNTHN cpan.metacpan.org/authors/id/J/JN/...7.4.tar.gz
New CPAN upload: cro-http-0.7.4.tar.gz by JNTHN cpan.metacpan.org/authors/id/J/JN/...7.4.tar.gz
New CPAN upload: cro-zeromq-0.7.4.tar.gz by JNTHN cpan.metacpan.org/authors/id/J/JN/...7.4.tar.gz 15:12
15:24 wamba left 15:28 troys joined
mspo cro? 15:32
dogbert17 cro.services/ 15:33
mspo: ^^
15:36 pierre left 15:37 pierre joined 15:41 pierre left
Altreus is there like a DBICish or something? I want to read some code that might help me answer architecture questions without bugging everyone for ages 15:43
scimon I don't think there's a drop in DBIC replacement yet. There's one module I remember that is the start of an ORM but not much more. 15:44
AlexDaniel huggable: cro 15:47
huggable AlexDaniel, nothing found
mspo timeout 15:49
dogbert17 mspo: sorry drop the https for http 15:51
15:53 vcv left
abraxxa Altreus: github.com/maros/oarm-p6 15:54
15:55 abraxxa left
Geth DBIish/wip-mysql-threaded: bdcb646484 | (Tobias Leich)++ | 2 files
Protect more of mysql.connect and conn.dispose
15:55
mspo okay neat 15:56
timotimo waitwhat
that should really work with https
jnthn: cro.services/ is unhappy!
dogbert17 timotimo: agreed
15:56 st_elmo joined
timotimo only the https part 15:56
jnthn Was never intended to be happy :) 15:57
(Would be nice to fix that, though)
timotimo really? the site never had https?
jnthn No
timotimo i didn't even realize 15:58
FROGGS jnthn: chrome will get you soon :D
15:58 domidumont left
jnthn It's all public content, and I'm not sure illicit Cro use is on any nasty government's radar. :P But it should be easy to add HTTPS. Just a matter of getting around to it. 15:59
FROGGS no, but chrome wants to discourage all none https-sites at some point 16:00
timotimo i do assume you already get downgrades in your search rank if you don't have https on? 16:02
FROGGS likely 16:03
scimon Google is pushing for it heavily yes. 16:04
16:06 zakharyas left 16:07 zakharyas joined 16:08 Zoffix joined
Zoffix Google's been penalizing for a couple of years already and in Oct2017 they even made chrome cry that stuff' insecure when you enter any content on non-HTTPS site 16:09
jnthn: that's not the only reason to use HTTPS. A malicious attacker can inject "Download CroInstaller.exe" into the page fetched by the user, installing malware to them 16:10
timotimo remember that fun instance where some bank site or something was complaining to a browser (was it firefox or chrome?) that it shows something about being insecure?
and they firmly claimed their site is totally secure
and shortly thereafter - because the bug report was public and surely passed around like an adorable kitty at a children's birthday party - someone hacked the 'site? 16:11
Zoffix jnthn: this thing is easy to use and can hook you up with free SSL in like 2 minutes: certbot.eff.org/
(with cert from letsencrypt)
16:12 zakharyas left, domidumont joined
Zoffix moritz++ # selling P6 books 16:12
Altreus oh they left, I was going to say thanks 16:13
16:13 zakharyas joined
mspo I like the zerossl client for letsencrypt 16:15
also they (finally) released wildcards!
scimon (Zoffix makes good points :) )
I'm off, long easter weekend beckons.
16:16 scimon left, mcmillhj left
tyil I just learned that "Private multi-methods are not supported", is there a particular reason for this? 16:16
also, is there a workaround for this :p
Zoffix IIRC the reason's no one did the work yet 16:17
16:17 Bowlslaw joined 16:19 dakkar left
Zoffix m: class Foo { method !d-i($a) { say "$a is an Int" }; method !d-a ($a) { say "$a is not an Int" }; method !d ($a) { multi z (Int) { self!d-i: $a }; multi z (Any) { self!d-a: $a }; z $a }; method pd ($a) { self!d: $a }; }.new.pd: 42 16:20
camelia 42 is an Int
Zoffix m: class Foo { method !d-i($a) { say "$a is an Int" }; method !d-a ($a) { say "$a is not an Int" }; method !d ($a) { multi z (Int) { self!d-i: $a }; multi z (Any) { self!d-a: $a }; z $a }; method pd ($a) { self!d: $a }; }.new.pd: "x"
camelia x is not an Int
Zoffix ZofBot: hax
ZofBot Zoffix, And when we got to school Siobhan said, “So you’re Christopher’s mother
timotimo working around not implemented multi-dispatch for private methods? 16:21
Zoffix yeah
16:23 mcmillhj joined
Zoffix TIL we got twitter.com/perl6_cpan_new 16:24
16:24 jmerelo joined
jmerelo Hi all ö/ 16:24
yoleaux 12:11Z <[Coke]> jmerelo: re 760fabc904 and other similar commit messages; now I'm sure, I dislike commit messages like this.
Zoffix Written in go? :( 16:25
\o
tyil for now I'll just make them public and add a "please dont use this" doc
timotimo "it's easiest to migrate from go to cro, because just two letters differ"
Zoffix: now i feel dumb, just above your code was the explanation m)
moritz do we also have croroutines? 16:26
tyil did anyone from the cro team see my pr on the code sample with react?
timotimo make it so
Zoffix
.oO( croutines )
timotimo next pun we need is on "salad" so we have something the croutines can go in 16:27
Zoffix
.oO( a templating engine called "TagSoup" )
timotimo temp'ting 16:28
jmerelo yoleaux: I got it :-). Would it be better if I just said "dislike"?
16:28 mcmillhj left
Zoffix jmerelo: I think the complaint was that such commit messages aren't descriptive of what's being changed and why. 16:29
jmerelo: e.g. here: Left only 8 what? github.com/perl6/doc/commit/94a0d3...ff8379f238 16:30
jmerelo Zoffix: OK.
Zoffix jmerelo: we have this guide for commit messages, though people don't adhere to it religiously: github.com/rakudo/rakudo/blob/mast...t-messages
jmerelo Zoffix: great resource. Thanks. 16:31
Zoffix \o 16:32
16:32 Zoffix left
timotimo i'm not sure i've seen that :S 16:34
16:35 mcmillhj joined 16:40 zakharyas left 16:41 mcmillhj left, pierre joined 16:42 pharv joined 16:44 mcmillhj joined 16:45 pierre left 16:54 zakharyas joined 16:55 FROGGS left 17:00 zakharyas left 17:04 zakharyas joined
Geth doc: ff60b70fa5 | (JJ Merelo)++ | 6 files
Eliminating false positives from non-linked links tests

Works towards #1856, only 1 false positive to go.
17:05
doc: 6dad81a6a3 | (JJ Merelo)++ | 2 files
Editing the file to eliminate false positive in links.

In this case, it was due to the indentation which was seen as code in single-line mode.
This closes #1856 leaving 0 false positives. It should start work now.
doc: b0f8fe0535 | (JJ Merelo)++ | xt/links-not-links.t
Adds overview section to the new test.

Closes #1882.
17:09
17:11 zakharyas left 17:13 zakharyas joined, zakharyas left, zakharyas joined
Bowlslaw No such method 'select' for invocant of type 'Bool' 17:18
hello everyone 17:19
why does this code give me that error? pastebin.com/R4diswbw
I'm trying to make a simple sql select method
my insert method works, but I don't know why the select one doesn't, even though it is modeled directly after the working insert method
say $item.select; 17:20
mst Bowlslaw: your insert method does not return the object 17:23
so $item is not the object 17:24
Bowlslaw hmmmmmmmmmmm
how do i do that?
17:24 travis-ci joined
travis-ci Doc build failed. JJ Merelo 'Editing the file to eliminate false positive in links. 17:24
travis-ci.org/perl6/doc/builds/359941944 github.com/perl6/doc/compare/b40bc...ad81a6a3a3
17:24 travis-ci left
buggable [travis build above] ☠ Did not recognize some failures. Check results manually. 17:24
17:27 vcv joined 17:29 travis-ci joined
travis-ci Doc build failed. JJ Merelo 'Adds overview section to the new test. 17:29
travis-ci.org/perl6/doc/builds/359943602 github.com/perl6/doc/compare/6dad8...f8fe053526
17:29 travis-ci left
Geth doc: 26c64de429 | (JJ Merelo)++ | doc/Language/modules.pod6
Fixes POD error
17:29
synopsebot Link: doc.perl6.org/language/modules
buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
jmerelo Bowlslaw: insert should return something, if you want to do that with insert. 17:33
Bowlslaw jmerelo: how do i make it return an object?
jmerelo Bowlslaw: just do return. But you should maybe try and do that in a constructor. You can override the default constructor by using submethod new. 17:34
17:35 Zoffix joined
jmerelo Bowlslaw: also, you might want to take db and create-schema outside that class, since they are not working on self. They can be just average routines. 17:35
Bowlslaw hmm
Zoffix Bowlslaw: just put `self` at the end of insert method's body. Right now you're returning the return value of `say`, which is a `Bool` which is what the error is telling you
Bowlslaw OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
Zoffix m: class Foo { method a { say "a"; self; } method b { say "b"; self } }.new.a.b.a.b.a.b
camelia 5===SORRY!5=== Error while compiling <tmp>
Strange text after block (missing semicolon or comma?)
at <tmp>:1
------> 3class Foo { method a { say "a"; self; }7⏏5 method b { say "b"; self } }.new.a.b.a.
expecting any of:
17:36
Zoffix m: class Foo { method a { say "a"; self; }; method b { say "b"; self } }.new.a.b.a.b.a.b
camelia a
b
a
b
a
b
Bowlslaw hmm interesting 17:37
thanks jmerelo and Zoffix 17:38
jmerelo: how can you tell they are not working on self?
17:41 mahafyi_ joined
jmerelo Bowlslaw: Well, they are, but they are not actually working on any instance variable. You could change line 23 to just create-schema() and it would work the same, if you also take $!db outside the class. Bear in mind that, in this way, the db handle is going to be an attribute of a particular object. You probably don't want that... 17:42
17:42 mahafyi left, mahafyi_ is now known as mahafyi
jmerelo Bowlslaw: or from another point of view, you will have a database handle in every Item object. It's better if you either create a Singleton class to hold that, or simply a global variable. 17:42
Bowlslaw ahh 17:43
Zoffix m: sub trait_mod:<is>(Method:D \meth, :$fluent!) { meth.wrap: method (|c) { callsame |c; self } }; class Foo { method a is fluent { say "a" }; method b is fluent { say "b" } }.new.a.b.a.b.a.b 17:44
camelia a
b
a
b
a
b
Zoffix :)
17:46 travis-ci joined
travis-ci Doc build passed. JJ Merelo 'Fixes POD error' 17:46
travis-ci.org/perl6/doc/builds/359951771 github.com/perl6/doc/compare/b0f8f...c64de429f8
17:46 travis-ci left
Zoffix s/callsame/callwith/; 17:48
m: role FluentInterface { method new { with self.bless -> \SELF { .wrap: sub (|c) {callwith |c; SELF} for SELF.^methods: :local; SELF } } }; class Foo does FluentInterface { method a($a, $b) { say "a [$a, $b]" }; method b { say "b" } }.new.a(1, 2).b.a(3, 4).b
camelia a [1, 2]
b
a [3, 4]
b
Zoffix Perl6++
17:49 Zoffix left 17:53 mahafyi left 17:54 cfa left, pharv left 17:55 pharv joined 17:56 pharv left 17:57 pharv_ joined
Bowlslaw woo hoo! thanks for the help guys 17:57
i got this basic functionality working and I understand more about the design now 17:58
17:58 cpage_ joined
Bowlslaw so all I have to do is expand upon this foundation to implement the other functionality! 17:58
i admit i was quite hesitant to adopt perl 6...
jmerelo Bowlslaw: congrats :-)
Bowlslaw i'm enjoying it now for some reason ;p
it's like a holy child of Haskell, Perl 5, and Scala 17:59
jmerelo Bowlslaw: happy to hear that. To tell you the truth, Haskell and Scala are a bit over the top for me. And the community here is much more welcoming :-)
18:00 cpage left, cpage_ is now known as cpage
Bowlslaw yeah, not a fan of Scala, but I think Haskell is quite cool, and their community is super friendly and helpful 18:01
jmerelo Bowlslaw: and smart on top of that. I guess that coming from Perl I found the Perl 6 community easiest. And I still find Haskell a bit difficult to follow. Still, mightily powerful. 18:02
Bowlslaw perl is a lot more useful, in general, than Haskell is, but Haskell really excels at mathematical modeling
if you are curious about Haskell, I highly recommend this book: www.amazon.com/Programming-Haskell...dpSrc=srch 18:03
jmerelo Bowlslaw: you will find that most of the things that make Haskell good at maths are also in Perl 6. First compiler, by Audrey Tang, called PUGs, was written in Haskell.
Bowlslaw: Thanks. I'll check it out.
18:04 zakharyas left 18:16 sauvin left 18:22 wamba joined 18:23 st_elmo left 18:28 Kaiepi joined 18:35 cdg_ joined, cdg_ left, cdg_ joined 18:38 cdg left 18:39 cdg_ left 18:50 darutoko left 19:04 pharv_ left 19:06 pharv joined 19:07 mcmillhj left 19:13 mcmillhj joined 19:15 Kaiepi left 19:16 Kaiepi joined
jmerelo O/ 19:23
19:23 jmerelo left 19:25 domidumont left 19:27 zakharyas joined 19:30 robertle_ joined 19:39 zakharyas left 19:40 |oLa| joined 19:41 Kaiepi left 19:44 lichtkind joined
lichtkind is there any need to announce my class as unit class; ..... ? 19:45
AlexDaniel lichtkind: this way you don't need to indent everything inside :) 19:46
maybe there are other benefits though 19:47
19:47 Kaiepi joined
masak no, that's basically it 19:48
19:48 zakharyas joined
masak maybe it also shows some intent, like "this file is for mainly this thing" 19:48
lichtkind you mean without i have only curlies? thanks 19:51
thanks mäsak too good to see you still
your great 19:53
19:55 mcmillhj left 20:02 |oLa| left
lichtkind can i do types depending on dynamic data? 20:16
Bowlslaw ..what?
lichtkind like subset PInt of Int where * > $g; 20:17
20:20 mcmillhj joined
vcv subset PInt of Int where { $_ > $g }; ? 20:22
20:23 cdg joined
masak lichtkind: yes, you can 20:24
as long as $g is in scope for the `where`, it's fine for it to change during its lifetime 20:25
lichtkind but not on private attributes?
masak whether it's _sane_ for a type to change dynamically like that is another discussion :)
lichtkind: yes, I think also on private attributes
vcv It appears you might have to put it in a block explicitly? 20:26
lichtkind thanks so much and i think it is sane i do the matrix lib and i want types for basice range check or column and row indeces
20:26 zakharyas left
vcv I'm guessing something to do with how WhateverCode creates a block for you 20:26
lichtkind indices
Bowlslaw can i do 'multi sub' as well as 'multi method' ? 20:27
masak m: my $g = 1; class C { has $!a where { $_ > $g }; method a { $!a } }; say C.new( a => 5 ).a
camelia (<anon>)
20:27 comborico1611 joined
lichtkind Bowlslaw, sure 20:27
masak humm
Bowlslaw: and if you want, you can spell 'multi sub' just 'multi', too 20:28
20:32 cdg_ joined
Bowlslaw :O 20:34
20:35 cdg left 20:40 pharv left 20:43 pharv joined 20:50 pharv left, pharv joined, FROGGS joined 20:51 comborico joined 20:56 comborico1611 left 20:57 vcv left 21:01 Kaiepi left 21:03 Kaiepi joined 21:09 mcmillhj left 21:11 skids left
lichtkind masak, no got again: Variable $... used where no 'self' is available 21:11
21:12 Kaiepi left 21:14 mcmillhj joined 21:16 Kaiepi joined
masak I think I'd need a (small!) example of what exactly it is you're doing 21:16
(small!)
(make it a one-liner and run it through camelia)
21:18 mcmillhj left 21:20 robertle_ left 21:23 mcmillhj joined 21:24 raydiak joined 21:29 mcmillhj left 21:30 comborico left
Bowlslaw hey how is Perl 6's GUI tools? 21:37
AlexDaniel buggable: eco GTK 21:38
buggable AlexDaniel, Found 4 results: GTK::Simple, GTK::Simpler, GTK::Scintilla, Inform. See modules.perl6.org/s/GTK
Bowlslaw hmmm 21:40
21:40 mcmillhj joined
Bowlslaw I hope Perl 6 fixes Perl 5 biggest weakness: lack of GUI ;p 21:41
needs screenshots
21:43 pharv left 21:47 mcmillhj left, pharv joined 21:58 natrys left, mcmillhj joined 22:04 Zoffix joined
Zoffix Bowlslaw: FWIW there was a recent tutorial posted that goes through building a GUI app: www.tyil.nl/tutorials/perl6-introd...ogramming/ 22:04
22:04 pharv left 22:06 mcmillhj left 22:07 wamba left
Bowlslaw Zoffix: yes, i'm definitely looking into that :) 22:07
22:09 sena_kun left 22:10 pharv joined
Bowlslaw Zoffix: DO you know how one would take the sum of all values of all rows in SQLite? 22:14
for example, this code gives me the total number of elements, instead of the sum of the values: 22:15
AlexDaniel heh, nice use of emoji: github.com/appcypher/awesome-wasm-...d#contents
Bowlslaw my $sth = $dbh.prepare('select price from $table'); $sth.execute; my $total = $sth.allrows; say $total.sum; 22:16
22:16 mcmillhj joined, pmurias left 22:20 mcmillhj left 22:21 rindolf left
Bowlslaw nevermind I got it 22:28
haha
22:29 kurahaupo_ joined
Bowlslaw sql has a nifty sum function >_> 22:30
22:30 kurahaupo left 22:32 mcmillhj joined 22:36 mcmillhj left
timotimo sql is a rather big language full of cool stuff 22:38
22:39 lizmat left 22:40 Actualeyes joined
Bowlslaw yes 22:40
haha i'm likin my simple app so far 22:41
it accepts items into tables and then can sum up their total prices, select by date, description, etc
now I just need to make some graphs and a nice GUI >_> 22:42
22:44 kurahaupo_ left
titsuki_ bisectable: say log(3/4 * (3/7) ** 3 * 1/14 * 1/14) == log(3/4) + 3 * log(3/7) + log(1/14) + log(1/14) 22:45
bisectable6 titsuki_, On both starting points (old=2015.12 new=7572983) the exit code is 0 and the output is identical as well
titsuki_, Output on both points: «False␤»
22:45 lizmat joined 22:46 pierre joined 22:47 MasterDuke joined 22:48 kurahaupo joined, kurahaupo left, kurahaupo joined 22:49 Bowlslaw left, pharv left 22:50 pierre left 22:51 pharv joined 22:59 Herby_ joined
Herby_ o/ 22:59
timotimo o/ 23:00
Zoffix m: say log(3/4 * (3/7) ** 3 * 1/14 * 1/14) ≅ log(3/4) + 3 * log(3/7) + log(1/14) + log(1/14)
camelia True
Zoffix titsuki_: log is gives a Num, which is floating point math 23:01
23:03 pharv left
Zoffix .tell Bowlslaw well, first `$dbh.prepare("select price from $table")` is an unsafe statement. You need to quote $table properly. I don't use DBIish, but there should be some method to quote stuff (placeholders might work too). As for the sum, `my $total = $sth.allrows».head.sum` 23:03
yoleaux Zoffix: I'll pass your message to Bowlslaw.
23:03 pharv_ joined, mscha left
titsuki_ Zoffx: oh... I just have raised an issue: github.com/rakudo/rakudo/issues/1670 23:04
Zoffix c: 2018.03,HEAD say [log(3/4 * (3/7) ** 3 * 1/14 * 1/14), log(3/4) + 3 * log(3/7) + log(1/14) + log(1/14)]
committable6 Zoffix, ¦2018.03: «[-8.10769031284391 -8.10769031284391]␤» ¦HEAD(7572983): «[-8.107690312843909 -8.10769031284391]␤»
23:04 lichtkind left
Zoffix And on HEAD Num stringification is fixed ^ and you can see those are slightly different numbers. 23:05
titsuki_ so should I use "is-approx" even if they are equivalent in mathematically? 23:08
Zoffix Yeah
titsuki_ Zoffix: OK, I see. Thanks!
23:09 mcmillhj joined 23:14 mcmillhj left 23:17 lichtkind joined 23:18 markong left 23:21 [particle]1 joined, [particle] left 23:25 mcmillhj joined 23:29 mcmillhj left 23:36 kurahaupo_ joined 23:39 kurahaupo left, cdg_ left 23:41 mcmillhj joined 23:45 mcmillhj left 23:49 kurahaupo_ left, kurahaupo joined 23:53 Zoffix left 23:54 mcmillhj joined