»ö« 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:01 Aaronepower left 00:04 yqt left 00:06 astj left, astj joined 00:07 pecastro joined 00:11 astj left 00:29 pecastro left 00:58 a3r0 joined 01:01 aindilis joined 01:36 aborazmeh joined, aborazmeh left, aborazmeh joined 01:45 dustinm` left 01:49 dustinm` joined 01:51 comborico1611 joined
comborico1611 Are you around? 01:53
01:54 aborazmeh left
Herby_ always 01:58
comborico1611 Heh. 02:02
Herby_ well, maybe not always. gotta go back to work tomorrow after 2 weeks off
ugh
comborico1611 I hate vacations for this very reason.
It's always such a drag to get back into the routine. 02:03
The same went for summer vacations, back in the day.
Herby_ only good thing is that I taught myself some basic SQL while off, so I get to try and apply it when I get back
comborico1611 It's so annoying and anxious to start the school year.
I started the MySQL chapter this week. I got stuck at old PHP 5 working with newer stuff. 02:04
Something about mysql_connect( ) not being use anymore. Now its some DOP weird acroynym. 02:05
Some crap. It was frustrating.
02:06 espadrine left
comborico1611 Is a operator-rich programming language like the counter to languages with frameworks? 02:10
02:17 astj joined
comborico1611 I must get to bed now. Night! 02:17
02:17 comborico1611 left
AlexDaniel ah, ha. Somebody got a better score on code golf by using the newest rakudo features. Awesome :D 02:33
AlexDaniel responds by doing even better 02:36
02:38 flatwhite joined, kerframil left, flatwhite is now known as kerframil 02:42 wamba left 02:43 kerframil left 02:45 ilbot3 left 02:47 pilne left 03:00 manchicken joined 03:02 ilbot3 joined, ChanServ sets mode: +v ilbot3 03:38 manchicken left 04:13 traxex left 04:52 Cabanossi left 04:53 Cabanossi joined 04:57 khw left 05:23 eliasr left 05:28 Herby_ left 05:31 Kaiepi left 05:33 Kaiepi joined 05:42 geekosaur left 05:44 geekosaur joined 06:08 astj left, astj joined 06:13 astj left 06:48 piojo left 07:00 xcm left 07:01 xcm joined 07:03 araraloren joined 07:11 piojo joined 07:16 darutoko joined 07:37 lowbro joined, lowbro left, lowbro joined 07:48 wamba joined 07:50 shmibs left 07:52 shmibs joined 07:59 piojo left, piojo joined 08:00 domidumont joined 08:06 domidumont left 08:07 domidumont joined
lizmat clickbaits p6weekly.wordpress.com/2018/01/01/...-6-alerts/ 08:07
08:11 leont left 08:20 rindolf joined 08:27 leont_ joined 08:29 zakharyas joined 08:34 abraxxa joined 08:45 sena_kun joined 08:48 leont_ left 08:49 parv joined
Geth doc: gfldex++ created pull request #1727:
show how to use Empty
08:50
09:00 abraxxa left 09:05 scimon joined 09:06 abraxxa joined 09:15 shmibs left 09:16 shmibs joined 09:40 committable6 left, committable6 joined 09:52 Aceeri_ joined 09:53 llfourn left 09:56 llfourn joined 10:00 domidumont left, domidumont joined 10:04 domidumont left, domidumont joined 10:17 Sgeo_ joined 10:20 Sgeo left 10:36 wamba left 10:40 Ven` left 10:45 Zoffix joined
Zoffix Looks like someone accidentally forked a repo as `perl6` user instead of their own: github.com/perl6/awesome-speakers 10:45
scimon Oooops
DrForr Proof that we have some awesome speakers about Perl 6? :) 10:52
Zoffix github.com/eiro did 10:53
Zoffix nukes it; just wanted to ping the author to ensure they get the fork they wanted
ah crap. It saw a commit while I was brushing my teeth 10:54
And I nuked it.
Well. I've done enough damage for the day. 10:55
Zoffix goes back to bed :)
10:55 Zoffix left
El_Che maybe you sleep-commit? 10:55
too late :)
11:02 Aaronepower joined
piojo does .WHICH correspond to data addresses in memory? 11:27
I mean, real memory addresses? 11:28
jnthn No 11:31
Well, it may, sometimes
.WHERE is what you're after if you want that
lizmat piojo: note that the .WHERE of an object is *not* immutable
s/immutable/constant 11:32
piojo thanks
jnthn That also, objects move during their lifetime
piojo and I bet they move when types are merged
jnthn It's all a matter of when GC runs 11:33
DrForr Re: the nuking it accidentaly broke a tweet of @marcchantreux's: "most of the inspiring talks I saw was from the #perl community..." Just saying if you wanted to prod someone about the accidental nuking. 11:36
11:44 dakkar joined
dakkar hm. Should the results of IO::Path.dir have the same $CWD of the object the come from? 11:47
IO::Path.new('foo/',:CWD('/bar/')).child('x') is the same as IO::Path.new('foo/x',:CWD('/bar/')) 11:50
but IO::Path.new('foo/',:CWD('/bar/')).dir produces things like IO::Path.new('foo/x') *without* the CWD 11:51
that feels sub-optimal
11:56 jeromelanteri joined
dakkar aargh. IO::Path method dir(… :$CWD=$*CWD …) 11:59
shouldn't that be :$CWD=$!CWD ?
dakkar rakudobug 12:01
12:02 Aceeri_ left 12:06 xcm left
lizmat new years resolution found on HN: news.ycombinator.com/item?id=16048290 12:07
DrForr 2048x1920? 12:08
12:08 xcm joined
ilmari 3200x1800, same as last year :) 12:12
DrForr: that's a very square ratio... 12:13
lizmat fwiw, 2880 x 1800 + 2560 x 1080
ilmari wife's new laptop is 1920x1080 12:14
DrForr Yeah, but 1920x1280 or something like that seemed too boring and I don't know the new numbers with the advent of 4K and whatnot.
12:15 zakharyas left 12:21 dakkar left
jast mine is tricky... it's a partial 3000 x 1920 12:22
DrForr besides, someone had to haul out the old joke.
12:26 araraloren left 12:29 splatt9990 joined 12:33 reportable6 left 12:34 reportable6 joined 12:41 wamba joined 12:55 natrys joined 12:56 parv left 12:57 splatt9990 left 13:04 splatt9990 joined 13:09 statisfiable6 left, statisfiable6 joined, ChanServ sets mode: +v statisfiable6 13:11 nativecallable6 joined, ChanServ sets mode: +v nativecallable6 13:13 wbiker joined
wbiker Hi @here 13:13
I have got a module that uses "run" to get all processes. To unit test this module, I want to inject the dependencies. What is the best way to inject something that can be used instead of "run ps aux" for example. I think I can use the class Proc. 13:16
13:22 vichib left 13:26 astj joined
scimon Proc::Async ? 13:30
13:31 splatt9990 left, astj left
wbiker @scimon I am not interested in running the command in parallel. I want to use run in production code and a mock in the unit tests. I do not think Proc::Async does help me here. 13:35
jnthn Is the module sub-based or OO-based? 13:36
If the former, perhaps have the subs take an optional parameter like `:&run = CORE::<&run>`, then test cases can pass in an alternative run sub to use 13:37
If OO-based, similar but as a property and allow it to be passed in the constructor
Alternatively, can allow the Proc type to use to be injected
scimon (I think jnthn got way more sleep than me, best listen to him) 13:38
wbiker OO-based. Its a class and I was thinking to use Proc in the constructor somehow.
@scimon :-)
jnthn Yeah, that would be a good way to go :)
Though you can just write something like 13:39
has $.proc-class = Proc;
And then it's automatically available to pass as proc-class => MyProcMock
lizmat has Proc $.proc-class ?
jnthn No
lizmat ah, indeed, I see now
yup, sorry 13:40
jnthn That forces the mock to be a subclass of Proc
Which Test::Mock actually will make happen, mind :)
lizmat yup
wbiker Ahh I see
Cool thanks for the help
jnthn I did something just like this with Proc::Async and a mock set up with Test::Mock in a $dayjob project a while back, and it worked out nicely
wbiker Will try it. thanks 13:42
jnthn (and Proc.run should be eaiser to mock than Proc::Async...)
wbiker I thought so too 13:43
13:46 wbiker left 14:01 perlpilot joined 14:05 dakkar joined 14:06 lizmat left 14:10 bwisti joined 14:15 alexghacker left, alexghacker joined, kerframil joined 14:20 zakharyas joined, cdg joined
Geth doc: 209e5c3ff0 | (Will "Coke" Coleda)++ | xt/words.pws
add words
14:27
14:31 eliasr joined 14:33 yqt joined 14:35 domidumont left 14:39 pecastro joined, sjoshi joined
Geth doc: 9c970f84e6 | (Wenzel P. P. Peppmeyer)++ (committed using GitHub Web editor) | doc/Type/Slip.pod6
show how to use Empty
14:47
doc: 0c5ab8551a | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Slip.pod6
Merge pull request #1727 from gfldex/patch-4

show how to use Empty
synopsebot Link: doc.perl6.org/type/Slip
14:50 silug left 14:59 silug joined 15:00 pecastro left
mspo who's going to add type/Ppp ? 15:12
15:14 wamba left 15:16 sjoshi left 15:17 comborico1611 joined 15:35 wamba joined, wamba left 15:42 releasable6 left, releasable6 joined, ChanServ sets mode: +v releasable6 15:47 wamba joined 16:07 abraxxa left 16:11 khw joined 16:18 rindolf left 16:21 ChoHag left 16:27 comborico1611 left 16:55 yqt left, lowbro left 16:57 piojo_ joined, squashable6 left, squashable6 joined 16:58 leont_ joined 17:03 piojo_ left 17:13 Aaronepower left 17:16 cdg left 17:17 leont_ left 17:21 cdg joined 17:22 markong joined, bloatable6 left, coverable6 left, benchable6 left, bloatable6 joined, ChanServ sets mode: +v bloatable6, coverable6 joined, ChanServ sets mode: +v coverable6, benchable6 joined, ChanServ sets mode: +v benchable6 17:25 cdg left 17:28 rindolf joined 17:30 scimon left 17:33 lizmat joined 17:35 vichib joined 17:39 bisectable6 left, domidumont joined, bisectable6 joined, ChanServ sets mode: +v bisectable6 17:42 astj joined 17:46 cdg joined 17:47 astj left 17:50 setty1 joined 17:59 dogbert17 joined 18:01 FROGGS joined 18:04 lostinfog joined
AlexDaniel squashable6: next 18:10
squashable6 AlexDaniel, ⚠🍕 Next SQUASHathon in 2 days and ≈15 hours (2018-01-06 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
18:10 wbiker joined 18:11 dakkar left 18:16 leont_ joined 18:23 imcsk8 joined 18:28 geospeck joined 18:32 darutoko left, imcsk8 left, imcsk8 joined 18:33 alexghacker left, alexghacker joined 18:35 Aaronepower joined 18:39 Aaronepower left 18:40 kerframil left 18:56 cdg left 18:59 zakharyas left 19:05 S007 left, lostinfog left 19:07 unicodable6 left, unicodable6 joined, ChanServ sets mode: +v unicodable6 19:10 cdg joined 19:15 cdg left 19:16 lizmat left 19:17 xcm left 19:18 Perl6 joined, Perl6 left 19:21 cdg joined 19:22 xcm joined 19:29 comborico1611 joined 19:36 xcm is now known as Guest47196, Guest47196 left 19:37 xcm joined 19:38 greppable6 left 19:39 greppable6 joined 19:41 AlexDaniel left 19:46 Perl6 joined
Perl6 Is it possible to have a hash with the value being an integer, and then add to the value? 19:46
19:47 comborico1611_ joined 19:48 lizmat joined
Perl6 Never mind, I found a better way to do this thing 19:49
sena_kun m: my %a; %a<foo> = 5; %a<foo>++; say %a<foo>;
camelia 6
sena_kun dunno why not.
or I misunderstood something.
19:54 comborico1611_ left 20:06 Guest3313 is now known as ponbiki, xcm left, pilne joined 20:07 xcm joined, Perl6 left 20:15 domidumont left 20:17 raendin joined 20:26 raendin left 20:28 itaylor57 left 20:33 AlexDaniel joined 20:34 eliasr left, zakharyas joined 20:38 neoncontrails joined, neoncontrails left 20:39 neoncontrails joined
neoncontrails Greetings #perl6. I'm following a reference from an academic paper to a 'tokenizer.perl' script in a repository called mosesdecoder. Unfortunately I'm not proficient with Perl and there doesn't appear to be a man page/other documentation to suggest how to use it. Does the repository itself give you experienced Perl programmers a hint w/r/t demo usage? github.com/moses-smt/mosesdecoder/tree/master 20:44
/scripts/tokenizer
* github.com/moses-smt/mosesdecoder/.../tokenizer (since that got chopped up :)
lizmat neoncontrails: this looks like Perl 5 code to me. This channel is about supporting Perl 6 20:45
neoncontrails: you will probably get more / better answer on #perl-help on irc.perl.org 20:46
neoncontrails lizmat: I'll try there. Thanks for the suggestion!
mspo # avoid general madness 20:47
s/[\000-\037]//g;
s/\s+/ /g;
lizmat you're welcome
mspo lol
neoncontrails mspo: heh, the second regex I'm familiar with. (Quite useful!) What is the effect of the first? 20:49
timotimo is that all control characters perhaps?
geekosaur yes
neoncontrails Interesting. Is "\\\d{3}" a general Perl pattern for selecting specific ascii characters/ranges? 20:51
I haven't seen that syntax in Python
geekosaur that's overly escaped \d{3} = 3 x \d
(or matching backslash followed by 3 digits)
...also that's perl 5 syntax, it's a bit different in p6 20:52
neoncontrails geekosaur: gotcha. I could see that being useful for ranges
20:55 neoncontrails left 20:58 evalable6 left, evalable6 joined
damnlie Hi guys, anyone has any documentation how to do dba stuff with perl6? I like to make my life difficult :) 21:04
21:09 p6lert left, p6lert joined 21:15 zakharyas left
buggable New CPAN upload: Sparky-Plugin-Notify-Telegram-0.0.1.tar.gz by SPIGELL cpan.metacpan.org/authors/id/S/SP/...0.1.tar.gz 21:18
mspo damnlie: can you be more specific?
timotimo database administration tasks? i'd assume you'd be doing most of that directly in your db's shell, but i've never done any dba-ing 21:19
21:21 lizmat left 21:25 xcm left 21:26 xcm joined
damnlie Yup. Well we have like 2-300 line mysql what we would 21:28
Like to replace
timotimo depends entirely on what it does, of course. could be a good decision to write something with DBIish 21:29
like, you'll get nice commandline argument parsing with "multi sub MAIN" 21:30
parallelism is a thing you get with perl6 that doesn't work terribly well with other languages in the "scripting" niche
21:30 Aaronepower joined
timotimo if i knew what your script has to do and how you interact with it, i could perhaps make better estimations 21:32
21:34 leont_ left
mspo parallelize massive IN(..) statements? :) 21:45
timotimo well, that kind of thing is for the database server to do, perl6 can hardly do that from the outside 21:48
21:56 itaylor57 joined 22:16 natrys left, leont_ joined 22:19 geospeck left 22:24 comborico1611_ joined 22:25 comborico1611_ left 22:27 kerframil joined 22:37 stmuk joined 22:38 stmuk_ left 22:52 dct joined 22:54 leont_ left 22:58 dct left, dct joined
comborico1611 I've been fighting mysql ALL day. 22:59
gfldex Who won?
comborico1611 Haha. It did.
gfldex :) 23:00
comborico1611 I like your humor.
gfldex you may give prostgres a shot. Much nicer docs.
comborico1611 Apparently, they replaced mysql_connect with mysqli_connect
I need books to text l teach me, and i just ordered another one on mysql. 23:01
I'll keep it in mind, though.
Thanks! 23:02
gfldex if you use postgres you can use perl5 as stored procederes (not sure if that is an advantage tho)
comborico1611 I'm trying to build-up my web developer skills as a new job. SQL is too popular to ignore 23:04
gfldex SQL is a nice language indeed
you just need to think like a book keeper :)
comborico1611 Heh 23:09
MasterDuke i had a minor revelation when i read an article years ago (which i wish i'd kept) about the relationship between SQL and set theory 23:10
i'm not particularly great at math
but i'd had some set theory in a required discrete math class
comborico1611 I miss the Douy Decimal System. Well, really the card catalogue.
MasterDuke and it seemed almost entirely useless for anything practical
comborico1611 The Card Catalogue was a beautiful piece of furniture. 23:11
MasterDuke but that article really helped me understand SQL
comborico1611 But Set Theory is a prerequisite. So not very helpful for me m 23:12
M=.
You remember the card catalogue? 23:13
MasterDuke i wouldn't say it's required. but it's helpful to learn the two subjects (set theory and sql) in conjunction
like calculus and physics. i was first forced to learn them completely isolated
but then later on found out how related they are, and it made uderstanding each one easier 23:14
comborico1611 Hmm.
I still haven't learned calculus.
23:16 rindolf left
MasterDuke i'm not sure i have a very concrete point/suggestion to make. but at least for me, a non-mathematician who didn't get great grades in math after highschool, a little bit of set theory helped with understanding sql (and vice versa, though that direction wasn't all that practically useful for me) 23:17
23:18 xcm left 23:19 xcm joined 23:21 TreyHarris left 23:36 leont_ joined 23:38 cdg left 23:43 setty1 left 23:44 quotable6 left 23:45 quotable6 joined, ChanServ sets mode: +v quotable6 23:47 TreyHarris joined