🦋 Welcome to the former MAIN() IRC channel of the Raku Programming Language (raku.org). This channel has moved to Libera (irc.libera.chat #raku)
Set by lizmat on 23 May 2021.
00:02 reportable6 left, b2gills joined 00:03 reportable6 joined 00:07 Doc_Holliwood joined 00:19 melezhik left 00:27 justsomeguy joined 00:39 xinming_ left 00:41 Doc_Holliwood left 01:22 justsomeguy left 01:34 holly_ left 02:16 a3r0 joined 02:36 solitario joined 02:39 solitario left, solitario joined
codesections Wow, that was an unpleasant bug to track down in my code! 02:44
m: my $a = 'foo'; my $b = 'foo' but role {}; say $a eq $b; say $a ~~ $b; say $a (elem) ($b, 2)
camelia True
True
False
codesections I had no idea that a type with a role mixed in no longer counted as an (elem) of a list 02:45
moon-child I guess ∊ is using eqv? 02:50
m: my $a = 'foo'; my $b = 'foo' but role {}; my $c = 'foo'; say $a eqv $b; say $a eqv $c;
camelia False
True
codesections yeah, must be 02:57
moon-child probably should be documented 03:02
github.com/rakudo/rakudo/blob/mast...em.pm6#L85 this is ... a bit strange 03:05
codesections How so? It's comparing the two .WHICH values, which is the same thing &[===] does (at least according to github.com/rakudo/rakudo/blob/mast...em.pm6#L85 ) 03:08
doing it with Str comparison is a bit odd, but I'd assume that's something nqp-related 03:09
moon-child yeah, using string comparison to implement structural equality seems weird to me 03:10
codesections ha, if you're bothered by using Str comparison even when it's on .WHICH, then you _definitely_ shouldn't look at github.com/rakudo/rakudo/blob/mast....pm6#L1210 03:13
moon-child my 03:14
03:33 stoned75 left 04:24 a3r0 left
Geth doc: stuart-little++ created pull request #3901:
fix typo in Callable.pod6
04:46
05:24 linkable6 left, evalable6 left, evalable6 joined 05:26 linkable6 joined 05:33 Doc_Holliwood joined 05:34 jmcgnh left 05:40 jmcgnh joined 06:02 reportable6 left 06:05 reportable6 joined 06:07 abraxxa joined 06:12 stoned75 joined 06:13 abraxxa left 06:14 abraxxa joined 06:25 ufobat_ joined 06:30 ufobat_ left
stoned75 releases my $n = <2e0>; say $n.^find_method("Num").candidates>>.package 06:35
commit: releases my $n = <2e0>; say $n.^find_method("Num").candidates>>.package 06:36
committable6 stoned75, gist.github.com/c6f5e3d725a29d5817...ed858a7264
stoned75 I'm wondering if inheriting .Num from Num class instead of Str class would not make more sense ? 06:37
hum... no. I guess it would not work 06:38
or would it ? :-} 06:40
06:52 RandalSchwartz left 06:53 RandalSchwartz joined, RandalSchwartz left 06:54 RandalSchwartz joined 06:55 RandalSchwartz left 06:56 RandalSchwartz joined, RandalSchwartz left, RandalSchwartz joined, RandalSchwartz left 06:57 RandalSchwartz joined, RandalSchwartz left 06:58 RandalSchwartz joined 06:59 RandalSchwartz left 07:00 RandalSchwartz joined, RandalSchwartz left 07:01 RandalSchwartz joined, RandalSchwartz left, RandalSchwartz joined, RandalSchwartz left 07:02 RandalSchwartz joined 07:03 RandalSchwartz left 07:04 RandalSchwartz joined, RandalSchwartz left, RandalSchwartz joined, RandalSchwartz left 07:05 RandalSchwartz joined, RandalSchwartz left, RandalSchwartz joined, RandalSchwartz left 07:06 ufobat joined, RandalSchwartz joined, RandalSchwartz left 07:08 RandalSchwartz joined, RandalSchwartz left 07:09 RandalSchwartz joined, RandalSchwartz left, RandalSchwartz joined, RandalSchwartz left 07:10 RandalSchwartz joined 07:23 Doc_Holliwood left
guifa Nice. I got DateTime.fmt working and using basically entirely nqp ops. Even parsing the formatting string on every run, it's only about 3x slower than the raw .Str,which is not bad. bodes well for later use with RakuAST 07:25
lizmat guifa++ 07:42
weekly: vrurg.github.io/2021/06/16/article-on-roles 07:57
notable6 lizmat, Noted! (weekly)
08:08 dakkar joined, LizBot left 08:09 LizBot joined, LizBot left, LizBot joined 08:14 Sgeo left 08:24 LizBot left, LizBot joined 08:25 LizBot left, LizBot joined 08:47 MoC joined 09:14 linkable6 left 09:16 linkable6 joined
lizmat someone with running Raku on a windows machine: could you tell me the output of: 09:25
use nqp; dd nqp::atkey(nqp::backendconfig,"os")
evalable6 "linux"
MasterDuke lizmat: "win32" 09:26
lizmat ok 09:27
thanks!
Altreus how did evalable6 know to run that
MasterDuke roughly, if a message starts with certain keywords and/or contains a lot of punctuation compared to test (i.e., looks like it might be code), it tried to run it 09:29
AlexDaniel 😁
Altreus aha!
AlexDaniel Actually it attempts to run almost any message
Unless its clearly just text, plus some other heuristics 09:30
But most heuristics look at he output of running the message, not the message itself
MasterDuke m: say $*KERNEL.arch # lizmat this is empty on windows, which causes failing spectest
camelia x86_64
Altreus I guess the question between "this should have run but failed" and "this isn't intended to run" is an unsolvable problem
lizmat MasterDuke: I need something to run from NQP :-) 09:31
MasterDuke no worries, just thought you might be working on code near there
09:56 sono left 10:05 ufobat left 10:33 Doc_Holliwood joined 10:48 morayj joined 11:14 xinming joined 11:16 Altai-man joined 11:19 sena_kun left 11:42 Doc_Holliwould joined 11:43 morayj left 11:45 Doc_Holliwood left 12:02 reportable6 left 12:03 reportable6 joined 12:13 ufobat joined 12:23 Doc_Holliwould left 12:27 xinming left 12:39 peder left, peder joined 12:40 Doc_Holliwood joined 12:42 peder left, peder joined 12:49 peder left, peder joined 13:07 peder left 13:08 peder joined
guifa lizmat: I'll also be around later today and doing some Windows testing for UserLanguage if you want me to run anything 13:30
13:35 RandalSchwartz left 13:38 RandalSchwartz joined
lizmat guifa: thanks, but I think the issue is solved now: I realized I don't need to be able to check for WIndows in NQP after all 13:44
Altreus the best solution is to not have a problem! 13:46
El_Che that sounds like a fallacy
Altreus More like a paradox 13:47
13:47 Sgeo joined
stoned75 :q 13:48
13:48 xinming joined
Altreus heh, I tried to sarcastically put :p in response 13:51
But I accidentally typed it into my vim window :D
that seems karmic
El_Che lol 13:53
it looks like my cat
13:55 cbk joined
Altreus karma is a great name for a cat 13:56
Geth doc: ada40bc638 | chirvasitua++ (committed by Juan Julián Merelo Guervós) | doc/Type/Callable.pod6
fix typo in Callable.pod6
14:00
linkable6 Link: docs.raku.org/type/Callable 14:01
14:23 cbk left 14:39 ufobat_ joined 14:42 ufobat left 15:42 bisectable6 left, unicodable6 left, benchable6 left, tellable6 left, quotable6 left, bloatable6 left, shareable6 left, committable6 left, reportable6 left, releasable6 left, greppable6 left, notable6 left, coverable6 left, linkable6 left, sourceable6 left, squashable6 left, statisfiable6 left, nativecallable6 left, evalable6 left 15:43 releasable6 joined, greppable6 joined, statisfiable6 joined, benchable6 joined, notable6 joined, bloatable6 joined 15:44 tellable6 joined, Doc_Holliwood left, reportable6 joined, shareable6 joined, linkable6 joined, squashable6 joined 15:45 coverable6 joined, sourceable6 joined, evalable6 joined, bisectable6 joined, committable6 joined, quotable6 joined, unicodable6 joined, nativecallable6 joined 16:20 Doc_Holliwood joined 16:34 ufobat_ left 16:38 dakkar left 16:44 zacts joined 16:45 zacts left 16:46 melezhik joined
melezhik I started an experimental tool - R3 (Rakudo Release Readiness Toolkit) aimed to help with rakudo releases and bug tracking - github.com/melezhik/r3tool if someone is interested. No promise for a long support, just a prototype for idea 16:48
16:53 stoned75 left 16:55 Doc_Holliwood left 16:56 melezhik left 17:17 cbk joined 17:32 cbk left 18:02 reportable6 left 18:03 reportable6 joined 18:19 Doc_Holliwood joined
[Coke] m: say $*PROGRAM.parent(1).child('eek'); 18:22
camelia "/tmp/eek".IO
[Coke] docs.raku.org/routine/child says that .child is deprecated in 6.d, but I'm not seeing any warnings locally 18:23
18:32 abraxxa-home joined 18:34 abraxxa-home left 18:35 abraxxa-home joined 18:36 sono joined
[Coke] Looks like it was upgraded from "eventualy deprecated" to "deprecated in 6.d", but there's nothing in core.d aout IO::Path. 18:48
will open doc ticket
18:55 axmed99 joined
Geth doc: coke self-assigned incorrect deprecation notice on .child github.com/Raku/doc/issues/3902
c7392ee08a | Coke++ | doc/Type/IO/Path.pod6

Closes #3902
18:56
18:57 b2gills left
ugexe meh i prefer .child/.parent vs .add/.parent 18:58
linkable6 Link: docs.raku.org/type/IO::Path 19:00
19:00 linkable6 left 19:02 linkable6 joined
Geth doc: 96ece3fe64 | Coke++ | 2 files
fix typo/learn word
19:03
[Coke] ugexe: me too - and now that it's not incorrectly deprecated, use with impunity
19:04 holly_ joined
[Coke] now off to use .child() in some work code. 19:04
19:04 b2gills joined
guifa I get that the .add was probably to make more sense adding in multiple sub directories at once, where child just implies a single level 19:04
But apparently now macOS allows slashes in file names (!) 19:05
ugexe it was that the functionality was going to be different
something something child-secure
19:05 Kaiepi left
guifa tries .add("foo/bar") where 'foo/bar' is the literal file name 19:05
huh. How in the world did I create that file name 19:07
WTF. Okay Apple, that makes no sense. So apparently Apple decided that blocking both colons and slashes in file names was stupid. The result? You can type a slash in a file name. But it's stored as a colon. Create a file at the command line with a colon and .... it shows up as a slash in the Finder 19:09
19:24 ilogger2 left, Doc_Holliwould joined, ilogger2 joined 19:27 Doc_Holliwood left
tonyo why protect users from themselves? 19:35
the finder prevents a colon 19:36
19:39 vodkra left
japhb [Coke]: I thought the .child deprecation was due to a security-gotcha-by-design problem? (Meaning that it wasn't inherently a security hole itself, but the API encouraged people to make them, sorta like strcat in C.) 19:45
19:52 vodkra joined
[Coke] japhb: whatever the reason: there's no deprecation 20:02
if it's a trap or a stylistic thing, we can doc that, but if you run in 6.d, there's no deprecation warning.
20:28 PotatoGim_ joined
japhb Oh sure, I just meant, the answer may not be to un-deprecate, but to fix the warning so it *is* deprecated. 20:32
jnthn may remember more about it, ISTR him and Zoffix discussing the problem way back when, though I don't know where in the logs I'd look for that. 20:33
Related to this maybe? github.com/raku-community-modules/...Secure.pm6 20:34
20:35 PotatoGim left, PotatoGim_ is now known as PotatoGim
japhb Oh this is odd: github.com/raku-community-modules/...cial-notes 20:35
MasterDuke i think Zoffix's IO grant reports have some info
20:36 abraxxa left 20:38 abraxxa-home left, axmed99 left 20:45 Kaiepi joined
[Coke] japhb: if a deprecation is added, we'll add it back. no worries. 20:49
20:49 squashable6 left 20:50 squashable6 joined
[Coke] (or we can add a link to that module) 20:50
20:51 squashable6 left 20:53 squashable6 joined 20:54 abraxxa-home joined
japhb has done his occasional duty as "index into institutional knowledge" :-) 21:03
[Coke] BTDT! Thank you. :) 21:09
21:26 codesect` joined 21:28 codesections left 21:34 MoC left 21:39 linkable6 left 21:42 linkable6 joined 22:04 Doc_Holliwould left 22:37 abraxxa-home left 22:39 abraxxa joined 22:53 thundergnat joined
thundergnat bisectable6: say "{+$_} found:\n{.batch(10)».fmt('%3d').join: "\n"}" given (1..^100).hyper.grep: { .is-prime and $_ + .comb.sum.is-prime }; 22:54
bisectable6 thundergnat, Will bisect the whole range automagically because no endpoints were provided, hang tight
thundergnat did I kill bisectable? :-( 22:57
22:58 bisectable6 left
thundergnat Sigh. Yep, I killed bisectable. :-( 22:58
22:59 bisectable6 joined
thundergnat New issue R#4413 22:59
um, github.com/rakudo/rakudo/issues/4413 23:00
23:00 linkable6 left
thundergnat ah crap. I'm killin' the bots left and right. 23:01
I'll stop now.
23:01 thundergnat left 23:03 linkable6 joined 23:17 holly_ left 23:22 domattps left
moon-child m: say 42.base("beer") 23:23
camelia 🍻🍺🍻🍺🍻🍺
gfldex camelia: source 23:26
codesect` core.c/Int.pm6 line 115 23:27
ugexe github.com/ugexe/Raku-sanity :P 23:28
codesect` m: #`(I'm partial to) note "Life, the Universe and Everything".WHY 23:29
camelia Don't know setting RESTRICTED
at gen/moar/ModuleLoader.nqp:249 (/home/camelia/rakudo-m-inst-2/share/perl6/lib/Perl6/ModuleLoader.moarvm:previous_setting_name)
from gen/moar/ModuleLoader.nqp:254 (/home/camelia/rakudo-m-inst-2/share/perl6/lib/…
codesect` m: note "Life, the Universe and Everything".WHY
camelia 42
moon-child m: my int $x = 5; $x := $x - 2 23:30
camelia 5===SORRY!5=== Error while compiling <tmp>
Cannot bind to natively typed variable '$x'; use assignment instead
at <tmp>:1
------> 3my int $x = 5; $x := $x - 27⏏5<EOL>
moon-child m: my int $x = 5; $x = $x - 2
camelia ( no output )
moon-child eh?
oh, the repl is just being dumb again. Nevermind
23:34 codesect` left 23:35 codesections joined