🦋 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:19 BenGoldberg joined 00:34 approaching236 left 00:36 mowcat left 00:42 leont left 00:44 aborazmeh joined, aborazmeh left, aborazmeh joined 01:08 marcusr left, marcusr joined 01:13 elcaro left 01:14 stoned75 left 01:20 elcaro joined 01:25 stoned75 joined
ggoebel I would like to thank everyone who put themselves forward as nominees to serve on the RSC. Congratulations and condolences to those who were elected. I do not envy you the often thankless task of governance and cat herding. Condolences and congratulations to those who will not be serving. I appreciate that you put yourself out there and were willing to serve. 01:30
tellable6 hey ggoebel, you have a message: gist.github.com/ece2ae9ad7a28c2e78...59fe21a350
01:36 elcaro left 01:46 aborazmeh left 01:50 elcaro joined
Geth Raku-Steering-Council/main: bfaf089926 | (Nick Logan)++ (committed using GitHub Web editor) | nominations/2020/acceptance.txt
Update acceptance.txt
02:30 guifa2 joined
guifa2 rypervenche: big update to the editor. Now it'll save your edits and let you download a new copy of it. Haven't extensively tested the saved files, but they seem to be an accurate copy 02:31
err meant that for /msg but works for everyone too ha. Intl::X now has a localization editor that works in browser and lets your run actual real Raku code to test things 02:32
02:33 zacts joined 02:59 BenGoldberg left, Ben_Goldberg joined, Ben_Goldberg is now known as BenGoldberg 03:00 Mawile left 03:12 dead10cc joined 03:26 BenGoldberg left, BenGoldberg joined 03:41 zacts left 04:06 rba left 04:07 rba_ joined, rba_ is now known as rba 04:10 molaf joined 04:11 BenGoldberg left 04:17 molaf left 04:26 dead10cc left 04:50 aluaces joined 05:01 ex_nihilo joined 05:12 oodani_ left 05:13 oodani joined 05:15 abraxxa left 05:18 abraxxa joined 05:20 stoned75 left 05:22 stoned75 joined 05:26 dogbert17 joined 05:28 dogbert11 left 05:34 skids left 05:47 aluaces left 05:58 zacts joined, maggotbrain left 06:00 maggotbrain joined 06:12 aluaces joined 06:19 Sgeo left 06:20 aborazmeh joined, aborazmeh left, aborazmeh joined 06:21 yuplushi left
Geth Raku-Steering-Council/acceptance-jj: 0ea2b886e7 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | nominations/2020/acceptance.txt
Adds myself
Raku-Steering-Council: JJ++ created pull request #36:
Adds myself
06:27 jmerelo joined
jmerelo releasable6: status 06:27
releasable6 jmerelo, Next release will happen when it's ready. 3 blockers. Changelog for this release was not started yet
jmerelo, Details: gist.github.com/03a88eb832c8d96dfe...db4bad6a65
06:31 ggoebel left, yuplushi joined 06:33 patrickb joined 06:46 Altai-man joined 07:02 BenGoldberg joined 07:03 sena_kun joined 07:05 leont joined, Altai-man left 07:11 aluaces left
jmerelo zoffix is back: github.com/rakudo/rakudo/issues/3929 07:20
07:30 dakkar joined 07:35 BenGoldberg left
lizmat clickbaits rakudoweekly.blog/2020/09/21/2020-...l-results/ 07:42
07:54 rindolf joined 08:20 patrickb left 08:22 Altai-man joined 08:24 sena_kun left 08:51 jmerelo left
El_Che lo 09:02
moritz lizmat++ 09:35
09:43 Black_Ribbon left 10:19 jast joined 10:26 nige left, nige_ joined, BenGoldberg joined 10:58 telex left, telex joined 11:00 BenGoldberg left
tbrowder congratulations to the newly elected RSC members! Ilook forward to interesting things coming from the "head shed." 11:35
12:00 evalable6 left, linkable6 left 12:01 linkable6 joined 12:02 evalable6 joined, aluaces joined 12:17 ggoebel joined
Altreus How do I print binary data to a Proc? It's currently in a Blob[uint8] 12:18
.print tries to .Str it and then tells me off 12:19
12:21 nebuchadnezzar left 12:23 ggoebel left, sena_kun joined
sena_kun Altreus, .write? 12:23
Altreus ah! 12:24
how did you do that
You joined after I asked but answered anyway!
sena_kun Altreus, that's magic! 12:25
12:25 Altai-man left
Altreus that's numberwang 12:34
12:36 ex_nihilo left 12:46 aborazmeh left 12:50 ggoebel joined 13:09 mowcat joined 13:17 _jrjsmrtn joined 13:18 __jrjsmrtn__ left 13:31 domidumont joined
Xliff Um... if Raku bindings could be made for the header files listed at the bottom of this page: docstore.mik.ua/orelly/apache_mod/124.htm 13:40
How difficult would it be to then link Cro into Apache? 13:41
sena_kun Xliff, not sure how anyone can give estimates. "How difficult" depends on so many things.
Xliff I don't care if there are more than one. 13:42
Although a path of least resistence estimate would be nice.
So I would be interested in keeping Cro::Router, and everything associated, but let Apache deal with the heavy lifting of protocol level communication. 13:44
sena_kun Xliff, Cro can do that, yes. Router is just a transform that takes a request and returns a response, so if you can write sink/source using natives - yes. 13:46
The question is more about writing bindings for all that and using them in a working way to transfer data. 13:47
While Cro part is not so hard: having a source and a sink, just slap in there a router, compose, you're done.
codesections Xliff: any particular reason you mention Apache as opposed to other servers? Or did you just use them as an example of a server that could play that role? 13:48
timotimo hm, no bindings to libav, eh? 13:49
13:51 Sgeo joined 13:52 BenGoldberg joined 13:53 aborazmeh joined, aborazmeh left, aborazmeh joined 13:59 zacts left 14:00 zacts joined
Xliff codesections: There is no reason that Apache be the only one. 14:01
It's just that's the webserver I "grew up" on, so it's always at the front of my mind.
codesections: The only real limitation is this: a public API 14:02
timotimo: Wanna write some? :) 14:03
codesections Xliff: totally fair. I've mostly grown up on nginx, but know that a lot of people really like Apache
Xliff codesections: Plus, I was reading up on writing modules for Apache while musing about things. 14:05
Would totally be neat to take a class to serve as entry-point, break it down. Write an APXS .c around it to compile and use as a module for Apache. 14:06
That was my initial thought any way. Other webservers would be a variation of this.
codesections I just asked this on r/rakulang, but thought I'd ask here too: How would you describe Raku in one sentence? www.reddit.com/r/rakulang/comments..._sentence/ 14:11
Xliff codesections: "The language where one sentense is not enough to do it justice." 14:15
:)] 14:16
codesections fair (though not super helpful!). Here's my attempt: 14:23
a concise, expressive, multiparadigm language supporting gradual typing, parallelism & concurrency, rich metaprogramming/introspection, and best-in-class string processing and pattern matching.
14:25 aluaces left 14:26 BenGoldberg left
codesections revised for punchiness: «Raku is a concise, expressive, aggressively multiparadigm language that supports gradual typing, built-in concurrency, rich metaprogramming, and best-in-class string processing and pattern matching» 14:31
[Coke] finds (๑˃̵ᴗ˂̵)و sitting in a text file in his home dir 14:35
Xliff [Coke]: Next time, lock your doors. :) 14:36
codesections: Much better! I think mine came from a distinct desire to be laszy. Glad to have you around! 14:37
[Coke] Xliff: ha
14:38 jmerelo joined 14:43 mowcat left 14:53 nebuchadnezzar joined 14:57 sno left 14:59 sno joined
Geth doc: 40837a1d98 | (Patrick Böker)++ (committed using GitHub Web editor) | doc/Type/IO/Path.pod6
`IO::Path.x` gives false-positives for scripts

Add a note saying so. May this save some future reader some grief.
linkable6 Link: docs.raku.org/type/IO::Path
15:10 jmerelo left 15:13 Tirifto joined, zacts left, xinming joined 15:14 MasterDuke left 15:16 xinming_ left 15:17 molaf joined
guifa2 codesections: I think Raku like legos. You can go simple or complex, but the deeper and bigger you go the more its beauty shows. 15:19
codesections guifa2: I agree. The problem with that, though, is that you can pretty much s/Raku/programming/ and have that still be true. Now, it's _more_ true of Raku, but that sentence doesn't do a lot to convey that/why that's true 15:21
15:34 zacts joined 15:49 Archenoth joined 15:57 zacts left, zacts joined
JJAtria[m] I really liked how lichtkind described Raku at the conference in Glasgow a couple of years back: like an English garden 15:59
At first it looks wild and messy, but as you explore it you find vantage points that cut across the language, and realise that there is a pervasive consistency in its design
I think about it often actually :')
16:00 MasterDuke joined
codesections JJAtria[m]: I _think_ I really like that. I haven't experienced an English garden of the sort it's describing, so the analogy loses a bit of its power – but I can certainly imagine it 16:04
Geth doc: 8a22fcc235 | Coke++ | xt/check-signatures.t
Make test respect TEST_FILES

Closes #3611
linkable6 DOC#3611 [closed]: github.com/Raku/doc/issues/3611 [xt] xt/check-signatures.t doesn't respect TEST_FILES
JJAtria[m] I can't remember what garden he used at the time to illustrate, but I've had that experience in Kew Gardens, so it really clicked with me 16:08
16:09 cpan-raku left 16:10 eery left, cpan-raku joined, cpan-raku left, cpan-raku joined 16:11 eery joined 16:13 jmerelo joined 16:15 mowcat joined 16:20 ggoebel left 16:22 Altai-man joined 16:25 sena_kun left 16:28 skids joined 16:32 alekc joined 16:33 alekc left 16:34 dakkar left 16:39 domidumont left 16:53 hungrydonkey joined 16:55 aborazmeh left, approaching236 joined 17:03 patrickb joined 17:05 dead10cc joined 17:17 BenGoldberg joined 17:20 dead10cc left 17:25 aluaces joined 17:26 mowcat left
AlexDaniel codesections: very good question, btw! 17:28
codesections thanks :) 17:30
17:34 dead10cc joined
[Coke] tries to get work to use the HALFWIDTH CORNER BRACKETS to highlight some stuff in our product. 17:37
17:51 BenGoldberg left 17:58 natrys joined 18:02 reportable6 left 18:04 molaf left 18:06 reportable6 joined 18:16 dead10cc left 18:17 tejr left, tejr joined 18:18 zacts left 18:24 Sauvin left 18:25 zacts joined 18:31 hungrydonkey left 18:42 zacts left 18:49 molaf joined 18:53 Tirifto left 19:01 hungrydonkey joined 19:29 jmerelo left 19:33 hungrydonkey left 19:38 toughy joined
toughy Hello guys ! 19:38
codesections o/
toughy Am I doing something wrong here ? 19:39
Wait ... how do I show some code ?
codesections m: say 'like this'
camelia like this
toughy m: module API::v1 { our sub fad { 11 * 22 } }; module API::v2 { our &s-sub := &API::v1::fad }; API::V2::s-sub 19:40
camelia Could not find symbol '&s-sub' in 'V2'
in block <unit> at <tmp> line 1
toughy m: module API::v1 { our sub fad { 11 * 22 } }; module API::v2 { our &s-sub := &API::v1::fad }; API::v2::s-sub 19:41
camelia Cannot invoke this object (REPR: Uninstantiable; Callable)
in block <unit> at <tmp> line 1
toughy There !
Is it me or is it camelia ?
Or how do I re-export from M2 the subs imported from M1 ? 19:43
Or how do I re-export from Module2 the subs imported from Module1 ? 19:45
codesections This is a bit of a tangent from what you're asking about, but do you know about the `:ver` trait? It'd let you distiguish between `API:ver<1>` and `API:ver<2>` and give you better introspection/etc. 19:47
toughy I would like to load both API::v1 and API:v2, and then detect the version of an external .dll at runtime, or read some user choice, in order to choose one 19:50
But when I tried it I could not `use` both API:ver<1> and API:ver<2>, they appear mutually exclusive
codesections I see 19:56
I'm not sure I 100% follow what you'd like to do. Is this it? 19:59
m: module API::v1 { our sub fad { 11 * 22 } }; module API::v2 { our sub s-sub {&API::v1::fad()} }; API::v2::s-sub
camelia ( no output )
codesections m: module API::v1 { our sub fad { 11 * 22 } }; module API::v2 { our sub s-sub {&API::v1::fad()} }; say API::v2::s-sub
camelia 242
toughy Yes, I would like that 20:00
So I want to import SQLError from ODCB::API::v1 in my ODBC::API::v2, then also export the same function SQLError
20:02 Kaiepi left
toughy The `our &f1 := &f2` declaration works as expected if modules are not involved 20:03
Which makes me wonder if I am doing something wrong, or is just the perl implementation that still needs to catch up with this
codesections I have to step away for a minute; I hope someone else can help you in the meantime. If not, I'll be back in a bit 20:04
tobs toughy: binding := happens at compile time. That seems to be what is throwing things off. The &API::v1::fad is apparently not yet available at the time you try to bind to it: 20:16
m: module API::v1 { our sub fad { 11 * 22 } }; module API::v2 { our &s-sub := &API::v1::fad }; say &API::v2::s-sub
camelia (Callable)
tobs m: module API::v1 { our sub fad { 11 * 22 } }; module API::v2 { our &s-sub = &API::v1::fad }; say API::v2::s-sub # with assignment instead 20:17
camelia 242
tobs I don't know if that's to be expected though…
20:23 sena_kun joined 20:24 Altai-man left
tobs hmm, the same happens even when I put the two modules into separate files and load v1 from v2. 20:25
toughy I tried with assignment before, it still gave me the error ...
But here it works ... I'm confused 20:27
Thank you anyway ! 20:28
20:28 guifa joined
guifa \o 20:28
20:31 ggoebel joined, Black_Ribbon joined 20:32 toughy left 20:34 stoned75 left 20:42 rindolf left, BenGoldberg joined 20:48 hungrydonkey joined 20:50 sena_kun left 21:10 patrickb left 21:16 BenGoldberg left 21:37 approaching236 left 21:50 natrys left 22:04 zostay left, SmokeMachine left, peteretep left, spycrab0 left, peteretep joined, ChoppedBacon left 22:05 spycrab0 joined, SmokeMachine joined 22:06 ChoppedBacon joined, zostay joined 22:10 aborazmeh joined, aborazmeh left, aborazmeh joined 22:19 aluaces left 22:22 hungrydonkey left
rypervenche Is there a way to slurp all of the files in a directory into a single variable? 22:29
22:30 abraxxa left
rypervenche Without specifically hardcoding each filename in my script. 22:30
AlexDaniel rypervenche: how about dir(‘somewhere’/).map(*.slurp).join or something similar? 22:31
22:31 abraxxa joined
rypervenche Ah ok. I wasn't sure if there was anything builtin with slurp. I'll go with that then. :) Thanks 22:32
AlexDaniel rypervenche: keep in mind that dir doesn't sort the results
so maybe you need .sort.map
rypervenche I'm fine with that.
AlexDaniel rypervenche: fyi unicode stuff on file boundaries may be a problem 22:33
and the performance may not be great depending on how many files you have
22:35 approaching236 joined
parabolize rypervenche: as for getting the file names without harcoding you can use variables like $*HOME and $*CWD. You can also store the path in a config file with something like Config::TOML 22:54
$*CWD.add('/blah/blah').dir».slurp.join 22:55
rypervenche Thanks for the ideas. I think a dir + map will do nicely for this one. 23:21
23:29 approaching236 left 23:31 kent\n left
rypervenche Would using hyper to read from a single hash cause a race condition and cause the error "A worker in a parallel iteration (hyper or race) initiated here:" ? 23:36
I know that would happen with writing to a hash, but I no idea with reading from one.
timotimo that just means an exception happened in one of the workers 23:39
reading from hashes should be fine, but nothing is allowed to write to it at the same time
23:59 BenGoldberg joined