🦋 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:02 reportable6 joined 00:50 jaguart joined 00:55 jpn joined 00:59 jpn left 01:04 squashable6 left 01:06 squashable6 joined 01:47 MasterDuke joined
guifa hrm 02:13
m: class Foo::Bar { ; }; class Foo { ; } 02:15
camelia ( no output )
guifa no problems there
m: class DateTime is CORE::DateTime { ; }  02:16
camelia ( no output )
guifa no problems there either
02:16 tea3po joined
guifa m: class DateTime::Foo { ; }; class DateTime is CORE::DateTime { ; } 02:16
camelia ===SORRY!=== Error while compiling <tmp>
Redeclaration of symbol 'DateTime'.
at <tmp>:1
------> { ; }; class DateTime is CORE::DateTime⏏ { ; }
guifa but ^^ 02:17
02:17 explorer left
Voldenet error position lies 02:19
m: class DateTime::Foo { ; }; class DateTime { ; }
camelia ===SORRY!=== Error while compiling <tmp>
Redeclaration of symbol 'DateTime'.
at <tmp>:1
------> lass DateTime::Foo { ; }; class DateTime⏏ { ; }
expecting any of:
generic role
02:20 teatwo left 02:33 MasterDuke left 02:49 bisectable6 left 02:51 bisectable6 joined 02:57 bisectable6 left 03:00 bisectable6 joined 03:11 deoac joined 03:14 bisectable6 left 03:16 bisectable6 joined 04:08 TypoToni left 04:17 tea3po left, tea3po joined 04:28 tea3po left 04:29 tea3po joined 05:13 euandreh left 05:16 euandreh joined 05:22 jaguart left 06:00 reportable6 left 06:02 reportable6 joined 06:40 jaguart joined 06:44 jaguart left 06:46 abraxxa joined 06:51 euandreh left 07:24 abraxxa left 07:25 abraxxa joined 07:26 jpn joined 07:31 jpn left 07:50 Sgeo left 07:51 sena_kun joined 08:51 reportable6 left, squashable6 left, evalable6 left, benchable6 left, tellable6 left, benchable6 joined, squashable6 joined 08:52 evalable6 joined, reportable6 joined 08:54 tellable6 joined 08:59 linkable6 left 09:00 linkable6 joined 09:39 jpn joined 09:40 ProperNoun left 09:44 jpn left 10:33 euandreh joined 11:03 zara joined 11:07 jpn joined 11:18 zara left
lizmat clickbaits rakudoweekly.blog/2023/05/01/2023-...ou-moritz/ 11:22
12:00 reportable6 left
tbrowder__ guifa: what are you trying to do? 12:00
12:01 reportable6 joined
tbrowder__ lizmat showed how to subclass a core class 12:01
see my DateTime::Julian 12:03
12:06 euandreh left 12:08 euandreh joined 12:36 euandreh1 joined 12:37 euandreh left, euandreh1 is now known as euandreh 12:40 xinming joined 12:44 zara joined 12:46 zara left 13:22 euandreh left 13:23 euandreh joined 13:27 bigdata left 13:32 zara joined 13:33 lizmat left, zara left 13:40 jpn left 13:42 jpn joined 14:01 TypoToni joined 14:04 lizmat joined 14:14 tea3po left, tea3po joined 14:15 tea3po left, tea3po joined 14:16 tea3po left, tea3po joined 14:17 tea3po left, tea3po joined 14:18 zara joined, zara left 14:23 jpn left, tea3po left 14:24 tea3po joined 14:26 jpn joined 14:38 deoac left
[Coke] using raku with git bash very frustrating as I often find myself getting paths with \s in them, which work fine in Raku, but then I can't easily print them out and do something with them in the shell. 14:44
any recommendations for dealing with text files that could be in UTF8, 16, or 32? 14:48
I assume "loop over encodings until one doesn't throw an exception" is easiest. 14:49
15:16 zara joined
Woodi [Coke]: probably easiest is to ignore bad files ;) 15:16
15:16 zara left
Woodi however I don't know what consequences of that can be... 15:17
[Coke] right, but encoding in utf16 isn't "bad", just not the default. 15:20
Woodi in my opinion it's binary, just like office docs :) but iconv or enca counts as loop ? 15:29
[Coke] I don't want to convert the files on disk, but read them in as a Raku string that I can then use JSON::Fast (e.g.) on. 15:31
so I am now explicitly doing that (utf8 then utf16) to see if I can decode the file, and as soon as I have a decoded file, I (clean it up because it might be JSONC and not pure JSON) call JSON::Fast to convert it to a Raku object from JSON. 15:33
ugexe I think as part of fixing long paths on windows we might want to normalize path separators to forward slash on windows 15:37
since \\.\ style paths have to use forward slash unlike C:\ style paths
and if we want to just prefix all paths with \\.\ they will have to be normalized anyway
[Coke] Any modules/core functionality to let me search through nested hash-like things for a key at any level? 15:39
Woodi [Coke]: stackexchange says: undetectable, sometimes manual intervention needed even if load success...
[Coke] Woodi: you mean, if you have to guess the encoding rather than knowing for sure? 15:40
Woodi you can guess wrongly becouse numbers can fit into incorrect encoding. knowing is only way :) 15:46
but maybe in 99% guesses could work :) 15:47
human intervention needed, so far AI can't help :) 15:49
[Coke] CATCH question: I have a script with a loop; inside that loop is a CATCH; also inside that loop is another loop with it's own CATCH. If an exception is thrown in the inner loop - should both CATCHs fire? 15:56
lizmat only if the inner CATCH doesn't handle it?
[Coke] ok. 15:57
Weird: using File::Find to get a file; one file is now throwing an adhoc error about no such file or directory when then trying to open it. Doesn't look like it's because of LONG_PATH. 16:00
16:00 jpn left
[Coke] .... I really am at a point where I need to do all this in a linux VM instead of trying to make it work on windows. :( 16:00
16:06 Sgeo joined 16:07 xinming left 16:08 xinming joined
Nemokosch it is what it is 16:44
16:51 kathe joined
kathe hello. :) 16:51
Nemokosch oh hi
kathe when is a good time to mention something while affording maximum reach? 16:52
[Coke] it's IRC, so whenever and people can react in backscroll if they're not here... but EU work day is probably when you get most people online here. 16:53
kathe okay. can you suggest time in 'gmt'? 16:54
[Coke] no. just ask the question. :)
kathe i fully acknowledge your comment about backscroll.
i do not have a question.
[Coke] not that I don't want to, but no one has that specific info.
kathe but rather, i want to apologize, publicly. right here. 16:55
around 1~1.5 years back, i had ranted against raku on this channel itself.
i had also thrown around attitude due to my large experience year count. 16:56
i had belittled raku and dissed a few people.
for all of that, i apologize.
this is an unconditional apology, and i offer no excuses.
lizmat kathe: thank you for your words
what nick where you using then ? 16:57
kathe i don't remember.
i had 3 and have deleted 2 and retained on this one now.
[Coke] Thank you. I'm sure people will see this in backscroll, thank you. 16:58
lizmat well, I guess it's all water under the brdge
kathe if anyone wants to trace my identity, my website is at kathe.in/
i have to leave now. but, i'll pop in occassionally. 17:00
currently too tied-up with family's health issues.
hope and expect to engage more meaningfully around 4~5 years from now. 17:01
i just didn't want to wait all that long to apologize. hence now.
lizmat kathe: I guess this is you? irclogs.raku.org/search.html?oldes...annel=raku
kathe yes yes. that _was_ me. 17:03
how come my handle still exists in spite of being deleted?
'irc' continues to mystify me.
lizmat kathe: it exists in the logs that were kept 17:04
and that website makes them searchable
kathe just a tip. get a copy of "irc hacks" by mutton. amazing book.
lizmat: cool. thanks.
bye all. 17:08
17:08 kathe left
[Coke] ~~ 17:10
17:23 jpn joined 17:31 abraxxa left 17:40 jpn left 18:00 reportable6 left 18:02 reportable6 joined 18:22 abraxxa-home joined 18:24 abraxxa-home left 18:25 abraxxa-home joined 19:25 evalable6 left, linkable6 left 19:27 evalable6 joined 19:28 linkable6 joined 19:36 jpn joined 19:40 deoac joined 19:41 jpn left 20:41 linkable6 left, benchable6 left, notable6 left, statisfiable6 left, releasable6 left, greppable6 left, committable6 left, shareable6 left, evalable6 left, nativecallable6 left, unicodable6 left, quotable6 left, tellable6 left, squashable6 left, coverable6 left, sourceable6 left, reportable6 left, bloatable6 left, bisectable6 left, coverable6 joined, sourceable6 joined 20:42 benchable6 joined, bisectable6 joined, unicodable6 joined, releasable6 joined, linkable6 joined, evalable6 joined 20:43 squashable6 joined, bloatable6 joined, nativecallable6 joined, statisfiable6 joined, notable6 joined, tellable6 joined, greppable6 joined, shareable6 joined, quotable6 joined, reportable6 joined, committable6 joined 20:44 ProperNoun joined 20:47 deoac left
lucs lizmat: I seem to remember a multi-part tutorial App::Rak tutorial you wrote, but google is not being helpful. 21:13
Yeah, a tutorial :)
gfldex lucs: I believe that is it: dev.to/lizmat 21:15
lucs gfldex: Yep! Thanks.
gfldex The search term was "lizmat dev.to", obviously. :-> 21:16
lucs Riiight :)
21:45 sena_kun left 21:53 abraxxa-home left 22:02 jpn joined
guifa [Coke] You can check initially for a BOM, if present, it will guarantee format of the text file 22:04
0000feff or fffe0000 is utf32, feff or fffe is utf16, and efbbbf is utf8 22:05
22:06 jpn left
guifa Otherwise, if yuo can make assumptions about the text, you can probably figure it out via various heuristics. 22:19
23:06 linkable6 left, evalable6 left 23:08 evalable6 joined, linkable6 joined