»ö« 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 nepugia left 00:01 Voldenet joined, Voldenet left, Voldenet joined 00:04 Manifest0 joined 00:17 Manifest0 left 00:21 Manifest0 joined 00:29 redhands left 00:33 gdonald left 00:43 Manifest0 left 00:45 Sgeo__ joined 00:48 Manifest0 joined, Sgeo_ left 00:56 melezhik17 joined 00:57 melezhik17 is now known as melezhik2
melezhik2 Bird - lightweight alternative to chef inspec and goss, written in Perl6. Just started to play with it. github.com/melezhik/bird 00:57
01:05 molaf left 01:06 Manifest0 left, melezhik2 left 01:13 Manifest0 joined 01:15 epony left 01:16 noisegul_ joined 01:18 molaf joined 01:20 noisegul left 01:30 Manifest0 left 01:31 holyghost joined
holyghost Hi 01:31
01:32 melezhik46 joined, melezhik46 is now known as melezhik2 01:34 Sgeo_ joined, epony joined, Manifest0 joined 01:37 comborico1611 joined, Sgeo__ left
comborico1611 Does anyone know of a video discussion of using perl6 as a shell alernative? 01:37
01:38 melezhik2 left 01:39 Manifest0 left 01:42 Sgeo joined 01:44 Sgeo_ left 01:45 Manifest0 joined
holyghost It'd also be nice if perl6 was ported to PSP or PS linux. I'll look into that later on 01:47
discord6 <Tyler (Aearnus)> ps linux as in for the ps3? 01:48
holyghost yes
01:50 Manifest0 left
holyghost Also SGI mips would love to have a perl6 for that 01:50
01:52 comborico1611 left
holyghost I am going to get an Octane machine for that one, there's no video driver for the gfx cards last time I checked in linux (2004) 01:53
SGI made its own linux kernel for it
discord6 <Tyler (Aearnus)> that'd be pretty interesting. i know the moarvm folks have been really good about platform portability so it shouldn't be too hard 01:56
holyghost indeed, portable C is more or less welcome 01:57
01:59 Manifest0 joined 02:02 molaf left
holyghost It'll be for Christmas by my account 02:04
02:04 Manifest0 left
discord6 <Tyler (Aearnus)> hahaha. well what version of gcc runs on ps Linux? 02:07
holyghost I don't own a PS3 anymore, I gave mine to my children. gcc 4 minimum I think 02:08
discord6 <Tyler (Aearnus)> Hmm
holyghost you can probably compile one
or crosscompile
discord6 <Tyler (Aearnus)> Unrelated, but I wonder how easy porting to the Nintendo switch would be. They've already ported Ruby to it, so... 02:09
holyghost cool, I hear it's a good system
I'm a bit of a i386, powerpc and mips dude 02:11
02:11 Manifest0 joined
holyghost I don't know much japanese hardware except maybe for the ARM 02:11
discord6 <Tyler (Aearnus)> it's an Nvidia tegra with ARM 02:12
holyghost which is good 02:13
02:14 AlexDani` joined 02:15 molaf joined 02:16 cpan-p6 left, cpan-p6 joined, cpan-p6 left, cpan-p6 joined
holyghost We can use perl6 on ps and switch to develop games of course 02:17
02:18 AlexDaniel left
holyghost they're more or less like full capable systems with ram, video ram and disk space 02:18
else you need a latch hex in perl6 (from C) then calibrate and you're done 02:19
discord6 <Tyler (Aearnus)> that was the big thing behind www.rubymotion.com/ on console 02:21
<Tyler (Aearnus)> and it works well (it's what I was mentioning earlier) so it's a really good idea
02:28 Manifest0 left 02:33 Manifest0 joined
Elronnd I would probably use perl6 for games if it were possible to embed 02:38
I want to use something that has native compilation and static typing for the main loop/startup/all that, for performance 02:39
02:49 Manifest0 left 02:54 Manifest0 joined 03:05 Manifest0 left 03:11 Manifest0 joined 03:15 Manifest0 left
cpan-p6 New module released to CPAN! Async::Workers (0.0.6) by 03VRURG 03:15
03:20 Manifest0 joined 03:27 epony left 03:32 Manifest0 left 03:35 epony joined 03:38 Manifest0 joined 03:54 Manifest0 left 03:59 Manifest0 joined 04:06 Manifest0 left 04:15 Manifest0 joined 04:19 Manifest0 left 04:24 Manifest0 joined 04:28 Manifest0 left 04:33 Manifest0 joined 04:39 squashable6 left 04:40 squashable6 joined 04:42 pamplemousse joined 04:48 Manifest0 left 04:52 pamplemousse left, pamplemousse joined 04:53 Manifest0 joined 05:06 Manifest0 left 05:12 Manifest0 joined, Black_Ribbon left 05:17 Manifest0 left 05:23 Manifest0 joined 05:25 rindolf joined 05:27 Manifest0 left 05:34 Manifest0 joined 05:36 pamplemousse left 05:41 Manifest0 left 05:44 sauvin joined 05:47 Manifest0 joined 05:48 Sgeo_ joined 05:51 Sgeo left 05:58 Manifest0 left 06:03 Manifest0 joined 06:15 Manifest0 left 06:21 Manifest0 joined 06:30 Manifest0 left 06:35 Manifest0 joined 06:41 Manifest0 left 06:48 Manifest0 joined 06:51 ufobat joined 06:53 Manifest0 left 06:58 Manifest0 joined 07:08 Manifest0 left 07:13 antoniogamiz joined
antoniogamiz noisegul_: what did you need? 07:13
noisegul_: I will make the release with the fixed versions in a moment 07:14
07:16 Manifest0 joined 07:18 sjm_uk joined 07:20 Manifest0 left 07:25 rfold joined, Manifest0 joined 07:29 kaare__ left 07:30 Manifest0 left 07:31 kaare_ joined 07:35 Manifest0 joined 07:45 Manifest0 left
antoniogamiz mmm $! cannot be used to access one attribute from a parent class¿ 07:51
07:51 Manifest0 joined
xiaomiao hrm. are there proper nqp tarballs, or do I need to cook my own now? (missing 3rdparty/ bits, and configure calls 'git' for no reason) 08:06
08:06 Manifest0 left
antoniogamiz I think I'm getting how oop works in perl6... => gist.github.com/antoniogamiz/3b9fa...0b0506a307 08:07
08:13 Manifest0 joined
Geth doc/master: 4 commits pushed by (JJ Merelo)++ 08:18
08:29 rfold left, rfold joined
AlexDani` xiaomiao: yes, here github.com/perl6/nqp/releases 08:35
08:35 AlexDani` is now known as AlexDaniel, AlexDaniel left, AlexDaniel joined
AlexDaniel xiaomiao: as for “proper”, yes there's an issue in configure 08:35
xiaomiao: we might have 2019.07.1 with that fixed 08:36
08:36 Manifest0 left
AlexDaniel xiaomiao: it should actually build fine, even though there are some errors about `git`. Or are you seeing some other errors? 08:36
antoniogamiz is there a way to execute some code after an instance of a type object is created? 08:38
I mean, after bless or nextwith for instance
xiaomiao AlexDaniel: it would build, if it had network access and git :) 08:39
both assumptions that I find highly optimistic
AlexDaniel xiaomiao: can you show the log?
xiaomiao AlexDaniel: Can't exec "git": No such file or directory at Configure.pl line 15. 08:40
I can sed things into compliance, but that's not the best way to package things
AlexDaniel xiaomiao: and after that? 08:41
08:41 Manifest0 joined
AlexDaniel xiaomiao: I'm asking because even though it complains about not being able to exec git, it should still continue 08:42
at least that's my understanding
but maybe I'm wrong 08:43
08:44 marmor joined
xiaomiao the tarball at github.com/perl6/nqp/releases/down....07.tar.gz is missing 3rdparty/nqp-configure 08:46
so of course it would try to quietly fetch that 08:47
AlexDaniel xiaomiao: to me it looks like it is there
discord6 <Tyler (Aearnus)> how do I create a zef compatible package? or do I just have to create Build.pm manually 08:48
AlexDaniel xiaomiao: I think you clicked on the wrong one :)
xiaomiao AlexDaniel: so either github is tricking me, or you're not looking at the same tarball
AlexDaniel xiaomiao: try the link you just sent here 08:49
xiaomiao yes, that's the one that fails
AlexDaniel but it has 3rdparty/nqp-configure with files in it
xiaomiao now I am properly confused :D 08:51
and now it doesn't abort and just spews 'harmless' warnings 08:52
well ok
your telekinesis skills impress me! ;) 08:53
AlexDaniel :)
xiaomiao: unfortunately there's no way to disable autogenerated source tars on github :(
so yes, people will sometimes get the wrong one 08:54
xiaomiao yes and github still can't into tarball, so ...
antoniogamiz <Tyler (Aearnus)>: you should create a META6.json file
xiaomiao quite funny how they haven't found the time to fix that bug in years
antoniogamiz <Tyler (Aearnus)>: see docs.perl6.org/language/modules
AlexDaniel it's fine in most cases because people have internet connection and git
discord6 <Tyler (Aearnus)> cool, got that META6.json file all created 08:56
xiaomiao AlexDaniel: unless you're one of them silly distro packagers who insist on weird constraints 08:59
AlexDaniel xiaomiao: in that case just make sure to get the right tar :)
we will fix these annoying warnings anyway
xiaomiao thanks 09:00
AlexDaniel xiaomiao: see github.com/rakudo/rakudo/issues/3067 for what will be in the point release
xiaomiao ... and now rakudo fails, it's a nice brain teaser :)
09:01 antoniogamiz left
AlexDaniel xiaomiao: let me guess, something about /usr ? 09:01
xiaomiao /usr/include/moar/moar.h:27:10: fatal error: ffi.h: No such file or directory
09:01 avalenn left
xiaomiao that looks like incomplete include path to me :) 09:01
rfold When I run "make t/spec/S12-traits/parameterized.t" it says: "make: Nothing to be done for 't/spec/S12-traits/parameterized.t'." I did clone into t/spec and I installed Rakudo as per README.
"make spectest" does work. 09:03
AlexDaniel xiaomiao: hmmm, are you sure you're using the right tarball? :) 09:04
xiaomiao yes
AlexDaniel xiaomiao: I see github.com/MoarVM/MoarVM/issues/320
xiaomiao but libffi might not be in the expected place
AlexDaniel xiaomiao: weird 09:07
xiaomiao well, there might be more than one version present, so ...
discord6 <Tyler (Aearnus)> Is there any nice syntax to define dynamically scoped subroutines? 09:08
<Tyler (Aearnus)> my &*g = sub ($x) { $x.say } doesn't seem to work right
rfold I got it working by adding t/spec/*/*.t to the list of globs in Makefile.
AlexDaniel rfold: interesting, what's your system? 09:09
could it be some sort of difference in make or something?
rfold Oh I see what's wrong, t/spec is a symlink for some reason.
AlexDaniel hmm
rfold Must have done something wrong with the setup. 09:10
If I put the spec repo directly in there then it works.
09:11 kylese joined 09:15 marmor left
tobs m: sub f { my &*g = sub ($x) { say "g: ", $x }; h $^x }; sub h { &*g.($^x) }; f 42 09:24
camelia g: 42
tobs <Tyler (Aearnus)>: it seems to work ^ 09:25
09:25 Manifest0 left 09:29 rurban joined 09:31 rurban1 joined, Manifest0 joined 09:32 rurban1 left 09:34 rurban left 09:36 Sgeo_ left, Sgeo_ joined
rfold p6: sub f(--> 2) { my &g = { 1 }; say g }; f 09:43
camelia 1
09:50 Manifest0 left 09:53 kylese left 09:55 Manifest0 joined 10:00 Manifest0 left 10:06 Manifest0 joined 10:36 Manifest0 left 10:40 Manifest0 joined 10:47 Manifest0 left 10:55 sjm_uk left, Manifest0 joined 11:05 aborazmeh joined, aborazmeh left, aborazmeh joined 11:10 Manifest0 left 11:15 Manifest0 joined 11:22 avar left 11:23 avar joined, avar left, avar joined, literal joined 11:26 robertle left 11:33 kylese joined 11:39 Manifest0 left 11:44 Manifest0 joined
elcaro rfold: f still returns 2, but you're not doing anything with the return 11:44
m: sub f(--> 2) { my &g = { 1 }; say g }; say f 11:45
camelia 1
2
11:47 molaf left 11:49 Sgeo_ left 11:50 Sgeo_ joined 11:56 Manifest0 left 12:01 Manifest0 joined 12:05 sena_kun joined 12:06 Manifest0 left 12:12 Manifest0 joined 12:13 pecastro joined 12:18 rindolf left, kaare_ left, Manifest0 left 12:25 Manifest0 joined 12:30 aborazmeh left 12:36 Manifest0 left 12:41 Manifest0 joined
cpan-p6 New module released to CPAN! Gnome::GObject (0.13.11) by 03MARTIMM 12:44
13:02 rindolf joined 13:07 Raylier joined 13:10 Raylier left 13:20 molaf joined 13:21 Manifest0 left 13:23 pamplemousse joined 13:26 Manifest0 joined 13:30 Manifest0 left 13:35 Manifest0 joined 13:38 pamplemousse left, pamplemousse joined 13:46 Manifest0 left 13:52 Manifest0 joined 13:54 pamplemousse left 13:55 antoniogamiz joined 13:58 Manifest0 left
Kaypie is it possible to create an IO::Handle instance with a given fd? 14:07
14:08 Sgeo__ joined 14:11 Sgeo_ left
timotimo worst case - and not portably - you can open /proc/self/fd/$n 14:14
but you surely already knew that
Kaypie yeah, but i like being able to run my own code on my machine 14:16
there's a way to get the path with fcntl on mac it looks like, but that's not portable either 14:17
14:17 Kaypie is now known as Kaiepi
Kaiepi wait i can just use ptsname for what i'm doing to get the filename i want 14:18
14:27 antoniogamiz left, antoniogamiz49 joined 14:34 molaf left 14:38 uzl joined
uzl .tell jmerelo From the SO question about iteration, this is the example using the Iterator role (sprunge.us/Mz6GCl) but I'm still unable to iterate over the Scalar object. Am I doing something wrong? Thanks. 14:40
yoleaux uzl: I'll pass your message to jmerelo.
jnthn uzl: The point of a Scalar container is to make things a single item 14:49
*act as
So `.say for $obj` would be expected to do a single iteration whatever the $obj Scalar holds; it's the Scalar that determines that, not the contents of it 14:50
uzl jnthn: I'd like to say I knew that already ;-)! Thanks for the clarification. 14:54
So regardless of implementing the class with `Iterator`, assigning to Scalar means that I cannot iterate over the object instance (e.g., it's a single item)? 14:55
BTW, the code was in response to JJ's answer (stackoverflow.com/a/57122642/10824322) on SO. 14:56
jnthn uzl: Yes 14:57
Similarly, it means it won't flatten away in other contexts
14:58 Sgeo_ joined
uzl jnthn: Sorry for being too pedantic. Wouldn't that mean that the only way to get the iterable items from a class implementing those roles is during object construction? What if I want to keep the class around? 15:01
15:02 Sgeo__ left
uzl I cannot, for example, create my object and then assign it to a Positional if I want its iterable items when I need them? 15:02
15:03 khisanth_ left
jnthn You can bind it to a Positional instead (my @a := YourClass.new), or just do `for |$obj` at the point you iterate it, or use a sigilless variable 15:05
Or put a method on the class that returns something iterable, rather than making it directly iterable 15:06
Exactly which is best depends on the problem at hand
15:12 Black_Ribbon joined 15:16 khisanth_ joined 15:18 Sgeo joined 15:21 Sgeo_ left 15:24 Sgeo left
cpan-p6 New module released to CPAN! Gnome::Gtk3 (0.17.2) by 03MARTIMM 15:25
15:36 uzl left 15:37 kylese left
rfold p6: my $a = [1, 2, 3]; for $a.self { .say } 15:44
camelia 1
2
3
rfold p6: my $a := [1, 2, 3]; for $a { .say } 15:45
camelia 1
2
3
timotimo p6: my $a := [1, 2, 3]; for $a<> { .say } 15:47
camelia 1
2
3
timotimo p6: my $a = [1, 2, 3]; for $a<> { .say }
camelia 1
2
3
timotimo that's the one i meant
people are going to space today, it seems 15:48
15:51 [particle] joined 15:52 [particle]1 left 16:03 JappleAck left 16:08 Sgeo joined 16:12 zakharyas joined 16:37 Voldenet left
rfold Can I run spectest with fewer threads? 16:40
16:42 Voldenet joined, Voldenet left, Voldenet joined
rfold Ah, TEST_JOBS=n environment variable. 16:43
16:43 antoniogamiz49 left 17:06 sjm_uk joined 17:12 patrickb joined 17:23 ChoHag left 17:26 ChoHag joined 17:27 zakharyas left 17:28 Sgeo_ joined 17:31 Sgeo left 17:33 patrickb left 17:39 redhands joined 17:40 patrickb joined 17:55 ayerhart_ left 18:10 sjm_uk left 18:18 _jrjsmrtn joined 18:19 __jrjsmrtn__ left 18:20 Sgeo joined 18:22 Sgeo_ left 18:31 antoniogamiz joined 18:33 sjm_uk joined 18:36 wildtrees joined
Kaiepi currently working on a library that abstracts the annoying parts of using PTYs away from the user 18:37
antoniogamiz pty?
Kaiepi pseudo-terminal
antoniogamiz ah
Kaiepi it's a posix thing
18:37 patrickb left
antoniogamiz good luck with that then :D 18:37
18:38 wildtrees left 18:39 wildtrees joined
Kaiepi nothing wrong with the custom thing i have for vim-easy-align for traits at all :^) media.discordapp.net/attachments/4..._scrot.png 18:43
cpan-p6 New module released to CPAN! App::MoarVM::ConfprogCompiler (0.0.8) by 03TIMOTIMO 18:54
19:08 gdonald joined 19:11 antoniogamiz left
Kaiepi ...turns out i can't just subclass IO::Handle at all for this 19:36
or at least i can, just i can't abstract out the parts where you deal with the child process' stdin/stdout/stderr because IO::Handle doesn't support creating new instances using fds 19:37
fuck 19:38
19:40 reach_satori left, reach_satori joined 20:00 lucasb joined 20:22 sjm_uk left 20:33 Cabanossi left 20:34 Cabanossi joined 20:52 albongo joined 20:53 redhands left
Geth ¦ problem-solving: AlexDaniel assigned to jnthn Issue Should IO::Handle instances be possible to construct using file descriptors? github.com/perl6/problem-solving/issues/73 20:57
21:00 Garland_g[m] joined 21:10 noisegul_ is now known as noisegul 21:34 kkielak joined 21:35 kkielak left
discord6 <Tyler (Aearnus)> hey, so I have a module Tortoiseshell in Tortoiseshell.pm6. next to it there's a native folder, and in it a file GLFW.pm6 declaring Tortoiseshell::Native::GLFW. how do I use that library from Tortoiseshell.pm6? 21:36
Kaiepi is design.perl6.org/S03.html down? 21:49
sena_kun github.com/perl6/perl6.org/issues/131 21:50
22:03 netrino joined 22:10 adu left 22:11 adu joined 22:13 rindolf left 22:14 epony left
noisegul Which umbrella term does Perl6 terminology use for methods/subroutines/routines. According to docs.perl6.org/language/functions it's 'functions', or is it 'routines'? 22:32
22:37 [Sno] left 22:39 [Sno] joined
jnthn noisegul: "routine" is the general term, and the type structure even matches that :) 22:44
m: say Sub.^mro; say Method.^mro;
camelia ((Sub) (Routine) (Block) (Code) (Any) (Mu))
((Method) (Routine) (Block) (Code) (Any) (Mu))
noisegul jnthn: Alright, thank you for the clarification :) 22:50
23:00 lucasb left
Xliff What's the difference between a Block and a Routine? 23:02
sena_kun >A Routine is a code object meant for larger unities of code than Block. 23:07
23:07 pecastro left
sena_kun >The routine level is also the one at which multiness (multi subs and multi methods) are handled 23:07
23:12 rfold left 23:16 pamplemousse joined
Xliff jnthn: Any luck with IO::Socket::Async::SSL? 23:20
23:41 [particle]1 joined 23:42 sena_kun left 23:43 [particle] left 23:48 Sgeo_ joined 23:49 nepugia joined 23:51 Sgeo left 23:58 netrino left
jnthn Xliff: Not had chance to look yet, and I'm a bit behind with PerlCon prep compared to where I'd like to be (and the "punishment" for not getting that done in the next week is that I have to do it during my vacation :)) 23:59