🦋 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.
jmerelo releasable6: status 06:17
releasable6 jmerelo, Next release in ≈8 days and ≈12 hours. 1 blocker. Changelog for this release was not started yet
tellable6 2020-11-12T21:13:42Z #raku <melezhik> jmerelo: - this is my 2 cents - github.com/Raku/advent/commit/e806...e16f681aa0
releasable6 jmerelo, Details: gist.github.com/f0fdd7f7324867f4ac...7dc4d6b3b7
holyghost Hi 10:42
tyil o/ 10:43
holyghost I've started on Evo::GA on github.com/theholyghost2/p6-evo-ga
It's based on emryo devel for genetic algorithms (GA)
I'm going to incorporate Von Baer laws in GAs 10:44
The base classes are almost there
Some stuff on NK NKd systems
basically it's GAs
SFY
It's been a whil since I joined but as I said I'm going to do things on Evo comp. 10:47
Who's in the steering council now ? elected I mean 10:49
JJ and liz I presume 10:51
tyil holyghost: github.com/Raku/Raku-Steering-Coun...0201111.md
holyghost thx I don't always have access to https. therefor 10:53
tyil ah, I can just paste the names here if you need
holyghost np, congrats tyil, JJ liz and others 10:54
holyghost is just in groupie mode
I'm glad everyone is alright in there 10:55
just some nicks on the page would be great
tyil I think that can be added 10:56
holyghost .seen Xliff
tellable6 holyghost, I saw Xliff 2020-11-05T08:15:01Z in #raku: <Xliff_> m: my $s; ?$s.say
holyghost lol
I'm going to continue tomorrow on the code, now grabbing a beer 10:57
It's 100 lines a day with me
holyghost This looks cool : 11:00
(Metamodel::Mixins) method mixin
method mixin($obj, *@roles, :$needs-mixin-attribute)
I am probaly needing it for dispatching of emryo interfaces
I'm far out on OOP though, I write scheme and list programs most of the time 11:01
I will also continue racul development, the raku scheme 11:02
holyghost github.com/theholyghost2/racul 11:02
Then there's pagan, tons of work to be done 11:06
lizmat tyil: looks like Geth is awol ? 11:54
lizmat tyil++ 11:54
tyil :> 11:55
your timing was perfect, I just sat down for lunch :p
lizmat :-)
lizmat likes living dangerously 11:56
lizmat knows how dangerous it is to keep people from their food :-)
tyil not too dangerous, I hope
I'd like to see you again at a perl monger meetup after the 'rona crisis
lizmat I'd like to see you too again :-) not too sure about anything under the Perl moniker though 11:57
tyil I'm more than open to include a more direct reference to Raku in the name :> 11:58
lizmat let's see what the world looks like after 'rona...
tyil thats probably the wise approach 11:59
lizmat is now done with a round of maintenance on the CPAN Butterfly Plan modules 12:25
tyil: looks like the module upload bot is also awol :-)
Altai-man lizmat++ 12:26
tyil `kubectl delete pod` executed :p 12:26
cpan-raku New module released to CPAN! vars (0.0.5) by 03ELIZABETH 12:53
Altreus Is there a method like base, except that accepts an alphabet instead of an existing common representation? 12:56
Real.base I mean
lizmat wouldn't that just be a .trans on the output of a .base ? 13:04
Altreus mmmmmmaybe? :D 13:05
m: say 123456.base(42)
camelia base argument to base out of range. Is: 42, should be in 2..36
in block <unit> at <tmp> line 1
Altreus lizmat: nope
Needs more range 13:06
there are more than 36 uniquely-shaped glyphs in ascii so I'd like to provide that as the alphabet of "numbers"
Altreus I mean digits 13:08
thundergnat Altreus: would using a module be ok? Maybe Base::Any would help? (shameless plug) 13:09
Altreus Also kind of surprising that 36 is the limit, when there are common alphabets up to at least 64
thundergnat: of course, it's still Perl at heart!
thundergnat god for up to base 4000+
*good
Altreus nice
thundergnat And further with a different representation 13:10
also supports negative and imaginary bases for those really obscure needs... 13:11
Altreus thundergnat: Any chance of something like to-base-alphabet('0123456789abcdefghjkmnp') ... 13:12
tellable6 Altreus, I'll pass your message to thundergnat
Altreus I have a feeling there's a spy in here anyway 13:13
er... plus the number itself of course :D
Altreus I'm a helper github.com/thundergnat/Base-Any/issues/1 13:28
tecks is back 14:02
holyghost is away since 02:16:34 - automagically set away after 10 min idling. Msglog [ON] 14:12
tadzik holyghost: please don't use that auto-idle thing. Imagine how this channel would look if all 238 people did 14:13
lizmat tadzik++ 15:18
timotimo you know 16:12
timotimo we could emulate that based on data from the colabti irc logs 16:12
take all the raku/moarvm channels together to calculate an approximation of everyone's activity 16:13
[Coke] reminder to everyone doing presentations, maybe hide your bookmarks bar by default.
timotimo to balance it a little bit, only make them do the idle message 10 minutes after they last wrote something in channel
[Coke] (nothing in particular, just seeing everyone's personal bar on their chrome during work presentations)
timotimo [Coke]: as well as the "start page" of browsers that tends to display either your most visited or just some random recent websites
[Coke] timotimo++ 16:14
I have a "presentation mode" batch file for windows that turns on a bunch of things, need to see if I can do the bookmark bar thing from there as well.
timotimo cool. probably possible to port some of that to linux as well :)
you know how mac has a system-wide "dark mode" now? it'd be cool if every program would pay attention to a "presentation mode" kind of toggle as well 16:15
pie-in-the-sky thinking, though
[Coke] Yah, zoom doesn't pay attention to the windows setting, which is annoying.
timotimo which windows setting is that? dark mode?
[Coke] presentation mode 16:16
timotimo oh i did not know windows has that
so no chance for linux to make a brave push for "first operating system with this feature" 16:17
[Coke] ^_^ 16:19
guifa Errrm, something odd is going on here 16:36
I did a EVAL %foo.raku and it bugged out
timotimo oh dang
bugged out in what way?
guifa m: use MONKEY-SEE-NO-EVAL; use isms; EVAL '{:dates(${:calendars(${:buddhist(${}), :chinese(${}), :coptic(${}), :dangi(${}), :ethiopic(${}), :ethiopic-amete-alem(${}), :generic(${}), :gregorian(${}), :hebrew(${}), :indian(${}), :islamic(${}), :islamic-civil(${}), :islamic-rgsa(${}), :islamic-tbla(${}), :islamic-umalqura(${}), :japanese(${}), :persian(${}), :roc(${})})})}';
camelia 5===SORRY!5=== Error while compiling /home/camelia/EVAL_0
Unsupported use of ${})}. In Raku please use: $(})) for hard ref or
$::(})) for symbolic ref.
at /home/camelia/EVAL_0:1
------> 3japanese(${}), :persian(${}), :roc(${})}7⏏5)})…
timotimo haha, whoops 16:37
guifa (this shouldn’t ever happen for me in production, but I happened to run a test where the root level had no data in one area, so happy accident?)
timotimo m: say ${} 16:38
camelia {}
timotimo m: say :foo(${})
camelia Unexpected named argument 'foo' passed
in block <unit> at <tmp> line 1
timotimo m: say (:foo(${}))
camelia foo => {}
timotimo mabe it's the one at the far end
m: say (:foo(${:bar(${})}))
camelia 5===SORRY!5=== Error while compiling <tmp>
Unsupported use of ${})}. In Raku please use: $(})) for hard ref or
$::(})) for symbolic ref.
at <tmp>:1
------> 3say (:foo(${:bar(${})}7⏏5))
timotimo bisectable: say (:foo(${:bar(${})})) 16:39
bisectable6 timotimo, Will bisect the whole range automagically because no endpoints were provided, hang tight
timotimo, Output on all releases: gist.github.com/58b54bfcc4da329ba5...4b07acfdc8
timotimo, Bisecting by output (old=2020.06 new=2020.07) because on both starting points the exit code is 1 16:40
timotimo well, we always got that wrong
guifa So basically it’s been there forever
bisectable6 timotimo, bisect log: gist.github.com/2c2181784bf93b497a...0a2b692bfc
timotimo, (2020-07-05) github.com/rakudo/rakudo/commit/56...58c6d381d8
timotimo, Bisecting by output (old=2019.11 new=2020.01) because on both starting points the exit code is 1
timotimo bisectable: say (:foo( ${:bar( ${} )} ))
bisectable6 timotimo, Will bisect the whole range automagically because no endpoints were provided, hang tight
timotimo oh no no no sorry lol
m: say (:foo( ${:bar( ${} )} ))
camelia 5===SORRY!5=== Error while compiling <tmp>
Unsupported use of ${} )}. In Raku please use: $(} )) for hard ref or
$::(} )) for symbolic ref.
at <tmp>:1
------> 3say (:foo( ${:bar( ${} )}7⏏5 ))
bisectable6 timotimo, Output on all releases: gist.github.com/17b4d0caaae85bc9cf...62029da81c
guifa Note that even with ‘use isms’ it still bombed, so it’s a hardcoded Perlism too
bisectable6 timotimo, Bisecting by output (old=2020.06 new=2020.07) because on both starting points the exit code is 1 16:41
guifa And yeah I tried the spaces too haha
timotimo m: say (:foo(${:bar(${ })}))
camelia 5===SORRY!5=== Error while compiling <tmp>
Unsupported use of ${ })}. In Raku please use: $( })) for hard ref or
$::( })) for symbolic ref.
at <tmp>:1
------> 3say (:foo(${:bar(${ })}7⏏5))
timotimo it's quite possible it enters an error-reporting branch slightly wrong-ly after failing to parse for a different reason
but damn
bisectable6 timotimo, bisect log: gist.github.com/9d8227e2d6167814a8...2ec4e965bb
timotimo, (2019-12-31) github.com/rakudo/rakudo/commit/60...7981133493
guifa Note this though: 16:42
say (:foo($%(:bar($%( )))))
evalable6 foo => {bar => {}}
guifa so doing a simple s/ ${} / $%() / makes it work 16:43
bisectable6 timotimo, ⚠ New output detected, please review the results manually 16:44
bisectable6 timotimo, Output on all releases and bisected commits: gist.github.com/6b51360578e9c37b65...b563447771 16:44
timotimo, bisect log: gist.github.com/0d2e001e5f9f645249...9779410a52 16:45
timotimo, (2020-07-05) github.com/rakudo/rakudo/commit/56...58c6d381d8
timotimo, Bisecting by output (old=2019.11 new=2020.01) because on both starting points the exit code is 1
timotimo what just happened
bisectable6 timotimo, bisect log: gist.github.com/fa41fa9d382c4860c2...bcd4668361
timotimo, (2019-12-31) github.com/rakudo/rakudo/commit/60...7981133493
timotimo, ⚠ New output detected, please review the results manually
timotimo, Output on all releases and bisected commits: gist.github.com/c4e91b93e113d5b23a...1620f6016e
guifa I’ll go ahead and a file a quick ticket 16:48
Altreus wrongly is a word, no need to stitch one together :) 16:49
timotimo <sigil> '{' {} $<text>=[.*?] '}' 16:51
this is quite possibly what's too liberal here 16:52
guifa Hopefully once it’s fully populated with data there shouldn’t be a problem for me in the short term. But I can also easy go to-json.&from-json 17:01
guifa was trying to do a QOD deep copy of a hash/array
QAD*
timotimo QAD? 17:02
guifa quick and dirty 17:03
Altreus how do I set something in the dynamic scope, like local in perl5?
moritz my $*dynamic_var 17:05
guifa temp
Altreus temp, thanks 17:05
:)
rindolf perryprog: hi, so you're a rakuun too? ;) 17:21
guifa timotimo wtf, github’s submit new issue button is 404ing for me
rindolf guifa: i once abbreviated quick and dirty to "QuaD": github.com/shlomif/quad-pres - perl5 though 17:23
cpan-raku New module released to CPAN! List::SomeUtils (0.0.7) by 03ELIZABETH 17:25
New module released to CPAN! List::AllUtils (0.0.5) by 03ELIZABETH
[Coke] btw, happy Diwali to anyone who celebrates. 17:26
rindolf [Coke]: happy Diwali 17:27
rindolf drinks [Coke] to celebrate Diwali. j/k 17:28
m: "Diwali" ~~ / [Coke] / 17:29
camelia ( no output )
rindolf m: "Diwali" ~~ / [Coke] / ?? "match" !! "no match" 17:29
camelia WARNINGS for <tmp>:
Useless use of constant string "no match" in sink context (line 1)
Useless use of constant string "match" in sink context (line 1)
rindolf m: (("Diwali" ~~ / [Coke] /) ?? "match" !! "no match") 17:30
camelia WARNINGS for <tmp>:
Useless use of constant string "no match" in sink context (line 1)
Useless use of constant string "match" in sink context (line 1)
rindolf docs.raku.org/language/operators#infix_??_!! 17:31
shouldn't "right behind" be "right after"? 17:32
guifa technically both work, but after does sound much better
following > after > behind 17:33
guifa goes to $day-job&
oh but first, lizmat: yes. I didn’t even realize it posted. Github 404’d me when I hit submit so I tried again and it 404’d me again. My bad 17:34
lizmat oki, no pb please close the one you like least :-) 17:35
rindolf lizmat: hi, how can i get the expr to compile? 17:36
lizmat rindolf: the *warning* is about the fact that you're not doing anything with the result of the ?? !! 17:37
m: say "Diwali" ~~ / [Coke] / ?? "match" !! "no match" 17:38
camelia no match
lizmat guifa: 404'd? not 500'd ?
rindolf lizmat: ah 17:49
guifa` lizmat: yeah, it really did 404 (github makes the 404 huge haha) 17:51
lizmat weird
perryprog rindolf: it's the cool perl5 17:55
rindolf perlbot: sweval: 1 ? "t" : "f" 17:56
perlbot rindolf: ===SORRY!===␤Could not find warnings at line 1 in:␤ inst#/langs/perl6/share/perl6/site␤ inst#/langs/perl6/share/perl6/vendor␤ inst#/langs/perl6/share/perl6␤ ap#␤ nqp#␤ perl5#␤[Exited 1]
rindolf perlbot: sweval5: 1 ? "t" : "f"
perlbot rindolf: No factoid found. Did you mean one of these: [shuffle] [spoolay] [eval] [.sb] [.sv] [sv] [sdl] [sfb] [sop] [spa]
rindolf perlbot: sweval5.14: 1 ? "t" : "f"
perlbot rindolf: t 17:57
rindolf :D
perlbot: sweval5.32: 1 ? "t" : "f"
perlbot rindolf: t
Altreus anyone available to help mw with this? github.com/Altreus/Base-Any/tree/a...conversion 18:25
The problem is exhibited by running t/01-basic.t
there's a say at the bottom that makes it go wonky
here's some of the relevant bits gist.github.com/Altreus/2d3a71fdd7...1d3afa81ee 18:27
lizmat perhaps an off-by-one in the where { ... } code ? 18:28
Altreus hold on
on the one hand yes
on the other hand, $threshold is 5
why is it sending 4516? 18:29
lizmat I don't know :-)
Altreus ok well now it's trying super hard
so it was < vs <=, a mistake I *already made* 18:30
very pesky
hrm I'm going to leave real numbers cos I don't understand the code :D
JJAtria[m] tyil: is there anything I can do to help move github.com/rouge-ruby/rouge/pull/978 along? 18:33
Altreus oh look, 4516 happens at a different line
tyil JJAtria[m]: I've given up on that one for now, feel free to take it over 18:34
Altreus It *does* send it at line 76
but it *reports* it at line 137
JJAtria[m] tyil: Ok, I'll checkout locally and give it a shot
I remember implementing a lexer for rouge in the past, so maybe I still remember some of that 18:35
[Coke] tries to dip into discord for some non-raku stuff and finds it to just be a firehose.
Altreus A project for anyone at a loose end github.com/thundergnat/Base-Any/issues/1 18:59
:D
guifa` Altreus: would be cool to specify a base as a string, where base = $string.chars, and the $string.comb is used as the character array 19:57
Altreus guifa`: yeah, I took it as an array cos you can just do string.comb in your call if you want 20:06
it works for ints but I can't get my head around the other code 20:07
the maths is bigger than me
guifa` Altreus remember though, Raku is about torturing the implementer not the user ;-)
Altreus easy to have a multi sub with $alphabet that just calls the other one with $alphabet.comb 20:08
Altreus in fact I might as well 20:10
melezhik rba brezeleisen is really slow for me now, not sure why 20:10
melezhik .tell tyil I noticed you've run recently a few builds with none existed Rakudo SHA, rakudist.raku.org/sparky/report/debian/1036 ... 20:12
tellable6 melezhik, I'll pass your message to tyil
tyil melezhik: oh, I thought it was the SHA of the git commit of the module's repo, I may have misread 20:13
melezhik .tell tyil I also fixed "rebuild" feature, now it actually reruns a build
tellable6 melezhik, I'll pass your message to tyil
melezhik @ty 20:14
tyil is there another way to specify the specific commit I want to have tested
?
melezhik tyil if you really need this commit feature for module please create a ticket on github.com/melezhik/RakuDist 20:15
so, not yet, not now
tyil alright
melezhik but I don't think it could be hard to implement ...
right now rakudist.raku.or is really slow for me, there is some high load on rakudist worker server right now, already told to rba maybe he knows what happening 20:16
I've not seen any blin traces last time I checked , usually it was blin jobs that loaded the worker, not the case now ... 20:17
oh, it's getting slowly better with performance of rakudist worker right now ... ))) 20:18
melezhik anyway I'd like to announce the feature when if someone want to run the same build they already run, they just need to find and push "rebuild" button, it works now - raw.githubusercontent.com/melezhik...ebuild.png 20:23
RakuDist rebuild build feature now works 20:24
melezhik a small comment - the feature will be working only for new builds (created after now )) ) 20:33
ToddAndMargo Hi All. I am looking at docs.raku.org/language/variables and am not finding a way to get the absolute path of the program I am running. ??? 21:16
tyil docs.raku.org/language/variables#i...-$*PROGRAM 21:17
ToddAndMargo Just found it. It is $?FILE 21:18
$*PROGRAM gives me the relative path. I can see its uses. 21:20
tyil well, it gives you an IO::Path 21:24
you can call .absolute on that
MasterDuke fwiw, you can call `.absolute` on $*PROGRAM. not sure how/when that'd be different from $?FILE
ToddAndMargo $?FILE is perfect for what I am up to. `my Str $ReportFile = $?FILE ~ ".tmp";` I like the .absolute. I can see its uses too. 21:26
Thank you guys! Bye bye 21:30
guifa` MasterDuke: one is compile time and the other is runtime. So I guess theoretically the $?FILE could report something differently if precompiled but then moved? 22:04
MasterDuke ah, right
ToddAndMargo Hi All, Is there a way to tell qqx to release and not wait for a return? Like bash's "&" , for example `leafpad xxx &` 22:26
MasterDuke `start qqx` probably 22:27
ToddAndMargo Perfect! Thank you! 22:28
ToddAndMargo Hmmmm. Releases but does not run the program or it terminates it on exit 22:35
timotimo yes, it does terminate when the raku program exits 23:30
to really detach a program you spawn, you'll want something system-dependent. like a double-fork on linux, or nohup, but honestly use a program whose job it is, like systemd, supervisor, dunno, launch it immediately with atd? ;) 23:31
launch it in a backgrounded tmux session 23:35
or screen
or dtach