🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
Xliff \o 03:28
Zero_Dogg moritz: Bought your book. It's being really helpful in updating my regex knowledge to raku syntax and learning grammars properly. Cheers! 08:41
moritz Zero_Dogg: glad you like it :-) 08:54
I'd really appreciate a short review and rating on amazon, that's what helps others to discover it
Zero_Dogg sure, I can do that 08:57
moritz thanks!
cpan-raku New module released to CPAN! Gnome::Gtk3 (0.30.1) by 03MARTIMM 13:20
New module released to CPAN! Gnome::GObject (0.16.11) by 03MARTIMM
Geth doc/method-not-op-p: 1bf34ad09d | (Stoned Elipot)++ | 2 files
let's not assume race/hyper's nature
13:29
Geth doc: 4ba9f23399 | (Stoned Elipot)++ | 2 files
race/hyper are methods not operators

while here format {Race,Hyper}Seq word
14:21
doc: 1bf34ad09d | (Stoned Elipot)++ | 2 files
let's not assume race/hyper's nature
doc: b2b4b605b1 | stoned++ (committed using GitHub Web editor) | 2 files
Merge pull request #3657 from Raku/method-not-op-p
Xliff Goin' Groovy. 14:46
Gorilla, that is.
o7 14:47
stoned75 commit: releases Pair.new(1,2).antipairs.^name 16:08
committable6 stoned75, ¦releases (47 commits): «»
stoned75 commit: releases Pair.new(1,2).antipairs.^name.say 16:09
committable6 stoned75, gist.github.com/495c0bc7e2f6ba5fdf...33641338fe
stoned75 commit: releases Pair.new(1,2).kv.^name.say
committable6 stoned75, gist.github.com/b31036d9dcd83b06ba...7159e1e498 16:10
Geth doc: 309bffd0ea | (Norbert Buchmueller)++ (committed by Juan Julián Merelo Guervós) | doc/Language/operators.pod6
fix typo
17:57
doc: 3b23b9627d | (Norbert Buchmueller)++ (committed by Juan Julián Merelo Guervós) | 2 files
document syntax for passing attribute to role in runtime mixin

see #3658
linkable6 Link: docs.raku.org/language/operators
Geth doc: 93f3832f2a | (Norbert Buchmueller)++ (committed by Juan Julián Merelo Guervós) | xt/pws/code.pws
add new proper name to aspell 'code' dict

  (reference to en.wikipedia.org/wiki/Ratatouille_%28film%29)
linkable6 DOC#3658 [closed]: github.com/Raku/doc/issues/3658 [docs] Undocumented: special syntax for initialising single public attribute of a role in runtime mixin (but/does operator)
Geth doc/pairs-seq: 8bbee5f209 | (Stoned Elipot)++ | doc/Type/Pair.pod6
Pair.keys/kv/values/pairs/antipairs produce a Seq
18:37
Geth doc: stoned++ created pull request #3662:
Pair.keys/kv/values/pairs/antipairs produce a Seq
18:42
Doc_Holliwood I used to do iterative programming like you, but then I took parantheses to the .head 19:45
Geth doc: a67863a8f4 | (Stoned Elipot)++ | 2 files
Tweak examples' output style

  ... so that it's similar to a shorter gist
While here format Seq word.
19:51
Xliff How can I get useful output from a Backtrace rather than "Backtrace(12 frames)"? 20:12
vrurg Xliff: ~$backtrace? 20:17
Xliff: .gist and .Str give you different output for Backtrace. 20:19
Xliff Looking for .backtrace.summary, actually! :) 20:20
Racuda hi 20:23
help me please
need help translating raku to English 20:24
say "boo" 20:25
evalable6 boo
Racuda say {map {:3(.base(2))%2 },[X+&] ^2**3 xx 2} 20:28
evalable6 -> ;; $_? is raw = OUTER::<$_> { #`(Block|94008014962072) ... }
Racuda say " {map {:3(.base(2))%2 },[X+&] ^2**3 xx 2}" 20:29
evalable6 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 1 1 0 0 1 1 0 0 0 0 0 1 1 1 1 0 1 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1 0 1 0 0 1
Racuda say " {map {:3(.base(2))%2 },[X+&] ^2**2 xx 2}"
evalable6 0 0 0 0 0 1 0 1 0 0 1 1 0 1 1 0
Racuda say " {map {:3(.base(2))%2 },[X+&] ^2**1 xx 2}" 20:30
evalable6 0 0 0 1
Racuda say " {map {:3(.base(2))%2 },[X+&] ^2**10xx 2}"
say " {map {:3(.base(2))%2 },[X+&] ^2**0 xx 2}"
evalable6 0
Racuda say " {map {:4(.base(2))%2 },[X+&] ^2**3 xx 2}" 20:31
evalable6 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1
Racuda say " {map {:1(.base(2))%2 },[X+&] ^2**3 xx 2}" 20:32
say " {map {:5(.base(2))%2 },[X+&] ^2**3 xx 2}"
evalable6 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 1 1 0 0 1 1 0 0 0 0 0 1 1 1 1 0 1 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1 0 1 0 0 1
Racuda say " {map {:5(.base(2))%2 },[X-&] ^2**3 xx 2}"
say " {map {:5(.base(2))%2 },[X+&] ^2**3 xx 2}"
evalable6 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 1 1 0 0 1 1 0 0 0 0 0 1 1 1 1 0 1 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 1 0 1 0 0 1
Racuda say " {map {:5(.base(3))%2 },[X+&] ^2**3 xx 2}"
evalable6 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1
Racuda say " {map {:5(.base(3))%2 },[X+&] ^2**32xx 2}" 20:33
tobs Racuda: there is a #whateverable channel where evalable6 also hangs out. If you want to tweak your command before asking a question about it, you should do that there.
(or with your local rakudo installation)
Racuda i am new what does {map {:3(.base(2))%2 },[X+&] ^2**$_ xx 2} do?
tobs 20:34
in english 20:35
tobs `^2**$x` is a range from 0 to 2**$x which you create twice (the `xx 2` part)
Racuda mm 20:36
tobs these two lists are passed into a reduction operator `[X+&]` which is composed of two operators: X which takes the two lists and creates all possible pairs from them (the cartesian product) 20:37
all these pairs are then passed to the +& operator which is bitwise AND
Racuda mmm 20:38
tobs so you get a long output list with all bitwise ANDs of pairs of numbers from 0 to 2**$x, which is in turn passed into the `map` block
Racuda wow thanks 20:39
tobs which converts each number to binary .base(2), interprets that as a ternary number with :3 and then reduces that modulo 2
Why all of this happens, I have no idea.
Racuda is there a script to translate raku to english?
tobs I know of none. 20:40
Racuda it generates Walsh matrix
it would help
thanks though great explaining 20:41
tobs I see, that's why you want the cartesian product of those lists of numbers. 20:42
Racuda i found the snippet searching Walsh
it works 20:43
www.thespoof.com/spoof-news/scienc...rakudocide 20:44
.thespoof.com/spoof-news/science-technology/150627/perl-6-nerds-committed-rakudocide 20:45
Racuda i had no idea why so i wrote a spoof 20:50
Racuda all those operators and no manual! 20:50
Doc_Holliwood docs.raku.org/language.html 21:00
Also there are books available
MasterDuke ha 21:01
[Coke] . 21:55
Xliff Is there a way to return a portion of a CArray starting at a specific position? 22:19
Because the best way to do certain things, especially with C, is to use $buffer + $pos, to get what basically amounts to a $buffer[$pos], but as its own CArray 22:20
Is there an actual list of methods for CArray? The NativeCall documentation is rather light on the subject. 22:21
What is here is really insufficient... docs.raku.org/language/nativecall#...ay_methods 22:22