»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
00:00 lizmat joined
SmokeMachine .tell jnthn you were right! it didn't work when I changed `=` by `:=` on the package, but it did when I changed on the creation of the class! :) 00:01
00:01 p6bannerbot sets mode: +v lizmat
SmokeMachine :( 00:01
00:01 eponym is now known as epony
MasterDuke dpk: looks like yoleaux is missing #perl6, et al. 00:02
00:02 nativecallable6 joined, bisectable6 joined, benchable6 joined 00:03 p6bannerbot sets mode: +v nativecallable6, p6bannerbot sets mode: +v bisectable6, p6bannerbot sets mode: +v benchable6 00:05 lizmat left 00:10 [particle]1 joined, p6bannerbot sets mode: +v [particle]1, [particle] left 00:22 liste23 joined 00:23 p6bannerbot sets mode: +v liste23 00:24 liste23 left 00:42 Sharker joined, p6bannerbot sets mode: +v Sharker 00:43 Sharker left 00:58 astj joined 00:59 p6bannerbot sets mode: +v astj 01:04 yoleaux joined, ChanServ sets mode: +v yoleaux, p6bannerbot sets mode: +v yoleaux 01:14 lichtkind left 01:25 kerframil joined, p6bannerbot sets mode: +v kerframil, w_richard_w joined 01:26 p6bannerbot sets mode: +v w_richard_w 01:28 astj left 01:29 astj joined, p6bannerbot sets mode: +v astj 01:34 ChoHag left 01:37 ChoHag joined 01:38 p6bannerbot sets mode: +v ChoHag 01:42 benjikun joined 01:43 p6bannerbot sets mode: +v benjikun 01:45 wmoxam joined, p6bannerbot sets mode: +v wmoxam
tyil benjikun: I'll pm it to you 02:34
yoleaux 8 Aug 2018 22:08Z <benjikun> tyil: Yeah, I'll add you as a collaborator. What's your email?
02:35 lookatme_q left
tyil sent~ 02:35
benjikun tyil: sent 02:38
tyil ty
benjikun np 02:40
02:42 mingdao left, mingdao joined, p6bannerbot sets mode: +v mingdao 03:05 lookatme_q joined, p6bannerbot sets mode: +v lookatme_q 03:20 lindylex joined 03:21 p6bannerbot sets mode: +v lindylex 03:22 rkta joined, p6bannerbot sets mode: +v rkta 03:23 rkta left 03:29 lindylex left 03:31 w_richard_w left, w_richard_w joined 03:32 p6bannerbot sets mode: +v w_richard_w 03:44 Remco29 joined 03:45 if`m joined, p6bannerbot sets mode: +v Remco29, Remco29 left, p6bannerbot sets mode: +v if`m, if`m left 03:46 submain joined 03:47 p6bannerbot sets mode: +v submain 03:48 submain left 04:02 bolt joined 04:03 bolt is now known as Guest69400, p6bannerbot sets mode: +v Guest69400
Geth docker: jstuder-gh++ created pull request #18:
Update security of Dockerfile
04:08
04:08 Guest69400 left 04:15 molaf joined 04:16 p6bannerbot sets mode: +v molaf 04:26 Napsterbater joined 04:27 p6bannerbot sets mode: +v Napsterbater, Napsterbater left 04:40 rindolf joined 04:41 p6bannerbot sets mode: +v rindolf 04:45 skids joined 04:46 skids left 04:47 sith__ joined, p6bannerbot sets mode: +v sith__ 04:54 curan joined, p6bannerbot sets mode: +v curan 05:09 |Sno| left
xinming in DBIish, How do we mix txn code and perl code? 05:11
Is it ok to do something like, $dbi.do('BEGIN'); ... perl code here... then, $dbi.do('END') ? 05:12
benjikun You could use `$dbi.do(qq:to/END/); ... stuff { perl code } stuff ... END` 05:16
Is that okay xinming? 05:18
If it is user inputed, make sure you sanitize it btw 05:19
You should really be using `$dbi.prepare( ... );` and putting `?` for the string values you want passed in 05:21
To avoid injection
05:31 sauvin joined, p6bannerbot sets mode: +v sauvin 05:43 diakopter left 05:45 yoleaux left, yoleaux joined, ChanServ sets mode: +v yoleaux 05:46 p6bannerbot sets mode: +v yoleaux 05:48 jmerelo joined, p6bannerbot sets mode: +v jmerelo
jmerelo releasable6: status 05:49
releasable6 jmerelo, Next release in ≈9 days and ≈13 hours. 3 blockers. 81 out of 369 commits logged (⚠ 9 warnings)
jmerelo, Details: gist.github.com/39c6a43f5574f61ace...6b9bc80f9b
06:11 Minkar joined 06:12 p6bannerbot sets mode: +v Minkar, Minkar left 06:18 robertle joined 06:19 p6bannerbot sets mode: +v robertle, phogg joined, phogg left, phogg joined, p6bannerbot sets mode: +v phogg 06:20 p6bannerbot sets mode: +v phogg 06:21 sith__ left 06:26 Kaypie joined, Kaiepi left, dev joined, p6bannerbot sets mode: +v dev, FROGGS__ joined 06:27 p6bannerbot sets mode: +v Kaypie, p6bannerbot sets mode: +v FROGGS__
dev Hello 06:27
Can anyone help me get started with perl?
benjikun Perl6, right? 06:28
It's separate from Perl5
lookatme_q dev, there are many tutorial of Perl 6, if you mean Perl 6 perl6.org/resources/ :) 06:29
dev Sure! Many thanks! I'll check 'em out.
06:29 FROGGS_ left
benjikun Feel free to ask specific help questions here at any time :) 06:30
dev Is there any slack community as well for this?
benjikun Not officially
dev And is this the official community? 06:31
benjikun Yep
dev And can you recommend me any application to access this via a mobile device? 06:32
06:34 AlexDaniel joined
benjikun Android or iOS 06:34
06:35 p6bannerbot sets mode: +v AlexDaniel
AlexDaniel` dev: sort of, you can talk here through matrix: riot.im/app/#/room/#freenode_#perl6:matrix.org 06:35
benjikun there is that rice IRC client thing
but most mobile IRC clients suck
dev I have an android 06:36
benjikun i.e. drains battery like crazy
try revolution IRC, it's on F-Droid
dev Okay 06:37
AlexDaniel riot (if installed through google play) shouldn't drain battery
but I suppose it's different when installed from f-droid
benjikun no it should be the same .apk 06:38
F-Droid just has FOSS apps
AlexDaniel eh, not exactly 06:39
riot which comes from google play should have GCM support
benjikun most mobile stuff is impossible to go FOSS 06:42
I try to avoid it
I'm using android kitkat lol 06:43
06:47 spycrab0 left 06:49 lizmat joined, p6bannerbot sets mode: +v lizmat 06:52 aborazmeh joined, aborazmeh left, aborazmeh joined, p6bannerbot sets mode: +v aborazmeh
buggable New CPAN upload: HTML-Canvas-0.0.4.tar.gz by WARRINGD modules.perl6.org/dist/HTML::Canvas...n:WARRINGD 07:01
07:04 dakkar joined, dev left, p6bannerbot sets mode: +v dakkar 07:21 Kaypie left 07:26 Sgeo_ joined 07:27 p6bannerbot sets mode: +v Sgeo_, Sgeo left 07:28 dev joined, p6bannerbot sets mode: +v dev
Geth doc: 655a103e6e | (JJ Merelo)++ | 2 files
Describes new options of encode, refs #1233
07:29
doc: 9ec88b2448 | (JJ Merelo)++ | doc/Type/Str.pod6
Documents `encoding`

And all new options included in March, including `replacement`. Closes #1233
synopsebot Link: doc.perl6.org/type/Str
07:33 Kaiepi joined, scimon joined 07:34 p6bannerbot sets mode: +v Kaiepi, p6bannerbot sets mode: +v scimon 07:38 FROGGS__ left 07:43 FROGGS joined, p6bannerbot sets mode: +v FROGGS 07:44 aborazmeh left 07:51 Ven` joined 07:52 p6bannerbot sets mode: +v Ven` 07:53 CIAvash[m] joined, p6bannerbot sets mode: +v CIAvash[m] 08:01 zakharyas joined, robertle left 08:02 p6bannerbot sets mode: +v zakharyas 08:03 spycrab0 joined, p6bannerbot sets mode: +v spycrab0, DarthGandalf joined, p6bannerbot sets mode: +v DarthGandalf 08:07 Cujincode joined, p6bannerbot sets mode: +v Cujincode, w_richard_w left
Cujincode Can standalone perl6 executables be done? I understand this was possible with Parrot but can't find documentation for current Rakudo. Thanks 08:09
jmerelo Cujincode: do you mean compile to an executable a Perl 6 script? 08:10
08:10 Kaiepi left
Cujincode Yes, executable of a script 08:11
08:11 Kaiepi joined
lizmat Cujincode: atm, no. main reason is that nobody has wanted to put the effort in to make that work 08:11
moritz standalone executables from p6 were never possible with parrot
08:11 p6bannerbot sets mode: +v Kaiepi, Sousapro0 joined
jmerelo Cujincode: there's also this answer in SO: stackoverflow.com/a/34664816/891440 Boils down to what lizmat has said. 08:12
08:12 p6bannerbot sets mode: +v Sousapro0
Cujincode It is mentioned in an old FAQ. Thanks for your replies, much appreciated 08:12
08:12 Kaiepi left, Sousapro0 left 08:13 Kaiepi joined
masak moritz: there was a term "fakecutable" that was used during the Parrot years. I forget the details -- was it just something that called parrot? 08:13
jmerelo Cujincode: I think what it mentioned was compilation to bytecode, _not_ to native
08:13 p6bannerbot sets mode: +v Kaiepi
Cujincode That's correct, so may still have needed Parrot library to work 08:14
jmerelo Cujincode: although the FAQ mentions "Rakudo, a Perl 6 compiler based on Parrot, allows compilation to bytecode, and a small wrapper exists that can pack up a bytecode file and parrot into a single executable."
Cujincode: Parrot is not really a library, but an obsolete version of the virtual machine that interpreted Perl 6. It's no longer developed.
masak oh, so Parrot got bundled into the executable.
jmerelo Cujincode: As a matter of fact, I don't know why that's still in the FAQ, although it's clearly an archive. 08:15
masak jmerelo: Parrot is not "an obsolete version of *the* virtual machine". :)
jmerelo masak: OK. "The former Perl 6 virtual machine"?
masak or *a* former one. Niecza is another.
moritz masak: fakecutables existed in parrot, and it bundled parrot, and worked for NQP, but never for rakudo, iirc 08:16
masak moritz: :(
jmerelo masak: Right. I meant "A deprecated virtual machine". Words failed me. Too little coffee.
masak jmerelo: "deprecated" is also the wrong term ;)
jmerelo masak: Oh?
masak "deprecated" means "we're going to remove this API feature, but we haven't yet, so try not to depend on it"
Parrot is no API feature, and no-one has deprecated it. 08:17
it just doesn't get used anymore.
jmerelo masak: and it's already removed... So "former" will do. Thanks!
moritz parrot is just dead. Abandoned. 08:18
masak Parrot went through phases of targeting Perl 6 and targeting "everything" at the cost of targeting Perl 6. in the end it ended up serving no-one well.
like lizmat has phrased it, an Edsel.
jmerelo lizmat++
Cujincode And so seems my hope of doing Perl6 executables, for now 08:19
masak Parrot also had interesting technological challenges, stemming from some unusual design choices.
for example, it was CPS-based, so in effect everything was on the heap.
jmerelo Cujincode: I mean, we have today Docker containers. You can use them wherever Docker is available. Which is all over the place. Docker containers are the new executables.
benjikun I've heard a lot of people wanting building to executables supported constantly, including myself 08:20
Cujincode Ok, thank you. I'll look into Docker
benjikun It seems like a big leap, but it sure would be nice 08:21
masak it feels doable (but probably not a priority) to bundle together moarvm and some bytecode into a fakecutable 08:22
benjikun When will that become a priority?
moritz when somebody makes it their priority
benjikun Yeah, surely :P 08:23
masak yeah, go for it!
I love it when people don't just demand features, but actually sit down and help implement them
Cujincode Having brought this up I'll see if I can get some wheels in motion 08:24
08:24 Kaypie joined, Kaiepi left
benjikun I don't think I know enough about MoarVM to do it myself 08:24
08:25 p6bannerbot sets mode: +v Kaypie
benjikun I'm not demanding them or anything, if that's what it seemed like masak. Sorry if that's the case 08:25
didn't mean to seem pushy
masak benjikun: "demanding" might have been overstating it -- sorry :)
benjikun: but yeah, "When will that become a priority?" is a curious stance to take with an open-source project 08:26
lookatme_q If nqp and moarvm can running not depend the path, it would be nice
benjikun masak: Yeah, I don't really know why I said that
masak :) 08:27
Cujincode It is a reasonable question about a desired feature 08:28
benjikun aren't modules installed in a way to make outputting executables possible 08:29
I seem to have remember hearing that the last time this discussion popped up 08:30
maybe how ~/.perl6/precomp/ lays the stuff out, idk
I'm certainly not an expert in the overall scheme of internals
lookatme_q Can the Perl 6 using the precomp code without the source file ? 08:31
the byte code
lizmat lookatme_q: yes, technically there is no reason why it shouldn't be able to do that (afaik) 08:32
benjikun hmm
lizmat in fact, the design of the CompUnit::Repository interface is such that it should be possible for someone to create a CU:R module 08:33
that could be used in an all pre-compiled only environment, such as maybe a Raspberry Pi or other such small computers
08:34 molaf left
lookatme_q oh, that could be nice 08:34
08:34 Kaypie left
benjikun yeah that sounds pretty sweet 08:34
08:35 Kaypie joined, p6bannerbot sets mode: +v Kaypie 08:36 dakkar left, dakkar joined
lookatme_q so, zef is depend on the interface of Rakudo or Perl 6 ? 08:36
08:37 p6bannerbot sets mode: +v dakkar
lizmat rain! 08:39
whee!
lookatme_q rain ? 08:40
benjikun it has rained a ton here lately
08:41 Cujincode left
Kaypie i wish it would rain here 08:44
08:44 Kaypie is now known as Kaiepi
Kaiepi too humid out 08:44
benjikun It's also very humid out here 08:45
very humid and very hot
I don't like that 08:46
Kaiepi it doesn't help when the ac barely functions
benjikun Kaiepi: ouch 08:48
my room lags behind the AC in this house, but it isn't broken
jmerelo benjikun: there's a lot that needs to be documented in the CU set of classes. 08:50
benjikun Yeah, I've noticed
08:51 FROGGS left
jmerelo benjikun: I keep a dozen browser tabs open with documentation to do it, but it's not simple. 08:51
lizmat it was the first rain in ~ 6 weeks after having had 6 weeks of > 25, and some days of > 35. This is *very* unusual for NL
08:51 FROGGS joined
jmerelo lizmat: congrats! 08:51
08:52 p6bannerbot sets mode: +v FROGGS
benjikun it seems there are a lot of places hotter than normal this year 08:52
jmerelo benjikun: that's global warming for you... 08:53
lookatme_q It's result of global warming
08:53 FROGGS left, FROGGS joined
lookatme_q you will feel hotter in summer, and colder in winter 08:54
benjikun We're also at the peak of the 100yr cycle thing
08:54 p6bannerbot sets mode: +v FROGGS
benjikun IIRC 08:54
08:54 kerframil left
jmerelo benjikun: what cycle? 08:54
benjikun but yeah, climate change isn't helping lmao
www.ncdc.noaa.gov/sites/default/fi...ars-v2.jpg 08:56
I think there is some natural oscillation pattern that is over large periods 08:57
I read some stuff about it
I don't really know, don't quote me on it 08:58
08:59 FROGGS left 09:00 FROGGS joined, p6bannerbot sets mode: +v FROGGS
Kaiepi sorry if i'm interrupting but are there any c wizards on that can figure out why this is sending ICMP messages with 20 bytes of 0s as data? hastebin.com/vibizahugi.cpp 09:01
masak Kaiepi: not that people here aren't generally helpful -- but aren't you better off asking in a C++ channel? :) 09:02
for simple reasons of encountering someone who can help you, I mean
Kaiepi i figured it'd be worth a shot since it was related to nativecall, but i'll ask them 09:03
09:05 FROGGS left, FROGGS joined 09:06 p6bannerbot sets mode: +v FROGGS
Kaiepi related meaning it'll eventually be used with nativecall, not that nativecall's causing the problem 09:07
09:11 FROGGS left, FROGGS joined 09:12 p6bannerbot sets mode: +v FROGGS 09:14 FROGGS left 09:16 vike left 09:22 sena_kun joined 09:23 p6bannerbot sets mode: +v sena_kun 09:24 vike joined 09:25 p6bannerbot sets mode: +v vike, Madbrad20017 joined, p6bannerbot sets mode: +v Madbrad20017 09:30 Madbrad20017 left 09:31 HaraldJoerg joined, p6bannerbot sets mode: +v HaraldJoerg
sena_kun m: my $value = <1 2 3>.Seq; say $value.Array; say $value.&{'Array'}; 09:42
camelia [1 2 3]
Array
09:43
geekosaur Kaiepi, it's not necessarily so much C as kernel APIs; some platforms include header lengths for you because of how the packet pipeline inside the kernel works.
in particular I would not bet on raw-packet code borrowed from Linux to work exactly the same on netbsd / freebsd or vice versa
sena_kun how do I coerce type here(without conditions like "if $foo eq 'Array'")? 09:44
09:45 robertle joined
sena_kun hmm, this calling doesn't really work, so it is not a particular method. 09:45
benjikun sena_kun: You can use smart matching ~~
09:46 p6bannerbot sets mode: +v robertle
sena_kun benjikun, what do you mean? 09:46
benjikun m: my $s = 'hello'; say so $s ~~ Str;
camelia True
benjikun another way is to use .WHAT, but it's slower
and yet another way is to use .isa, but it's even slower
sena_kun no, I know how to check type, I want coercion from type X to a small number of other types. 09:47
I don't know which type will be used at runtime from my set, so I need to decide dynamically.
benjikun ohh
sena_kun the one way is to manually "If $type eq 'Array' $value .= Array else if $type eq 'Foo'` and so on, but I'd like to do it in one call. :) 09:48
Kaiepi hm
sena_kun m: my $value = <1 2 3>.Seq; say $value.&{'sum'};
camelia sum
sena_kun so it is some issue with my way of calling here. 09:49
Kaiepi i disabled the kernel's default way of handling ip headers so i could deal with it manually, but i guess that doesn't work
09:56 pmurias joined, pmurias left
benjikun sena_kun 09:56
m: Seq.^find_method: 'sum' andthen .(<1 2 3>) 09:57
camelia ( no output )
benjikun m: say Seq.^find_method: 'sum' andthen .(<1 2 3>)
camelia Method+{is-nodal}.new
No such method 'CALL-ME' for invocant of type 'Bool'
in block <unit> at <tmp> line 1
sena_kun I wonder if MOP is the only way here.
benjikun m: Seq.^find_method: 'sum' andthen .(<1 2 3>).say
camelia 6
sena_kun I mean, it is, but I believe I saw some shorter form.
Or I am seeing things.
benjikun Yeah, I'm not sure 09:58
I think there is too tbh lol
sena_kun thanks for advices anyway. :]
benjikun :)
oh wait 10:00
m: say 'hello'.'comb'()
camelia (h e l l o)
benjikun there we go sena_kun
sena_kun d'oh
benjikun++ 10:01
benjikun :)
10:01 pmurias joined
sena_kun returns to emacs 10:01
10:01 p6bannerbot sets mode: +v pmurias 10:12 spycrab0 left 10:14 Dan_au8 joined 10:15 p6bannerbot sets mode: +v Dan_au8 10:16 Dan_au8 left 10:21 Zoffix joined, p6bannerbot sets mode: +v Zoffix
Zoffix FWIW, the .&{...} syntax is calling that block, which gets the invocant in $_ 10:21
m: my $value := <1 2 3>.Seq; dd $value.&{.sum};
camelia 6
Zoffix lookatme_q: currently, zef is dependent on interface of Perl 6, though it's possible some of the CompUnit bits are missing from the language still 10:24
huggable: compiled 10:27
huggable Zoffix, Is it possible to compile a Perl 6 program to a standalone executable? Not yet, but you can help make it happen: github.com/MoarVM/MoarVM/issues/875
Geth doc: 32ae8ea936 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/faq.pod6
Link to containers article in the sigils/arrays question
10:33
synopsebot Link: doc.perl6.org/language/faq
doc: 18da350a54 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/faq.pod6
Fix Star release info link

We ain't got rakudo.org/about no more
10:35
synopsebot Link: doc.perl6.org/language/faq
doc: 426579ee53 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/faq.pod6
Use moar HTTPS
10:37
doc/master: 4 commits pushed by (JJ Merelo)++ 10:38
doc: b869e4c57b | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/faq.pod6
Add "Can I compile my script to a standalone executable?" to FAQ
10:43
synopsebot Link: doc.perl6.org/language/faq
10:47 Zoffix left, molaf joined 10:48 p6bannerbot sets mode: +v molaf 10:51 Guest75005 joined, Guest75005 left 11:03 wget joined 11:04 p6bannerbot sets mode: +v wget, zakharyas left 11:09 wget left 11:22 natrys joined, molaf left 11:23 spycrab0 joined, p6bannerbot sets mode: +v spycrab0, p6bannerbot sets mode: +v natrys 11:27 statisfiable6 joined, p6bannerbot sets mode: +v statisfiable6 11:29 Ven` left, nightfrog left 11:30 nightfrog joined, p6bannerbot sets mode: +v nightfrog 11:47 GeekDude22 joined, p6bannerbot sets mode: +v GeekDude22 11:49 astj left, astj joined 11:50 p6bannerbot sets mode: +v astj 11:51 AlexDaniel left 11:52 GeekDude22 left, astj left, astj joined 11:53 p6bannerbot sets mode: +v astj 12:04 ihavoc joined 12:05 p6bannerbot sets mode: +v ihavoc 12:06 ihavoc left, Ven` joined, p6bannerbot sets mode: +v Ven` 12:23 robertle left, Swant17 joined, Swant17 left 12:25 c1nil left, c1nil joined 12:26 c1nil left
Altreus hmm I asked a while ago about circular dependencies when it came to type constraints and the consensus was not to bother with type constraints, or to refactor to use roles all the time 12:27
but now I discover, I have two classes that are related, and each one will at some point need to call new on the other
12:27 curan left
Altreus One could fetch a Message object and from it construct its related Channel; or one could have a Channel object and from it construct its related Messages 12:27
jnthn It's only a problem if they are spread over different files
jmerelo Altreus: you can also use add_trustee docs.perl6.org/routine/add_trustee 12:28
jnthn And Perl 6 ain't Java. You aren't limited to one class per file.
Altreus they are, just because it would be a big file
12:28 curan joined, p6bannerbot sets mode: +v curan
Altreus and without finishing the entire project I don't know whether this would end up with all of them being in the same file 12:28
jmerelo: is this like C++'s friend classes? 12:29
12:29 jmerelo left
Altreus welp 12:29
a C++/Java trick is to have a file that uses all the other modules, and get that included at the start of the process, so everything is always visible 12:30
all the answers seem messy :)
I do need to change my P5-centric expectations; I just need to make sure I change them to the right thing 12:31
12:31 scimon left
Altreus What I *could* do is make them Roles after all - this would keep them in separate files, which is good because big files get overwhelming 12:32
12:32 pmurias left
Altreus And then have a single file with all the actual classes in it so they can see each other 12:32
12:33 curan left 12:34 Sharker joined 12:35 p6bannerbot sets mode: +v Sharker, Sharker left, pmurias joined 12:36 p6bannerbot sets mode: +v pmurias 12:38 zakharyas joined, nikow17 joined 12:39 p6bannerbot sets mode: +v zakharyas, p6bannerbot sets mode: +v nikow17 12:41 curan joined, p6bannerbot sets mode: +v curan 12:45 nikow17 left, Kaiepi left, Kaypie joined 12:46 p6bannerbot sets mode: +v Kaypie 12:53 diakopter joined, p6bannerbot sets mode: +v diakopter
Xliff Altreus: Can't you use predeclaration? 12:56
Altreus jnsp
Xliff Alreaus: class A { ... }; class B { has A $.a; ... }
Altreus I think that worked but it became cumbersome
I'm going to try the roles thing first
Xliff OK
Altreus eventually :P 12:57
personal projects don't get much time when you're at work :(
Xliff Yes, but I am my own $job, so personal projects are my thing. :) 12:58
13:13 molaf joined, natrys left 13:14 p6bannerbot sets mode: +v molaf
Altreus yeah ... I'm too cowardly to try that 13:15
;P
13:20 Drigo joined, p6bannerbot sets mode: +v Drigo 13:27 MilkmanDan left 13:29 MilkmanDan joined, p6bannerbot sets mode: +v MilkmanDan 13:42 mahafyi joined 13:43 p6bannerbot sets mode: +v mahafyi 13:50 Kaypie left, MilkmanDan left 13:52 MilkmanDan joined, p6bannerbot sets mode: +v MilkmanDan, Kaiepi joined 13:53 p6bannerbot sets mode: +v Kaiepi
Xliff If I have the following CStruct: 13:55
struct GList {
gpointer data;
GList *next;
GList *prev;
};
What's the best way to convert that to NativeCall?
I have this:
github.com/Xliff/p6-GtkPlus/blob/m...es.pm6#L28
But I am beginning to wonder if that is causing the problems I am running into. Namely, that .next works properly, but .prev doesn't work AT ALL. 13:56
timotimo that looks correct, but only if gpointer is typedef'd to "something*" 13:57
typedef void* gpointer; 13:58
that's fair
Kaiepi would Pointer[::?CLASS] work?
13:59 [particle]1 left
Xliff timotimo: Take a look at the output: 14:00
pastebin.com/mHRFh9GZ
14:00 Drigo left
Xliff Lines starting with C[...] 14:00
It's a 3 element list returned by gtk_container_get_children. The number of elements are correct, the next pointers are correct.
However I don't know why the P values are unrelated to the C or the N ones. 14:01
timotimo could just be two objects with the same memory value inside them
Xliff How can I check that? 14:02
timotimo m: use NativeCall; my CArray[int8] $a .= new(1, 2, 3); say nativecast(Pointer, $a).perl; say nativecast(Pointer, $a)
camelia NativeCall::Types::Pointer.new(103163152)
NativeCall::Types::Pointer<0x6262510>
timotimo m: use NativeCall; my CArray[int8] $a .= new(1, 2, 3); say nativecast(Pointer, $a).perl; say nativecast(Pointer, $a).perl
camelia NativeCall::Types::Pointer.new(77110816)
NativeCall::Types::Pointer.new(77110816)
timotimo m: use NativeCall; my CArray[int8] $a .= new(1, 2, 3); say nativecast(Pointer, $a); say nativecast(Pointer, $a)
camelia NativeCall::Types::Pointer<0x3d3abd0>
NativeCall::Types::Pointer<0x3d3abd0>
14:02 AlexDaniel joined 14:03 p6bannerbot sets mode: +v AlexDaniel
timotimo m: say 0x6262510 14:03
camelia 103163152
timotimo hm, no, they both display the boxed target
14:04 AlexDaniel left, AlexDaniel joined, card.freenode.net sets mode: +v AlexDaniel, p6bannerbot sets mode: +v AlexDaniel
Xliff timotimo: Yeah. That's what I was worried about. 14:04
So why are the next values equivalent and the prev values inside another container? 14:05
timotimo the list was created by a gtk function, yes? 14:06
Xliff Yes
14:06 timotimo left
Xliff m: use NativeCall; my CArray[int8] $a .= new(1, 2, 3); my $b = $a; say nativecast(Pointer, $a); say nativecast(Pointer, $b) 14:06
14:06 AlexDaniel left
camelia NativeCall::Types::Pointer<0x36ccf50>
NativeCall::Types::Pointer<0x36ccf50>
14:06
14:06 AlexDaniel joined, p6bannerbot sets mode: +v AlexDaniel
Xliff ^^ That indicates that pointers should use the same boxed object, doesn't it? 14:07
14:10 andrzejku joined, timo joined 14:11 timo is now known as timo2timo, p6bannerbot sets mode: +v andrzejku, andrzejku left, p6bannerbot sets mode: +v timo2timo
timo2timo i'm not sure what happened to my shellhost there 14:11
14:12 andrzejku joined
timo2timo pointers will not use the same boxed object, they'll just box the same value inside them 14:12
14:12 p6bannerbot sets mode: +v andrzejku
Xliff timo: So I have to use nqp to get the unboxed value for comparison? 14:14
14:16 ExtraCrispy joined 14:17 p6bannerbot sets mode: +v ExtraCrispy 14:21 Spaulding15 joined 14:22 Spaulding15 left
Kaiepi Net::ICMP's starting to handle pinging! i.imgur.com/DlLqsmL.png 14:23
sena_kun Nicely done! Kaiepi++ 14:25
14:26 pmurias left, Zoffix joined, p6bannerbot sets mode: +v Zoffix
Zoffix Xliff: you never use nqp, because it's not for users. 14:27
14:27 pmurias joined
Zoffix Xliff: just use numeric comparators, same as you'd do in C 14:27
m: use NativeCall; my CArray[int8] $a .= new(1, 2, 3); my $b = $a; say nativecast(Pointer, $a) == nativecast(Pointer, $b)
camelia True
14:27 p6bannerbot sets mode: +v pmurias, esh_ left 14:29 esh joined, p6bannerbot sets mode: +v esh 14:31 mar77i_ joined 14:32 p6bannerbot sets mode: +v mar77i_, mar77i_ left
Geth doc: MorayJ++ created pull request #2247:
Makes some http links across 'Language' documents https
14:33
14:35 Kaiepi left, Kaiepi joined 14:36 p6bannerbot sets mode: +v Kaiepi
Zoffix And numeric view gives you the value 14:37
m: use NativeCall; my CArray[int8] $a .= new(1, 2, 3); my $b = $a; say nativecast(Pointer, $a).Int; say nativecast(Pointer, $b).Int
camelia 61396592
61396592
14:40 Zoffix left 14:55 araraloren joined, p6bannerbot sets mode: +v araraloren 15:08 curan left, jmerelo joined 15:09 p6bannerbot sets mode: +v jmerelo
Geth doc: 2194ea84cd | Moray++ | 12 files
Makes some http links across 'Language' documents https

For format L<name|url> in 'Language' docs, changes http to https where appropriate.
15:12
doc: 767420164f | MorayJ++ (committed using GitHub Web editor) | 12 files
Merge pull request #2247 from MorayJ/secure-links-lang

Makes some http links across 'Language' documents https
xinming benjikun: ping
sorry to repeat my question, I got sleep at the computer after I asked the question. Is it ok to do something like, $dbi.do('BEGIN'); ... perl code here... then, $dbi.do('END') ? 15:13
15:16 ponbiki_ is now known as ponbiki 15:18 araraloren left 15:19 araraloren joined
moritz xinming: it's called 'COMMIT' or 'ROLLBACK', not 'END', but in principle, it's fine 15:19
15:20 p6bannerbot sets mode: +v araraloren
moritz or even something like sub run-in-transaction($dbi, &code) { ENTER $dbi.do('BEGIN'); KEEP $dbi.do('COMMIT'); UNDO $dbi.do('ROLLBACK'); code($dbi) }; 15:21
xinming moritz: Thanks for the hints. That's what I'm going to do. :-) 15:24
15:29 [particle] joined 15:30 p6bannerbot sets mode: +v [particle] 15:37 timo joined, p6bannerbot sets mode: +v timo, timo is now known as timotimo
timotimo .u smile 15:37
yoleaux U+2323 SMILE [So] (⌣)
timotimo (testing if my utf8 exists or not) 15:38
well, üöäßẞ work
15:41 [particle] left, lizmat left 15:45 dakkar left 15:51 naos11 joined 15:52 p6bannerbot sets mode: +v naos11, naos11 left 15:54 molaf left 15:58 zakharyas left, [particle] joined 15:59 p6bannerbot sets mode: +v [particle] 16:00 drot0 joined 16:01 p6bannerbot sets mode: +v drot0, molaf joined, p6bannerbot sets mode: +v molaf, drot0 left 16:07 Zoffix joined, p6bannerbot sets mode: +v Zoffix
Zoffix buggable: toast 16:11
buggable Zoffix, Between 2018.06 and 2018.06: 0 (0.00%) modules got burnt; 0 (0.00%) got unsucced; 311 (28.17%) out of 1104 modules appear unusable. See toast.perl6.party/ for details.
jmerelo Zoffix: that's the post-bitrot report?
Zoffix Hm, the old toast says 311 are unusable... Running toast right now and first run shows 306 unusable
jmerelo: pre
jmerelo Zoffix: Only 5 less... 16:12
Zoffix OTOH more, the second run got a whole ton of passes, so it's just floppers
jmerelo Zoffix: I think one of the problem is basically that it's impossible so far to include dependencies... Those are still going to fail, right?
AlexDaniel also, many pull requests were not merged
(yet! I hope…) 16:13
16:13 HaraldJoerg1 joined 16:14 HaraldJoerg left, p6bannerbot sets mode: +v HaraldJoerg1
jmerelo AlexDaniel: I can tell you 2 or three that I'm positive they are not going to be merged. 16:16
16:17 [particle]1 joined
AlexDaniel you never know! 16:17
16:17 p6bannerbot sets mode: +v [particle]1
Zoffix Why were they made then in the first place? 16:17
16:18 araraloren left, [particle] left 16:19 HaraldJoerg1 left
jmerelo Zoffix: well, I guess you never know as AlexDaniel said... 16:20
sena_kun um, at least 6 of my PRs were merged and it made broken modules installable.
jmerelo Zoffix: and, as Yogi Berra said, it's difficult to make predictions, over all if they are about the future merging of pull requests. 16:21
16:21 [particle]1 left, aindilis left
sena_kun plus last time HTTP::UserAgent was broken and it caused... A lot of modules to be broken too. If it works now and we have approximately same number of fallen soldiers... It is odd. 16:21
16:22 aindilis joined, p6bannerbot sets mode: +v aindilis, aindilis left
timotimo sena_kun: maybe some of the modules were cpan-"hosted" and need a new release to truly be fixed? 16:23
jmerelo timotimo: probably. 16:24
sena_kun timotimo, it may be so. anyway, I'd rather look at the log when toast will be ready instead of guessing.
Zoffix "<Zoffix> OTOH more, the second run got a whole ton of passes, so it's just floppers"
timotimo fair enough
16:31 [particle] joined
Zoffix Man, google really hates me today. Killed the VM again, but at least I pretty much managed to toast on 2018.06 and now just need HEAD 16:31
16:32 p6bannerbot sets mode: +v [particle]
Zoffix "For reference, we've observed from historical data that the average preemption rate varies between 5% and 15% per seven days per project,"... bullsheeeet 16:32
"Starting VM instance "toaster" failed. Error: The zone 'projects/perl6-build/zones/us-central1-b' does not have enough resources available to fulfill the request. Try a different zone, or try again later." 16:33
guess no immediate toast results :P
16:34 timo2timo left, Ven` left
Zoffix tries a 32-core VM instead of 64 one 16:34
16:34 aindilis joined 16:35 p6bannerbot sets mode: +v aindilis
El_Che they killed your vm because it used resources as configured? 16:40
mst preemptible VMs are cheaper, at the risk of being blown away 16:45
16:45 MuffinMedic11 joined
Zoffix They killed my VM because it's a preemptible instance which is a lot cheaper 16:45
16:45 MuffinMedic11 left
Zoffix And there's no easy switch to make it non-preemptible. You have to create a new VM and clone the drive too or something 16:45
But 32-core version powered on. 16:46
16:47 noganex joined, p6bannerbot sets mode: +v noganex
Zoffix New blog post: "The 100 Day Plan: The Update on Perl 6.d Preparations": rakudo.party/post/The-100-Day-Plan...6-d-Update 16:48
El_Che notable6: weekly rakudo.party/post/The-100-Day-Plan...6-d-Update 16:51
notable6 El_Che, Noted!
jmerelo notable6: weekly ephemech.wordpress.com/2018/08/09/...-in-gecco/ 16:52
notable6 jmerelo, Noted!
El_Che jjmerelo, servidor mio :) 16:53
jmerelo El_Che: :-)
16:54 AlexDaniel left 16:55 AlexDaniel joined, p6bannerbot sets mode: +v AlexDaniel
Geth doc: MorayJ++ created pull request #2248:
Replaces more http links with https in 'Language' docs
16:58
16:58 Zoffix left
Geth doc: 3d1499164e | Moray++ | 4 files
Replaces more http links with https in 'Language' docs

Finding links that match L<url> and replacing http links with https where appropriate (ie where they work)
16:59
doc: 0c3a991f2d | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | 4 files
Merge pull request #2248 from MorayJ/more-https-links

Replaces more http links with https in 'Language' docs Thanks a lot. And also we should change the search.cpan links to metacpan... I didn't realize. Thanks again.
17:00 timo2timo joined 17:01 p6bannerbot sets mode: +v timo2timo 17:02 TreyHarris left 17:13 MikeoftheEast joined, p6bannerbot sets mode: +v MikeoftheEast 17:16 brrt joined, TreyHarris joined, p6bannerbot sets mode: +v TreyHarris 17:17 p6bannerbot sets mode: +v brrt 17:18 MikeoftheEast left 17:20 brrt left 17:22 jdv79_ is now known as jdv79 17:23 brrt joined, p6bannerbot sets mode: +v brrt 17:43 theresajayne8 joined, theShirbiny joined, theShirbiny left 17:44 p6bannerbot sets mode: +v theresajayne8, theresajayne8 left 17:49 brrt left
Geth doc: MorayJ++ created pull request #2249:
Makes http links https if applicable in 'Types' documents
18:00
18:16 n0nada0 joined, n0nada0 left 18:18 Vercas20 joined, p6bannerbot sets mode: +v Vercas20 18:19 Vercas20 left
Geth doc: f36199876a | Moray++ | 10 files
Makes http links https if applicable in 'Types' documents
18:21
doc: 87307754bd | MorayJ++ (committed using GitHub Web editor) | 10 files
Merge pull request #2249 from MorayJ/type-http-links

Makes http links https if applicable in 'Types' documents
18:42 lizmat joined, jmerelo left 18:43 p6bannerbot sets mode: +v lizmat
Geth docker/master: 5 commits pushed by (Jeremy Studer)++, (Rob Hoelz)++ 18:44
18:48 atweiden-air joined
SmokeMachine jnthn: just to let you know that the yesterday's `:=` solution just worked. thank you very much! 18:48
18:48 p6bannerbot sets mode: +v atweiden-air
atweiden-air i'm running shell("SHELL=/bin/bash unshare --fork --pid chroot /mnt stuff") 18:54
and, not sure if directly related, having issues unmounting /mnt until after the p6 process terminates
it terminates due to an error unmounting, says /mnt is busy
is there something i need to do to clean up after the shell(unshare --fork)? 18:55
i've tried mixing in sleep(7) between unmount calls 18:56
also tried looping the unmount until .exitcode == 0
nothing works
18:56 Actualeyes joined
atweiden-air *nothing works, until the perl6 process throws an error and exits 18:56
18:57 p6bannerbot sets mode: +v Actualeyes
Geth doc: MorayJ self-assigned 404 on link on docs.perl6.org/language/5to6-nutshell github.com/perl6/doc/issues/2250
MorayJ++ created pull request #2251: Replace broken link with a new link
19:24
19:24 jimby13 joined, jimby13 left
19:32 musca joined 19:33 p6bannerbot sets mode: +v musca 19:42 purrdeta9 joined, p6bannerbot sets mode: +v purrdeta9 19:43 agentzh joined, agentzh left, agentzh joined, p6bannerbot sets mode: +v agentzh, purrdeta9 left, p6bannerbot sets mode: +v agentzh
jnthn SmokeMachine: Welcome; glad it worked :) 20:01
20:10 natrys joined 20:11 p6bannerbot sets mode: +v natrys 20:14 andrzejku left 20:37 nikivi joined, phogg left 20:38 p6bannerbot sets mode: +v nikivi, nikivi left, lizmat_ joined 20:39 p6bannerbot sets mode: +v lizmat_ 20:40 lizmat left 20:41 Elronnd joined 20:42 p6bannerbot sets mode: +v Elronnd
Xliff jnthn: If you have a class that's repr('CStruct') with attributes that act like a double-linked list, will == comparisons work? 20:48
Aparently the attributes are boxed, which means just looking at the class won't work.
timotimo you can have two different objects with the same next and previous pointer 20:51
one of those would then not be "in the list"
21:00 Xenogenesis18 joined, Xenogenesis18 left 21:12 grimm665 joined, p6bannerbot sets mode: +v grimm665
xinming Is it possible to do a local mirror for all perl6 modules? 21:12
for cpan, we can use rsync to achieve that.
what about perl6?
timo2timo use perl6-all-modules 21:13
21:13 uzl joined 21:14 p6bannerbot sets mode: +v uzl 21:16 pmurias left, timotimo left 21:20 rindolf left
uzl Is it worth pointing out that you must uninstall and install 21:20
your module (if you're creating one) for the latest changes to take place? Probably somewhere in this section: docs.perl6.org/language/modules#Pr...the_module
I know this is pretty obvious (once you know it) but I learned this the hard way.
21:21 grimm665 left, rindolf joined 21:22 p6bannerbot sets mode: +v rindolf
xinming timo2timo: thnaks 21:34
21:35 Gentle joined 21:36 p6bannerbot sets mode: +v Gentle
rindolf Hi all! 21:36
I posted some benchmark results here - github.com/shlomif/perl6-benchmark...esults.txt 21:38
21:41 Gentle left 21:43 uzl left 21:46 deetwelve12 joined, deetwelve12 left, lizmat_ is now known as lizmat 21:55 entonian joined, p6bannerbot sets mode: +v entonian 21:56 entonian left 22:00 Kaiepi left 22:04 atweiden-air left 22:08 timo2timo left 22:09 sena_kun left, lizmat left 22:11 rindolf left 22:12 Kaiepi joined, p6bannerbot sets mode: +v Kaiepi 22:13 sno joined, p6bannerbot sets mode: +v sno 22:14 lizmat joined 22:15 p6bannerbot sets mode: +v lizmat
[Coke] rindolf: why use m:P5 in a perl6 benchmark? 22:16
22:22 natrys left 22:31 timo2timo joined 22:32 p6bannerbot sets mode: +v timo2timo
Geth doc: 1d51222386 | Coke++ | doc/Language/faq.pod6
whitespace
22:52
synopsebot Link: doc.perl6.org/language/faq
22:53 timo joined, p6bannerbot sets mode: +v timo, timo is now known as timotimo
Geth doc: ecd0ad3f3f | Coke++ | doc/Language/modules-extra.pod6
fix case
23:02
synopsebot Link: doc.perl6.org/language/modules-extra
23:07 Ricardus0 joined, p6bannerbot sets mode: +v Ricardus0 23:08 Ricardus0 left
buggable New CPAN upload: AttrX-Mooish-v0.1.0.tar.gz by VRURG modules.perl6.org/dist/AttrX::Mooish:cpan:VRURG 23:11
23:19 MilkmanDan left, MilkmanDan joined, p6bannerbot sets mode: +v MilkmanDan 23:25 broquaint left, broquaint joined, broquaint left 23:27 greppable6 joined 23:28 p6bannerbot sets mode: +v greppable6 23:38 broquaint joined 23:39 p6bannerbot sets mode: +v broquaint 23:43 mahafyi_ joined 23:44 p6bannerbot sets mode: +v mahafyi_, mahafyi left, mahafyi_ is now known as mahafyi 23:45 DarthGandalf left 23:55 DarthGandalf joined, p6bannerbot sets mode: +v DarthGandalf