🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
Xliff Hello! What would be involved with the smoketester project? 01:59
vrurg .tell Xliff smoke testing was just an example. I'd be glad to hear somebody really started it. 03:38
tellable6 vrurg, I'll pass your message to Xliff
vrurg .tell Xliff BTW, if you still suffer from missing imported symbols, I know what the cause is and how to get around it until a proper fix is developed. 03:39
tellable6 vrurg, I'll pass your message to Xliff
japhb vrurg: Do tell? 03:41
vrurg japhb: pardon?
Xliff vrurg: Indeed 03:45
vrurg: I am a bit curious. How is "smoketest" different from Blin? 03:46
Would a web front-end on Blin be sufficent for the task?
vrurg A bit late today, I'm almost afk already. Remind me tomorrow. But basically, creating explicit to-level module and use it in every submodule should work.
Xliff And please, a workaround would be wonderful! 03:47
vrurg Xliff: as to smoke test, consider a distributed infrastructure for it.
Similar to what they have in perl.
Too late already, afk for late dinner.
Xliff I don't know what they have in Perl. Also, distributed infrastructures requires a decision on what handles the distribution. We'd need to spec that out. 03:48
vrurg: OK. See you tomorrow. Looking forward to it.
japhb vrurg: Sorry, didn't see you had responded right off. I meant, could you share the missing imported symbols cause and workaround with all of us? I know I'm interested to hear the details. :-) 05:35
Xliff is playing www.deezer.com/us/track/1406992982...oplay=true 12:03
sena_kun o/ 12:26
Can anyone with a docker setup help me confirm something please? I need `docker run -i -t rakudo-star:2021.04 /bin/bash` and then to see if `apt-get update` works. 12:27
El_Che running it 12:28
or ruining it
eye of the beholder thing
works 12:29
sena_kun geh
El_Che I use podman though
sena_kun it fails for both my machines somehow
El_Che dns?
sena_kun same for 2020.10
Temporary failure resolving 'deb.debian.org'
El_Che DNS allright 12:30
that's a host failure, probably
sena_kun Oh, it's the same for nginx image, then something is wrong with my two machines with completely different environments.
El_Che yeah 12:31
sena_kun It resolves nicely on the host of course, but not in containers.
El_Che DNS or bridge setup
try pinging
an ip
so you know if it's network or dns
ping 8.8.8.8
sena_kun it pings the deb.debian.org IP well, same for ping 8.8.8.8 12:32
in /etc/resolv.conf I have `nameserver 192.168.8.1`, which is presumably host?
aye, that's router 12:33
El_Che search local 12:34
nameserver 10.0.2.3
nameserver 172.16.1.5
it puts the bride address and my network setup
are you claiming port 53 on one of your containers? 12:35
sena_kun No
My current idea is to overwrite resolve.conf to point to something working like 8.8.8.8 and see if it helps. 12:36
El_Che that's a workaround and not a fix
sena_kun Well, I need to release Comma somehow. :P 12:37
El_Che, if you are curious to investigate, then please elaborate what do you mean by "search local"?
El_Che that's a paste of my resolv.conf
search local means it attaches .local to hosts
you can safely ignore it 12:38
sena_kun Ah, I thought it's something for me to do to get more details.
El_Che sena_kun: try --nds
dns
run -ti --dns 8.8.8.8 12:39
if you need a less hacky workaround
I don't know your setup, maybe it's confused by the systemd resolvconf 12:40
El_Che sena_kun: completely next to the point: have you tried podman? It does not need root, so it's great for developing 12:49
ugexe i know it was yesterday but i had dns issues most of the day due to the facebook fiasco overloading most dns servers 12:53
patrickb o/ 13:12
Just wanted to chime in. El_Che already said so, but unsure if the point came accross: `docker run -it --dns 8.8.8.8 rakudo-star:2021.04 /bin/bash` might do the trick. 13:13
Xliff I'm getting a lot of these error messages from a lot of different compunits: "Type check failed for return value; expected Seq:D but got Seq (Seq)" 14:37
SmokeMachine I was having some problems on my personal computer with the new Mac OS beta that it was hanging every time I tried to use something… Raku runs, but if I `use Red` for example it hangs for ever… zef was also hanging… it seemed to me a Mac permission problem… but I couldn’t see any message or something like that… is anyone else having that issue? 15:01
Running that inside a container works 15:02
ugexe might look at the output of RAKUDO_MODULE_DEBUG=1 and see if it appears stuck on something or if its stuck in a loop 15:32
SmokeMachine ugexe: I'll try it later, thanks! 15:44
SmokeMachine ugexe: I tried, but I couldn't hold my self: usercontent.irccloud-cdn.com/file/.../image.png 15:48
ugexe: and running `zen install App::Mi6` (this is just the end of the log) usercontent.irccloud-cdn.com/file/.../image.png 15:49
ugexe: and running `zen install App::Mi6` (this is just the end of the log) usercontent.irccloud-cdn.com/file/.../image.png 15:50
it seems to have loaded Zef::CLI (the beginning of the log): usercontent.irccloud-cdn.com/file/.../image.png 15:51
usercontent.irccloud-cdn.com/file/.../image.png 15:54
usercontent.irccloud-cdn.com/file/.../image.png 15:55
anyone with the same problem? 15:57
dakkar not exactly 16:02
I just tried running `zef` on a recently-upgraded rakudo (first time I run anything after the upgrade), and it took ~20 seconds of full CPU 16:03
second run takes ½s
but that's "normal", as all the precomp needs re-doing
SmokeMachine I'll leave it running, but: usercontent.irccloud-cdn.com/file/.../image.png 16:13
dakkar: ^^
dakkar: are you running on beta? 16:15
dakkar 2021.08
SmokeMachine usercontent.irccloud-cdn.com/file/.../image.png
dakkar oh, sorry, not a mac
this is a gentoo linux 16:16
so whatever happens onmy machine is not useful to you
SmokeMachine hum... this started happening to me when I've updated to this beta
SmokeMachine I'll stop this... I'm pretty sure it will never finish: usercontent.irccloud-cdn.com/file/.../image.png 16:17
dakkar at this point I usually try `strace`, to see what files are being opened and what errors the system calls produce 16:22
but reading the output of strace takes some practice
codesections If code inside a .tap throws an error, I get that error in exactly the way I'd expect: 16:45
m: my Supplier $s .= new; $s.Supply.tap: { say 42 / $_ }; $s.emit: 0;
camelia Attempt to divide by zero when coercing Rational to Str
in block <unit> at <tmp> line 1
codesections Is there some reason why I *don't* get that error if I run the same code in a .throttle block instead of .tap? 16:46
m: my Supplier $s .= new; $s.Supply.throttle: 1, { say 42 / $_ }; $s.emit: 0;
camelia ( no output )
codesections (This *feels* like it could be a buggy holdover from the pre-v6.d behavior of start, docs.raku.org/language/control#start but it's also possible that it isn't a bug/I'm missing a good reason for it to swallow those exceptions) 16:48
(or maybe the .throttle example should be the below (which also doesn't throw)) 16:55
m: my Supplier $s .= new; $s.Supply.throttle(1, { say 42 / $_ }).tap({.result}); $s.emit: 0
camelia ( no output )
Geth ¦ examples: coke self-assigned Only first 100 Project Euler problems should have solutions github.com/Raku/examples/issues/79 18:30
lizmat SPA: the Rakudo Weekly News is like the Deutsche Bahn: delayed (until tomorrow) 18:48
Anton Antonov 🙂 19:32
I apologize for this ignorant question: Are the new RakuAST functionalities available in the Raku version I will get if I use `rakubrew build moar-blead master` ? 20:19
MasterDuke no, the work hasn't been completed yet so it's happening on the rakuast branch 20:20
[Coke] I think you need the rakuast branch, and an env var, and I don't think it's been rebased since new-disp landed. 20:21
MasterDuke i'm not sure if you need the env var anymore
but i'm pretty sure it was rebased just today 20:22
[Coke] oh, nifty
Anton Antonov Thank you MasterDuke and Coke. 20:42
Guest12 Doc says "Trying to assign a value that does not fit into a particular native type, produces an exception". But... 21:19
raku: say my int32 $ = 1000000000000 21:20
evalable6 -727379968
Guest12 raku: say my int32 $ = 10000000000000000000000000000000000000
evalable6 (exit code 1) Cannot unbox 123 bit wide bigint into native integer
in block <unit> at /tmp/mh3jQvUPCH line 1
MasterDuke there are still some bugs and/or not yet implemented features in unsigned or smaller-than-64-bit natives 21:21
Guest12 bisectable: say (my int32 $ = 1000000000000) == -727379968 21:22
bisectable6 Guest12, Will bisect the whole range automagically because no endpoints were provided, hang tight
Guest12, ¦6c (58 commits): «True␤»
Guest12, Nothing to bisect!
Guest12 MasterDuke: Thanks. Does it make sense for the docs to reflect (very long-standing and basic) bugs? 21:23
MasterDuke there's been debate about that. should they reflect the limitations of a particular implementation? or the intentions of the language? 21:24
Guest12 Ah. "NOTE: at the time of this writing (2018.05), certain implementations (such as Rakudo)
offer somewhat spotty details on native types, such as whether int64 is available 21:25
and is of 64-bit size on 32-bit machines, and how to detect when your program is running on such hardware."
MasterDuke yes. currently i would recommend only using the signed, 64-bit versions with rakudo, i believe those work fine 21:26
Guest12 I missed that note. (I searched for "bug" and "known")
MasterDuke: Thanks. Makes sense. 21:27
MasterDuke np