🦋 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.
00:03 melezhik joined
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
00:04 vrurg left
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
00:11 vrurg joined
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
00:23 pecastro left 00:30 melezhik left 01:00 lucasb left 01:28 Kaiepi left 01:29 Kaiepi joined 01:51 Kaiepi left, Kaiepi joined 02:19 marcusr left 02:21 marcusr joined 02:27 jmchael left 02:51 leont left 02:57 Kaiepi left, Kaeipi joined 03:50 cpan-raku left 03:52 cpan-raku joined, cpan-raku left, cpan-raku joined 04:01 xinming left 04:02 xinming joined 04:22 benjif left 04:25 jmchael joined 04:31 rindolf joined 04:49 squashable6 left 04:50 squashable6 joined 04:53 jmchael left 05:01 Kaeipi left, Kaeipi joined 05:06 Kaeipi left 05:09 Kaiepi joined 05:19 parabolize left 05:25 frost-lab joined 05:26 xinming left 05:28 xinming joined 05:29 Noisytoot left, Noisytoot joined 06:07 jmerelo joined 06:08 xinming_ joined 06:11 xinming left 06:13 Kaiepi left, Kaiepi joined 06:19 aindilis left 06:27 Doc_Holliwood joined 06:28 jmcgnh left
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
06:34 Kaiepi left, Kaiepi joined
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
06:37 aluaces left 06:38 jmcgnh joined 06:40 tejr left 06:42 tejr joined 07:09 aluaces joined 07:13 aborazmeh joined, aborazmeh left, aborazmeh joined 07:21 wamba joined 07:32 sjm_uk joined 07:33 Doc_Holliwood left 07:53 abraxxa joined 07:55 Altai-man joined 07:57 abraxxa left 07:59 abraxxa joined, aborazmeh left 08:17 samcv left, Sgeo left, samcv joined 08:22 wamba left 08:29 wamba joined 08:35 pecastro joined 08:43 dakkar joined 09:07 domidumont joined 09:09 sena_kun joined 09:11 Altai-man left 09:15 Kaiepi left, Kaiepi joined 09:24 Ovidius joined
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.
09:30 Doc_Holliwood joined 09:32 ggoebel_ joined, ggoebel left
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":)
09:47 sjm_uk left
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
10:08 sjm_uk joined 10:09 brtastic1 joined
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
10:12 brtastic1 is now known as brtastic
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
10:24 jhill joined 10:25 SmokeMachine joined
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
10:28 skaji_ joined
Ovidius bah. 10:29
El_Che I cheat and add zef to my compiler raku packages for linux :)
10:48 dakkar left, dakkar joined 10:55 xinming_ left, xinming_ joined 11:00 brtastic left, frost-lab left
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
11:14 daxim joined 11:16 daxim left, daxim joined 11:18 daxim left, daxim joined 11:19 daxim left 11:22 daxim joined
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
12:22 evalable6 left, linkable6 left 12:23 linkable6 joined 12:25 evalable6 joined 12:27 sno left 12:45 brtastic joined 12:51 jmchael joined 12:56 mowcat joined 12:58 Doc_Holliwood left 13:08 Altai-man joined 13:11 sena_kun left
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 )
13:18 Doc_Holliwood joined
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
13:32 Ovidius left 13:36 brtastic left
El_Che strasbourg.apt-get.be/f/4ffa02db3979436f9dd9/ 13:36
13:44 leont joined 13:45 Kaiepi left, Kaiepi joined 13:47 Kaiepi left, Kaiepi joined 13:51 Doc_Holliwood left
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
13:59 notandinus joined
notandinus m: 14:00
14:14 Kaiepi left, Kaiepi joined 14:17 Doc_Holliwood joined 14:28 shlomif joined
[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?
14:32 Kaiepi left, Kaiepi joined 14:44 wamba left 14:46 sno joined 14:50 Sgeo joined 15:01 [Coke] left 15:10 lucasb joined 15:12 [Coke] joined, [Coke] left, [Coke] joined 15:18 Kaiepi left 15:19 Kaiepi joined 15:24 hal99999 joined 15:25 mowcat left, mowotter joined, Kaiepi left, Kaiepi joined 15:34 parabolize joined 15:37 mowotter left 15:38 mowotter joined 15:40 finsternis left 15:42 squashable6 left 15:43 squashable6 joined 16:07 rindolf left, shlomif is now known as rindolf
moritz [Coke]: agreed 16:11
16:13 _jrjsmrtn joined 16:15 __jrjsmrtn__ left 16:18 rindolf left 16:32 Kaiepi left, Kaiepi joined 16:34 rindolf joined
raku-bridge <theangryepicbanana> [Coke]: 👍 16:37
<theangryepicbanana> (wait wrong emoji ._.) 16:40
16:52 xelxebar left, Henry151 left 16:53 xelxebar joined 16:55 Henry151 joined 16:56 Kaeipi joined 16:58 Kaiepi left
[Coke] moritz: I dropped off for a bit: agreeing with the compile vs. run time error handling? 17:08
17:09 sena_kun joined 17:11 Altai-man left 17:13 MasterDuke left
moritz yes 17:22
17:26 dakkar left
[Coke] \o/ 17:31
17:36 b2gills left 17:37 patrickb joined 17:40 Doc_Holliwood left 17:42 domidumont left 17:44 wamba joined 17:55 b2gills joined 18:00 patrickb left 18:01 benjif joined 18:02 Ovidius joined 18:08 thdr joined 18:12 thdr left
leont r: enum Foo (:!Lies, :Truth); say True ~~ Foo 18:17
camelia True
leont That looks very wrong to me
18:18 thdrmz joined
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))
18:21 xinming_ left
tony-o m: enum Foo ('Lies'); say Foo.^mro 18:22
camelia ((Foo) (Int) (Cool) (Any) (Mu))
18:23 xinming_ joined
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
18:39 aborazmeh joined, aborazmeh left, aborazmeh joined, sno left 18:42 sno joined 18:45 rindolf left 18:48 thdrmz1 joined, Doc_Holliwood joined, thdrmz left, thdrmz1 is now known as thdrmz 18:51 jmerelo left 18:52 thdrmz1 joined 18:53 thdrmz left, thdrmz1 is now known as thdrmz 18:56 thdrmz1 joined 18:57 thdrmz left, thdrmz1 is now known as thdrmz 19:06 aborazmeh left 19:07 Ovidius left 19:11 aborazmeh joined, aborazmeh left, aborazmeh joined 19:31 Merfont joined, Kaeipi left 19:34 aborazmeh left 19:35 aborazmeh joined, aborazmeh left, aborazmeh joined 19:47 aborazmeh left 19:48 Xliff joined
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
19:57 aborazmeh joined, aborazmeh left, aborazmeh joined
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?
20:06 cpan-raku left 20:07 cpan-raku joined, cpan-raku left, cpan-raku joined
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
20:25 Merfont left 20:26 Merfont joined 20:44 Grauwolf left 20:53 sjm_uk left 20:57 Merfont left 20:58 Merfont joined 21:05 melezhik joined
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
21:08 Altai-man joined
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
21:11 sena_kun left
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
21:16 melezhik left 21:40 abraxxa left 21:41 abraxxa joined 21:51 brtastic joined 21:53 murrayBlockchain joined 22:05 Altai-man left 22:09 Black_Ribbon joined 22:15 Grauwolf joined 22:50 hal99999 left
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
23:18 benjif left 23:22 aluaces left