🦋 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.
melezhik I finally added markdown to html parser to sparrowhub.io 00:03
it took me awhile to figure out how to do it properly 00:04
melezhik I even managed to add syntax highlighter, unfortunately it does not support Raku 00:04
moon-child what are you using for syntax highlighting? 00:10
melezhik highlightjs.org/ 00:11
moon-child I think the biggest generic syntax highlighting framework is pygments, and it has support for raku 00:13
melezhik yeah. the thing is I need support on js side 00:15
moon-child oh, syntax highlighting happens on frontend? 00:20
melezhik yeah
moon-child why not put it on backend? :P
melezhik it's just was easier for me, but you're welcome to contribute ))) 00:22
if it'll solve the problem ...
meanwhile I will try mu luck on this side - github.com/highlightjs/highlight.js/issues/2933 00:23
Geth doc: 598f7469e1 | Altai-man++ (committed by Juan Julián Merelo Guervós) | doc/Type/independent-routines.pod6
Update independent-routines.pod6

Closes github.com/Raku/doc/issues/3730 Closes github.com/rakudo/rakudo/issues/4061
06:33
linkable6 Link: docs.raku.org/type/independent-routines
Geth doc: 7e0fbd8711 | Altai-man++ (committed by Juan Julián Merelo Guervós) | doc/Language/traps.pod6
De-trap a trap's description

Closes github.com/Raku/doc/issues/3721
06:35
linkable6 Link: docs.raku.org/language/traps
Ovidius Just installed rakudobrew and ran "rakudobrew download" and get the following error: Couldn't find a precomp release for OS: "macos", architecture: "x86_64" 09:25
Where's the best place to ask for help on that error?
El_Che here probably, the authors of rakudobrew will probably pop up and there are probably rekudobrew mac users (lizmat?) 09:27
Ovidius This is the open source equivalent of "Please hold while we connect you with an available support person" :) 09:28
El_Che Ovidius: pretty much :)
CIAvash I think you are supposed to use rakubrew now, if I'm not mistaken rakubrew.org/ 09:29
Ovidius CIAvash: that just gives me a "Usage" message.
CIAvash hmm 09:33
tadzik 3> the authors of rakudobrew will probably pop up 09:35
well I'm here, but I haven't done anything on it for years :P I dind't know we have precomp releases, for instance :)
Ovidius Ah well. I'll be patient. 09:37
El_Che Ok, it's starting to look like a Monty Python sketch :)
Ovidius as Ovid? 09:39
Ovidius Yes. Ovid is usually taken as a username. 09:40
El_Che I didn't make the link until I saw your tweet :)
Ovidius Heh :)
I sometimes use Quintilian, a famous Roman orator, but people don't make that link, either.
El_Che I could just stop my self in time to replying "hey, funny, someone is asking exact the same question on irc right now":)
El_Che I don't think we read Quintilian in high school, from what I remember we mostly read Ovid, Virgil and Tacitus. 09:47
and of course Caesar's "Commentāriī dē Bellō Gallicō" as it talks about "Belgium" 09:49
Ovidius en.wikipedia.org/wiki/Quintilian 09:51
El_Che Ovidius: How is Cor advancing? Do you feel the core people embrace the ideas? 09:59
Ovidius El_Che: We have good work on the spec, though there are going to be some tricky bits when it comes to object construction and roles. I know there's still decent interest, but the governance process has temporarily halted some work while that gets nailed down. 10:00
But I've pitched the Cor talk for Fosdem and it will be interesting if non-Perl people see it and talk about it. No more room size restrictions. 10:01
(that I'm aware of)
El_Che It feels like a now-or-never opportunity to me. 10:03
Ovidius Better stated: I think we have the syntax pretty much done for v1 (but no types). Semantics are harder. And yeah, it does feel like now-or-never.
El_Che however, I feel that Perl 7 will not be out soon
Ovidius I suspect that's the case, but I don't think it will impact Cor. We'll have something like `use feature 'class';` as a guard. 10:05
El_Che that's the safest bet for now
/usr/bin/perl does it not make it easy to switch everything on by default 10:06
Ovidius I would love to see something like a `use latest;` pragma.
No more hard-coding the version number. Dangerous, though :) 10:07
El_Che a bleeding edge "use Modern::Perl" 10:08
El_Che I did some light reading of the mailing list and while no asbestos suit was needed, there is not much of a cencensus about 7 10:09
Ovidius Agreed. And given the subtlety of many of the issues, I backed out of that debate. 10:11
Ovidius When I just type "raku" by itself and get the REPL, it says "You may want to `zef install Readline` or `zef install Linenoise` or use rlwrap for a line editor", but I've already installed both of those. And I can't "arrow up" in the REPL. How do I debug that? 10:18
dakkar Ovidius: I suspect you have 2 raku installations now, and the Readline/Linenoise are installed in the "wrong" one 10:22
Ovidius Bah. That's probably the case. which -a doesn't tell me, but I'll dig around. 10:23
dakkar `zef locate Readline` might help
Ovidius Well, just found an old `/opt/rakudo-star-2018.04/` directory which I blew away. That blew away my zef. Will try to reinstall. Fun times. 10:24
dakkar feels like the times before `local::lib` ☺ 10:26
El_Che Ovidius: if you use homebre, there is a raku distribution
rakudo I mean 10:27
( I prefer it to the star distribution also there)
Ovidius I'm using that. I just did a reinstall since `rakubrew` isn't working. Still no zef.
El_Che github.com/Homebrew/homebrew-core/issues/65995 10:28
I could swear zef was there before
Ovidius bah. 10:29
El_Che I cheat and add zef to my compiler raku packages for linux :)
Ovidius OK, this is kind of funny. I use `brew install rakudo` because rakubrew apparently doesn't work on a Mac. But the brew cask doesn't include zef. But I noticed that rakubrew has a `install-zef` command and that worked just fine. A little tweak of my $PATH variable and I have raku via brew, and zef via rakubrew and they play together just fine. 11:01
dakkar a happy ending to a twisted tale 😜 11:13
Ovidius p6: fib(Int $n) {...}; say "Hello"; say fib(3.7) 11:34
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1)
at <tmp>:1
------> 3fib(Int7⏏5 $n) {...}; say "Hello"; say fib(3.7)
expecting a…
Ovidius That was unexpected. Did I do something wrong? 11:35
lizmat m: sub fib(Int $n) {...}; say "Hello"; say fib(3.7)
camelia 5===SORRY!5=== Error while compiling <tmp>
Calling fib(Rat) will never work with declared signature (Int $n)
at <tmp>:1
------> 3sub fib(Int $n) {...}; say "Hello"; say 7⏏5fib(3.7)
lizmat Ovidius: forgot the "sub" 11:36
Ovidius Thanks! :)
m: sub fib(UInt $n) {...}; say "Hello"; say fib(3.7)
camelia Hello
Type check failed in binding to parameter '$n'; expected UInt but got Rat (3.7)
in sub fib at <tmp> line 1
in block <unit> at <tmp> line 1
Ovidius So when I switch from Int to UInt, it goes from a compile-time failure to a run-time failure. Why is that?
CIAvash UInt is just a subset I think 11:40
Ovidius CIAvish. Ah, that makes sense.
lizmat clickbaits rakudoweekly.blog/2020/12/21/2020-...releasmas/ 12:13
El_Che lizmat: And I thought the Christmas puns were gone in the Perl and Raku world? 13:15
( I also saw some references to Perl 7 at Christmas )
lizmat yeah, in that respect I think it's good to note that the Perl community's problem was not just Perl 6 13:20
El_Che or it formed the minds of the upcoming generation :) 13:21
tadzik heh, I needed to look through my twitter to notice that Ovidius is in fact The Ovid :D 13:30
El_Che strasbourg.apt-get.be/f/4ffa02db3979436f9dd9/ 13:36
Geth ecosystem: 1427c46ca0 | (Elizabeth Mattijsen)++ | 3 files
Kudos to Richard Hainsworth for adopting GTK:Simple!
13:53
lizmat afk for a few hours& 13:58
notandinus m: 14:00
[Coke] yawns. 14:30
notandinus also yawns
[Coke] Regarding ovid's question about compile time vs. runtime, I think more generally we catch what we can at compile time, but just because something is runtime today doesn't mean we won't get smarter later. 14:31
aye?
moritz [Coke]: agreed 16:11
raku-bridge <theangryepicbanana> [Coke]: 👍 16:37
<theangryepicbanana> (wait wrong emoji ._.) 16:40
[Coke] moritz: I dropped off for a bit: agreeing with the compile vs. run time error handling? 17:08
moritz yes 17:22
[Coke] \o/ 17:31
leont r: enum Foo (:!Lies, :Truth); say True ~~ Foo 18:17
camelia True
leont That looks very wrong to me
moritz uhm 18:19
m: enum Foo (:!Lies, :Truth); say Foo::Truth === True
camelia False
moritz m: enum Foo (:!Lies, :Truth); say Foo::Truth
camelia Truth
moritz m: enum Foo (:!Lies, :Truth); say Foo::Truth eqv True 18:20
camelia False
moritz m: enum Foo (:!Lies, :Truth); say Foo::Truth ~~ Bool
camelia True
tony-o m: enum Foo (:!Lies); say Foo.^mro
camelia ((Bool) (Bool) (Int) (Cool) (Any) (Mu))
tony-o m: enum Foo ('Lies'); say Foo.^mro 18:22
camelia ((Foo) (Int) (Cool) (Any) (Mu))
tony-o m: enum Foo ('x', :y, :!z); # this is interesting 18:27
camelia ===SORRY!===
Incompatible MROs in P6opaque rebless for types Bool and Foo
Xliff \o 19:49
What's the best way to spawn a parallel thread without a sequence, list or array?
I do not want (7, 14, 21...Inf).hyper -- this will nom memory really quick!
moritz async { } ?
Xliff moritz: That's async, not parallel, though... right? 19:50
Thread.new? 19:51
moritz Xliff: the scheduler generally takes care of distributing async tasks to different OS threads 19:52
Xliff yah. I've had this fail when using both start {} and hyper() 19:53
It should have spread to different cores, and didn't.
Well.... I'll try going back to start and seeing if this new method works. 19:54
Thanks.
tony-o if you're trying to use it as a pool you need to be careful to not exceed the scheduler 19:55
moritz erm right, it's called start {}, not async {} 19:58
Xliff moritz++ 20:06
tony-o: What's the best way to do that?
tony-o moritz: async is so old school 20:10
m: say $*SCHEDULER;
camelia ThreadPoolScheduler.new(initial_threads => 0, max_threads => 64, uncaught_handler => Callable)
tony-o max_threads can vary. i don't know if it's still true but exceeding that used to hang raku. 20:11
m: for (0 .. $*SCHEDULER.max_threads * 2) { sleep 10; }; say "hi"; 20:12
camelia (timeout)
tony-o looks like it's still true.
moritz tony-o: turn's out I'm also old school 20:16
tony-o you and me both bud 20:22
melezhik I suggested Sparrow as a one of internal tooling option for RockyLinux (CentOS replacement), not sure if they accept it, but who knows? Anyway another chance for people to know about Raku :-) - forums.rockylinux.org/t/configurat...u=melezhik 21:06
melezhik the same idea, another day I was thinking about maybe I could create some tools for Cro and upload them to Sparrowhub? something that Cro users would use on daily basis ... But not sure if there are demands on that ... 21:09
melezhik or tools for rakudo developers :-) ? but looks like some of the tools are implemented through IRC bots already ... just a thoughts ... If someone see anything ... please let me know ... :-) 21:11
leont r: enum Foo (:Truth); dd Foo.WHAT, Truth.WHAT 23:08
camelia Bool
Bool
leont That is … unexpected 23:09
Apparently I can create new Bool values, that are not equal to True or False 23:10
Geth ecosystem: 207413c8d9 | tony-o++ (committed using GitHub Web editor) | META.list
fez CLI - a tool for module authors

This is an initial look at a command line tool for uploading your modules to rakudo's ecosystem without futzing around in a github META.list or using other inferior services.
tony-o tbrowder: ^ 23:11
.tell jmerelo fez is in the ecosystem now for install - included in it is a way to patch an existing zef config to use the p6c mirror & zef ecosystems 23:13
tellable6 tony-o, I'll pass your message to jmerelo
tony-o .tell patrickb fez is in the ecosystem now for install - included in it is a way to patch an existing zef config to use the p6c mirror & zef ecosystems 23:14
tellable6 tony-o, I'll pass your message to patrickb