🦋 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:12 sena_kun joined 00:14 xelxebar left, xelxebar joined, Altai-man_ left
tony-o tbrowder: this is the DB stuff i've been toying with: github.com/tony-o/mrm-demo 01:00
01:07 john_parr_ is now known as st_elmo 01:11 fridim left
vrurg anybody remembers what statement `cat $fh.lines` meant in early specs? 01:13
01:19 fridim joined 01:31 aborazmeh joined, aborazmeh left, aborazmeh joined
tbrowder tony-o: interesting, anything to make easier to use a real db is cool! 01:36
vrurg: i missed my deadline, hopefully i'll get it tomorrow. nite all 01:37
vrurg tbrowder: no rush. :) g'night!
01:49 molaf_ joined 01:53 molaf left 01:58 gnufr33dom joined 02:02 Manifest0 left 02:03 Manifest0 joined
Nasrudin Is there a way for a raku script to ask how much memory it is taking (e.g. getrusage())? 02:07
rockxloose Nasrudin: see type/Telemetry or say/run routines for shelling ps out. 02:11
02:12 Altai-man_ joined 02:14 sena_kun left 02:15 MasterDuke left
Nasrudin That works. Thanks! :D 02:20
02:35 aluaces left 02:40 ensamvarg3 joined 02:49 xinming_ left 02:50 xinming_ joined 03:12 xelxebar_ joined 03:13 xelxebar left 03:17 aborazmeh left 04:10 rindolf joined 04:13 sena_kun joined 04:14 Altai-man_ left 04:23 melezhik joined
melezhik .tell tony-o - "and a website similar to metacpan for browsing and finding packages. " - I am interested in contributing of that part , could pleas PM on that? 04:24
tellable6 melezhik, I'll pass your message to tony-o
melezhik .tell tony-o I've written you a email with details 04:37
tellable6 melezhik, I'll pass your message to tony-o
04:39 melezhik left 04:42 rindolf left 04:43 xinming_ left 04:44 xinming_ joined 05:03 wamba joined 05:06 OpenZen left 05:07 vrurg left, andrzejku joined 05:08 vrurg joined 05:15 Kaiepi left 05:19 skids left 05:29 bocaneri joined 05:32 Kaiepi joined 05:58 rindolf joined 06:11 aluaces joined 06:12 Altai-man_ joined 06:14 sena_kun left 06:44 patrickb joined
samebchase- Could be of interest to those working on the Raku implementation: webkit.org/blog/10308/speculation-...criptcore/ 06:48
Geth doc: ff95be17d0 | (Paul Cochrane)++ (committed using GitHub Web editor) | 2 files
Link to Bool types (#3543)

  @JJ mentioned in #3542 two locations where it would be more appropriate
to refer to the Bool type as opposed to Booleans. This commit addresses this issue and helps address #3517.
06:53
linkable6 DOC#3543 [closed]: github.com/Raku/doc/pull/3543 Link to Bool types
DOC#3542 [closed]: github.com/Raku/doc/pull/3542 Capitalise the word "Boolean"
DOC#3517 [open]: github.com/Raku/doc/issues/3517 [docs][easy to resolve] Boolean should be capitalized
06:54 domidumont joined 06:56 skyl4rk left, skyl4rk joined
Geth doc: aec4740ded | (Paul Cochrane)++ (committed using GitHub Web editor) | 2 files
Add `update-html` make target (#3544)

  * Add update-html target
  ... to update the HTML. This is easier to remember than the
  `documentable update` command as it uses the make infrastructure which
is already present. It also uses the same general interface to the ... (18 more lines)
06:57
linkable6 DOC#3544 [closed]: github.com/Raku/doc/pull/3544 Add `update-html` make target
problem-solving: antoniogamiz++ created pull request #216:
Add first draft of URL specification, refs #93
07:27
07:27 leont joined 07:34 holyghost left 07:43 pecastro joined 08:02 ccamel joined 08:03 camelCaser left 08:04 xelxebar_ left 08:05 Celelibi left 08:06 xelxebar joined
kawaii o/ 08:08
08:13 sena_kun joined, wamba left 08:14 Altai-man_ left
lizmat elcaro: thanks what are you missing in Hash2Class ? 08:14
08:16 Celelibi joined 08:18 xinming_ left 08:29 MasterDuke joined 08:38 wamba joined 08:52 holyghost joined 08:56 Sgeo left 09:13 MasterDuke left 09:17 andrew_ joined 09:19 andrew_ left 09:20 andrew_ joined 09:25 cpan-raku left 09:31 cpan-raku joined, cpan-raku left, cpan-raku joined, thundergnat left
lizmat github.com/Raku/Raku-Steering-Council/issues/20 # who can vote for the RSC and be voted for 09:55
10:06 wamba left 10:12 Altai-man_ joined 10:14 sena_kun left 10:17 MasterDuke joined
cpan-raku New module released to CPAN! Hash2Class (0.1.2) by 03ELIZABETH 10:20
10:22 andrew_ left 10:26 wamba joined 10:36 yangzq50 joined 10:39 andrew joined 10:58 demostanis joined 11:08 demostanis left 11:13 demostanis joined
demostanis Hello everyone! I'm having yet another issue with regexes, I wonder if I'll ever get good at it one day... With codesection's help yesterday I've learned about the `<(...)>` thing which allows me to capture only what I need in regex... Though, I have the following case: `"AABBCC DDDD AABBCC" ~~ / [ [ AABBCC | DDDD ] \s* ]* /` this matches the entire string. Now I'd want only to have the AABBCC, not the DDDD. 11:16
So I do that: `"AABBCC DDDD AABBCC" ~~ / [ <([ AABBCC)> | DDDD ] \s* ]* /`, but it will only match the first AABBCC (I think it's not considering the * quantifier) What should I do? Thanks...
11:19 andrzejku left 11:24 andrzejku joined 11:31 abraxxa left
Altai-man_ demostanis, hi! Can you please specify the rules? Are `DDDD` delimiters? What is the task here? 11:38
moritz demostanis: I don't think <( and )> can really ever work the way you want them to work 11:39
they are markers "the match starts here" and "the match ends here", but you cannot use them to chop up a string to match, not match, and then match again
cpan-raku New module released to CPAN! Discogs::API (0.0.1) by 03ELIZABETH 11:40
El_Che the ecosystem grant request is strange. TPF support would suggest approval of a very specific implementation 11:43
is it just me?
Altai-man_ El_Che, well... It is undeniable the current ecosystem options have their own flaws. At the same time, there is no Raku solution around and it is a great time to get one. The cost is high IMO, but that is living level difference, US is expensive, I imagine. Other than that it seems sane to me. 11:45
I have what I'd call "not the best" experience with CPAN and I am tired to be annoyed with the "fixes were commited but version in zef cache still fails to install, nuke it" thing. 11:47
Also, isn't TPF rakudo grants support a very specific implementation? 11:48
El_Che yes, all the options are terrible in my opinion, including the grant request one
Altai-man_ El_Che, it's time to discuss what can be done better then? 11:50
El_Che personally I would copy the go way
( and I want to have a look at what activestate is doing with their new pkg manager)
Altai-man_ `import github/foo`?
El_Che mostly the git tag based import, not the syntax 11:51
it can be a line in meta6
Altai-man_ I imagine this can be discussed given the grant author is willing to cooperate. 11:52
11:52 reach_satori_ left
El_Che my point is is that it may be too early to pin an specific implementation 11:52
11:52 reach_satori_ joined
El_Che maybe other languages have also good idea's 11:52
gfldex Is there a way to tell if a IO::Handle was opened for writing? 11:53
El_Che but replicating CPAN/python/npm sound like copying the worst of those languages
that's why often people *hate* deploying projects in those languages 11:54
11:54 JJMerelo joined
El_Che if the ecosystem is fragile, vendoring (keeping deps in the project) repo is a huge win 11:54
demostanis moritz: How would I do? 11:55
Altai-man_ demostanis, what are you trying to do? 11:56
demostanis Matching an .ini file with multi-line support using \, with moritz's recommendations, my code matches a single value using `token value { [ <normal-value>+ | <backslash> | <.newline> ]* }`, a normal-value matches anything but comments, new lines and backslashes, a new line matches a new line preceded by a backslash, and backslash matches a \ before \S 12:00
I would want to get normal-value and backslash as a string
Altai-man_ demostanis, if you want to disregard backslashes / newlines-spaces, make tokens you care about named ones and process then in actions class afterwards. 12:04
Or set the thing you want to be positional capture and handle it.
m: say ("AABBCC DDDD AABBCC" ~~ / [ [ (AABBCC) | DDDD ] \s* ]* /)[0]
camelia [「AABBCC」 「AABBCC」]
Altai-man_ ^ is this what you want? 12:05
demostanis God damn. It was that easy. It solved my problem, thank you so much. I feel stupid now 12:07
Altai-man_ No need to, it is tricky when you start.
demostanis Another, unrelated, question, what's dist.ini file and what manages it? I get no results when I search on docs.raku.org 12:09
Altai-man_ I believe this file is used by CPAN and some people are uploading Raku modules there, so it is not Raku specific. 12:10
And it is not necessary to distribute a module.
demostanis Oh ok, thanks
JJMerelo Hey 12:17
Tomorrow the 20th aniversary calendar starts... And we still need lots of articles. 12:18
Altai-man_ JJMerelo, do we need 20 articles or?
JJMerelo We're looking at short papers that dissect one of the original RFCs and relate them to current Raku stuff github.com/Raku/advent/tree/master/20th
Altai-man_ right 12:19
Altai-man_ I see.
JJMerelo So, 13 to go.
El_Che JJMerelo: to late now, but I think that stressing that Perl6 is 20y old kind of clashes with the "new" exciting raku lang narrative :) 12:21
JJMerelo Python is even older, but it's still marketed as exiciting and up-and-coming
El_Che I also need _you_ to write something :-) 12:22
And it's not the language, but the inception.
The way it was designed is pretty unique, and I think we need to stress that, as well as honor and appreciate the people who created those first RFCs in the summer of 2000 12:23
El_Che I get the motivation
JJMerelo They could have been surfing the dot-com bubble, but they were spending the time doing that. So kudos.
El_Che I am just pointing out the mixed signals
with perl 7 coming (or not) there is need to create as much distance as possible 12:24
Altai-man_ True. But more stuff on the net is a cool thing. Including `Raku programming language` there helps e.g. TIOBE and SEO in general. 12:25
JJMerelo perl 7 is coming, there's no doubt about that 12:26
El_Che is it
JJMerelo I mean, not my fight or mine to say.
What's mine to say is : we''ve decided to get ahead with this celebration, and we're gonna do it. 12:27
Wanna help, that's fine.
El_Che Reading the mailinglist I feel they are in a python2->3+perl5->6 road
JJMerelo Don't wanna help but talk about mixed signals, that's fine too. But I don't know sh*t about marketing or, for that matter, signals beyond kill -KILL. I know about celebrating a process, the people, and what brought us here. 12:28
Which is what I'm trying to do.
lizmat I've unsubscribed from *all* Perl mailinglists, I feel much better now
the elephant has left the room, and everybody is staring at each other 12:29
leont It is my problem, and I really wish it wasn't :-/
El_Che lizmat was the unifying factor
:)
12:45 aluaces left 13:02 aborazmeh joined, aborazmeh left, aborazmeh joined 13:13 sena_kun joined 13:14 Altai-man_ left 13:20 domidumont left 13:25 aluaces joined 13:26 andrzejku left
guifa2 JJMerelo: I'll work on my article tthis afternoon. If you need a second one or two, I can probably get them done on Sunday or Monday. 13:34
JJMerelo Great, thanks!
13:38 aborazmeh left
leont JJMerelo: If the angle "why smartmatch works in Raku and not in Perl" falls within the scope of what you want, I know what to write. Otherwise you need someone else. 13:45
JJMerelo Please do
As long as you refer to a specific RFC, we're good. 13:46
13:48 andrew left 13:51 JJMerelo left 14:20 Maylay left 14:22 Maylay joined 14:23 e joined 14:57 wamba left 15:00 gnufr33dom left 15:03 skids joined
moritz can haz RFC 112 PLZ? 15:23
15:25 lichtkind joined
cpan-raku New module released to CPAN! Math::Libgsl::Constants (0.0.6) by 03FRITH 15:25
15:27 MilkmanDan left 15:32 andrzejku joined 15:34 OpenZen joined 15:42 JJMerelo joined
gfldex lolibloggedalittle: gfldex.wordpress.com/2020/07/31/dogfood-time/ 15:44
15:46 MilkmanDan joined
Geth advent: 99e6aa67d1 | (Moritz Lenz)++ | 20th/README.md
Claim RFC 112
15:50
[ptc] moritz: oh dear, I'm becoming so German. I read the end of your question as "112 Postleitzahl"! 15:57
demostanis Is there a way to improve this piece of code (to make it not repetitive): 16:01
$!thing = %hash{'thing'}; 16:02
$!other-thing = %hash{'other-thing'};
16:04 andrzejku left
gfldex demostanis: heavily depends on the context 16:08
demostanis The code is inside a the submethod BUILD of a normal class
16:12 Altai-man_ joined 16:14 sena_kun left 16:26 yangzq50 left
gfldex demostanis: gist.github.com/f577d9816af2b6b2dc...e92a3ace10 16:30
so the answer is yes bug slow
s/bug/but/ 16:31
also, you may want to ask that question again when we got proper macros 16:32
Altai-man_ Hmm...
There is a much easier solution, no? 16:33
rypervenche Couldn't you also do something like: ($!thing, $!other-thing) = %hash{'thing', 'other-thing'};
Altai-man_ m: class C { has $.foo; has $.bar; method BUILD(:$!foo, :$!bar) {} }; my %h = foo => 42, bar => 100; say C.new(|%h)
camelia C.new(foo => 42, bar => 100)
rypervenche That wouldn't scale, and I'd rather have separate lines for better readability, but yeah.
demostanis This works, thanks. What do you mean by proper macros? 16:35
16:36 zacts joined
demostanis Also rypervenche and Altai-man_ solutions won't work in my case as the hash is created depending on an argument passed to the submethod BUILD. 16:37
gfldex there is currently work done to rewrite AST handling in Rakudo. That is likely going to get us hygenic macros that actually work.
16:37 xinming joined
Altai-man_ demostanis, can you provide a bigger example, please? 16:38
Geth advent: 5558e4cb35 | (Moritz Lenz)++ | 20th/articles/rfc112.md
Draft for RFC 112 musings
moritz JJMerelo: my first draft, feedback would be welcome
(from others as well)
JJMerelo moritz++
demostanis has $!prop; submethod BUILD(:$thing) { my %hash = do-something($thing); ... } 16:40
But glfdex's solution works
JJMerelo Just published this as an intro rakuadventcalendar.wordpress.com/2...-tomorrow/ Feedback is also welcome. 16:43
16:50 orinthe left, orinthe joined
guifa2 random C question for some code I'm porting: truthiness of a struct is if all members are truthy right? 16:55
lizmat JJMerelo: ready for release ? 17:00
rakuadventcalendar.wordpress.com/2...-tomorrow/ I mean?
JJMerelo Well, I'm not publicizing it yet other than here, before I hear everyone. But yes, we should be publishing some intro pretty much now. 17:01
lizmat looks fine to me, am about to tweet
JJMerelo Anyone with privs, just change whatever you want; if not, tell me and I'll try to change it when possible...
lizmat ah, OK :-)
moritz, I really loved it. 17:03
I made a small comment, but it's exactly the way I wanted them to be. 17:04
lizmat twitter.com/liztormato/status/1289...9285052417
17:12 domidumont joined 17:24 toddr left, xinming left 17:25 xinming joined 17:31 JJMerelo left
Geth advent: f877836c75 | (Moritz Lenz)++ | 20th/articles/rfc112.md
Follow formitting suggestion by jjmerelo
17:35
17:36 xinming left, xinming joined 17:38 patrickb left 17:39 Black_Ribbon joined
tony-o [Coke]: you around? 17:40
tellable6 2020-07-31T04:24:24Z #raku <melezhik> tony-o - "and a website similar to metacpan for browsing and finding packages. " - I am interested in contributing of that part , could pleas PM on that?
2020-07-31T04:37:29Z #raku <melezhik> tony-o I've written you a email with details
tony-o .tell melezhik thank you, i'll take a look
tellable6 tony-o, I'll pass your message to melezhik
17:43 domidumont left 17:47 melezhik joined 17:49 andrzejku joined 17:55 lucasb joined 18:08 Sgeo joined 18:13 sena_kun joined 18:14 Altai-man_ left
[Coke] tony-o: I'm here right now, but am in and out 18:23
18:27 andrzejku left 18:28 bocaneri left 18:35 MilkmanDan left
tbrowder .tell vrurg pls check my proposal in roast pr #659 when you have a spare moment 18:38
tellable6 tbrowder, I'll pass your message to vrurg
18:41 ensamvarg3 left 18:46 melezhik left
Geth advent: taboege++ created pull request #56:
20th: write about RFC 145
18:55
gfldex lolibloggedalittle: gfldex.wordpress.com/2020/07/31/co...t-dogfood/ 19:03
tbrowder gfldex: very cool! 19:21
19:26 xinming left, xinming joined
[Coke] tony-o: please feel free to email me if it's about the grant request. 19:28
19:29 zacts left
tony-o [Coke]: no worries - just wanted to give you a preview of the update i've asked jason to add (gist.github.com/tony-o/bb8cc11fdf0...e0094c18d) 19:34
[Coke] tony-o: thank you, that adds a lot of detail. 19:40
Best of luck.
19:45 toddr joined
tony-o thanks [Coke] 19:47
19:59 MilkmanDan joined
Geth advent: d4833ae15c | (Tobias Boege)++ | 2 files
20th: write about RFC 145
20:06
advent: 31044af905 | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | 2 files
Merge pull request #56 from taboege/master

20th: write about RFC 145
20:12 Altai-man_ joined 20:14 sena_kun left 20:18 MilkmanDan left 20:44 zacts joined
SmokeMachine demostanis: given %hash { $!thing = .<thing>; $!other-thing = .<other-thing> 21:06
Geth ecosystem: gfldex++ created pull request #521:
add Shell::Piping
21:08
rypervenche moritz: Finally going to buy your book on regex. 21:09
21:13 zacts left 21:22 lichtkind left 21:30 zacts joined 21:38 kensanata joined
demostanis SmokeMachine: Damn, there are so many ways of doing the same thing 21:41
21:48 melezhik joined 21:54 skids left 21:55 kensanata left 22:01 aindilis left
gfldex lolibloggedalittle: gfldex.wordpress.com/2020/08/01/wr...xceptions/ 22:02
I may have broken some sort of labour law today. :) 22:03
22:07 melezhik left 22:09 aluaces left 22:10 wamba joined 22:12 sena_kun joined 22:14 Altai-man_ left
demostanis Good night people 22:15
22:15 demostanis left 22:24 rindolf left 22:29 OpenZen left 22:33 leont left 22:38 Kaiepi left 22:41 Kaiepi joined 23:01 zacts left 23:03 fridim left 23:04 fridim joined, zacts joined 23:21 xelxebar left 23:22 skids joined 23:37 pecastro left