🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
00:05 pecastro left 00:26 epony left 00:27 oneeggeach left 00:38 abraxxa left 00:40 abraxxa joined 00:42 mowcat left 01:27 kvw_5 joined 01:28 epony joined 01:31 kvw_5_ left 01:59 frost-lab joined 02:44 abraxxa left 02:46 abraxxa joined 03:46 evalable6 left 03:50 evalable6 joined 04:10 grayrider joined 04:19 berber44 joined 04:53 berber44 left 04:55 abraxxa left 04:58 abraxxa joined 05:51 neshpion left 06:11 brown121407 joined 06:40 Doc_Holliwood joined, Doc_Holliwould left 06:52 wamba joined 06:59 domidumont joined 07:02 parabolize left 07:05 abraxxa left 07:08 abraxxa joined 07:27 aluaces joined, Sgeo left
Geth doc/master: 4 commits pushed by (JJ Merelo)++ 07:39
07:44 pmurias joined
Geth doc: 41f3ebc3c5 | (Tom Browder)++ (committed by Juan Julián Merelo Guervós) | doc/Type/DateTime.pod6
Correct the description of the epoch (posix) DateTime new method.
07:45
linkable6 Link: docs.raku.org/type/DateTime
07:51 pmurias left
frost-lab I'm curious about that how to declare a function with variadic parameters using NativeCall ? 08:13
It seems that that is not mentioned in the document. 08:16
moon-child can you just declare a slurpy param? 08:24
m: use NativeCall; sub printf(Str $fmt, *@args) is native('c') { * }; printf("hello, %s", "world") 08:25
camelia 5===SORRY!5=== Error while compiling <tmp>
Too many positionals passed; expected 2 arguments but got 3
at <tmp>:1
moon-child hmm 08:26
frost-lab I also tried ^^^ :), so I'm curious about that. 08:27
moon-child would look deeper, but quite late here so--good night and good luck!
frost-lab good night! 08:28
but for this
m: use NativeCall; sub printf(Str $fmt, Str $word) is native('c') { * }; printf("hello, %s", "world")
camelia Cannot locate native library 'libc.so': /usr/lib64/libc.so: invalid ELF header
in method setup at /home/camelia/rakudo-m-inst-2/share/perl6/core/sources/947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall) line 299
in block printf at /home/ca…
frost-lab m: use NativeCall; sub printf(Str, Int) is native { * }; printf("%d\n", 1); 08:29
camelia Potential difficulties:
In 'printf' routine declaration - Not an accepted NativeCall type for parameter [2] : Int
--> For Numerical type, use the appropriate int32/int64/num64...
at <tmp>:1
------> 3use NativeCall; sub print…
08:30 PimDaniel joined
frost-lab m: use NativeCall; sub printf(Str, Int) returns int32 is native {*}; printf("%d\n", 1); 08:30
camelia Potential difficulties:
In 'printf' routine declaration - Not an accepted NativeCall type for parameter [2] : Int
--> For Numerical type, use the appropriate int32/int64/num64...
at <tmp>:1
------> 3all; sub printf(Str, Int)…
08:35 sno left
frost-lab m: use NativeCall; sub printf(Str, int32) returns int32 is native {*}; printf("%d\n", 1); 08:35
camelia 1
08:36 Doc_Holliwould joined, Doc_Holliwood left
CIAvash From backlog, signatures can "autoflatten" because they are binding 09:14
m: my @a = <a b c>; my @b = 1,2,3; my (*@c) := @a, @b; dd @c; 09:15
camelia Array element = ["a", "b", "c", 1, 2, 3]
CIAvash gfldex, PimDaniel
09:24 xinming_ left 09:25 xinming_ joined 09:33 frost-lab left 09:38 pecastro joined
Geth doc: 56c2fec104 | (JJ Merelo)++ | doc/Type/Blob.pod6
Rewrites explanation

It closes #3144, which listed Buf instead of Blob. Also, explanation essentially read aloud code.
09:57
linkable6 Link: docs.raku.org/type/Blob
09:57 linkable6 left 09:58 linkable6 joined 10:22 xinming_ left 10:24 xinming_ joined
jjatria I had to disable precompilation on a module because I keep bumping into a serialisation error that doesn't give me much info on what is wrong: gitlab.com/jjatria/pop/-/commit/af...47fa0ceaec 10:40
Does anybody have any idea what might be going on?
The error in particular is "Serialization Error: missing static code ref for closure '' (gen/moar/World.nqp:2597)"
Seems like I might not be the first person to think this is LTA: github.com/rakudo/rakudo/issues/1471 10:42
dogbert11 .seen moritz 11:02
tellable6 dogbert11, I saw moritz 2021-04-01T21:26:39Z in #raku: <moritz_> sounds like a configuration/setup problem if it hasn't
moritz_ I'm around(ish) 11:20
11:20 |oLa| left, pmurias joined
pmurias japhb: do-gooders have historically done a ton of horrible things like witch burning, but I don't think we condemn module creators for changing stuff in their github repos ;) 11:23
tellable6 2021-03-26T18:29:01Z #raku <MasterDuke> pmurias: let me know when you're back on the graalvm/truffle and i'll see what i can do to help out
11:23 |oLa| joined 11:27 gugod joined
dogbert11 moritz: do you know who has access to Camelia? It seems stuck at a February commit. 11:37
moritz_ dogbert11: I think I have, but I cannot remember the name of the new host that nine has migrated it to 11:40
ah, found it
will take a look later
dogbert11 ++moritz 11:41
dogbert11 wonders if it's a classic case of a full disk 11:42
moritz_ fatal: unable to access 'github.com/rakudo/rakudo.git/': Failed to conne
ct to github.com port 443: Connection timed out
Geth doc: 1f60c8ba5c | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/system.pod6
see #3841

  $*ARGS -> @*ARGS
11:43
linkable6 Link: docs.raku.org/language/system
11:43 linkable6 left
PimDaniel o/ 11:43
11:44 aindilis` joined
PimDaniel say does not display before my first '\n' : what could this mean? 11:44
moritz_ PimDaniel: example? 11:45
11:45 aindilis left, linkable6 joined
PimDaniel say 'PASS' ; say 'PASS' ==> show second pass not the first. 11:45
11:48 Black_Ribbon left
moritz_ do you run that directly in the terminal? or is some kind of pipe with buffering involved? 11:51
pmurias MasterDuke: sure, if I'll get back into it I 11:55
MasterDuke: sure, if I'll get back into it I'll ping you
moritz_ nine: it seems that output IPv4 traffic from camelia.detonation.org has problems, for example `ssh -4 [email@hidden.address] says "Network is unreachable", lots of other hosts also fail. Could you please look into that?
dogbert11 moritz: thx for looking into it 12:01
12:05 b2gills left 12:07 abraxxa left
nine moritz_: the VM is v4 only 12:07
moritz_ nine: I haven't actually investigated IPv6 so far, just noticed that IPv4 is f'ed 12:08
nine We use NAT64 and DNS64 to connect to GitHub. Mathias replaced the trick-or-treat daemon with unbound for that this week. Maybe that's got some issues still 12:09
PimDaniel moritz_ I dont't have any pipes.
It's probaly a bord effect due to my general code. 12:10
But my code has nothing related to my question. 12:11
El_Che lo 12:14
MasterDuke smolck: i'm not sure re subclassing java classes, but jnthn, pmurias, and bartolin are good people to ask 12:16
tellable6 MasterDuke, I'll pass your message to smolck
12:18 |oLa| left
m6locks_ tyil: thank you for the DragonflyBSD version of Rakudo Star, installed and works now 12:30
El_Che \o/ 12:31
Geth doc: b2dc941c22 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/5to6-nutshell.pod6
see #3841

Lookahead_assertions
12:41
linkable6 Link: docs.raku.org/language/5to6-nutshell
12:41 linkable6 left, smolck joined 12:44 linkable6 joined 12:47 rindolf joined
Geth doc: a38bc01ff6 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/5to6-perlfunc.pod6
see #3841

method_prepend -> routine_prepend
12:50
linkable6 Link: docs.raku.org/language/5to6-perlfunc
12:50 linkable6 left 12:53 linkable6 joined
smolck MasterDuke: Okay, thank you. Any way I could/should ask one of them about that? I guess I could open an issue but if there's a better way (like just catching them in here or something), then I can do that instead. 12:53
tellable6 2021-04-02T12:16:35Z #raku <MasterDuke> smolck: i'm not sure re subclassing java classes, but jnthn, pmurias, and bartolin are good people to ask
Geth doc: 27b0666603 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/5to6-perlvar.pod6
see #3841

The_^_Twigil -> The_^_twigil
linkable6 Link: docs.raku.org/language/5to6-perlvar 12:54
12:54 linkable6 left
smolck Overall, my goal is to just use Raku (or at least try it out) in a Java/Kotlin project, and if I want to do that I'd need to subclass somethings, ideally 12:54
*some things
MasterDuke smolck: if you `.ask <nick> <question>` the tellable6 bot will give them the message next time they talk (like it passed you my message)
12:55 linkable6 joined
smolck Oh cool, thank you! 12:55
MasterDuke i don't remember how much our docs go into the differences between the backends (maybe not at all), but that might be a good issue to raise in the docs repo also. or stackoverflow 12:56
i can say that the jvm backend is not the primary one (anymore), so it definitely has warts and doesn't do as much as the moarvm backend 12:57
smolck Looking through I didn't see any docs on the topic (except for how to build the different backends in the Rakudo README and maybe some small mentions here and there), fwiw 12:58
But yeah I have read around and seen people saying that sort of thing about the JVM backend
To me, it would be really cool to be able to use Raku in the same setting as one could use, say, Scala or Kotlin, but if that's not possible then no worries 12:59
Geth doc: cd6782daca | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/compilation.pod6
see #3841

correct the elsewhere link
linkable6 Link: docs.raku.org/language/compilation
13:00 linkable6 left
smolck (I'd even be interested in writing a gradle plugin or similar to compile & use Raku in a gradle project, maybe) 13:00
13:02 linkable6 joined
lizmat smolck: if you encounter any issues, usev6 is our resident JVM backend maintainer, who is fighting an uphill battle and could use help :-) 13:03
smolck okay! I'm definitely interested in helping out wherever I can. 13:05
MasterDuke fwiw, there appear to be a couple existing SO questions/answers about java/raku interop, though you'll need to search for perl 6
13:06 pmurias left
Geth doc: 8feb033c27 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/control.pod6
See #3841

whenever-whenever -> whenever
13:06
linkable6 Link: docs.raku.org/language/control
13:06 linkable6 left
lizmat smolck: one of the big deficiencies of the JVM backend is the lack of support for NFG 13:06
MasterDuke most of the jvm work occurred when it was called perl 6, so that's a better search term 13:07
lizmat happens to be working on the uni* functions now
13:09 linkable6 joined
smolck lizmat: any issues on adding NFG support/related to it for the JVM backend? quick search didn't yield anything in the rakudo repo 13:10
lizmat NFG is implemented in MoarVM afaik, and partly on the JavaScript backend, if I'm not mistaken 13:11
smolck MasterDuke: re SO: don't appear to be any questions/answers on subclassing Java classes and such, unfortunately. Although I guess I could just test it myself . . . 13:12
lizmat: is there any work being done on it for the JVM backend, out of curiosity? 13:15
lizmat I think usev6 has looked at doing it a few times... but it *is* a lot of work, and I seem to recall that the JVM is sorta fighting alternate unicode implementations / support 13:16
13:20 Sgeo joined
Geth doc: 5d00c6651b | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/faq.pod6
See #3841

  - fix infix - link
  - type constraint smileys , change link to new 'Constraining argument definiteness'
  - rakudo-specific , correct link with (dd)
13:20
linkable6 Link: docs.raku.org/language/faq
13:20 linkable6 left 13:21 linkable6 joined 13:25 moony left, moony joined 13:27 aluaces left 13:28 aluaces joined
Geth doc: a7c7d60430 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/functions.pod6
see #3841

arity, points to wrong file
13:29
linkable6 Link: docs.raku.org/language/functions
13:29 linkable6 left 13:31 linkable6 joined
Geth doc: 343bc0c225 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/glossary.pod6
See #3841

use keyword point to a correct target
13:34
linkable6 Link: docs.raku.org/language/glossary
13:35 linkable6 left, b2gills joined 13:37 linkable6 joined
Geth doc: cf72fc5912 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/io-guide.pod6
see #3841

routine -> method and vice-versa
13:37
linkable6 Link: docs.raku.org/language/io-guide
13:38 linkable6 left
Geth doc: 77999cfebb | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/list.pod6
See #3841

capitalise Statements
13:39
13:40 linkable6 joined
Geth doc: 1d613e8498 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/math.pod6
see #3841

Heading changed to Operators_with_set_semantics
13:43
linkable6 Link: docs.raku.org/language/math
13:43 sno joined 13:44 linkable6 left, linkable6 joined
Geth doc: b1840e9aaa | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/nativetypes.pod6
See #3841

Multi-Dispatch -> Multi-dispatch
13:46
linkable6 Link: docs.raku.org/language/nativetypes
13:46 linkable6 left 13:47 linkable6 joined 13:54 smolck left
Geth doc: fd8db6e056 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/faq.pod6
see #3841

infix_(-) to infix_-
14:07
linkable6 Link: docs.raku.org/language/faq
14:08 linkable6 left 14:10 linkable6 joined 14:28 wamba left 14:49 finsternis joined
Geth doc: cfde583cd6 | (Richard Hainsworth)++ (committed using GitHub Web editor) | doc/Language/faq.pod6
see #3941

Dumper_function_dd -> Dumper_function_(dd)
14:52
linkable6 Link: docs.raku.org/language/faq
14:54 parabolize joined 15:13 Doc_Holliwould left, Doc_Holliwood joined 15:29 xinming_ left, xinming_ joined 15:30 UukGoblin joined 15:37 Sgeo left 15:46 Sgeo joined 16:00 |oLa| joined 16:15 |oLa| left 16:31 esh joined 16:40 aindilis` left, simcop2387 left 16:46 simcop2387 joined 16:53 simcop2387 left 16:59 |oLa| joined 17:11 sena_kun left, Util left 17:13 sena_kun joined 17:16 wamba joined 17:18 domidumont left 17:24 domidumont joined 17:28 domidumont left 17:29 mowcat joined
leont What's the trick for "X elements out these list". Essentially «map { <a b c>.pick } 1..4», except without the map. 17:37
(and no, pick(4) isn't the same) 17:38
japhb leont: .roll(4)? 17:39
leont Yeah, that's the one
Probably the docs for both should refer to the other, with an explanation of the difference
japhb Nod 17:40
codesections The pairing of .pick and .roll always makes me think of basketball 17:43
18:02 eseyman left 18:04 sena_kun left 18:06 eseyman joined 18:19 grayrider left 18:31 |oLa| left 18:32 |oLa| joined, |oLa| left 18:33 Sgeo left 18:34 natrys joined 18:35 Sgeo joined, Sgeo left 18:40 Sgeo joined 18:42 wamba left 18:45 wamba joined 18:46 simcop2387 joined, swaggboi left 18:49 swaggboi joined
tyil m6locks_: awesome :D 18:57
19:24 simcop2387 left 19:26 Black_Ribbon joined 19:30 simcop2387 joined 19:32 |oLa| joined 19:39 aindilis joined 19:50 parabolize left 19:51 parabolize joined 19:56 rindolf left 19:58 parabolize left 19:59 parabolize joined 20:11 Doc_Holliwould joined 20:12 Doc_Holliwood left 20:27 kvw_5_ joined 20:30 kvw_5 left 20:45 PimDaniel left 20:47 kurahaupo left 20:48 kurahaupo joined 20:51 ssm_ left 20:54 ssm joined 21:09 neshpion joined 21:11 dogbert17 joined 21:14 dogbert11 left 21:33 natrys left 21:34 guifa2 left 21:44 wamba left 21:46 Xliff joined
Xliff \o 21:46
When I run `raku -e 'use Build; Build.build' in a directory with a Build.pm6 file present, why am I getting an error with this message: "Please note that a 'META6.json' file was found in '.', of which the 'provides' section was used to determine if a dependency is available or not. Perhaps you need to add 'Build' in the <provides> section of that file? Or need to specify a directory that does *not* have a 'META6.json' file?" 21:47
ugexe you aren't providing any -I. or -Ilib ? 21:49
Xliff Not the first time. Did the second time with the same result 21:50
ugexe well the results cant be the same unless you have a module named "Build" installed
Xliff Not "installed" as in the zef sense. 21:51
ugexe anyways even if you provide a path, does that path contain a META6.json? and if so does that META6.json contain a Build.pm6 file? I would assume no, and thus you can't use e.g. `-I.` to load a Build module
Xliff OK. So I'm trying to make a Build.pm6 file for zef, and I want to test it. What is the best way to do that? 21:52
ugexe if you run `zef build . --verbose` it should show you the command it uses 21:53
github.com/ugexe/zef/blob/dc85148b...akumod#L85 is the actual command
but basically you `require $path_to_Build_dot_rakumod; ::("Build").build(...)` 21:54
Xliff Getting a FAIL with no additional information.
ugexe well all it does is run the build file
if your build file doesn't provide any insight you wont get any
Xliff Ah! The trick was 'require'. 21:56
ugexe++ # Thanks, much.
22:14 mowcat left
leont «Unhandled exception in code scheduled on thread 4» was a less than awesome error message 22:14
23:14 evalable6 left, linkable6 left 23:15 linkable6 joined 23:16 evalable6 joined 23:26 maggotbrain left