»ö« 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.
jnthn ...how on earth can such a mature piece of blogging software be that broken? :S 00:00
00:03 dduncan joined, kktt joined, p6bannerbot sets mode: +v dduncan, p6bannerbot sets mode: +v kktt
tobs Mischief managed 00:15
I think
00:19 dduncan left 00:21 w_richard_w joined, p6bannerbot sets mode: +v w_richard_w
scovit add_multi_method would have been nice and easy to find ;) 00:27
sorry
Geth ecosystem: taboege++ created pull request #420:
Add tobs' modules
00:35
00:35 checkinn joined 00:36 p6bannerbot sets mode: +v checkinn
scovit m:my int32 $a; EVAL("") 00:39
evalable6
scovit strange, here I get Unhandled lexical type 'int32' in lexprimspec for '$a'
I guess I have an old perl6 00:41
00:43 w_richard_w left 00:47 checkinn left
timotimo bisectable6: use MONKEY; my int32 $a; EVAL("") 01:12
bisectable6 timotimo, Bisecting by exit code (old=2015.12 new=6e7893b). Old exit code: 1
timotimo, bisect log: gist.github.com/7653a7ade7fe47b39c...a44b4edcb8
timotimo, (2018-06-17) github.com/rakudo/rakudo/commit/89...118edc8124
01:13 scovit left
timotimo not that old 01:13
01:20 Actualeyes left 01:49 Cabanossi left 01:50 Cabanossi joined 01:51 p6bannerbot sets mode: +v Cabanossi 02:01 lucasb left 02:02 kurahaupo_ joined 02:03 p6bannerbot sets mode: +v kurahaupo_ 02:05 kurahaupo left 02:06 tobs` left 02:14 molaf left 02:26 molaf joined 02:27 p6bannerbot sets mode: +v molaf 02:30 lizmat left 02:45 Highpi is now known as Kaiepi 02:52 w_richard_w joined 02:53 p6bannerbot sets mode: +v w_richard_w 02:58 nebuchad` joined, nebuchadnezzar left, p6bannerbot sets mode: +v nebuchad` 02:59 avalenn left, Celelibi left 03:00 Celelibi joined, avalenn joined 03:01 p6bannerbot sets mode: +v Celelibi, p6bannerbot sets mode: +v avalenn 03:05 zacts joined, p6bannerbot sets mode: +v zacts 03:19 thoren17 joined, p6bannerbot sets mode: +v thoren17 03:23 thoren17 left 03:30 kktt left 03:33 mowcat joined, p6bannerbot sets mode: +v mowcat 03:35 GyrosGeier16 joined 03:36 GyrosGeier16 left 03:41 w_richard_w left 03:48 LtStaffel joined, p6bannerbot sets mode: +v LtStaffel
LtStaffel hello 03:49
03:49 Cabanossi left 03:50 LtStaffel left, Cabanossi joined 03:51 ufobat_ joined, p6bannerbot sets mode: +v Cabanossi, p6bannerbot sets mode: +v ufobat_ 03:54 ufobat left
Kaiepi m: my Supplier $s .= new; $s.emit; 'a'; react { whenever $s.Supply -> $d { say $d } } 03:56
camelia WARNINGS for <tmp>:
Useless use of constant string "a" in sink context (line 1)
Too few positionals passed; expected 2 arguments but got 1
in block <unit> at <tmp> line 1
Kaiepi m: my Supplier $s .= new; $s.emit: 'a'; react { whenever $s.Supply -> $d { say $d } }
camelia (timeout) 03:57
Kaiepi m: my Supplier::Preserving $s .= new; $s.emit: 'a'; react { whenever $s.Supply -> $d { say $d } }
camelia (timeout)a
04:06 daotoad joined, ryn1x joined, p6bannerbot sets mode: +v daotoad, Cabanoss- joined
Geth doc: ugexe++ created pull request #2515:
Add basic Distribution docs
04:06
04:07 p6bannerbot sets mode: +v ryn1x, zacts left, p6bannerbot sets mode: +v Cabanoss- 04:08 Cabanossi left 04:09 w_richard_w joined, p6bannerbot sets mode: +v w_richard_w 04:33 kktt_ joined 04:34 kktt_ is now known as kktt007, p6bannerbot sets mode: +v kktt007 04:48 sauvin joined, p6bannerbot sets mode: +v sauvin
Geth doc: ugexe++ created pull request #2516:
Add basic Distribution docs
04:53
04:54 daotoad left 04:58 molaf left 05:06 daotoad joined 05:07 p6bannerbot sets mode: +v daotoad 05:11 molaf joined 05:12 p6bannerbot sets mode: +v molaf 05:20 molaf left 05:30 w_richard_w left 05:49 i1nfusion left 05:50 crazybill joined, p6bannerbot sets mode: +v crazybill 05:51 i1nfusion joined, curan joined, p6bannerbot sets mode: +v curan, p6bannerbot sets mode: +v i1nfusion
crazybill can we see equivalent of the $INPUT_LINE_NUMBER in new 6.d ? 05:53
sjn crazybill: docs say there currently isn't one: docs.perl6.org/language/5to6-perlv...ilehandles 06:00
there's a possible workaround there though 06:03
buggable New CPAN upload: Graphics-TinyTIFF-0.0.3.tar.gz by RYNIX modules.perl6.org/dist/Graphics::Ti...cpan:RYNIX 06:04
06:07 daotoad left 06:10 i1nfusion left 06:11 vrurg left, i1nfusion joined 06:12 p6bannerbot sets mode: +v i1nfusion 06:13 ryn1x left 06:15 daotoad joined 06:16 p6bannerbot sets mode: +v daotoad 06:18 vrurg joined, p6bannerbot sets mode: +v vrurg 06:19 jmerelo joined 06:20 p6bannerbot sets mode: +v jmerelo
jmerelo releasable6: status 06:34
releasable6 jmerelo, Next release will happen when it's ready. 0 blockers. 85 out of 88 commits logged
jmerelo, Details: gist.github.com/8155b76cc7a12da3d1...9229472d8b
Geth doc: b6dcaa05d7 | (Nick Logan)++ | 4 files
Add basic Distribution docs
06:36
doc: 124e701c8c | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | 4 files
Merge pull request #2516 from ugexe/distribution-basics

Add basic Distribution docs This is in a branch, so no test has passed; I guess we'll check it more thoroughly when it's merged.
samcv AlexDaniel, moarvm should be released shortly 06:41
holyghost .seen Zoffix
yoleaux I saw Zoffix 30 Nov 2018 23:37Z in #perl6: <Zoffix> huggable: AlexDaniel
jmerelo samcv: good to know :-) 06:42
06:42 w_richard_w joined 06:43 w_richard_w left
holyghost jmerelo : I have an unmanaged X11 window (with dragging and resizing) which I need to write a widget kit for, for a perl6 IDE 06:45
I wrote it back in the past for making X11 clients
I need to wait though since I'm going to put design patterns in it and X11 Xlib widgets 06:46
jmerelo holyghost: is X11 still a thing? I thought that X.org and Wayland were all the rage nowadays 06:47
holyghost I have to read up for the implementation. I ordered the smalltalk companion of design patterns
right
It's linux, BSD based 06:48
jmerelo holyghost: that's not a thing either. If it's linux, it's got the Linux kernel. If it's BSD, it's got the BSD kernel. You can have an otherwise-linuxy. OS with a BSD kernel, but the kernel defines the OS. 06:49
holyghost these operating systems should support it
06:49 nebuchad` is now known as nebuchadnezzar
holyghost sure 06:49
jmerelo holyghost: ah, OK. multi-OS
holyghost I'll manage
indeed
it's just C drawn into C++ windowy thingies 06:50
I like to write widget kits, thereon, I need the books as I mentioned 06:51
They're very OOP-wise 06:52
06:52 domidumont joined
holyghost Like unterpaganperl6 will have a memento for backtracking in the perl6 formulas, best-of for example, several compilation systems in one 06:53
06:53 p6bannerbot sets mode: +v domidumont
holyghost I will base the IDE thereupon 06:53
prototyping
anyway, I'm off 06:54
jmerelo holyghost: bye
holyghost cya
06:55 Woodi left 06:58 Sgeo joined 06:59 p6bannerbot sets mode: +v Sgeo, sno left
holyghost jmerelo : just one thing, I might make 3D widgets for the C++ X11 IDE 07:03
no I'm really off :-) HAND
s/no/now
07:11 kurahaupo_ left 07:12 kurahaupo joined 07:13 p6bannerbot sets mode: +v kurahaupo
AlexDaniel samcv: \o/ 07:18
07:23 robertle joined 07:24 kurahaupo left, kurahaupo joined, p6bannerbot sets mode: +v robertle 07:25 p6bannerbot sets mode: +v kurahaupo
Geth doc: 0e2c8fc578 | (JJ Merelo)++ | 2 files
Moved collate to Any since it's not experimental

Refs #2434.
07:31
doc: e6f7466c05 | (JJ Merelo)++ | doc/Language/operators.pod6
Eliminates indexing refs #2434
synopsebot Link: doc.perl6.org/language/operators
doc: b4a003b4a4 | (JJ Merelo)++ | doc/Language/operators.pod6
coll added to Str. Closes #2434
07:46 irco left 08:00 lizmat joined, p6bannerbot sets mode: +v lizmat 08:03 sno joined, p6bannerbot sets mode: +v sno 08:12 domidumont1 joined 08:13 daxim joined, p6bannerbot sets mode: +v domidumont1, p6bannerbot sets mode: +v daxim 08:15 domidumont left 08:17 lizmat left
samcv AlexDaniel, moarvm is released 08:22
pushed to moarvm.org right now
moritz samcv++ 08:32
08:34 domidumont1 left 08:38 scovit joined 08:39 p6bannerbot sets mode: +v scovit, lizmat joined, p6bannerbot sets mode: +v lizmat 08:43 lizmat left 08:50 crazybill left
jmerelo samcv++ 08:52
08:54 lizmat joined, p6bannerbot sets mode: +v lizmat 08:55 domidumont joined 08:56 p6bannerbot sets mode: +v domidumont 08:58 |oLa| joined, |oLa| left 08:59 kktt007 left 09:05 jmerelo left 09:25 Andrio21 joined, p6bannerbot sets mode: +v Andrio21 09:29 Andrio21 left 09:33 kensanata joined, p6bannerbot sets mode: +v kensanata 09:37 sno left 09:42 sno joined, p6bannerbot sets mode: +v sno 09:43 scovit left 09:47 Fleet0 joined 09:48 Fleet0 left 09:49 Cabanoss- left 09:51 Cabanossi joined, p6bannerbot sets mode: +v Cabanossi 10:01 abraxxa left 10:03 abraxxa joined 10:04 p6bannerbot sets mode: +v abraxxa 10:07 abraxxa left, abraxxa1 joined, p6bannerbot sets mode: +v abraxxa1 10:11 abraxxa1 left 10:14 abraxxa joined 10:15 p6bannerbot sets mode: +v abraxxa 10:17 yqt joined 10:18 p6bannerbot sets mode: +v yqt 10:29 sno left 10:33 reach_satori left 10:36 sno joined 10:37 p6bannerbot sets mode: +v sno 10:41 scovit joined, p6bannerbot sets mode: +v scovit 10:44 kurahaupo left, kurahaupo_ joined, kurahaupo_ left, kurahaupo joined, lookatme_q left 10:45 lookatme_q joined, p6bannerbot sets mode: +v kurahaupo, p6bannerbot sets mode: +v lookatme_q 10:46 mowcat left 10:49 scovit left 11:02 andrzejku_ joined 11:03 p6bannerbot sets mode: +v andrzejku_ 11:05 andrzejku left 11:07 andrzejku_ left, reach_satori joined, p6bannerbot sets mode: +v reach_satori 11:18 harmth joined 11:19 p6bannerbot sets mode: +v harmth 11:24 sno left 11:36 AlexDaniel left
harmth Hi, can someone explain to me, or point me to the documentation, to why returning a list from a method and assigning it to an @-variable is different from doing the same except with a subroutine? 11:36
Example here: pastebin.com/skxVDF2F
11:37 harmth is now known as HarmtH
jnthn harmth: $.bar means $(self.bar) 11:37
So you're itemizing the result of the call
Just write self.bar, or @.bar 11:38
HarmtH Thanks
11:41 rindolf joined, p6bannerbot sets mode: +v rindolf 11:49 Scimon joined 11:50 p6bannerbot sets mode: +v Scimon 11:54 rindolf left 11:59 scovit joined 12:00 p6bannerbot sets mode: +v scovit, tobs` joined, rindolf joined, abraxxa1 joined 12:01 p6bannerbot sets mode: +v tobs`, abraxxa left, p6bannerbot sets mode: +v rindolf, p6bannerbot sets mode: +v abraxxa1 12:02 abraxxa1 left 12:06 curan left
tobs` Is there a best practice for shipping 3rd party code with my module, which is used by Build.pm? I'm currently using a git submodule to avoid copying all the files over, but I don't know if zef can be made to check that out before trying to build the module. I assume this would also be incompatible with CPAN? 12:12
timotimo well, cpan is based on tarballs 12:14
12:14 Scimon left
timotimo and it's probably not encouraged for a cpan dist to hit the network to download extra stuff? 12:14
maybe zef could be made to pull every git repo with --recursive by default?
tobs` I'll check it out 12:17
timotimo by "made to" i'm suggesting a pullrequest to zef if that wasn't clear 12:18
jnthn I guess for a CPAN tarball I'd just bundle the stuff inside of it
12:19 lucasb joined, p6bannerbot sets mode: +v lucasb 12:26 abraxxa joined
tobs` timotimo: it was :) 12:26
12:26 p6bannerbot sets mode: +v abraxxa 12:28 scovit left, scovit joined 12:29 p6bannerbot sets mode: +v scovit 12:40 sno joined, p6bannerbot sets mode: +v sno 12:46 reach_satori left, reach_satori joined 12:47 p6bannerbot sets mode: +v reach_satori 12:50 reach_satori_ joined, p6bannerbot sets mode: +v reach_satori_ 12:51 robertle left 12:52 reach_satori left 12:58 satori__ joined, p6bannerbot sets mode: +v satori__ 12:59 reach_satori_ left 13:00 reach_satori_ joined, p6bannerbot sets mode: +v reach_satori_, HarmtH left 13:02 satori__ left 13:11 molaf joined 13:12 p6bannerbot sets mode: +v molaf 13:36 jmerelo joined 13:37 p6bannerbot sets mode: +v jmerelo 14:12 ponbiki left
jmerelo releasable6: status 14:15
releasable6 jmerelo, Next release will happen when it's ready. 0 blockers. 85 out of 88 commits logged
jmerelo, Details: gist.github.com/334d4d30136405a558...dcbe8f21ca
14:18 jmerelo left 14:20 HarmtH joined 14:21 p6bannerbot sets mode: +v HarmtH, mowcat joined 14:22 p6bannerbot sets mode: +v mowcat 14:27 robertle joined 14:28 p6bannerbot sets mode: +v robertle, melezhik joined, p6bannerbot sets mode: +v melezhik 14:33 melezhik left 14:35 lizmat left
Geth ecosystem: taboege++ created pull request #421:
Begin adding tobs' modules
14:45
14:51 telex left 14:52 telex joined, kurahaupo left 14:53 p6bannerbot sets mode: +v telex
loops think there is a tiny typo on docs.perl6.org/language/list#Itemization: ... and it is less well enforced that typechecks in typed arrays. 14:55
14:56 yqt left 14:59 kurahaupo joined, p6bannerbot sets mode: +v kurahaupo 15:26 sno left, molaf left 15:42 HarmtH left 15:43 molaf joined 15:44 p6bannerbot sets mode: +v molaf 15:46 nluuu joined, p6bannerbot sets mode: +v nluuu 15:50 ilbelkyr joined, p6bannerbot sets mode: +v ilbelkyr 15:51 AlexDaniel joined, p6bannerbot sets mode: +v AlexDaniel
AlexDaniel samcv++ # release 15:56
15:56 molaf left 15:57 nluuu left 16:01 i1nfusion left 16:02 cjkinni left 16:03 i1nfusion joined, cjkinni joined 16:04 p6bannerbot sets mode: +v i1nfusion, p6bannerbot sets mode: +v cjkinni 16:09 molaf joined, p6bannerbot sets mode: +v molaf 16:10 sno joined 16:11 p6bannerbot sets mode: +v sno 16:14 telex left 16:15 telex joined 16:16 p6bannerbot sets mode: +v telex 16:21 kensanata left 16:28 scovit left 16:34 robertle left 16:44 Scimon joined 16:45 p6bannerbot sets mode: +v Scimon, reach_satori_ left 16:50 Scimon left 16:52 HarmtH joined, p6bannerbot sets mode: +v HarmtH 16:59 scovit joined 17:00 p6bannerbot sets mode: +v scovit 17:02 abraxxa left 17:11 scovit left 17:12 molaf left 17:19 |oLa| joined, p6bannerbot sets mode: +v |oLa|
Geth doc: finanalyst++ created pull request #2517:
make links cannonical
17:30
17:31 reach_satori_ joined, p6bannerbot sets mode: +v reach_satori_ 17:35 tobs` left
buggable New CPAN upload: Tomtit-0.0.7.tar.gz by MELEZHIK modules.perl6.org/dist/Tomtit:cpan:MELEZHIK 17:44
17:46 |oLa| left 17:51 marmor joined 17:52 p6bannerbot sets mode: +v marmor 18:03 regreg joined
ufobat_ there are some resources that explain how to compile perl6 on windows. but i cant find it via google. any hint? 18:08
18:10 domidumont left 18:11 robertle joined 18:12 p6bannerbot sets mode: +v robertle 18:13 kini joined, p6bannerbot sets mode: +v kini
timotimo rakudo.org/files/star/source 18:20
18:20 ponbiki joined
timotimo also possible: steal from the .appveyor.yml in rakudo's git repo 18:21
ufobat_ hm with windows git and strawberry i do have a c compiler as wellß
18:21 p6bannerbot sets mode: +v ponbiki 18:22 random_yanek left 18:23 sno left
ufobat_ uh what is windows subsystem for linux? 18:23
timotimo ubuntu on windows 10
it's only like a year old
18:23 sauvin left
ufobat_ is it good? 18:23
timotimo it's a one-button built-into-windows install-something-quite-like-linux solution
i hear good things about it, though having to have windows 10 to be able to use it makes it a total no-no for some 18:24
El_Che my linux packages run on the WSL 18:27
there is a one-line script to make it work
ufobat_ i think i go the "windows" way, now with my 5year old win notebook :) 18:29
my new emacs is now "visual studio code"
:D
18:34 random_yanek joined 18:35 p6bannerbot sets mode: +v random_yanek 18:37 reach_satori_ left
timotimo can't spell emacs without MS 18:40
18:40 reach_satori joined, |oLa| joined, p6bannerbot sets mode: +v reach_satori 18:41 p6bannerbot sets mode: +v |oLa| 18:44 jmerelo joined 18:45 p6bannerbot sets mode: +v jmerelo
jmerelo releasable6: status 18:46
releasable6 jmerelo, Next release will happen when it's ready. 0 blockers. 85 out of 121 commits logged
jmerelo, Details: gist.github.com/4efae63e19dbe4e55a...e4054ed379
18:48 pecastro joined 18:49 p6bannerbot sets mode: +v pecastro
Geth doc: 6c9a97c230 | (Richard Hainsworth)++ (committed using GitHub Web editor) | 66 files
Merge pull request #1 from perl6/master

update
18:49
doc: d8c2b04256 | finanalyst++ | 156 files
single word L<> to /type/link
doc: c5fb804374 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | 156 files
Merge pull request #2517 from finanalyst/master

make links cannonical We should probably add some recommendation and/or test to avoid this kind of links in the future. Great job, as usual, Richard
18:49 daxim left
18:52 daxim joined 18:53 p6bannerbot sets mode: +v daxim, |oLa| left 18:57 sno joined, p6bannerbot sets mode: +v sno 19:02 natrys joined 19:03 p6bannerbot sets mode: +v natrys 19:05 molaf joined 19:06 p6bannerbot sets mode: +v molaf
lucasb in '(something).Foo', if something is defined, then I would expect a defined Foo object 19:14
but when something is undefined, and it still makes sense the coercion, would you expect a *defined* Foo object or the Foo type object itself?
or maybe you think $undefvar.Foo should always die to avoid gratuitous coercions between type objects? 19:17
jmerelo lucasb: that's a good question for StackOverflow 19:21
lucasb: there's also $undefvar.?Foo, which might return Foo only if Foo is defined for that particular kind of undefinition...
Also, depends on what you mean by undefined. For many variable it might mean Any or Mu... 19:22
19:24 daotoad left
lucasb by 'undefined' I mean the type object, as in 'my Bar $bar', $bar is undefined, so it's the type object Bar 19:26
timotimo m: say Int.?Str 19:27
camelia Use of uninitialized value of type Int in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.

in block <unit> at <tmp> line 1
timotimo m: say (Int.?Str).perl
camelia Use of uninitialized value of type Int in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
""
in block <unit> at <tmp> line 1
timotimo .? is not about the definedness of the invocant, though. or did i misunderstand the question? 19:28
lucasb m: dd (Hash.Hash, Map.Hash, Hash.Map, Map.Map, Int.Hash, Num.Map) 19:31
camelia (Hash, Hash, Map, Map, {}, Map.new(()))
moritz timotimo: it is not
timotimo: but maybe we should create a ?. that is
lucasb ^^ I mean thing like these, while Hash.Hash return Hash (ok!), an arbitrary type object like Foo.Hash returns an actual hash
*a concrete hash 19:32
"Yeah, let's make Hash.Hash return a defined hash" NO! :D I meant to propose the other way: make SomeArbitraryTypeObject.Hash return the Hash type object 19:33
but taking this idea to the extreme, you reach things like should 'Numeric.Numeric' return itself or an real number (+ warning) ? :) 19:35
m: dd (Int.Int, quietly Int.Numeric) # a little funny to me :) 19:36
camelia (Int, 0)
timotimo yeah, that *is* funny
i mean, Int is already an Int, so no-op should be fine
but Int is also already a Numeric, so that should also be a no-op, then?
anyway, gotta AFK for a bit
lucasb timotimo++ o/
Geth doc: 5bd198b613 | (JJ Merelo)++ | doc/Language/experimental.pod6
Starts works on macros refs #2514
19:41
synopsebot Link: doc.perl6.org/language/experimental
19:41 jmerelo left 19:44 i1nfusion left 19:46 i1nfusion joined 19:47 p6bannerbot sets mode: +v i1nfusion
lucasb Yeah, I think timotimo touched on yet another detail: In '$subclass.SuperClass', you asked an object of type SuperClass, but $subclass *isa* SuperClass ('cause SubClass extends SuperClass), so it should be fine to return itself 19:47
But I think objects in the P6 API goes the extra effort of converting to a parent class type 19:48
SmokeMachine m: say {}.Associative.^name 19:49
camelia No such method 'Associative' for invocant of type 'Hash'
in block <unit> at <tmp> line 1
lucasb m: dd ([1,2,3].List, {a=>1,b=>2}.Map, True.Int) 19:52
camelia ((1, 2, 3), Map.new((:a(1),:b(2))), 1)
lucasb ^^ I mean thing like these: an Array already is a List, a Hash already is a Map, an Bool enumeration already is an Int 19:53
well, maybe it's ok and natural and P6 choosed this for pragmatic reasons :) 19:54
SmokeMachine m: say Array ~~ List 19:56
camelia True
SmokeMachine m: say Hash ~~ Map 19:57
camelia True
19:57 scovit joined 19:58 p6bannerbot sets mode: +v scovit 20:07 ferreira left 20:09 ryn1x joined 20:10 p6bannerbot sets mode: +v ryn1x 20:21 |oLa| joined 20:22 p6bannerbot sets mode: +v |oLa| 20:23 |oLa| left 20:24 ufobat_ left 20:26 HarmtH left
ryn1x What is the best way to create a new Buf of num32 of a specified size? Something equivelant to buf8.allocate(1024) 20:26
20:27 scovit left, scovit joined 20:28 p6bannerbot sets mode: +v scovit
ryn1x but with num64 instead of uint8 20:31
20:34 rickbike joined 20:35 p6bannerbot sets mode: +v rickbike 20:38 robertle left
timotimo m: say Buf[num64].allocate(64); 20:38
camelia Could not instantiate role 'Blob':
Bufs with native num64 not yet implemented. Sorry.
in any protect at gen/moar/stage2/NQPCORE.setting line 1101
in any protect at gen/moar/stage2/NQPCORE.setting line 1101
in block <unit> at <tmp> line 1…
timotimo m: say Blob[num64].allocate(64);
camelia Could not instantiate role 'Blob':
Blobs with native num64 not yet implemented. Sorry.
in any protect at gen/moar/stage2/NQPCORE.setting line 1101
in block <unit> at <tmp> line 1
timotimo m: say CArray[num64].allocate(64);
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared name:
CArray used at line 1. Did you mean 'array', 'Array'?
timotimo m: use NativeCall; say CArray[num64].allocate(64);
camelia NativeCall::Types::CArray[num64].new
jnthn buf is only really for integers
timotimo (carrays don't have sizes, so it won't print numbers there)
jnthn There's also num64 arrays 20:39
Which are packed
20:42 marmor left 20:47 HarmtH joined
ryn1x Maybe a better question is I need to pass a Blob to a native call function for it to fill.. I then want to be able to manipulate that data in a normal perl6 type so I can use things like Math::Matrix 20:47
20:48 p6bannerbot sets mode: +v HarmtH, natrys left
ryn1x I can pass the nativecall function a buf32, but I either want to convert what it fill to floats, or just pass it an appropriate data type that will auto fill at floats 20:48
timotimo sounds like the API of that module should be changed to also accept CArray 20:49
ryn1x hmm... let me try that. thanks. 20:50
timotimo i asked xliff to investigate if changing the type constraint in the native called function to Positional[intblah] would work properly with Buf, Blob, native arrays, and CArrays 20:51
also i suppose Pointer[intblah] would also be acceptable
ryn1x cool 20:52
timotimo i don't think there was a result yet. maybe you want to investigate that instead? :D 20:53
Xliff m: use NativeCall; sub a(Positional[uint8] $p) { say "{$p.^name} is Fine" }; my uint8 @a = ^10; my $b = Blob[uint8].new(@a); my $c = CArray[uint8].new(@a); a(@a); a($b); a($c) 20:55
camelia array[uint8] is Fine
Blob[uint8] is Fine
NativeCall::Types::CArray[uint8] is Fine
Xliff So... yes! ;)
timotimo that's not "is native" though
which is where my worry comes from. though it should probably be fine
Xliff Ah. Haven't gotten there, yet.
21:00 |oLa| joined 21:01 p6bannerbot sets mode: +v |oLa|
timotimo thanks for looking into it! 21:02
timotimo goes hopefully make dinner
21:06 ferreira joined 21:07 p6bannerbot sets mode: +v ferreira
Xliff Yeah... subs with "is native" trait will choke on Positional parameters. 21:07
21:12 ryn1x left 21:16 coet joined, p6bannerbot sets mode: +v coet 21:22 daotoad joined 21:23 p6bannerbot sets mode: +v daotoad 21:24 scovit left 21:32 scovit joined 21:33 p6bannerbot sets mode: +v scovit, captain-adequate left
timotimo damn 21:34
21:40 kurahaupo left
timotimo it does kind of make sense that nativecall wouldn't just accept any Positional. though it could totally do a very expensive .list at the start and .STORE at the end dance 22:03
22:14 go|dfish left 22:16 HaraldJoerg joined 22:17 p6bannerbot sets mode: +v HaraldJoerg
Geth doc: 92ebebf1bc | Coke++ | 2 files
prefer 'filesystem'
22:23
doc: f726356cff | Coke++ | doc/Type/Distribution.pod6
prefer 'filesystem'
synopsebot Link: doc.perl6.org/type/Distribution
Geth doc: 5a44730757 | Coke++ | doc/Type/Distribution/Hash.pod6
remove duplicated 'a'
22:24
synopsebot Link: doc.perl6.org/type/Distribution::Hash
22:28 go|dfish joined, p6bannerbot sets mode: +v go|dfish 22:37 dct joined, p6bannerbot sets mode: +v dct 22:42 kst joined 22:43 p6bannerbot sets mode: +v kst 22:49 HarmtH left 22:53 |oLa| left 23:05 dct left 23:08 dct joined, p6bannerbot sets mode: +v dct, molaf left 23:14 rindolf left 23:16 coet left
SmokeMachine It’s published! 23:17
23:22 HaraldJoerg left 23:25 ryn1x joined 23:26 p6bannerbot sets mode: +v ryn1x
timotimo that's rad 23:28
23:31 rickbike left, pecastro left, ChoHag left 23:32 ChoHag joined, p6bannerbot sets mode: +v ChoHag 23:34 scovit left 23:44 vrurg_ joined 23:45 scovit joined, p6bannerbot sets mode: +v vrurg_, vrurg left, vrurg_ is now known as vrurg, p6bannerbot sets mode: +v scovit
jnthn SmokeMachine++ # nice work on red, and nice advent post! :) 23:57
Using the meta-level for the database interactions is nice. 23:58