🦋 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. |
|||
00:02
rindolf left
00:11
patrickz joined,
mahmudov left
00:15
patrickb left
00:34
Benett left
00:56
Benett joined
01:05
perryprog left
01:06
perryprog joined
01:07
rjbs left,
rjbs joined,
awwaiid left
01:08
awwaiid joined
01:53
patrickz left
01:57
guifa2 joined
02:08
ufobat__ joined
02:12
ufobat_ left
02:20
wamba left
|
|||
uzl[m] | m: class IterStr does Iterable { has $.str; method new($str) { self.bless(:$str) }; method iterator { $!str.split('', :skip-empty).iterator }}; my $x := IterStr.new('hello'); .say for $x; | 02:50 | |
camelia | h e l l o |
||
uzl[m] | m: class IterStr does Iterable { has $.str; method new($str) { self.bless(:$str) }; method iterator { $!str.split('', :skip-empty).iterator }}; my @x = IterStr.new('hello'); .say for @x; | ||
camelia | h e l l o |
||
uzl[m] | m: class IterStr does Iterable { has $.str; method new($str) { self.bless(:$str) }; method iterator { $!str.split('', :skip-empty).iterator }}; .say for IterStr.new('hello'); | 02:51 | |
camelia | h e l l o |
||
uzl[m] | m: class IterStr does Iterable { has $.str; method new($str) { self.bless(:$str) }; method iterator { $!str.split('', :skip-empty).iterator }}; my $x = IterStr.new('hello'); .say for $x; | 02:52 | |
camelia | IterStr.new(str => "hello") | ||
uzl[m] | m: class IterStr does Iterable { has $.str; method new($str) { self.bless(:$str) }; method iterator { $!str.split('', :skip-empty).iterator }}; my $x = IterStr.new('hello'); my $i = $x.iterator; say $i.pull-one; | ||
camelia | h | ||
uzl[m] | m: class IterStr does Iterable { has $.str; method new($str) { self.bless(:$str) }; method iterator { $!str.split('', :skip-empty).iterator }}; my $x = IterStr.new('hello'); my $i = $x.iterator; say $i.pull-one; say $i.pull-one; | 02:53 | |
camelia | h e |
||
uzl[m] | Why is it that assigning an iterable to a scalar variable prevents you from iterating it like you'd would do by binding it? | 02:54 | |
m: class IterStr does Iterable { has $.str; method new($str) { self.bless(:$str) }; method iterator { $!str.split('', :skip-empty).iterator }}; my $x = IterStr.new('hello'); my $i = $x.iterator; while True { my $item := $i.pull-one; last if $item =:= IterationEnd; say $item } | 02:56 | ||
camelia | h e l l o |
||
02:58
rbt left
|
|||
vrurg_ | uzl[m]: Because it gets itemized, I guess. | 03:07 | |
04:07
quotable6 left,
committable6 left,
bloatable6 left,
reportable6 left,
releasable6 left,
greppable6 left,
squashable6 left,
bisectable6 left,
shareable6 left,
statisfiable6 left,
nativecallable6 left,
coverable6 left,
notable6 left,
sourceable6 left,
unicodable6 left,
benchable6 left,
bisectable6 joined,
quotable6 joined,
unicodable6 joined,
bloatable6 joined
04:08
coverable6 joined,
benchable6 joined,
sourceable6 joined
04:09
greppable6 joined,
squashable6 joined,
nativecallable6 joined,
reportable6 joined,
notable6 joined,
statisfiable6 joined,
releasable6 joined
04:10
committable6 joined,
shareable6 joined
04:55
guifa2 left
|
|||
Xliff | nqp: my @filechars = ('a'... 'z'); | 05:02 | |
camelia | Assignment ("=") not supported in NQP, use ":=" instead at line 2, near " ('a'... '" at gen/moar/stage2/NQPHLL.nqp:1026 (/home/camelia/rakudo-m-inst-2/share/nqp/lib/NQPHLL.moarvm:panic) from <unknown>:1 (/home/camelia/rakudo-m-inst-2/share/nqp/lib/nqp.… |
||
Xliff | nqp: my @filechars := ('a'... 'z'); | 05:03 | |
camelia | Malformed binding at line 2, near "('a'... 'z" at gen/moar/stage2/NQPHLL.nqp:1026 (/home/camelia/rakudo-m-inst-2/share/nqp/lib/NQPHLL.moarvm:panic) from <unknown>:1 (/home/camelia/rakudo-m-inst-2/share/nqp/lib/nqp.moarvm:initializer) from gen/moar/s… |
||
Xliff | nqp: my @filechars := ('a'.. 'z'); | ||
camelia | Malformed binding at line 2, near "('a'.. 'z'" at gen/moar/stage2/NQPHLL.nqp:1026 (/home/camelia/rakudo-m-inst-2/share/nqp/lib/NQPHLL.moarvm:panic) from <unknown>:1 (/home/camelia/rakudo-m-inst-2/share/nqp/lib/nqp.moarvm:initializer) from gen/moar/s… |
||
Xliff | nqp: my @filechars := ('a'..'z'); | ||
camelia | Malformed binding at line 2, near "('a'..'z')" at gen/moar/stage2/NQPHLL.nqp:1026 (/home/camelia/rakudo-m-inst-2/share/nqp/lib/NQPHLL.moarvm:panic) from <unknown>:1 (/home/camelia/rakudo-m-inst-2/share/nqp/lib/nqp.moarvm:initializer) from gen/moar/s… |
||
Xliff | nqp: my @filechars := ('a', 'z'); | 05:04 | |
camelia | ( no output ) | ||
Xliff | nqp: my $filechars := 'abcdefghijklmnopqrstuvwxyz0123456789'; | 05:05 | |
camelia | ( no output ) | ||
cpan-raku | New module released to CPAN! Auth::SASL (0.0.1) by 03HANENKAMP | 05:12 | |
05:20
rindolf joined
05:21
MasterDuke left
05:37
lbtjp joined
06:24
sauvin joined
06:27
klapperl left,
klapperl joined
06:33
Doc_Holliwood left,
Doc_Holliwould left
|
|||
Xliff | m: say 36 ** 20 | 07:06 | |
camelia | 13367494538843734067838845976576 | ||
Xliff | m: «13367494538843734067838845976576».chars.say | ||
camelia | 32 | ||
Xliff | m: say («13367494538843734067838845976576».chars - 6) / 3 | 07:07 | |
camelia | 8.666667 | ||
07:43
hacktor joined
08:14
aluaces left
08:27
cpan-raku left,
cpan-raku joined,
cpan-raku left,
cpan-raku joined
08:59
zln joined,
Doc_Holliwould joined,
Doc_Holliwood joined
|
|||
zln | why do you separate perls | 09:00 | |
is there that big difference | |||
moritz | there is, yes | 09:04 | |
09:07
shred_alert joined
|
|||
zln | ah, I began learning perl. Maybe I should go on and begin learning Perl 6 instead ? | 09:11 | |
is it like c & c++? | |||
the difference I mean | |||
09:17
mahmudov joined
|
|||
shred_alert | zln, Perl 6 is called Raku now. :) | 09:17 | |
zln | :-D | ||
shred_alert | You can write Raku code that looks a lot like C(++) | 09:18 | |
That one of the great things about it. It's flexible enough to fit around many styles and paradigms of coding. | |||
09:18
hacktor left
|
|||
epony | there is no difference, there is familiarity | 09:18 | |
zln | stranger things this is | 09:20 | |
09:21
sena_kun joined
|
|||
epony | en.wikipedia.org/wiki/Raku_(progra..._language) "Raku is a member of the Perl family of programming languages". | 09:21 | |
zln | Should a person like me who began to learn perl switch to raku instead or keep going | 09:23 | |
epony | how old are you? | 09:24 | |
shred_alert | What do you want to do with the programming language? | ||
zln | eh, I am 29. Donno, maybe mostly sysadmin things and other data manipulation things. | 09:26 | |
epony | keep going | ||
zln | In what situation should I not keep going? :) | ||
shred_alert | You won't lose out by switching to Raku in that case. | 09:27 | |
Unless you already have dependencies with Perl modules, I'd recommend learning Raku instead. | 09:28 | ||
zln | No I am not a maintainer or pro-programmer | ||
It's just for enthusiasm only :) | |||
shred_alert | In that case, Raku is a great choice! | 09:29 | |
zln | Is it as integrated as perl when it comes to sysadmin and data manipulation? | 09:30 | |
shred_alert | No. It's still a new language in the sysadmin world. | ||
zln | And. What books would you recommend for learning Raku deeply and thorougly | 09:31 | |
shred_alert | Uh. I'd just recommend learning Raku by looking up a basic syntax guide and building something. You'll get started a lot faster that way. | ||
You can refer to docs and books when you want more depth | |||
And share your code as well to get pointers | |||
zln | Alright | 09:32 | |
I think we got it covered :) | |||
shred_alert | (y) | ||
zln | Thanks for taking time | ||
shred_alert | You're welcome. :) | ||
zln | :-= | ||
:-) :p | |||
shred_alert | zln, this link is very useful: docs.perl6.org/language/syntax | 09:35 | |
zln | Will do, thanks :) | 09:36 | |
shred_alert | Anyone know why there are two versions still floating around? docs.raku.org/language/syntax docs.perl6.org/language/syntax | 09:37 | |
sena_kun | shred_alert, for backward compatibility for some time? | 09:40 | |
yesh, redirects, but | |||
shred_alert | Ah okay | 09:48 | |
Was just curious | |||
09:51
shred_alert left
09:52
Altai-man_ joined
|
|||
sarna | does raku have something like python’s virtualenv? | 09:54 | |
09:55
sena_kun left
10:05
shred_alert joined
|
|||
zln | what is python's virtualenv maybe you could explein if there who have the answer on the raku side but cannot relate to python | 10:18 | |
I think maybe | |||
shred_alert | Basically you're decoupling the environment that your programming is running in from the base operating system. | 10:20 | |
Altai-man_ | there is p6env, but not sure how "local" can it be | 10:21 | |
also I think rakudobrew can do things | 10:22 | ||
shred_alert | If you really want to decouple an app from the base system you can look into stuff like VMs, containers, and jails. | 10:23 | |
10:24
hacktor joined
|
|||
sarna | yeah, but vms containers and jails are really heavyweight.. using them when I just want to have two different versions of libraries installed for two different projects would be.. suboptimal | 10:26 | |
or at least that’s my viewpoint | |||
shred_alert | Just listing options :) | 10:27 | |
10:28
patrickb joined
|
|||
Altai-man_ | sarna, two versions of raku libraries? you can do that without any venvs. :) | 10:30 | |
just specify :ver<foo> and :ver<bar> in META6.json to install both, and then you can use Cool::Lib:ver<foo> and use Cool::Lib:ver<bar> and both will be available in this scope. | 10:31 | ||
and if they are in a different projects, then no problem at all | 10:35 | ||
sarna | Altai-man_: oh wow that’s cool | 10:37 | |
Altai-man_ | sarna, :) | ||
10:40
Manifest0 left
10:41
Doc_Holliwould left,
Doc_Holliwood left
10:43
Manifest0 joined
|
|||
Altai-man_ | u: – AlwaysFail | 10:45 | |
unicodable6 | Altai-man_, U+0020 SPACE [Zs] ( ) | ||
Altai-man_, U+2013 EN DASH [Pd] (–) | |||
Altai-man_, 13 characters in total ( – AlwaysFail): gist.github.com/a0f60822e1ce45fc5d...34ea0cff0a | |||
Altai-man_ | hmmm | ||
10:56
hacktor left
10:58
rindolf left,
hacktor joined
11:02
hacktor left
11:11
chloekek joined
11:16
wamba joined
11:23
shred_alert left
11:26
Guest78373 left
11:27
Guest78373 joined
11:30
aluaces joined
11:53
sena_kun joined
11:56
Altai-man_ left
12:13
Guest78373 left
12:16
Guest78373 joined
12:29
AlexDani` joined
12:30
Guest78373 left,
AlexDaniel left,
mahmudov left
12:31
Guest78373 joined
12:32
mahmudov joined
12:44
AlexDani` is now known as AlexDaniel,
AlexDaniel left,
AlexDaniel joined
13:14
chloekek left
13:25
Guest78373 left
13:35
hungrydonkey joined
13:37
Guest78373 joined
13:39
rindolf joined
13:43
wamba left
13:52
Altai-man_ joined
13:56
sena_kun left
13:57
chloekek joined
14:14
Doc_Holliwood joined,
Doc_Holliwould joined
14:28
lucasb joined
14:33
hungrydonkey left
14:50
silug joined
15:03
asdfasdfasdf joined
15:04
asdfasdfasdf left
15:13
Kaiepi joined
|
|||
Kaiepi | i'm writing a routine that takes another routine along with a capture of arguments and using that routine's signature, maps its parameters to corresponding values in the capture. the problem is atm i keep state for which named params have been seen and where in the list of positional params the routine is currently at because of slurpy parameters, but this is really annoying to write in such a way that it's | 15:17 | |
both testable and optimal. are there other ways to go about implementing this? | |||
tellable6 | 2019-12-26T18:52:37Z #raku <jmerelo> Kaiepi OK :-) | ||
Kaiepi | in js i'd use something like a generator for something like this, which is similar to gather, but i want to be able to test how individual params get mapped, which i'm not sure if i can do with that | 15:19 | |
oh, looks like the Iterator class does what i'm looking for | 15:32 | ||
15:53
sena_kun joined
15:55
Altai-man_ left
16:04
tadzik left
16:07
sergot left,
masak left
16:10
tadzik joined
16:19
wamba joined
16:32
lichtkind joined
16:55
Kaiepi left
17:24
domidumont joined
17:33
stoned75 joined
17:37
wildtrees joined
17:45
zln left
17:47
tyil left
17:48
tyilanmenyn joined,
tyilanmenyn is now known as tyil
17:52
Altai-man_ joined
17:56
sena_kun left
|
|||
SmokeMachine | sarna: have you seen 6pm? | 17:58 | |
18:01
phogg left
18:04
phogg joined,
phogg left,
phogg joined
|
|||
SmokeMachine | sarna: modules.raku.org/dist/6pm:github:F...20Oliveira | 18:07 | |
18:20
stoned75 left
18:42
mahmudov left,
xinming joined
18:43
mahmudov joined
19:14
rindolf left
19:18
pochi_ joined
19:20
zeylos7 joined
19:21
pochi left,
zeylos left,
zeylos7 is now known as zeylos,
TreyHarris left
19:23
TreyHarris joined
19:25
wamba left
19:29
rindolf joined
19:30
patrickb left
19:48
domidumont left
19:53
sena_kun joined
19:55
Altai-man_ left,
sauvin left
19:59
sauvin joined
20:03
chloekek left
20:31
stoned75 joined
20:37
Kaiepi joined
20:47
chloekek joined
21:11
rindolf left
21:27
dzedesfr joined
|
|||
dzedesfr | i | 21:27 | |
Hi | |||
could anyone tell GitHub to replace "Perl6" by "Raku" ?? | |||
cpan-raku | New module released to CPAN! Object::Permission (0.0.4) by 03JSTOWE | 21:46 | |
21:49
wamba joined
21:51
ufobat__ left
21:52
Altai-man_ joined
21:55
sena_kun left
|
|||
Geth | doc: cc2557c937 | (Stoned Elipot)++ | doc/Type/IO/Path.pod6 remove unnecessary calls to IO coercer in examples |
22:05 | |
sjn | \o | 22:11 | |
Updated stickers for FOSDEM: www.dropbox.com/sh/x8yjm7s73idbjrf...TBHKa?dl=0 | 22:12 | ||
I've ordered 2000 of them. Come to FOSDEM if you want any of them! :-) | |||
uzl[m] | sjn++ | 22:49 | |
dzedesfr: What do you mean specifically? Repos? Language tag? | 22:50 | ||
22:51
kensanata joined
|
|||
dzedesfr | uzl[m] language tag | 22:52 | |
22:52
aluaces left
|
|||
dzedesfr | github.com/search/advanced | 22:52 | |
Replace "Perl6" by "Raku" | |||
uzl[m] | I guess that there must be some repo where an issue can be submitted if it hasn't. | 22:53 | |
Grinnz | it should happen as soon as github.com/github/linguist/pull/4731 is deployed | 22:54 | |
22:59
uzl joined
|
|||
uzl | .tell vrurg_ Re: Iterators, Thanks. I ended up finding the following SO question (stackoverflow.com/q/50580476/10824322). I even asked a related question (stackoverflow.com/q/57121561/10824322) which I somehow forgot about it 😅. | 23:00 | |
tellable6 | uzl, I'll pass your message to vrurg_ | ||
uzl | I decided to talk myself through the concepts of iterables and iterators (especially those in Raku), and ended up assembling this: gitlab.com/snippets/1929111. It's a bit longish but if anyone could read it and offer some feedback, especially corrections and suggestion for improving it, I'd appreciate it. | 23:02 | |
dzedesfr | openmortal.sourceforge.net/cgi-bin/...?fighter=8 | ||
23:04
dzedesfr left
23:11
uzl left
23:17
wamba left
23:27
lucasb left
23:31
chloekek left
23:43
cpan-raku left
23:47
cpan-raku joined,
cpan-raku left,
cpan-raku joined
23:54
sena_kun joined
23:56
Altai-man_ left
|