🦋 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:00
linkable6 left,
evalable6 left,
evalable6 joined
00:01
linkable6 joined
00:02
reportable6 left
00:08
Doc_Holliwood joined
00:13
jmcgnh left,
codesections left
00:19
jess left
00:23
jmcgnh joined
00:45
thundergnat left
|
|||
moon-child | this makes the common lisp approach of using dynamic scoping for _all_ globals seem somewhat attractive | 01:01 | |
01:04
reportable6 joined
02:04
linkable6 left,
quotable6 left,
bloatable6 left,
nativecallable6 left,
statisfiable6 left,
greppable6 left,
squashable6 left,
sourceable6 left,
reportable6 left,
shareable6 left,
committable6 left,
coverable6 left,
bisectable6 left,
evalable6 left,
benchable6 left,
releasable6 left,
unicodable6 left,
notable6 left,
tellable6 left,
shareable6 joined,
nativecallable6 joined,
squashable6 joined,
benchable6 joined
02:05
quotable6 joined,
reportable6 joined
02:06
bloatable6 joined
03:05
coverable6 joined
03:06
statisfiable6 joined,
committable6 joined,
evalable6 joined,
linkable6 joined
03:07
releasable6 joined,
greppable6 joined
03:23
sono left
03:38
frost-lab joined
04:06
notable6 joined,
unicodable6 joined
04:16
frost-lab left
04:39
Guest92 joined
04:41
Guest92 left
|
|||
mykhal | btw is there something like Python's globals() and locals() | 05:01 | |
? | |||
05:05
sourceable6 joined
05:06
tellable6 joined
05:19
Guest92 joined
05:22
Guest92 left,
frost-lab joined
|
|||
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 | ||
05:45
ufobat joined
06:02
reportable6 left
|
|||
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. |
||
06:31
discord-raku-bot left
|
|||
06:31
linkable6 left,
abraxxa joined
06:32
discord-raku-bot joined
06:39
abraxxa left,
abraxxa joined
06:45
Doc_Holliwood left
07:03
reportable6 joined
07:06
bisectable6 joined
07:08
frost-lab left
07:18
Sgeo left
07:29
Doc_Holliwood joined
07:32
linkable6 joined
08:25
linkable6 left
08:26
linkable6 joined
|
|||
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) | ||
09:04
renormalist left
|
|||
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 | ||
09:47
Frozenset joined
|
|||
synthmeat | new rakudo-star is getting packaged up in the august, right? | 09:52 | |
09:59
codesections joined
10:00
MasterDuke left
10:03
patrickb joined
|
|||
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 | |
10:05
MasterDuke joined
10:06
Doc_Holliwood left
|
|||
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 | |
10:22
Xliff joined
10:36
juanfra left,
AlexDaniel left,
cnx left,
aolko[m] left,
CIAvash left,
littlebenlittle[ left,
rba[m] left,
happy-dude left
10:39
juanfra joined
10:43
AlexDaniel joined,
cnx joined,
happy-dude joined,
littlebenlittle[ joined,
aolko[m] joined,
rba[m] joined,
CIAvash joined
10:49
Frozenset left
11:07
sena_kun joined
11:13
patrickb left
11:14
patrickb joined
11:15
patrickb left
11:16
patrickb joined
11:17
patrickb left
11:18
patrickb joined
11:20
patrickb left,
patrickb joined
11:22
patrickb left,
patrickb joined
11:26
patrickb left,
patrickb joined
11:28
patrickb left,
patrickb joined
11:30
patrickb left,
patrickb joined
11:32
patrickb left,
patrickb joined
11:34
patrickb left,
patrickb joined
11:36
patrickb left,
patrickb joined,
patrickb left
12:02
reportable6 left
12:04
reportable6 joined
12:14
Doc_Holliwood joined
12:18
patrickb joined
12:24
Frozenset joined
13:05
Sgeo joined
13:10
Xliff left
13:30
sena_kun left
13:32
simcop2387 is now known as mycroft2387,
mycroft2387 is now known as simcop2387
13:38
stoned75 joined
|
|||
Geth | doc: 946431335f | (Stoned Elipot)++ | doc/Type/Int.pod6 Fix typo |
13:38 | |
linkable6 | Link: docs.raku.org/type/Int | 13:39 | |
14:04
renormalist joined
14:12
renormalist left,
renormalist joined
14:24
Doc_Holliwood left
15:16
ufobat left
15:17
Doc_Holliwood joined
15:32
Doc_Holliwood left
15:34
Doc_Holliwood joined
15:44
patrickb left
|
|||
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 | ||
16:44
linkable6 left,
evalable6 left
16:46
linkable6 joined
17:18
ufobat joined
17:36
Frozenset left
17:39
Frozenset joined
18:02
reportable6 left
18:12
Frozenset left
18:35
ufobat left
18:45
evalable6 joined
|
|||
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) |
||
19:34
sono joined
19:45
melezhik joined
|
|||
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 | |
20:03
reportable6 joined
|
|||
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 | ||
20:33
melezhik left
20:56
phogg joined
20:57
phogg joined
21:18
Frozenset joined,
Frozenset left
22:18
linkable6 left,
evalable6 left
22:21
evalable6 joined
23:19
Xliff joined
23:20
linkable6 joined
|