🦋 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.
moon-child this makes the common lisp approach of using dynamic scoping for _all_ globals seem somewhat attractive 01:01
mykhal btw is there something like Python's globals() and locals() 05:01
?
moritz m: my $x; say MY::.keys 05:30
camelia ($/ GLOBALish EXPORT $! $_ $x !UNIT_MARKER ::?PACKAGE $=pod $=finish $?PACKAGE $¢)
moritz m: say OUR::.keys
camelia ()
moritz mykhal: ^^
Util mykhal: I am heading for bed, but this is is a start: docs.raku.org/language/packages#in..._(package)
moritz++
mykhal m: my $x = <x> ; say ( MY.?keys, MY.?x ) 05:42
camelia (() Nil)
mykhal did not read lines above 05:44
mykhal m: CORE::.keys.grep(/fix/).map(*.subst(/.* 'fix:' ['<'||'«'] (.*) ['>'||'»']/, {$0})) 06:14
camelia ( no output )
mykhal m: say CORE::.keys.grep(/fix/).map(*.subst(/.* 'fix:' ['<'||'«'] (.*) ['>'||'»']/, {$0}))
camelia (^ ge (+) ^...^ && but ~~ ⊎ ~^ ∉ [; ] ~| ⚛-= ^^ so ⩵ > , ...^ ∈ =~= ÷ ne { } ∖ × = .. ⊂ {; } ⚛−= ** ⊃ & ⚛ ^ or − || +| +> ∘ ⊉ ?| != [ ] (>=) cmp ?^ ∋ before (<=) ~ %% ⊇ ⊈ o ! le ≽ ⚛= | and ^..^ (&) xor div min -…
mykhal nice, that would be like __builtins__ and beyond 06:28
Geth doc: 2483b6a3ff | (Trey Harris)++ (committed by Juan Julián Merelo Guervós) | doc/Language/py-nutshell.pod6
py-nutshell: Add how to enumerate in iteration

Resolves #3924.
Modified from suggestion in issue to include `kv()`’s other use case in maps, matching Python’s `dict.items()`.
06:31
linkable6 Link: docs.raku.org/language/py-nutshell
Geth doc: 1c844d668b | (Trey Harris)++ (committed by Juan Julián Merelo Guervós) | doc/Language/py-nutshell.pod6
Copyediting

  @JJ — I noticed that in this doc, `L<>`’s to routine docs are not in `C<>`’s, so appear as regular text instead of monospaced. This seems to be a case where there’s different styles on different pages—but should I submit a separate patch to change all these routine-link `L<>`’s to code font? Thanks.
mykhal m: my $six = 6 but "one" ; say ( 0+$six, +$six ) 08:39
camelia (6 one)
mykhal .. i meant "six".. imperfectly over-edited, point is surprise, that 0+… and +… behaves different 08:40
moon-child eh, six of one... 08:42
serious answer: +$six is the same as saying $six.Numeric, and since $six is already numeric, that's a no op
where as 0+$six actually performs an addition, which constructs a _new_ object which doesn't know to but "one" 08:43
lizmat and then the say calls .gist on that
moon-child m: my $six = 6 but 'one'; say $six
camelia one
mykhal m: say ( +RatStr.new(16/9, "16:9"), +(16/9 but "16:9") ) 09:04
camelia (1.777778 16:9)
mykhal m: say ( 9*RatStr.new(16/9, "16:9"), 9*(16/9 but "16:9") ) 09:05
camelia (16 16)
mykhal i guess but is not meant for such usage 09:06
m: say (2 but "II").^name 09:08
camelia Int+{<anon|1>}
mykhal my m: say so 2.Rat == 2 but 2/1 09:15
m: say so 2.Rat == 2 but 2/1 09:16
camelia Unexpected named argument 'value' passed
in block <unit> at <tmp> line 1
mykhal m: my \True = Bool::True but "Fake"; say True; say ~True 09:41
camelia ===SORRY!===
No compile-time value for True
mykhal interesting, does no fail in my m 2021.07 09:43
moon-child rather, it works at the repl but not otherwise 09:44
m: EVAL ‘my \True = Bool::True but "Fake"; say True; say ~True’ 09:45
camelia True
Fake
mykhal moon-child: right
synthmeat new rakudo-star is getting packaged up in the august, right? 09:52
lizmat .tell Util ttps://github.com/rakudo/rakudo/pull/4484 10:03
tellable6 lizmat, I'll pass your message to Util
patrickb synthmeat: Can you clarify the question? 10:04
synthmeat patrickb: i think i read somewhere rakudo-star gets packaged up quarterly. like rakudo is monthly, i guess. 10:14
patrickb synthmeat: The release process wrt the star bundle is currenty undergoing a refactor. It's not entirely clear if we want to stick to the release cycle. 10:15
Currently there are monthly releases of the Windows MSI installer for star. The star source release is being worked on. When that work will finish, and what release cycle we'll commit to has not been decided yet. 10:16
synthmeat okie, thanks for the info. lots of refactors recently, judging by skimming liz's weeklies. 10:20
Geth doc: 946431335f | (Stoned Elipot)++ | doc/Type/Int.pod6
Fix typo
13:38
linkable6 Link: docs.raku.org/type/Int 13:39
Geth doc: 9bc7589a9a | Coke++ | doc/Language/py-nutshell.pod6
prefer array-like
15:46
doc: f75ebf4d15 | Coke++ | xt/pws/code.pws
learn new word used in code
doc: ad022d4f01 | Coke++ | doc/Language/py-nutshell.pod6
whitespace
linkable6 Link: docs.raku.org/language/py-nutshell
kybr m: for 1,2,3,4,5 -> $a, $b { say "$a-$b" } 19:04
camelia 1-2
Too few positionals passed; expected 2 arguments but got 1
in block <unit> at <tmp> line 1

3-4
kybr what's a way to walk through the list 1,2,3,4,5 such that we get pairs like 1,2 2,3 3,4 4,5 instead of 1,2 3,4 5! 19:06
moon-child m: .say for (1..5).rotor(2 => -1) 19:08
camelia (1 2)
(2 3)
(3 4)
(4 5)
moon-child 2 means take batches of 2 items; -1 means step forward by 2-1 each time 19:10
codesections m: .say for (1..5).&{$_ Z .skip} # also works 19:27
camelia (1 2)
(2 3)
(3 4)
(4 5)
melezhik weekly: www.reddit.com/r/rakulang/comments..._raku_and/ 19:45
notable6 melezhik, Noted! (weekly)
tellable6 2021-07-26T07:56:28Z #raku <lizmat> melezhik approved
melezhik hopefully this one won't be banned by reddit this time ))) cc lizmat 19:46
lizmat thanks for approval the previous one and maybe new ones ))) I don't know why reddit don't love my posts ))) 19:47
lizmat I don't know either :-(
melezhik maybe posts looks like spam , anyway not a big deal ... I am not offended by reddit ;D 19:48
moon-child lizmat: somewhere in the mod tools you can change how aggressively it deletes/hides things it thinks are spam 20:07
'spam filter strength' in 'subreddit settings', on the old reddit at least 20:09