Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-07-02

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:11 kurahaupo_ joined #perl6
00:14 zengargoyle Shanta: 1 cd rakudo-2017.06; 2 PATH=$PWD/share/perl5/site/bin:$PWD/bin:$PATH; 3 perl6 -v; (should be 2017.06-SOMETHING); 4 cd to zef dir; 5 perl6 -Ilib ./bin/zef install .; 6 profit!
00:15 zengargoyle but really, make sure you remove the old package you installed.  then install as El_Che described. :)
00:16 Shanta I used apt-get and it says it dose not exist.
00:16 zengargoyle and thats /shar/perl6/site/    my fingers type perl5 automagically.
00:17 zengargoyle apt list rakudo*
00:18 * zengargoyle not sure if Ubuntu uses apt vs apt-get....
00:19 Cabanossi joined #perl6
00:24 shlomif joined #perl6
00:24 shlomif2 joined #perl6
00:26 Shanta zengargoyle Finnely got the old perl 6 off the machine. When all else fails use synatic.
00:29 zengargoyle cool, make sure you have no perl6 and then it's probably best to follow El_Che's link to install up-to-date packages, it will probably work.
00:31 zengargoyle or you can try my thing with the manual PATH setting.  the `make install` really just installs perl6 into the ./install directory from where you ran the make command (it doesn't put it in /usr/bin or /usr/local/bin or anything like that)
00:32 zengargoyle you want to be able to `perl6 --version` and see 2017.06 ...
00:49 * zengargoyle just now notices it's PATH=$PWD/install/share/perl6/site/bin:$PWD/install/bin:$PATH
00:52 zengargoyle .tell El_Che you might want to add at least the site directory to PATH so that scripts intalled by zef can be found.
00:52 yoleaux zengargoyle: I'll pass your message to El_Che.
01:04 Cabanossi joined #perl6
01:10 FROGGS_ joined #perl6
01:20 zengargoyle .ask El_Che do you want 2 different install_zef scripts?
01:20 yoleaux zengargoyle: I'll pass your message to El_Che.
01:24 dubi0us joined #perl6
01:26 zengargoyle does p6 have the p5-like INSTALLSCRIPT thing where you tell the installer to put scripts in a certain location?
01:27 * zengargoyle assuming things will end up in site/bin vendor/bin ~/.perl6/bin
01:47 dubi0us joined #perl6
01:50 majensen joined #perl6
01:51 bjz joined #perl6
01:57 majensen left #perl6
01:57 dubi0us joined #perl6
02:17 noganex joined #perl6
02:36 ugexe well... the bin scripts get installed alongside other non-bin scripts. site/bin vendor/bin etc get *wrappers*
02:37 ugexe and a single wrapper may point to multiple versions and/or auths
02:41 rouking joined #perl6
02:42 rouking is a copy created when passing an array to a sub?
02:57 zacts joined #perl6
02:59 ugexe m: sub foo1(@a) { say @a.WHICH }; sub foo2(@a is copy) { say @a.WHICH }; my @a = 1..3; foo1(@a); foo2(@a); say @a.WHICH
02:59 camelia rakudo-moar c56f0a: OUTPUT: «Array|59257944␤Array|59258000␤Array|59257944␤»
03:00 ugexe rouking: ^
03:01 zengargoyle ugexe: ok, i thought only rakudobrew did the wrapper thing.
03:01 ugexe if you're using rakudobrew you go through 2 wrappers
03:03 zengargoyle that's cool, but a bit weird too. :)
03:04 zengargoyle i'm sure i have site in my bin for some reason.  maybe pre-zef?
03:04 Cabanossi joined #perl6
03:04 ugexe its a tad faster to use zef via `perl6 -MZef::CLI -e '' --help` than `zef --help`
03:05 ugexe you point at site/bin if you don't use rakudobrew
03:06 zengargoyle right, which is El_Che's rakudobrew .deb/.rpm/whatever that install to /opt/rakudobrew
03:06 zengargoyle frak /opt/rakudo
03:07 zengargoyle i assume it's just like a make install --previx=/opt/rakudo, no rakudobrew magic...
03:08 rouking ugexe: thanks -- didn't know about WHICH or I would've tested it myself :P
03:08 skids joined #perl6
03:08 ugexe ok to be more precise: you should not have site/bin in your PATH if you also have a rakudobrew/bin in your PATH
03:09 ugexe maybe he is using rakudobrew for a single install only, and maps the rest of the PATH stuff to that installation and not the rakudobrew shim directories
03:10 zengargoyle ugexe: yeah, it's late and i'm tired. :)  El_Che's .deb/.rpm packages are not 'rakudobrew' and probably need site, vendor, ~/.perl6/bin in path or some things will not be found.
03:11 zengargoyle assuming zef doesn't auto-wrap and move things to the base perl/bin
03:12 zengargoyle i.e. i'm talking about making perl6 yourself, or using a package, not rakudobrew.
03:13 ugexe zef doesn't wrap anything. by default it'll install to site/ or ~/.perl6 if thats not available, but they could have configured it to install to, say,  vendor/
03:15 zengargoyle yeah, but El_Che's docs don't include either site or vendor in the "set your path to this" part.
03:16 zengargoyle it's a really nice start, but it's my nature to complain. :P
03:17 zengargoyle but it's still in the more for personal use stage where the default is going to be ~/.perl6
03:17 zengargoyle vs an actual distro package.
03:20 * zengargoyle just sets /path/to/rakudo to root:bin and rwxrwsr-x and adds myself to group bin to avoid the hassle and let other users get my stuff. :P
03:21 zengargoyle ~.perl6 is a PITA
03:22 zengargoyle anyways, bedtime.
03:46 bjz joined #perl6
03:54 bjz joined #perl6
04:02 Cabanossi joined #perl6
04:20 dubi0us joined #perl6
04:21 xtreak joined #perl6
04:21 dubi0us_ joined #perl6
04:29 imcsk8 joined #perl6
04:33 dubi0us joined #perl6
04:36 imcsk8 joined #perl6
04:40 dubi0us joined #perl6
04:46 sacomo joined #perl6
04:48 dubi0us joined #perl6
04:58 dubi0us joined #perl6
05:03 Cabanossi joined #perl6
05:08 dubi0us joined #perl6
05:17 dubi0us joined #perl6
05:25 |oLa| joined #perl6
05:26 parv joined #perl6
05:27 dubi0us joined #perl6
05:37 dubi0us joined #perl6
05:46 dubi0us joined #perl6
05:47 seatek done-testing : Useless use of subtraction (-) in void context   -- I must be punch-drunk, because that just made me laugh far too much
05:57 dubi0us joined #perl6
06:02 dubi0us joined #perl6
06:09 wamba joined #perl6
06:17 dubi0us joined #perl6
06:18 Cabanossi joined #perl6
06:22 robertle joined #perl6
06:24 andrzejku joined #perl6
06:27 dubi0us joined #perl6
06:36 aindilis joined #perl6
06:38 sacomo joined #perl6
06:42 andrzejku hey x)
06:45 aborazmeh joined #perl6
06:45 aborazmeh joined #perl6
06:47 dubi0us joined #perl6
06:55 bjz joined #perl6
07:00 rindolf joined #perl6
07:06 darutoko joined #perl6
07:07 stmuk_ msg?
07:07 dubi0us joined #perl6
07:13 andrzejku do you know if someone already started to write perl6 vm in c++?
07:15 sops joined #perl6
07:15 Ven joined #perl6
07:17 dubi0us joined #perl6
07:20 domidumont joined #perl6
07:20 domidumont left #perl6
07:22 sops joined #perl6
07:24 domidumont joined #perl6
07:26 setty1 joined #perl6
07:26 dubi0us joined #perl6
07:38 dubi0us joined #perl6
07:47 dubi0us_ joined #perl6
07:57 bjz joined #perl6
07:57 dubi0us joined #perl6
08:00 bioexpress joined #perl6
08:04 parv joined #perl6
08:07 dubi0us joined #perl6
08:08 bioexpress Hello! If I have 2 modules which have a subroutine with the same name: does for Perl6 exist the possibility to write some sort of fully qualified subroutine name, like "module::subroutine" in Perl5?
08:16 dubi0us joined #perl6
08:17 tadzik yeah, exactly like you wrote
08:18 tadzik has to be an "our sub" though
08:18 tadzik andrzejku: moarvm is written in C, I guess that's close enough :)
08:18 andrzejku tadzik okay thats I know
08:19 andrzejku tadzik priv?:D
08:19 tadzik go ahead
08:27 bjz joined #perl6
08:27 dubi0us joined #perl6
08:29 Rawriful joined #perl6
08:34 bioexpress should this work with NativeCall subroutines too?
08:36 dubi0us joined #perl6
08:37 tadzik absolutely
08:37 tadzik on the Perl level, they're just Perl subroutines
08:38 bioexpress ok, when I write our sub it works
08:39 andrzejku emm Num $a = 2.1
08:40 bioexpress How would I solve this problem, if it were not my modules and the subs are not our subs?
08:40 andrzejku the compiler warn me that I try to use Rat type
08:42 glauschwuffel joined #perl6
08:46 glauschwuffel Hi there! I'm fairly new to Perl6 and experiencing problems installing an application called "uzu" via zef. Is this the right place to ask questions about the tool chain?
08:47 andrzejku glauschwuffel module?
08:47 andrzejku you can run zef list find explicit uzu name
08:47 andrzejku and then zef install <modulename>
08:47 dubi0us joined #perl6
08:48 glauschwuffel uzu (https://gitlab.com/samcns/uzu)
08:48 Cabanossi joined #perl6
08:50 glauschwuffel I did what the installation docs are saying, and get this error: "Probable version skew in pre-compiled ... (Log::Any::Filter)  (cause: no object at index 1044)". Is there any way to tell zef or perl6 not to use the precompiled version?
08:50 parv Numeric is wider than Real & Rat. so why is there a warning re "Sat.1 22:39:50 <andrzejku> emm Num $a = 2.1"?
08:52 parv type relation: https://docs.perl6.org/images/type-graph-Rat.svg
08:54 parv wrong imgae. The Num: https://docs.perl6.org/images/type-graph-Num.svg
08:56 parv and i take back my comment about Num being wider than Real (was reading something else) in light of https://docs.perl6.org/type/Num
08:56 dubi0us joined #perl6
09:03 parv gah! I meant Numeric not Num, and then comment does not make sense. BAKA!
09:03 parv time to go ...
09:07 dubi0us joined #perl6
09:09 ufobat joined #perl6
09:13 Geth ¦ doc: f8d9acad27 | (Jan-Olof Hendig)++ | 2 files
09:13 Geth ¦ doc: A few additional formatting fixes
09:13 Geth ¦ doc: review: https://github.com/perl6/doc/commit/f8d9acad27
09:24 leont I seemed to have solved my zef issue by upgrading, but my rakudo was only from March, wasn't expecting that to be tricky
09:27 dubi0us joined #perl6
09:31 Geth ¦ doc: 20fe051092 | (Jan-Olof Hendig)++ | doc/Type/Parameter.pod6
09:31 Geth ¦ doc: Added additional example to the 'raw' method
09:31 Geth ¦ doc: review: https://github.com/perl6/doc/commit/20fe051092
09:33 leont I'm getting a «No such symbol 'Basic'» warning (via a Failure) when doing a «require ::($name)», but everything works otherwise. I'm confused.
09:47 dubi0us joined #perl6
09:53 Skarsnik joined #perl6
09:54 Geth ¦ doc: c8ff69fbe5 | (Jan-Olof Hendig)++ | doc/Type/Parameter.pod6
09:54 Geth ¦ doc: Changed confusing parameter names
09:54 Geth ¦ doc: review: https://github.com/perl6/doc/commit/c8ff69fbe5
09:56 leont Ah, it seems to happen the second time I load a module
09:57 bjz joined #perl6
09:57 dubi0us joined #perl6
10:03 Cabanossi joined #perl6
10:07 travis-ci joined #perl6
10:07 travis-ci Doc build errored. Jan-Olof Hendig 'A few additional formatting fixes'
10:07 travis-ci https://travis-ci.org/perl6/doc/builds/249285641 https://github.com/perl6/doc/compare/33a68882521e...f8d9acad273e
10:07 travis-ci left #perl6
10:07 dubi0us joined #perl6
10:14 bjz joined #perl6
10:17 dubi0us joined #perl6
10:24 travis-ci joined #perl6
10:24 travis-ci Doc build errored. Jan-Olof Hendig 'Added additional example to the 'raw' method'
10:24 travis-ci https://travis-ci.org/perl6/doc/builds/249288337 https://github.com/perl6/doc/compare/f8d9acad273e...20fe05109232
10:24 travis-ci left #perl6
10:26 dubi0us joined #perl6
10:45 rindolf joined #perl6
10:45 travis-ci joined #perl6
10:45 travis-ci Doc build errored. Jan-Olof Hendig 'Changed confusing parameter names'
10:45 travis-ci https://travis-ci.org/perl6/doc/builds/249291752 https://github.com/perl6/doc/compare/20fe05109232...c8ff69fbe548
10:45 travis-ci left #perl6
10:47 rightfold Naughty Jan!
10:47 dubi0us joined #perl6
10:52 andrzejku joined #perl6
10:56 dubi0us joined #perl6
11:02 pmurias joined #perl6
11:07 dubi0us joined #perl6
11:18 Cabanossi joined #perl6
11:18 dubi0us joined #perl6
11:20 mr-foobar joined #perl6
11:20 nattefrost joined #perl6
11:21 nattefrost joined #perl6
11:21 Lambd0x joined #perl6
11:28 dubi0us joined #perl6
11:37 dubi0us joined #perl6
11:42 jamesaxl joined #perl6
11:45 lichtkind joined #perl6
11:48 Cabanossi joined #perl6
11:53 dubi0us joined #perl6
11:58 dubi0us joined #perl6
12:01 lucasb joined #perl6
12:18 domidumont joined #perl6
12:23 jamesaxl joined #perl6
12:27 dubi0us joined #perl6
12:37 dubi0us joined #perl6
12:42 jamesaxl joined #perl6
12:47 dubi0us joined #perl6
12:51 bjz joined #perl6
12:58 dubi0us joined #perl6
12:59 noganex_ joined #perl6
13:02 noganex__ joined #perl6
13:08 lizmat joined #perl6
13:12 dubi0us joined #perl6
13:16 gginin joined #perl6
13:27 dubi0us joined #perl6
13:37 dubi0us joined #perl6
13:43 Geth ¦ doc: 53c193e81b | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/unicode_texas.pod6
13:43 Geth ¦ doc: Move info about `Since` column to where it belongs
13:43 Geth ¦ doc:
13:43 Geth ¦ doc: The data in the table is actually not accurate since some of these
13:43 Geth ¦ doc: symbols aren't part of 6.c language and only will become part of 6.d
13:43 Geth ¦ doc: review: https://github.com/perl6/doc/commit/53c193e81b
13:43 brdk joined #perl6
13:43 dubi0us joined #perl6
13:46 araraloren joined #perl6
13:46 brdk left #perl6
13:47 Geth ¦ doc: d7ef195600 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/unicode_texas.pod6
13:47 Geth ¦ doc: Add explanation why name "Texas"
13:47 Geth ¦ doc: review: https://github.com/perl6/doc/commit/d7ef195600
13:56 pilne joined #perl6
13:57 zakharyas joined #perl6
14:04 khw joined #perl6
14:09 araraloren joined #perl6
14:31 ilbot3 joined #perl6
14:31 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
14:32 ilbot3 joined #perl6
14:32 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
14:34 ilbot3 joined #perl6
14:34 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
14:35 moritz sorry for the join spam; should be stable-ish now
14:35 FROGGS_ moritz++
14:37 bjz joined #perl6
14:38 travis-ci joined #perl6
14:38 travis-ci Doc build errored. Zoffix Znet 'Add explanation why name "Texas"'
14:38 travis-ci https://travis-ci.org/perl6/doc/builds/249330347 https://github.com/perl6/doc/compare/53c193e81b02...d7ef195600fc
14:38 travis-ci left #perl6
14:42 bwisti joined #perl6
14:54 skids joined #perl6
15:00 konsolebox joined #perl6
15:15 araraloren How using perl6 determine whether a file is block or socket file or not?
15:16 moritz how would you do it in C, or in Perl 5?
15:17 araraloren In C I will use fstat
15:17 araraloren I don't know in perl5
15:18 moritz then it's probably easiest to use NativeCall and fstat
15:21 araraloren I thought IO::Path or IO::Spec::Unix have method for that..
15:21 AlexDaniel joined #perl6
15:22 araraloren haha..
15:24 mr_ron joined #perl6
15:33 leont $filename.IO.f
15:33 domidumont joined #perl6
15:34 bjz joined #perl6
15:35 leont Hmmm, seems there is no .b or .S
15:36 dubi0us_ joined #perl6
15:42 ptolemarch joined #perl6
15:42 Rawriful joined #perl6
15:48 Lambd0x joined #perl6
15:49 setty1 joined #perl6
15:55 bwisti joined #perl6
15:55 timotimo perl6 shies away from putting posixy things in core
15:55 Lambd0x Hi there. I have a situation which is this: I developed an app in perl6 which runs ok in Linux. However, I'm also testing it to run with Windows, after stalling the last .msi Rakudo Star I needed to solve a dep for my app so I went to use zef and initially wasn't working because it needed git, after getting it one error to install the module used in my app still remained. It looks for a file in C:\Users\your-user\.zef\store\projects.json which doesn't
15:55 Lambd0x exists, but in the same dir there exits a file named packages.json. My question is, how can I get to fix this and install the module I need.
15:55 timotimo i don't recall other good examples of things not in core, though
15:56 timotimo you don't require git to install stuff with zef if you grab things from cpan or by giving it download links for github's zip files
15:57 Lambd0x timotimo, I chose to install it. But it ain't the problem :D
15:59 araraloren How you install git for win ?
15:59 Lambd0x with an git installer for windows. It was ok. The problem was really the remainder error.
16:00 Lambd0x When it starts the downloads of the deps for the modules, zef looks for a file in the dir I described above.
16:01 rindolf joined #perl6
16:01 Lambd0x Hence it doesn't find it, it quits the download of the module.
16:01 Lambd0x *a
16:03 araraloren You can try run `zef update` first
16:05 ChoHag joined #perl6
16:05 Lambd0x same problem
16:06 araraloren Can you paste report of zef to somewhere ?
16:07 zakharyas joined #perl6
16:08 lichtkind joined #perl6
16:09 Lambd0x I'm actually trying. I'll have to write manually the contents of the image since the pastbin client for windows doesn't allows for pastebin images
16:10 shlomif joined #perl6
16:11 araraloren Quick question: is the right way to do interpolate in regex `/<$var>/` ?
16:12 araraloren `/<{$var}>/`
16:12 araraloren m: my $regex = "abc.*"; say "abcd" ~~ /<{$regex}>/;
16:12 camelia rakudo-moar d4436e: OUTPUT: «「abcd」␤»
16:12 araraloren m: my $regex = "abc.*"; say "abcd" ~~ /{$regex}/;
16:12 camelia rakudo-moar d4436e: OUTPUT: «「」␤»
16:12 araraloren m: my $regex = "abc.*"; say "abcd" ~~ /<$regex>/;
16:12 camelia rakudo-moar d4436e: OUTPUT: «「abcd」␤»
16:12 araraloren m: my $regex = "abc.*"; say "abcd" ~~ /$regex/;
16:12 camelia rakudo-moar d4436e: OUTPUT: «Nil␤»
16:13 jamesaxl_ joined #perl6
16:13 Lambd0x araraloren, https://pastebin.com/d94wGZ4a
16:14 andrzejku hi people
16:16 domidumont joined #perl6
16:17 araraloren Lambd0x, that file exists ?
16:19 araraloren Yeah , `/<$regex>/` is the right way to do interpolate in regex
16:20 Lambd0x araraloren, Nops, what does exists as I stated earlier is the file called packages.json and packages.json.bak
16:21 Lambd0x I tried creating the filename, but don't work. I'm running cmd.exe with admin access btw.
16:21 araraloren I check on my pc, it was exists
16:22 araraloren IDK, maybe you can ask zef's author
16:23 Lambd0x which version of rakudo star you have, my friend?
16:23 araraloren I think packages.json would be exists in sub directory of **store/**
16:23 Lambd0x I'm using the one of two months ago (latest release)
16:24 araraloren I manual install from rakudo source
16:24 Lambd0x I see.
16:24 araraloren Maybe you can reinstall zef by yourself
16:24 araraloren only zef
16:24 Lambd0x I guess. Will get a terminal emulator running for that purpose then.
16:24 Lambd0x Thks.
16:25 araraloren my version is old too, it was version 2017.02
16:25 Lambd0x :)
16:25 araraloren Lambd0x, I use bash on win10, it was cool, for me
16:26 Lambd0x Yeah, but I'm still with 8.1 here
16:26 Lambd0x will upgrade as soon as possible.
16:27 pmurias how should I parse a .pod6 file?
16:27 araraloren Em, good luck, I gotta go to sleep now
16:27 araraloren 88
16:27 Lambd0x araraloren, thanks a lot.
16:27 Lambd0x good sleep.
16:27 araraloren perl6 --doc ./*.pod
16:27 araraloren thanks
16:27 araraloren good night
16:31 domidumont joined #perl6
16:40 pmurias I want to get the Pod::* objects not the text form
16:41 moritz pmurias: htmlify.p6 in the perl6/doc repo uses some nasty trick to get the the Pod::* objects
16:42 moritz but I don't remember which one; might need to look into its sources
16:45 pmurias moritz: thanks, it looks like writing a Pod::To::* module and pluging it into --doc will be enough to extract what I want
16:48 dustinm` joined #perl6
16:49 AlexDani` joined #perl6
16:52 domidumont joined #perl6
16:54 jamesaxl joined #perl6
16:57 epony joined #perl6
17:00 BenGoldberg joined #perl6
17:02 Geth ¦ doc: 49aab84d47 | (Jan-Olof Hendig)++ | doc/Type/Str.pod6
17:02 Geth ¦ doc: Added docs for method Bool
17:02 Geth ¦ doc: review: https://github.com/perl6/doc/commit/49aab84d47
17:48 Cabanossi joined #perl6
17:51 seatek joined #perl6
17:52 travis-ci joined #perl6
17:52 travis-ci Doc build errored. Jan-Olof Hendig 'Added docs for method Bool'
17:52 travis-ci https://travis-ci.org/perl6/doc/builds/249376186 https://github.com/perl6/doc/compare/d7ef195600fc...49aab84d4782
17:52 travis-ci left #perl6
18:09 domidumont joined #perl6
18:37 pmurias joined #perl6
18:38 BenGoldberg So I'm attempting to implement perl class representing a fixed-length C array, by defining a class with a repr of CStruct, and appropriately large; I do nativecast( CArray[...], self )  for efficient access.  *however*, I want to cache the result of the cast, and I'm not sure how to do so.
18:57 ufobat joined #perl6
19:19 moritz how do you cache something? by assigning it to a variable
19:25 Geth ¦ doc: bb96b2bf64 | (Jan-Olof Hendig)++ | doc/Type/Proc.pod6
19:25 Geth ¦ doc: Added missing method definition
19:25 Geth ¦ doc: review: https://github.com/perl6/doc/commit/bb96b2bf64
19:27 BenGoldberg And how do I make sure that that variable has the same lifetime as a particular object?
19:27 timotimo make it an attribute :)
19:28 BenGoldberg And how do I make it an attribute, when the class I want to make it an attribute *of*, has repr('CStruct')?
19:30 * BenGoldberg gives up.  I'll just implement PositionalBindFailover, and let the array version get (re)generated on an as-needed basis.  Not precisely performant, *shrug*
19:31 timotimo might have to use composition for that
19:31 timotimo hmm
19:34 moritz BenGoldberg: you make a container object that has both the repr('CStruct') as an attribute, and the cached value as another attribute
19:34 timotimo the problem is that you can't just pass that CStruct to native functions/methods
19:44 cyphase joined #perl6
19:46 Geth ¦ doc: 28f453651f | (Jan-Olof Hendig)++ | doc/Type/Pod/Block/Comment.pod6
19:46 Geth ¦ doc: Added docs for Pod comments
19:46 Geth ¦ doc: review: https://github.com/perl6/doc/commit/28f453651f
19:49 dogbert2 moritz: do you think that I could take relevant parts of the material from http://design.perl6.org/S26.html#Pod_comments and add to the recently commited doc for Pod::Block::Comment?
19:50 BenGoldberg Mostly I want to use this (with "HAS") within other CStructs... think of sockaddr_un, for example.
19:52 iH2O joined #perl6
19:53 iH2O this doesn't work, won't accept the rw. is there a solution? for 'myfile'.IO.lines -> $line is rw {}
19:55 TEttinger joined #perl6
20:03 Cabanossi joined #perl6
20:05 mst iH2O: read the file, modify the lines, write the file back out
20:05 mst iH2O: trying to modify lines-of-a-file on the fly is not generally sane
20:06 mst iH2O: because it means re-writing the entire remainder of the file every time
20:06 mst which, ew
20:09 iH2O I want to modify the lines and write them to a new file
20:10 iH2O i can declare a new variable since the block like $myline=$line and modify $myline
20:10 iH2O thats patching
20:11 mst is there an 'is copy' maybe?
20:13 zengargoyle joined #perl6
20:13 cpage__ joined #perl6
20:15 iH2O is copy works. thx
20:15 iH2O thats good enough
20:16 travis-ci joined #perl6
20:16 travis-ci Doc build errored. Jan-Olof Hendig 'Added missing method definition'
20:16 travis-ci https://travis-ci.org/perl6/doc/builds/249405734 https://github.com/perl6/doc/compare/49aab84d4782...bb96b2bf647c
20:16 travis-ci left #perl6
20:16 iH2O left #perl6
20:18 ufobat is this supposed to work or not? https://gist.github.com/ufobat/8da682892cbf3c85eb0757fc8154ce00
20:24 moritz ufobat: you never initialized $!private
20:24 moritz ufobat: so it remains a type object
20:25 moritz ufobat: and you can't access attributes from type objects, so the error looks legit
20:26 moritz m: class A { has $.b = 'secret' }; A.b
20:26 camelia rakudo-moar d4436e: OUTPUT: «Cannot look up attributes in a A type object␤  in block <unit> at <tmp> line 1␤␤»
20:26 moritz same error, golf'ed
20:32 ufobat hm :/
20:33 ufobat right,
20:35 ufobat thanks
20:35 moritz you're welcome
20:36 travis-ci joined #perl6
20:36 travis-ci Doc build errored. Jan-Olof Hendig 'Added docs for Pod comments'
20:36 travis-ci https://travis-ci.org/perl6/doc/builds/249409583 https://github.com/perl6/doc/compare/bb96b2bf647c...28f453651f53
20:36 travis-ci left #perl6
20:46 ufobat what about this: https://gist.github.com/ufobat/92a4eead04bbfae235d2a292c44c0276
20:48 Cabanossi joined #perl6
20:50 ufobat i find the error No such private method '!!private' strange
20:50 bjz joined #perl6
21:11 mr-foobar joined #perl6
21:18 timotimo yeah, it's somehow derping out. can you get a --target=ast or --target=optimize and find the line where it compiles that call?
21:18 timotimo to see if it really thinks it's supposed to call a method named "!!private" or if the error is just being generated wrong?
21:20 Geth ¦ doc: 0cc0711d27 | (Jan-Olof Hendig)++ | doc/Type/Pod/Heading.pod6
21:20 Geth ¦ doc: Added doc file for Pod::Heading
21:20 Geth ¦ doc: review: https://github.com/perl6/doc/commit/0cc0711d27
21:33 ufobat will do :)
21:33 ufobat if i change  method set_private(A $a) { self!private ... } to $!private the error changes to
21:33 ufobat P6opaque: no such attribute '$!private' in type B when trying to get a value
21:34 ufobat so i guess its not just a wrong error message, isnt it?
21:36 ufobat timotimo, https://gist.github.com/ufobat/92a4eead04bbfae235d2a292c44c0276#comments <- thats the ast, i dont understand it :/
22:02 timotimo the interesting part seems to be missing?
22:03 timotimo perhaps it throws an exception for that code immediately
22:03 timotimo and tthat's why it doesn't show up? perhaps?
22:06 ufobat ahm?
22:07 ufobat there is not really something else :(
22:07 ufobat do you want to see the whole output?
22:07 ufobat or? i dont know what to do :/
22:10 travis-ci joined #perl6
22:10 travis-ci Doc build errored. Jan-Olof Hendig 'Added doc file for Pod::Heading'
22:10 travis-ci https://travis-ci.org/perl6/doc/builds/249428127 https://github.com/perl6/doc/compare/28f453651f53...0cc0711d270f
22:10 travis-ci left #perl6
22:26 Geth ¦ doc: 88421a484b | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/unicode.pod6
22:26 Geth ¦ doc: add example of dec and hex codepoint entry
22:26 Geth ¦ doc:
22:26 Geth ¦ doc: closes #1402
22:26 Geth ¦ doc: review: https://github.com/perl6/doc/commit/88421a484b
22:37 timotimo ufobat: i didn't actually see that it was two files, that's why the private method call wasn't in the output
22:38 timotimo because the output is onyl for the file you call it with, not any dependencies
22:38 jferrero joined #perl6
22:43 dubi0us joined #perl6
22:44 seatek wow Inline::Perl5 actually works really well! nine++ :)
22:51 Sgeo joined #perl6
23:01 dubi0us joined #perl6
23:03 Cabanossi joined #perl6
23:11 cyphase_eviltwin joined #perl6
23:12 dubi0us joined #perl6
23:16 travis-ci joined #perl6
23:16 travis-ci Doc build errored. Tom Browder 'add example of dec and hex codepoint entry
23:16 travis-ci https://travis-ci.org/perl6/doc/builds/249441151 https://github.com/perl6/doc/compare/0cc0711d270f...88421a484ba1
23:16 travis-ci left #perl6
23:46 dubi0us_ joined #perl6
23:48 Cabanossi joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo