🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
00:00 reportable6 left 00:01 reportable6 joined 00:02 epony joined 00:22 NemokoschKiwi joined
NemokoschKiwi m: -1 .succ.say 00:22
camelia 0
NemokoschKiwi he? :D
Nemokosch oops... 00:23
00:39 NemokoschKiwi left 01:03 jgaz left 01:05 merryprog is now known as perryprog 01:29 jpn left 01:36 derpydoo left
tonyo . 01:45
01:49 razetime joined 02:11 ba85 joined, ba85 left 02:13 CodeTortoise left 02:26 jpn joined 02:31 jpn left 02:59 razetime left 03:34 CodeTortoise joined 03:37 guifa_ joined 03:39 CodeTortoise left 03:44 CodeTortoise joined 03:45 CodeTortoise left 04:45 linkable6 left, bloatable6 left, greppable6 left, coverable6 left, bisectable6 left, squashable6 left, nativecallable6 left, unicodable6 left, reportable6 left, committable6 left, releasable6 left, tellable6 left, benchable6 left, quotable6 left, statisfiable6 left, sourceable6 left, shareable6 left, evalable6 left, notable6 left, statisfiable6 joined, notable6 joined 04:46 benchable6 joined, releasable6 joined, squashable6 joined, committable6 joined, coverable6 joined, bloatable6 joined, reportable6 joined, sourceable6 joined, nativecallable6 joined, bisectable6 joined 04:47 quotable6 joined, linkable6 joined, shareable6 joined, tellable6 joined, unicodable6 joined, greppable6 joined 04:48 evalable6 joined 05:18 jpn joined 05:23 jpn left 06:00 reportable6 left 06:03 reportable6 joined 06:25 El_Che left 06:26 Homer_Simpson left 06:42 Homer_Simpson joined
Homer_Simpson wanted feature (plz): 07:34
my $rawchr = `a`;
my @rawarray = `abc`; say($rawchr+2); #c
say(@rawarray[1]+5); #f
hmm my irc client removed my grave accents
basically you can do '`a`'; for a constant literal char and "`a`"; for an array of chars 07:37
you just have to escape the `` to print literally ``a`` rather than a 07:39
or the `` `` can go on the outsides of ' ' or " " 07:40
07:42 evalable6 left, linkable6 left
Homer_Simpson they are only null terminated if used with " " or ' ' or if its more than one character in the `` `` 07:43
07:44 evalable6 joined
Homer_Simpson grave accent is standard ascii so its on just about every keyboard 07:44
07:45 linkable6 joined
Homer_Simpson my @`buf for array, or $`chr for variable (scalar) or %`hash 07:51
oops: my @``buf for array, or $``chr for variable (scalar) or %``hash 07:52
close enough :(
08:05 Sgeo left
Homer_Simpson oh great `` means multiline comment when used with # 08:06
well its really #` not `` or @`` or $` or %`` 08:09
I hate this fuckin irc client
08:35 razetime joined
Geth ecosystem/main: 85582b5baa | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Adopted and migrated to zef
08:39
08:50 sena_kun joined 09:00 jpn joined 09:04 jpn left 09:10 testqwe joined
Geth ecosystem/main: b23c3d88d3 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Last one to go

Thanks @antonio
09:18
09:19 testqwe left 09:21 discord-raku-bot left 09:36 a3r0 left, a3r0 joined 09:47 jpn joined 10:30 sena_kun left 10:35 discord-raku-bot joined 10:39 discord-raku-bot left 10:40 discord-raku-bot joined 10:57 jpn left 10:59 El_Che joined 11:14 jpn joined 11:18 sena_kun joined 11:28 jpn left, jpn joined 11:56 Homer_Simpson left 12:00 reportable6 left, reportable6 joined 12:25 jpn left 12:51 jpn joined 13:01 jpn left 13:13 jpn joined 13:28 jpn left 13:31 jgaz joined 13:41 jpn joined 14:09 jpn left 14:22 jpn joined 14:28 jpn left 14:34 jpn joined 15:14 sena_kun left 15:29 razetime left 15:43 Kaiepi left 15:55 Sgeo joined 16:01 sena_kun joined 16:05 Kaiepi joined 16:08 derpydoo joined 16:25 derpydoo left 16:53 derpydoo joined 17:02 Homer_Simpson joined 18:00 reportable6 left 18:01 jgaz left 18:03 perlbot left, reportable6 joined 18:05 jgaz joined, simcop2387 left 18:08 perlbot joined 18:09 jgaz left 18:10 simcop2387 joined 18:13 discord-raku-bot left, discord-raku-bot joined 18:16 jpn left 18:17 jpn joined 18:22 jpn left 18:33 jpn joined 19:00 xinming left 19:01 xinming joined 19:12 Homer_Simpson left 19:26 jpn left 19:30 jpn joined 19:35 jpn left 19:50 jpn joined 19:51 newuser joined, newuser is now known as newuserofraku 20:23 xinming left 20:24 derpydoo left 20:32 jpn left 20:46 jpn joined
guifa Homer_Simpson: you can write your own operator to that. It's extremely easy if you're okay with including a quote mark, a bit more complicated if you want just the grave accent and nothing more 20:51
tellable6 guifa, I'll pass your message to Homer_Simpson
20:53 jpn left 20:54 jpn joined 20:59 jpn left 21:13 jpn joined 21:28 jpn left 21:33 CodeTortoise joined 21:39 CodeTortoise left 21:40 CodeTortoise joined 21:48 jpn joined 21:52 jgaz joined 22:05 jgaz left 22:06 epony left 22:27 epony joined, jpn left 22:47 sena_kun left 22:59 squashable6 left 23:02 squashable6 joined 23:11 CodeTortoise left 23:23 Xliff joined
Xliff just hit his 900,116th line of Raku! 23:24
guifa nice 23:26
23:31 CodeTortoise joined
Xliff :) 23:37
guifa: Can you read .ods files? 23:39
guifa by hand? no. But LibreOffice can lol 23:40
Xliff Heheh~! 23:41
OK, one sec.
guifa If you're looking to write a module 23:42
standards.iso.org/ittf/PubliclyAva...1_2015.zip
zip link takes you to an HTML download
page
Xliff Here's a breakdown by project... github.com/Xliff/p6-GLib/blob/main...Counts.ods
Geth ecosystem/main: d4c3619cf9 | thundergnat++ (committed using GitHub Web editor) | META.list
Migrate module to fez ecosystem
23:43
Xliff guifa: Ha! Useful that. Maybe sometime in the next couple of years. 23:45
guifa started reviewing number formatting and forgot how much of a pain in the butt the patterns are.
Xliff Unless I can get some folks to work with to do it. Tired of being a solo act.
guifa I'm not sure if there's a way to single pass parse them :-(
Xliff guifa: What? ODS sheets?
guifa No, for CLDR stuff 23:46
23:46 CodeTortoise left
guifa it's going to be my first involved RakuAST project 23:46
Xliff Ah. Not well versed on those.
Ooh! Sounds fun. Now THAT I could sink my teeth into.
What spec are you working from?
guifa unicode.org/reports/tr35/tr35-numb...t_Patterns 23:47
They seem deceptively easy. And then they just throw in these things that sound like edge cases that someone came up with and they tried to shoehorn them into the standard
Xliff LOL. 23:48
guifa like they made two grouping sizes for commas, because some languages like Hindi will do 12,34,567
Xliff OK. I think I can see what you are talking about.
Um... ew.
guifa but then you read the spec and they're like "oh, but NIST requires grouping the fractional part too"
so actually there are THREE grouping sizes 23:49
Xliff So make grouping depend on the reverse position of the comma. 23:50
guifa so #,##,##0.####,# would mean group the hundred/tens/ones together, and for higher ones, group by two digits (thousand/myriad, lakh/million, ten/hundred million)
23:50 CodeTortoise joined
Xliff Right... so lookit. 23:50
guifa and then every fourth fractional
BUT
if you get
#,#,#,#,##,##0
you ignore all the initial commas
oh but there's a difference beteween # and 0 (0 controls for required digits, but it's undefined in the spec what #0# might mean, unless it's scientific, in which case it is, but you can't know that until you've found an E, which is a literal E unless followed by a number and… yeah 23:51
Xliff "#,####.0##,##,#", you count the #, and then if you get a "," -- you push 10 ** <count> into @groups. You can never fail.
So if you get a group of one, you have to ignore everything! 23:52
So your grouping can't be 10 * <tail>
Ah... such is life with ambiguous specs. 23:53
I used to be a business analyst. Tried it, since I couldn't find a coding job.
Hated it, but picked up some valuable skills.
guifa oh and then if the number isn't 0… it controls for required digits AND rounding lol
Xliff Yeah. Read that one. Confused me a bit.
So if the number is larger than the specified digit, you round up?
So #1 means a "12" would turn into "20" 23:54
guifa #1 would round to the nearest multiple of 1
Xliff Oh!
guifa #10 would round to the nearest multiple of 10 23:55
Xliff So #2 means a "13" would turn into "14"
guifa correct, but since it uses half even rounding… "15" would also round to 14
Xliff Yikes!
My brain says "Flea!" but that might be due to the last of the 'nog. 23:56
guifa yeah it's a mess lol. I want to use grammars to parse it but the information density I'm afraid may be too much
Xliff Grammars with code blocks are your only hope, padawan.
( Or maybe s/padawan/sensei/ ? )
guifa yeah, grammars with embedded actions would work quite nicely 23:57
because I could set values during the parse phase
Xliff Yep.
guifa unfortunately, I can't set a dynamic in token TOP and have it available in method TOP
Xliff Use a dummy rule then./
guifa hmm 23:58
I forgot about those
Xliff Set your dynamics up in TOP, then call <REALTOP>
guifa wow 23:59