🦋 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:05 reportable6 joined 00:34 simcop2387 joined 00:49 b2gills joined 01:11 thundergnat joined
thundergnat m: gist.github.com/thundergnat/77676d...e25e55ce92 01:13
camelia Cannot call 'shift' on an immutable 'List'
in sub expand-tree at <tmp> line 2
in sub expand-trees at <tmp> line 11
in block <unit> at <tmp> line 15
moon-child Bag bag bag!
(sorry) 01:14
thundergnat bisectable6: old=2020.01 new=HEAD gist.github.com/thundergnat/77676d...e25e55ce92 01:15
bisectable6 thundergnat, Bisecting by exit code (old=2020.01 new=f83e551). Old exit code: 0
thundergnat, bisect log: gist.github.com/871a38b5f78c7b89d0...35b735dad1
thundergnat, (2020-10-14) github.com/rakudo/rakudo/commit/33...c74e723a8d
thundergnat Hmmm. ^^^ that is an (old) regression, but arguably the gist is wrong to begin with. 01:19
It is directly from Rosettacode. rosettacode.org/wiki/List_rooted_trees#Raku
If it is wrong, I'll need to update the example on Rosettacode. If it is an unintended regression, it would be nice to get it fixed for next release. 01:20
.tell lizmat: colabti.org/irclogger/irclogger_lo...1-06-03#l5 Any thoughts? 01:21
tellable6 thundergnat, I'll pass your message to lizmat
01:41 jmcgnh left 01:44 jmcgnh joined 01:53 jmcgnh left 02:07 jmcgnh joined 02:54 tejr joined 03:54 bloatable6 left, unicodable6 left, nativecallable6 left, notable6 left, coverable6 left, reportable6 left, shareable6 left, committable6 left, sourceable6 left 03:55 reportable6 joined, sourceable6 joined, bisectable6 joined, releasable6 joined 03:56 greppable6 joined, unicodable6 joined, quotable6 joined, evalable6 joined, statisfiable6 joined, tellable6 joined, notable6 joined, coverable6 joined, benchable6 joined 03:57 linkable6 joined, nativecallable6 joined, squashable6 joined, committable6 joined, bloatable6 joined, shareable6 joined 04:52 frost joined 05:22 stoned75 joined 05:27 jmcgnh left 05:30 jmcgnh joined 06:02 reportable6 left 06:03 reportable6 joined 06:13 jcallen joined 06:56 jmcgnh left 06:59 jmcgnh joined 07:00 jmcgnh left 07:09 jmcgnh joined 07:12 jmcgnh left 07:15 jmcgnh joined 07:24 dakkar joined 07:34 holly joined 07:41 jmcgnh left 07:42 bdju joined, bdju left, bdju joined 07:45 jmcgnh joined 08:02 jmcgnh left 08:07 jmcgnh joined 08:19 tomasz joined
tomasz Hi. Why is this producing different results: say ((1..*).grep: *.is-prime)[280] ? 08:23
Lower indices seem ok, but about this high they give jumpy results. Much higher are very jumpy. 08:24
08:26 tomasz left
moon-child what do you mean by jumpy? 08:26
If I run that multiple times, I get the same result every time
(1823)
08:26 tomasz joined
raydiak moon-child you may want to repeat that, he quit right before you answered, and re-joined right after 08:30
08:31 guer joined
tomasz yes, please 08:31
moon-child oh, derp
tomasz or if someone could copy paste repost
moon-child tomasz: what do you mean by jumpy?
If I run that multiple times, I get the same result every time
tomasz different results
moon-child (1823)
m: say so all(1823 «==« (^1000).map: { (1..*).grep(&is-prime)[280] }) 08:32
camelia True
moon-child what version are you running (raku --version)? 08:33
tomasz > say so all(1823 «==« (^1000).map: { (1..*).grep(&is-prime)[280] })
False
> say ((1..*).grep: *.is-prime)[300] 08:34
2027
> say ((1..*).grep: *.is-prime)[300]
2063
> say ((1..*).grep: *.is-prime)[300]
2027
holly I don't want to be rude but there should not be a capital letter search in zef, capital letters should be able to be searched (in the front) as common letters
moon-child do you get the same result if you replace 1..* with 1..3000? If so, can you post the result of (1..3000).grep(&is-prime)? 08:35
tomasz > (1..3000).grep(&is-prime)[300] 08:36
2003
> (1..3000).grep(&is-prime)[300]
2039
holly So "zef search Hawking" should sometimes be able as 'zef search hawking'
tomasz > (1..3000).grep(&is-prime)[300]
2017
> (1..3000).grep(&is-prime)[300]
2029
dakkar holly: I agree, `install` must respect capitalisation, `search` should ignore it
raydiak tomasz: as moon-child asked, what version of rakudo are you running? it's completely repeatable for me too on 2021.05 08:37
tomasz This is Rakudo version 2018.12 built on MoarVM version 2018.12
implementing Perl 6.d.
holly dakkar : as you say
eseyman dakkar: FTR, this is what dnf does on Fedora-based systems, not sure about apt
moon-child that version is over a year old, I recommend upgrading it
raydiak probably some old bug that got fixed in the last 2 1/2 years, then
tomasz 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux
it's the official Debian repo version 08:38
could it be unpatched there?
moon-child debian is known to ship out-of-date, buggy software
tadzik nonsense
tomasz ok
tadzik debian stable just doesn't update things after its release, except for security and bugfixes
that's its job. It has nothing to do with "out of date buggy software" 08:39
moon-child I don't see how what you said and what I said are inconsistent
tadzik on my debian I have rakudo 2020.12 available
tomasz i guess i'll try the docker edition
what debian is that?
eseyman ask for rakudo to be included in debian-packports ?
tadzik unstable
eseyman s/pack/back/
tadzik aka "up-to-date" :> 08:40
(mostly)
tomasz i'd rather go for a stable debian than a stable raku 08:41
08:41 dakkar left, dakkar_ joined
raydiak you may also be interested in github.com/nxadm/rakudo-pkg 08:41
dakkar_ ugh, work laptop keeps locking up, I hope they'll send me a replacement soon
tomasz thanks, raydiak 08:42
tadzik "unstable" is a bit of a misnomer, it is perfectly stable (for me). It's just getting updates :P
I wouldn't run stable on anything other than a server, it's really an extreme distribution in its own way
sort of a declaration that says "I want to freeze time and not be concerned with any developments in the software world for the next few years at least" 08:43
tomasz server is whatever that moves to me
yes, sort of correct 08:44
08:44 dakkar_ is now known as dakkar
tomasz im in the retroguard 08:44
holly stable and unstable are fine as they are, stable is just out of date 08:45
tomasz frontline is frontline 08:46
is there a good image for kvm? 08:47
raydiak, is that debian repository in rakudo-pkg woring? 09:20
working
09:21 daxim left, daxim joined, ComplYue[m] left
tomasz i've run that script on a vm but that installation looks somewhat defunct 09:21
# apt policy perl6 09:23
perl6:
evalable6
tomasz Installed: (none)
Candidate: 6.d-2
Version table:
6.d-2 500
500 deb.debian.org/debian buster/main amd64 Packages
what's that?
raydiak afaik it is actively maintained and fairly widely used. I'm not on debian so it'd be difficult for me to help you troubleshoot, but given that seems to point to the official debian repos, maybe try the name "raku" instead of "perl6"? 09:32
tomasz i got the official docker, this will do 09:33
raku has the same there
i'm not good with repos, but there should be more
eseyman yeah, there doesn't seem to be anything in dl.cloudsmith.io/public/ 09:34
tomasz there we go 09:35
btw, is building all this from sources difficult? 09:36
raydiak I haven't tried for a while, but no, not difficult as I recall 09:37
eseyman the buster package does exist, though
tomasz where?
eseyman tomasz: cloudsmith.io/~nxadm-pkgs/repos/ra...;t=binary/ 09:38
tomasz i'll try it 09:39
eseyman I'll ping Claudio via mail to see what's up 09:40
tomasz it looks fine, but installs in /opt/rakudo-pkg/ 09:41
lizmat El_Che ^^
tellable6 2021-06-03T01:21:39Z #raku <thundergnat> lizmat: colabti.org/irclogger/irclogger_lo...1-06-03#l5 Any thoughts?
eseyman tomasz: yes. That's what non-vendor-supplied packages are supposed to do 09:43
tomasz ok
raydiak tomasz: build instructions for rakudo are at github.com/rakudo/rakudo/blob/master/INSTALL.md , basically just git clone, then perl Configure.pl --gen-moar --gen-nqp --backends=moar --prefix=$HOME/raku (or wherever you want to install to) && make install. then make sure it's in your path and you should be good to go. you'll have to install zef by hand too if you go this route, which is just git clone and 09:48
raku -I. bin/zef install .
I use rakubrew personally, but I'm given to understand that this is no longer recommended for some reason
tomasz maybe i try it in the future when i know the big picture better 09:50
and what's the dependence of this on Java? (as i found somewhere) 09:52
raydiak there is a JVM backend, though you're generally better off with moar 09:53
lizmat tomasz: there's no dependence on Java, unless you want to use the JVM backend
tomasz ah, ok, cheers 09:54
thanks for all the help, i'm now at home both legs 09:55
raydiak you're welcome, we're happy to help :)
tomasz i'm not sure if my post about /usr/local went through 09:57
i posted 2 times but it disappeared
it's a better location than /opt
09:57 squashable6 left
tomasz in case someone asks 09:57
09:58 squashable6 joined
tomasz it's already in the path, so not much new wiring for the user 09:58
holly github.com/theholyghost2/Game-Adventure <-- for writing old adventure games
many overrides though for low print porting 09:59
tomasz and in case someone is curious, the docker version is slightly behind the git repo: v2021.05 vs 2020.10 10:00
10:01 moon-child left, SmokeMachine left, charsbar left, samebchase left, cognominal left 10:02 Doc_Holliwould joined
tomasz see you 10:04
10:04 tomasz left 10:11 moon-child joined, SmokeMachine joined, charsbar joined, samebchase joined, cognominal joined, lgtaube joined, phogg joined, DarthGandalf joined, m6locks joined, Maylay joined, jercos joined, tinita joined, tobs joined, leont joined, perlbot joined, JRaspass joined, corwin joined, polettix joined
holly Again : github.com/theholyghost2/Game-Adventure <-- for writing old adventure games 10:13
You can derive everything and I'm going to make some adventure game as this as a depedency. Needs refactoring a bit
Altreus graphical or text? 10:14
holly it's based on SDL2::Raw
so graphical
Altreus nice
holly thx
10:15 phogg left
Altreus I can't wait to have time to start a thousand tiny projects that I'll never finish 10:15
holly sure Altreus :-)
take it easy
lizmat still feels very much like sub foo() { ... } to me :-(
10:16 samebchase2 joined
holly it's fast hacking I know 10:17
but I mentioned low memory and processor prints 10:18
which is out of date :-)
10:18 samebchase left 10:21 phogg joined
holly Now to find a good recipe for the game ... 10:25
MVC for the thing is somehwat bad I think
but I'll ask around 10:26
beholder, spider queen
dakkar holly: perlconference.us/tprc-2021-cloud/schedule/
holly oh right
dakkar in particular, tprc2021cic.sched.com/event/jLxu 10:27
holly I cannot travel, I'm soryy
s/soryy/sorry
dakkar it's "in the cloud" ☺
holly ah
dakkar (most of the world can't travel these days)
holly I'm not the social type, but maybe later 10:28
I understand a BOF session
dakkar the talks will probably be recorded and available after the conference, so you can maybe watch it later
the talk I pointed you to is about a common game design, ECS 10:29
Altreus I keep seeing raku-based wrappers around stuff that don't actually make use of raku's features
like I'm sure it would make a lot of sense to have an async framework for game engines
codesections dakkar: yeah, I think the talks are being live-streamed on youtube and uploaded soon (immediately?) after 10:30
Altreus every game engine ever uses some sort of update(dt)
holly Altreus : true
Altreus I feel like raku is well-poised to invert this
holly Game::Adventure is for out of date games though
Altreus react-whenever is my new hammer, so everything is a supply nail :) 10:31
holly abandonware
Altreus yeah :) just putting it out there
dakkar Altreus: otoh, games often need to make sure that every part is in the correct state at all times, and async makes that more complicated
holly: it's not abandoned if it's still being written, right? 😜
holly It needs a pramagtized raku/C system, with a new some sort of SDL
Altreus It's an unformed concept in my mind, but I feel like there's a star forming in the nebula 10:32
holly dakkar : I don't like the 3D games from these days
It's not my kind of thing
you can write 3D levels with Game::Adventure though
(it's based on SDL2)
dakkar holly: sure, I was just joking on the term "abandonware" meaning "software whose owners have abandoned"
Altreus I started writing a Perl5/Lua text adventure creation module 10:33
holly dakkar : right
Altreus But it's on the pile of never gonna finish it
holly As long as you don't reinvent the wheel :-) 10:34
Altreus the POE::Wheel
dakkar Altreus: that's a subtle way of saying "I've been around Perl for a looong time" ☺ 10:35
10:35 jess joined
holly lol 10:38
Altreus faraway look
El_Che lo 10:39
eseyman: is there a problem with rakudo-pkgs?
holly back in the day we had these great monitors :-)
CRT
splendid for adv gaming 10:40
10:40 xinming_ joined 10:41 jess left, jess joined
holly Now I need to write a "Camel" game, something with a plane and the Red Baron 10:41
something I played on an 8088 10:42
again, on the TODO file
Gnome's Quest 11:09
I'm off for now, will login later this weekend but have to work on other projects 11:38
11:39 holly left
eseyman El_Che: not me but tomasz seems to have issues with it 11:47
tbrowder g'day all 12:02
12:03 reportable6 left 12:04 reportable6 joined
tbrowder i'm trying to execute a Perl script with shell or run and get an error "The spawned command exited..." 12:06
i've tried to redirect error to /dev/null but that didn't help. the script executes fine outside raku 12:07
"The spawned command './bin/foo.pl' exited unsuccessfully..." 12:11
lizmat perhaps the current dir is different from the raku context ? 12:12
tbrowder could be. i just found i could elim the error by moving an exit statement out of the same block. i need to use a more complicated run statement i think. 12:17
i'll report back later...
ok, fixed it. the output was sinking so i did something as suggested in docs: 12:24
run('foo.pl', @args).so 12:25
no error!
dakkar well, the error is still there, you just stopped seeing it
as in, `foo.pl` is *still* exiting with a non-0 code 12:26
you told `run` to not tell you that
(which may well be exactly what you want to happen, just pointing out the subtlety) 12:27
tbrowder that's ok. i'm just running its --help arg. the author uses some fancier Perl code that i don't understandand don't need to worry about
dakkar that's fine then ☺
tbrowder the actual runs of his code with raku work as advertised 12:28
thanks lizmat and dakkar 12:29
i think for some reason he makes a habit of having his scripts exit with non-zero on --help. and his scripts always run a full default process when no args are entered. completely different from my conventions. 12:32
hard to get used to...
Altreus I definitely think it's badly behaved to return failure when help was requested 12:36
I'm having a hard time justifying to what extent that could be considered a failure at all
ugexe prove --help on OSX does it 12:37
github.com/ugexe/zef/blob/602c54f1...od#L70-L90 12:38
13:04 linkable6 left, evalable6 left 13:05 evalable6 joined 13:06 linkable6 joined
tbrowder .seen rbt 13:14
tellable6 tbrowder, I saw rbt 2020-09-09T14:45:04Z in #raku: <rbt> moritz: Okay. Will do in the future.
13:14 LizBot joined 13:26 juanfra joined 13:32 demostanis[m] joined, tyil[m] joined, ComplYue[m] joined, CIAvash joined 13:50 frost left 13:57 masak_ is now known as masak 14:10 gordonfish joined 14:24 Doc_Holliwould left 14:31 squashable6 left 14:35 Sgeo joined
tbrowder ugexe: is that failure return requiredbecause it's OSX? if so, maybe that's why he does it. 15:04
ugexe i think osx includes some prove shim that behaves this way 15:06
15:35 linkable6 left, evalable6 left 15:36 evalable6 joined 15:51 Doc_Holliwood joined 16:37 dakkar left 17:16 Doc_Holliwood left 17:21 linkable6 joined 17:33 squashable6 joined 17:46 Doc_Holliwood joined 18:03 reportable6 left 18:04 reportable6 joined 18:21 metacookie joined 18:24 Doc_Holliwood left
Geth doc/cool-coercers: a9c49de212 | (Stoned Elipot)++ | doc/Type/Cool.pod6
Add Cool coercers ref #3361
18:31
doc: stoned++ created pull request #3894:
Add Cool coercers ref #3361
18:32 linkable6 left 18:33 linkable6 joined 18:46 cbk joined
lizmat weekly: www.reddit.com/r/perl/comments/npu...;context=3 19:06
notable6 lizmat, Noted! (weekly)
19:27 linkable6 left 19:28 linkable6 joined 19:38 sono joined 20:04 Doc_Holliwood joined 20:05 p6steve joined
p6steve exit 20:05
quit
20:05 p6steve left 20:11 cbk left, cbk joined
japhb Altreus: Can confirm that Supply- and Channel-based design for Raku games works well. You still need to be aware of the actual passage of time in order to do smooth interpolation and game physics though. 20:15
Altreus: Also, there is a #raku-gamedev which you may be interested in. 20:16
.tell holly There is a #raku-gamedev channel which you may be interested in.
tellable6 japhb, I'll pass your message to holly
20:22 p6steve joined, p6steve left 20:23 p6steve joined 20:42 guer left 20:53 guer joined 20:54 SmokeMachine is now known as SmokeMachine_ 20:55 SmokeMachine_ is now known as SmokeMachine 21:01 p6steve left 21:07 esh joined 21:15 guer left 21:29 linkable6 left 21:31 linkable6 joined 21:34 p6steve joined 21:42 guer joined 22:09 phogg left, phogg joined 22:18 p6steve left 22:48 guer left 23:10 pounce joined 23:18 cbk left, Doc_Holliwood left 23:47 thundergnat left