»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
elcaro cro.services site seems terribly slow 00:20
MasterDuke yeah, seeing that here too 00:26
jnthn: cro.services/ is very slow 00:27
.tell sena_kun cro.services/ is very slow
yoleaux MasterDuke: I'll pass your message to sena_kun.
holyghost I'm doing some java this weekend a sequel to my Angel's Destiny RPG 04:57
holyghost the first is not finished but has several levels and I need to redesign as it's stupid code 04:58
ufobat_ Inline::Python does not install on my box, pastebin.com/raw/06qGwcqd any advice? 05:42
Elronnd how can I turn an int into an enum? 05:44
like, if I have enum X<a b c>, and I have a 1, how can I turn that into an X::b? 05:45
tried my X $f = 1 but that errors
moritz m: enum A <a b c>; say A(1) 05:48
evalable6 b
moritz Elronnd: ^^ 05:49
elcaro ufobat_: I just tried and got the same error. I'd guess some change deeper in the guts (ie. MoarVM) might have broke it... but niner would know best. 05:57
probably the best thing to do is raise a GH issue on Inline::Python repo 05:58
ufobat_ elcaro, okies :) thanks
Elronnd moritz: —oh! 06:02
thanks
Xliff m: sub a (*@a:($aa, $bb, $cc)) { @a.say }; a(1, 2, 3, 4) 06:45
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/kLDtgUB5wR
Variable '@a' is not declared
at /tmp/kLDtgUB5wR:1
------> 03sub a (*@a:($aa, $bb, $cc)) { 08⏏04@a.say }; a(1, 2, 3, 4)
Xliff ^^ isn't That the way to do parameter decomposition?
m: sub a (**@a:($aa, $bb, $cc)) { @a.say }; a(1, 2, 3, 4) 06:48
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/kY4XyZbKL1
Variable '@a' is not declared
at /tmp/kY4XyZbKL1:1
------> 03sub a (**@a:($aa, $bb, $cc)) { 08⏏04@a.say }; a(1, 2, 3, 4)
abraxxa the certificate for alerts.perl6.org doesn't contain its hostname 06:52
timotimo abraxxa: alerts.perl6.org isn't set up at all, actually
abraxxa it seems the SAN was forgotten when adding perl6.wakelift.de
timotimo i was hoping the original server would be back up before anybody needs any of the more "exotic" services 06:53
abraxxa it would have been a good way to inform people that perl6.org is down 06:54
moritz so we did, on IRC and twitter 07:05
feel free to inform via other channels that you frequent
abraxxa I don't do social media and prefer atom, rss and email in that order 07:08
alerts.perl6.org has an atom feed that doesn't work, so...
moritz so you would have prefered to be informed through the atom feed that doesn't work? 07:12
abraxxa yes, restoring that first 07:16
moritz it seems nobody has gotten around to that. You are very welcome to help. 07:18
tyil timotimo: poke 07:27
tyil Geth: uptime 07:28
Geth tyil, 1 minute and 55 seconds
tyil if someone's around with access to update the hooks used for Geth, pls poke so we can try and get it working again 07:29
rba[m] moritz: any news from the broken server?
moritz rba[m]: it's broken, and is very likely to remain that way 07:33
abraxxa what needs to be done?
moritz tyil: I have access to many of the hooks
tyil neat
I'm running Geth on my infra now, could you update one hook to use "geth.svc.tyil.net" as URL? 07:34
you should be able to leave off the :8888 thing, as I'm hosting it :443 which is the default for https
moritz tyil: ok, I've updated the URL for perl6/doc 07:36
tyil iirc there should be a button to re-try an old payload for testing purposes
moritz I remember seeing that in the past, but right now I don#t 07:37
tyil hmmm
let me think of another way to test this then
moritz I'll just push an empty commit 07:38
timotimo what was the old URL?
moritz hack.p6c.org:8888
tyil hack.p6c.org I believe
timotimo perhaps we should in the future have one DNS entry for every bot so we can do fine-grained control whenever we move stuff around
Geth doc: 82008e19dd | (Moritz Lenz)++ | 0 files
Empty, please ignore

just to test the new commit hook
timotimo well, hack is down at the moment, so in theory we could have that point at geth.svc.tyil.net for the time being
tyil I would very much recommend doing some CNAME games 07:39
moritz I can do that, but then you'd have to open port 8888 as well
timotimo true, but that should be easy as well
tyil I am aware hack is down, I'm hosting geth because I saw people asking for geth :p
timotimo netcat/socat to the rescue
tyil moritz: I can expose :8888 with no worries
timotimo i know that :)
what i meant was "nobody needs the domain to point at something in particular at the moment"
tyil ah 07:40
at least it seems to work
which is a good thing
moritz timotimo: that sounds good, as soon as we have well-established control over perl6 related DNS 07:41
(re one domain per bot)
mlenz@shell01vp:~ > dig hack.p6c.org +short 07:42
geth.svc.tyil.ne.
aaarrgh
forgot the t
tyil moritz: :8888 should be available now
(:443 is also still available)
rba Would like to get rakudo.org/files/ back to live. Need some hints though... 07:43
moritz ok, fix is in, should percolate through the various DNS caches in about a day or so
tyil I don't think it does TLS on :8888, only on :443
moritz aye, it's hack.p6c.org:8888/
tyil also, if anyone has kubernetes experience and would like access to the part of my infra hosting Perl 6 services, let me know 07:44
it may be useful to have someone around able to inspect issues when I'm asleep :p
timotimo rba: unless you can conjure the files out of thin air, i don't know how
rba uch. so the build files are gone? 07:45
timotimo moritz: you have control over p6c.org?
i don't know if the .msi and .dmg files are anywhere else than www.p6c.org
moritz timotimo: I have control over the domain 07:47
I haven't recovered the hard drives yet
rba timotimo: may we rebuild them?
timotimo moritz: did you write about what you've tried with the server so far? i recall multiple resets and connecting a serial console, but no luck getting it to boot
tyil does anyone know how Geth used to do authentication?
moritz timotimo: neither did removing of single ram thingies help 07:48
timotimo OK
moritz didn't have many tools in the DC to try more stuff
timotimo dang, you'd expect a DC to have lots of stuff for that kind of problem :|
is taking out the hard drive the next step?
unless that somehow got damaged, we'll easily get the rakudo.org/files from there
Woodi hi today 07:49
tyil hi Woodi 07:50
Woodi what exactly is a problem ? perl6.org points to specific ip and no one can change it ?
Woodi at this point seriosuly consider *user level* DNS <-> IP handling... google and HN ip adresses don't change too often :) 07:56
kawaii good morning o/ 08:04
tobs I have a Set $H and add more stuff to $H in a loop { $H ∪= ... } until it doesn't change anymore: last if $H<> eqv ENTER $H<>. The things I accumulate are value types and eqv works, but only when I take a reference my $old = $H at the beginning of the loop. Otherwise ENTER $H<> is apparently empty. Alas, I can't reproduce it yet. Does anyone know offhand if what I'm doing is safe at all? 08:05
Woodi .seen skids 08:10
yoleaux I saw skids 25 Apr 2019 21:31Z in #perl6: <skids> Anyway, I'm free... free I say... so I'm driving home...
tobs paste.debian.net/plain/1079819 <- that's the loop at least. The other parts would need to be golfed down. 08:16
tobs e: gist.github.com/taboege/500b3c4c3d...09699c7ead 08:44
evalable6 (Set)
set(A.new(x => 1))
set(A.new(x => 1) A.new(x => 2))
set(A.new(x => 1) A.new(x => 2) …
tobs, Full output: gist.github.com/340de81c990e1f4043...a024055330
tobs hmm, perl6-update time I guess 08:45
bisect: good=2019.03 bad=2018.04 gist.githubusercontent.com/taboege...9/enter.p6 08:53
bisectable6 tobs, Successfully fetched the code from the provided URL
tobs, bisect log: gist.github.com/42f4fa077bb0d8a569...46cb1ece1e
tobs, bisect init failure. See the log for more details 08:54
scimon Morning. 08:55
tobs bisect: bad=2019.03 good=2018.04 gist.githubusercontent.com/taboege...9/enter.p6 08:57
bisectable6 tobs, Successfully fetched the code from the provided URL
tobs, Bisecting by exit signal (old=2018.04 new=2019.03). Old exit signal: 1 (SIGHUP)
tobs oh no, what have I done :/
bisectable6 tobs, bisect log: gist.github.com/4f059147a9d8e0214d...8eea06b2d4 08:58
tobs, (2019-01-07) github.com/rakudo/rakudo/commit/54...6f7b736104
[joker] and where .. and where .. ? is the batman ? 10:27
rba Are the rakude releases in github.com/rakudo/rakudo/releases actually rakudo-star releases? 11:27
MasterDuke rba: no, those are just compiler releases 11:29
rba So the star-releas is here github.com/rakudo/star/releases ? 11:30
timotimo probably not working, tbh 11:31
rba timotimo: why? 11:34
timotimo what i know: whenever people download the releases of moarvm from github, they can't install it, because the submodules don't get put into the archives 11:39
timotimo perhaps rakudo doesn't have any submodules though? 11:39
anyway, i've tried multiple times in the past to make the releases tab either disappear or show a warning to people 11:40
but every single time someone pushes a tag, any tag, github just re-generates all releases that i had deleted
rba timotimo: no, you're right. Will try to get star from the build tag and then try to build. 11:41
rba sidenote: would recommend to use https github urls in .gitmodules 12:16
rba grr. nqp is missing too. (rakudo.perl6.org/downloads/nqp/nqp...03.tar.gz) 12:19
ddddddd Is there any way to get Rakudo Star on Linux right now besides docker? 12:37
timotimo i do believe some distros have a rakudo star 12:38
otherwise a rakudo installation from a release with a zef will get you half-way there 12:40
ddddddd Halfway? 12:42
You mean just Rakudo? 12:43
robertle wq 12:44
tyil I have an unpacked rakudo-star 2019.03 12:47
ddddddd Are you offering it? 12:50
tyil I'm making a tarball of it right now 12:51
tyil ddddddd: pkg.tyil.nl/gentoo/rakudo-star-2019.03.tar.gz 12:53
ddddddd tyil: This is perfect, thank you very much! 12:56
tyil enjoy! :D
tyil if other people need it, it's now on pkg.tyil.nl/misc/rakudo-star-2019.03.tar.gz 13:08
rba was on the way to rebuild rakudo-star release when I realised there are missing releases of nqp and rakudo needed as well 13:16
tyil I also had the nqp and moarvm dirs in my unpacked sources 13:19
tyil so ddddddd should be able to build all parts with that tarball 13:19
ddddddd Yeah they're in there, I'm going to try building it soon 13:22
AlexDaniel tobs: sooo… did you file a ticket for that issue that you bisected? 13:44
yoleaux 25 Apr 2019 13:15Z <tbrowder> AlexDaniel: ^^^
tobs AlexDaniel: it works in 2019.03. I bisected the commit that fixed it, I guess. Should it be reported retroactively? For tests? 13:45
it did seem like the fix was accidental
AlexDaniel tobs: ahhh, it now works. OK then! 13:46
tobs: though maybe you can add a test for it to roast
tobs Yes, I'll try to come up with one. 13:47
was there a bot I could use (in PRIVMSG) to run scripts against an old version of rakudo? 13:49
tobs commit: 2018.12 my $set; for ^20 { $set ∪= $_; last if ENTER $set<> }; say $set.elems 14:03
committable6 tobs, ¦2018.12: «2␤»
tobs commit: 2018.12 my $set; my @v = ^20; my $i = 0; loop { $set ∪= @v[$i++]; last if $i == @v; last if ENTER $set<> }; say $set.elems 14:06
committable6 tobs, ¦2018.12: «20␤»
tobs commit: 2019.03 my $set; my @v = ^20; my $i = 0; loop { $set ∪= @v[$i++]; last if $i == @v; last if ENTER $set<> }; say $set.elems
committable6 tobs, ¦2019.03: «2␤»
tobs ha!
commit: 2018.12 my $set; my @v = ^20; my $i = 0; loop { $set ∪= @v[$i++]; last if $i == @v; last if ENTER $set }; say $set.elems 14:16
committable6 tobs, ¦2018.12: «1␤»
tobs commit: 2018.12 my $set = set(1..3); { say ENTER $set<> } 14:26
committable6 tobs, ¦2018.12: «set(1 2 3)␤»
rba was able to rebuild rakudo-star-2019.03 with the git tags (sorry tyil, but provied download links did not work for me as the company proxy filter the URL; no clue why) 14:49
tyil interesting 14:56
hasuwiz Good evening #Perl6 14:57
tyil hi hasuwiz
raschipi Have you guys seen this: salsa.debian.org/reproducible-buil.../b718ab29. Debian now detects when a package is shipping precompiled Perl6, which it shouldn't do. 15:08
moritz in the case of python, they do precompilation in a postinst scrip, I believe 15:14
raschipi In Debian they that also, don't they? Ask for Perl6 to precompile and cache modules at install time. 15:15
Or is that just when Rakudo/Moar is upgraded?
nine raschipi: why don't they ship precompiled Perl 6 modules? Doesn't make sense to have all users waste cycles on something that can be done once on a build farm. 15:16
guifa .tell jnthn sadly I ended up having to go with the custom associative class (re GH question). I managed to find a way to do the backtracking to work well enough to warn my users though the calling file check isn’t the prettiest (one liner, but still). But it’s actually given me some cool other ideas for instantiating some other class objects along the way so it’s not for naught 15:20
yoleaux guifa: I'll pass your message to jnthn.
raschipi I think it's this bug: rt.perl.org/Public/Bug/Display.html?id=126894
nine I'm quite sure all the issues in that ticket have been resolved. 15:23
raschipi Hum, dunno then. 15:24
nine nqp's Configure.pl has a working --with-moar option and rakudo's Configure.pl has a working --with-nqp option. There's the Staging repository and tools/install-dist.p6 for packaging modules. 15:25
FWIW openSUSE has shipped precompiled Perl 6 module packages for years.
raschipi domidumont: Are you aware what's the situation here? 15:26
skids from the tag name for the issue, I would guess that the precomp files generated during two separate builds are not identical. 15:28
nine skids: are presumed to not be identical (inferring that from the "pretty sure")
That hasn't been the case in... about 2 years I think 15:29
raschipi Yes, it's in the context of the reproducible builds effort. 15:29
skids Maybe find and ask this "Chris Lamb"? 15:30
raschipi But the .pyc mention makes it clear it's about not shipping prebuilt modules.
nine If precomp files are not reproducible that's a bug that needs to be reported.
raschipi u/lamby on reddit
nine is trying to create an account on their gitlab to comment on the commit 15:31
raschipi You can log in using github, I think.
nine Couldn't find an option to do that 15:32
raschipi Perhaps they disabled the feature in their instance. 15:33
nine Yeah, would be too useful
raschipi Debian can't have non-free software in their infrastructure. 15:34
nine Ok, sent an email to lamby 15:37
ddddddd tyil: It's still installing but there are a couple things to note: 16:23
ddddddd You left a link in there from "site" to an absolute location on your own machine and it causes the install to fail unless it's deleted 16:24
tyil I'll remove it and make a new package with that link gone 16:25
tyil I think that whole install dir can go, actually 16:26
rba made a new build if I understood him correctly, if he can share that I can upload it to my server as well 16:27
that's probably as clean as you can get it
ddddddd Sounds good 16:27
ddddddd Well it's all installed now and seems to be working, thanks again! 16:31
rba ddddddd: good to hear 16:34
I‘ve learnd a lot this afternoon how to put the rakudo build together. Yet I still had some issues as I did it for a customer with internet access only via http proxy. So had to do some changes. 16:35
rba We need the rakudo-star 2019.03 soon again for download. So I hope moritz is able to recover it or it needs a rebuild. 16:37
How to build rakudo-star is documented in detail, yet I haven‘t found the same for rakudo and nqp. MoarVM is luckily still availalable for download. 16:39
raschipi Shouldn't the infra outage be noted at the top of perl6.org? 16:42
hankache hi
do you want me to rebuild star? 16:43
tyil hankache: if it's not too much effort, yes please, I'd like to host a copy on my servers for download 16:48
hankache tyil ok. I'll ping you once done. 16:54
tyil hankache: thanks a lot!
alainb does anyone know where I can find a link on how to install rakudo on redhat 7? 17:02
AlexDaniel hankache: I'm out of the loop again, why is rebuilding needed? 17:21
tyil: somehow I vaguely recall that you were interested in this topic: github.com/perl6/problem-solving/issues/18 17:24
maybe I'm wrong though :)
tyil AlexDaniel: I am, yes 17:25
thanks for the link
tyil looking at rakudo.org/files/star/source, I think the build instructions for Linux/MacOS are a bit off 17:26
it will probably fail at the 2nd line for most people
tyil AlexDaniel: it was reported that the official link to download rakudo-star at isn't available (rakudo.org/latest/star/source returns 500 for me as well), so if we have new builds we can upload them to various other servers to keep the available 17:28
hankache Here you go: perl6intro.com/files/index.html 17:29
tyil hankache: sweet, thanks! 17:30
hankache I actually still have copies of the original ones. Too bad I can't figure out where the msi is. I guess I'll have to rebuild
tyil this tarball is much smaller than what I had :p 17:31
pkg.tyil.nl/perl6/rakudo-star/
if there's more packages available, please highlight me and I'll make them available on my servers as well 17:32
hankache AlexDaniel: All copies where hosted on rakudo.org/files. Since it is down we do not have a "canonical" source. 17:33
tyil: will try to rebuild MSI now 17:35
.seen clarkema
yoleaux I saw clarkema 16 Mar 2019 19:47Z in #perl6: <clarkema> I was hoping to get around to it today, but had to put out some work fires
tyil hankache: I very much appreciate you taking the time to build these :)
hankache .tell clarkema do you by any chance still have a copy of the dmg for R*? File server went down and we need to host the files somewhere else. 17:37
yoleaux hankache: I'll pass your message to clarkema.
hankache tyil: no problem. unfortunately I won't be able to take care of the dmg. I hope clarkema replies soon 17:37
tyil alright! 17:38
cpan-p6 New module released to CPAN! GTK::Glade (0.8.4) by 03MARTIMM 17:40
AlexDaniel hankache: uhhhh… uhh… 17:41
hankache: that includes rakudo, nqp and moar releases? 17:42
hankache: anyway, can't you just upload the same files?
undersightable6 has some copies, but maybe not of star… I'm not sure 17:43
hankache AlexDaniel: I have no idea what went down. I just noticed that R* is no longer available and thought of providing the latest one again since I was the one who released it.
AlexDaniel yeah but is it a new file or just the same one reuploaded? 17:44
hankache AlexDaniel: the tar.gz is the same but I no longer have the MSI so will have to rebuild
AlexDaniel: I reuploaded here perl6intro.com/files/index.html 17:45
I just made this temporary change to perl6.org github.com/perl6/perl6.org/commit/...41649c96bb 17:54
This is supposed to be a temporary fix. Whenever the server issues get fixed please revert it ASAP. Thanks. 17:55
If anyone has better alternatives please feel free to initiate them 18:00
sena_kun timotimo, ping. Don't want to interrupt you, but it seems we want to pull in latest changes and restart perl6.org 18:03
yoleaux 00:27Z <MasterDuke> sena_kun: cro.services/ is very slow
sena_kun oh wow 18:04
timotimo oh? 18:06
ok, feel free to pull, i think there's no more local changes i made to that one 18:07
sena_kun timotimo, it works as a reverse proxy or just serves files?
sena_kun pulls 18:08
sena_kun runs mowyw 18:10
hankache, the site is updated now, thanks a lot! 18:11
hankache sena_kun++ timotimo++ 18:12
It's an ugly fix but better than a 404 I guess. 18:13
sena_kun a lot better
well, nobody has volunteered for github.com/perl6/problem-solving/issues/17 yet and we somehow stuck 18:14
rba sena_kun: is this the *original* rakudo-star build? 18:15
sena_kun hankache, ^
hankache sena_kun yes
rba sena_kun++
hankache rba yes 18:16
on the other hand I am rebuilding the MSI as I no longer have the "original" build 18:17
but that's ok. I don't think it matters
AlexDaniel sena_kun: well, some did, but in a different thread… github.com/perl6/problem-solving/i...-487135790 18:19
sena_kun AlexDaniel, yes, glad to see it.
hasuwiz exit 19:07
hankache tyil: MSI now available perl6intro.com/files/ 19:15
mojca What could be wrong here? paste.macports.org/32b10ef7c099 20:23
I installed the latest version of MoarVM, nqp, rakudo (2019.03[.1])
all the tests pass 20:24
timotimo perhaps you have some old precompiled files around on your drive
mojca timotimo: where should I look? 20:26
also, I had the old version installed when compiling the new one
timotimo look for .moarvm files under /opt/local/
mojca but i'm not actually using rakudo, so …
timotimo that should be overwritten or not be accessed any more :\
mojca old installation gets removed in any case 20:27
I don't yet see anything suspicious: paste.macports.org/a08418dd2bc3 20:30
I looked for any moarvm files inside /opt/local
ufobat__ nine++ NIN t-shirt :D 20:40
nine how the? 20:43
Anyway \o/
ufobat__ there are some pictures of the tool chain summit on fb :) 20:48
El_Che www.flickr.com/photos/wendyga/sets...8113286765 20:50
less painful than facebook
timotimo so how strong is the link between "nin" and "nine"? 20:51
El_Che what's his name again? flic.kr/p/RV8LQe 20:53
timotimo i don't think i've met or seen him yet 20:55
El_Che timotimo: thx 21:02
ugexe That’s Milthaldu 21:29
Christian Walde I believe
nine El_Che: that's Mithaldu 21:50
timotimo: there's no link at all. I had the nick name already for 10 years when I discovered NIN
timotimo ha, ok 21:54
comborico1611 What is the difference between a scripting programming language and a shell? Could p6 replace a shell? 22:02
mithaldu_ El_Che: hi
sena_kun what is the equivalent of `method foo { do_stuff; super.foo }`, `nextsame`? It works, but I wonder if that's the right way. 22:04
comborico1611, a shell is just a program that takes your input, runs programs and shows you results. when people write "programs" in e.g. bash it is more of an imitation, because it has some interpreter abilities and statements like `while` or `if` are in fact programs, not statements of the shell itself. at the same time, a scripting language is a, well, generic-purpose programming language you can use to write scripts, so a different 22:07
beast.
comborico1611, it is not clear to me what do you mean by "replace" in this context. 22:08
comborico1611 sena_kun: I see. a shell is a program, not a language 22:09
timotimo a shell is typically a program that has a specific language that it accepts, though
timotimo you usually refer to the language and teh program with the same name 22:09
comborico1611 is a shell basically like a programming language interpeter? 22:10
sena_kun comborico1611, well, technically it has a "language" and people are like implementing Chess or some weird tricks in it, but that's hmm.
timotimo you could say that, though it's pretty important to shells that it executes everything as soon as you've finished typing "one thing"
comborico1611 Hmm. thank you.
timotimo which isn't always the case for programming language interpreters 22:11
but a "repl" gets you relatively close
comborico1611 so there are two kinds of interpreters, interpreters and REPL? 22:13
timotimo the distinction is really very fuzzy
comborico1611 I see. 22:14
timotimo there's compilers with repls, too
i'd maybe call a repl a "mode of operation/usage"
comborico1611 What language uses compiler with REPL?
sena_kun timotimo, any ideas about `method foo { super.foo }`? 22:15
timotimo i'd claim haskell fits that description
sena_kun comborico1611, Haskell
timotimo sena_kun: well, i know you can self.SuperClassName::foo, but that's probably not what you mean, right?
sena_kun no, it is likely the thing I want. :)
thanks
I've tried SuperClassName.foo, but it just called it on type object. :|
ok, works now, thanks 22:16
timotimo oh, cool 22:17
Voldenet I've got a question about role punning syntax, is it possible to use it for methods? I've tried both of those: role X { method y { … }}; class :: does X { method y { say "yes" }}.new.y; X.new(y => { say "yes" }).y 22:21
Second one doesn't really work, so I'm looking for something a bit faster to write 22:22