🦋 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 xinming left, xinming joined 00:07 Doc_Holliwood joined 00:19 melezhik joined 00:25 melezhik1 joined 00:26 melezhik1 left 00:32 xinming left 00:33 xinming joined 00:41 wildtrees left 00:43 xinming left, xinming joined 00:49 melezhik left 01:10 AlexDaniel left 01:11 AlexDaniel joined, AlexDaniel left, AlexDaniel joined 01:14 Altai-man_ joined 01:17 sena_kun left 01:27 xinming left 01:29 xinming joined 01:32 molaf left 01:42 vike left 01:45 molaf joined 01:49 Doc_Holliwood left 02:00 softmoth left 02:01 softmoth joined 02:24 Sgeo left 02:26 Sgeo joined 02:40 vike joined 02:53 guifa2 joined 03:10 rbt left 03:11 rbt joined 03:15 sena_kun joined 03:16 Altai-man_ left 03:48 pilne left
guifa2 What is dba() in rakudo source? I'm guessing debugging something, but I couldn't find its associated method def 03:48
04:18 xinming left 04:20 xinming joined
cpan-raku New module released to CPAN! ProcStats (0.3.1) by 03LEMBARK 04:34
04:44 xinming left 04:46 xinming joined 05:06 xinming left 05:07 xinming joined 05:10 sauvin joined 05:14 Altai-man_ joined 05:16 sena_kun left 06:05 molaf left 06:11 softmoth left 06:12 veesh left 06:23 Doc_Holliwood joined 06:24 xinming left, xinming joined 06:26 veesh joined 06:58 xinming left, xinming joined 07:15 sena_kun joined 07:16 xinming left, xinming joined 07:17 Altai-man_ left 07:27 lichtkind joined 07:57 mowcat joined 08:04 sjm_uk joined 08:58 pecastro joined
MasterDuke guifa2: pretty sure it's "doing business as" 09:03
guifa2: github.com/Raku/nqp/blob/master/sr...#L192-L194 09:04
09:04 rindolf joined 09:08 pmurias joined 09:14 Altai-man_ joined 09:16 chloekek joined, molaf joined, sena_kun left 09:28 Black_Ribbon left 09:40 stoned75 joined 09:41 rindolf left 09:43 stoned75 left 09:51 Kaiepi left, Kaeipi joined
lizmat jnthn++ 09:52
09:53 Kaeipi left, Kaiepi joined 09:55 stoned75 joined 10:01 rindolf joined 10:06 pmurias left 10:07 pmurias joined 10:09 Tirifto joined
chloekek .. 10:11
10:20 lichtkind left 10:21 Sgeo left, Sgeo joined 10:34 _jrjsmrtn joined 10:35 __jrjsmrtn__ left 10:52 xinming left, xinming joined 11:11 aborazmeh joined, aborazmeh left, aborazmeh joined 11:15 sena_kun joined 11:16 Altai-man_ left 11:32 xinming left, xinming joined 11:40 dogbert17 joined 11:47 xinming left 11:48 xinming joined 11:53 Doc_Holliwood left 12:04 sjm_uk left 12:09 Doc_Holliwood joined 12:27 molaf left
cpan-raku New module released to CPAN! Algorithm::NaiveBayes (0.0.5) by 03TITSUKI 12:42
12:48 mowcat left
cpan-raku New module released to CPAN! Gnome::GObject (0.16.5) by 03MARTIMM 12:57
AlexDaniel chloekek: ...
Xliff AlexDaniel && chloekek: .... 13:06
13:14 Altai-man_ joined 13:17 sena_kun left 13:22 Geth_ left, Geth joined 13:23 finsternis left 13:24 finsternis joined 13:33 Geth left 13:34 Geth joined 13:36 sjm_uk joined, Manifest0 left 13:39 Manifest0 joined
AlexDaniel m: .say for -10....5 # .... operator! :P 13:41
camelia -10
AlexDaniel heh, should've used this:
m: .say for -10....0 # .... operator! :P
camelia -10
13:44 gordonfish left 13:49 lichtkind joined 14:11 donaldh left 14:16 xinming left, xinming joined 14:18 chloekek left 14:49 Tirifto left 14:56 mowcat joined 15:02 caterfxo left 15:06 rindolf left, chloekek joined
Doc_Holliwood added code to rosettacode.org/wiki/Password_generator#Raku 15:12
which version do you like better?
15:12 rbt left 15:13 rbt joined, rindolf joined 15:15 sena_kun joined 15:16 Altai-man_ left 15:25 ufobat__ joined 15:28 aborazmeh left 15:30 ufobat_ left 15:31 cpan-raku left 15:33 cpan-raku joined, cpan-raku left, cpan-raku joined, molaf joined 15:34 orinthe left, orinthe joined 15:48 k-man joined 15:50 k-man__ left 15:56 softmoth joined 16:04 rainmanjam left 16:08 caterfxo joined
AlexDaniel Doc_Holliwood: that's a lot of code 16:08
16:14 softmoth left
Doc_Holliwood It's a bit longer because of the decoupling, yes. 16:16
16:44 aborazmeh joined, aborazmeh left, aborazmeh joined 16:49 wildtrees joined 16:50 wildtrees left 16:51 wildtrees joined 16:59 kent\n left 17:04 kent\n joined 17:06 ukine left 17:14 Altai-man_ joined 17:17 sena_kun left 17:41 gordonfish joined 17:49 sjm_uk left 17:55 clarjon1 left, xinming left, xinming joined
Xliff Doc_Holliwood: Couldn't you write this "take %char-groups{ .key }.pick for %char-groups" 17:57
as this "take .pick for %char-groups.values"
17:58 clarjon1 joined 18:08 xinming left, xinming joined 18:12 clarjon1 left
Geth ¦ problem-solving: alabamenhu assigned to jnthn Issue Rounding issues github.com/Raku/problem-solving/issues/176 18:13
Doc_Holliwood or even take .value.pick for %char-groups, yeah that's better 18:14
18:16 clarjon1 joined
guifa2 Ugh I wish github had a delete option for issues. =\ 18:17
18:23 softmoth joined
timotimo hold on, it doesn't? 18:29
18:30 clarjon1 left
mst I think you can close and lock it and then nuke all the content 18:30
18:33 mowcat left 18:37 ukine joined
guifa2 timotimo: what mst said, I closed it, and deleted the content of the post, but I couldn't actually delete the issue itself =\ 18:37
timotimo ah dang 18:39
well, you can rename the repository, copy everything over except the thing you don't want, then rename the new one and delete the old one 18:40
18:55 cooper joined
guifa2 timotimo: I'm sure there are those that would love for that to happen but accidentally rename it to Perl6 or something along the way ha 18:56
19:00 aborazmeh left 19:04 chloekek left 19:07 melezhik joined
guifa2 .tell chloekek: I just saw your issues re printf. See my comments there, not sure if you'd want to collab on a projec there, but I'd be happy to help work on it. 19:08
tellable6 guifa2, I'll pass your message to chloekek
19:10 Hermit joined 19:11 cpan-raku left 19:12 cpan-raku joined, cpan-raku left, cpan-raku joined
Hermit are there any docs on embedding a raku interpreter for use as an extension mechanism in another program 19:13
maybe more appropriately embedding moarvm and the raku compiler 19:14
19:15 sena_kun joined, rbt left 19:16 andrzejku joined, rbt joined, Altai-man_ left, aborazmeh joined, aborazmeh left, aborazmeh joined
MasterDuke Hermit: don't know that there are any docs, best bet is probably looking at Inline::Perl6 19:16
Hermit I don't see the connection 19:17
Oh, it embeds a MoarVM 19:18
guifa2 Or maybe by using the JS or JVM variants. Although I know I'm terrible and don't test on those at all =\
Hermit They're too slow I think
[Coke] find myself wishing for a command line raku arg to say the result of the last calc. 19:19
raku -s '<maths>'
Hermit it's surprisingly hard to find a scripting language that will make proper use of multiple cores
raku would be perfect but there's no precedent for it being embedded into another program 19:20
MasterDuke Hermit: nine is probably the best person to talk to 19:21
Doc_Holliwood Made some improvements and put it in its own paragraph. rosettacode.org/wiki/Password_gene...ctional.29 19:22
still open for suggestions
19:23 erdic left
timotimo you can look at moar's main.c and such to find out how to create an MVMInstance and initial MVMThreadContext 19:23
after that, i would probably recommend doing IPC over Channel objects (aka async blocking queue) between host program and embedded moarvm
19:23 erdic joined 19:28 clarjon1 joined
MasterDuke timotimo: can you craft some code where the jit bails completely because of param_op_i? 19:33
19:35 melezhik left
timotimo let's see 19:36
Hermit thank you timotimo 19:37
guifa2 are NQP-ish questions best asked here or on raku-dev or?
guifa2 doesn't have any right now, but will soon
Hermit I think I'd be comfortable looking at how the top level singleton objects are created and placing those in my program, compiling and linking issues aside 19:38
I'm more worried about accessing script objects from c/c++ code since these are potentially in use in a multithreaded script
timotimo first attempt didn't work 19:39
Hermit There are likely good synchronization mechanisms for script<->script code in raku / moarvm but it would be a lot more complicated if I e.g. started a script in a thread that shared resources with a c++ program 19:40
19:40 clarjon1 left
MasterDuke timotimo: same here 19:40
timotimo what do you need it for? 19:41
MasterDuke trying to do github.com/MoarVM/MoarVM/pull/660 correctly 19:43
19:45 clarjon1 joined
timotimo as i understood it we were waiting for a whole refactor of args handling for those ops to get jitted 19:47
MasterDuke i thought those were the param_on_* ones? but can you find that discussion? maybe i should just close the PR 19:48
timotimo it's for all the optional ones i think?
MasterDuke hm 19:49
19:50 clarjon1 left 19:52 xinming left, xinming joined 20:03 p6steve joined 20:06 p6steve left 20:07 p6steve joined 20:11 xinming left, softmoth left 20:14 xinming joined 20:21 p6steve left
MasterDuke timotimo: interesting, my attempt does bail if i comment out github.com/MoarVM/MoarVM/blob/mast...#L358-L379 20:22
so i have something i can test. but is the whole thing moot anyway? 20:23
timotimo commenting it out doesn't sound like a good idea though?
it has a break in its default, so it'll just act as if there weren't that op
or perhaps the checks below that will bail it out 20:24
MasterDuke i actually just added a break at line 363
timotimo should have the same effect 20:25
20:30 aborazmeh left 20:31 mowcat joined 20:32 xinming left 20:34 xinming joined
MasterDuke but will it ever be the case that the op will really make it through without getting speshed? if so, i can use this hack to test. otherwise the jitting will be pointless 20:35
timotimo when there's too many arguments, i think it'll skip arg speshing and let the args ops through? 20:37
20:46 ckc joined
ckc Good Day - newbie question: while working on Shitov's compiler tutorial, I'm having a simple problem. How can I get 'use' to import .rakumod files located in the same directory as the code containing 'use'? I do not wish to place them elsewhere. 20:51
20:51 andrzejku left
timotimo you will need to either "use lib '.'" or give -I. on the commandline 20:55
there's also a way to import by file path, but i forgot what it was
21:02 Xliff left 21:04 kst` joined, rindolf left 21:06 kst left
ckc Thanks; the correct directory is being checked, and the file LinguaAST.rakumod is present, the code includes 'use LinguaAST', but it still isn't being found. Perhaps it's something to do with using Singularity shell (university won't allow a server install on short notice). Probably too much to troubleshoot, I may just dump everything in one 21:07
file. Love the language, though.
Grinnz if . is interpreted as a relative path, note that it's relative to cwd - raku probably has a simpler way to get a file path relative to current file 21:10
21:14 Altai-man_ joined 21:16 sena_kun left
ckc I'm puzzled because zef-installed modules work; my own .rakumod do not: "Could not find LinguaAST at line 221 in: file#/ilab/users/ckc14/cpl2". I don't know what "file#" has to do with anything, but else the directory is correct. This is using the command perl6 lingua.pl6 in the Singularity shell based on a Singularity Docker Rakudo Star import. 21:17
Probably not a typical use case.
AlexDaniel ckc: do you have a META6.json file? 21:20
ckc: if not, then it's possible that your rakudo is too old and it simply doesn't know about .rakumod extension yet 21:21
but if you use a META6.json file then it doesn't matter
ckc I do not. Is there a template you could point me to?
AlexDaniel ckc: docs.perl6.org/language/modules#Pr...the_module 21:23
ckc: “Make your META6.json file look something like this:”
ckc Thanks! That did it. I would not have found that anytime soon. 21:35
AlexDaniel me too 21:37
I don't think we recommend .rakumod yet, exactly for that reason
21:43 pilne joined
ckc I'm just starting in Raku, but my first reaction is delight. Makes Python seem like a straitjacket. If I could figure out how to get Raku to generate Python code for Pandas and Matplotlib I'd be thrilled - summer project, perhaps, if someone hasn't done it already. 21:49
moritz ckc: are you aware of Inline::Python? 21:52
I've actually included an example of using matplotlib in the "Perl 6 Fundamentals" book 21:53
there's a branch of Python 3 support in the Inline::Python repo; not quite finished yet :/
ckc At the moment I'm just trying to get through finals - compilers, computability, neural nets - will have spare time in a few weeks! I'll definitely look into your book. Any est delivery date on the Py3 Inline? 21:56
moritz not really; currently distracted by work, family and a global pandemic
22:03 pmurias left
ckc This is probably idle speculation, but if Raku has fundamental support for parallelism in a way Python doesn't, and if it were quite easy to parallelize Python data science programs via Py3 Inline or some other means, I expect there'd be interested users. Perhaps Raku could serve to tie together the various data science tools. 22:04
22:05 vike left
ckc Everyone's got ideas for what other people should spend their time working on, of course. 22:05
lizmat ckc: too bad you missed this round: news.perlfoundation.org/post/gc_cp_mar_2020 22:06
perhaps the next round you could do a grant proposal for getting Python 3 support in ? 22:07
AlexDaniel that'd be awesome 22:08
lizmat ckc: just a hint :-)
22:09 vike joined
ckc I'd make out the check to moritz. Glad to know the organization is sponsoring development of the language; I'm definitely looking forward to learning it. Anyway, thanks all, and I'm off to dinner with my own two little boys, ciao. 22:10
22:10 ckc left 22:11 guifa2 left 22:12 cpan-raku left 22:18 cpan-raku joined, cpan-raku left, cpan-raku joined
timotimo the "subinterpreter" thing python recently gained is similar to using raku with inline::python to connect multiple python instances together to use multiple cores 22:18
22:36 xinming left
sacomo hi all 22:36
22:36 xinming joined 22:37 Altai-man_ left
sacomo has there been any progress on a raku-project-to-executable-binary front? 22:41
22:44 caterfxo left 22:46 caterfxo joined 22:54 lichtkind left 23:03 xinming left, xinming joined
Doc_Holliwood m: dd (0..Inf).List.pick(Inf) 23:04
camelia Failure.new(exception => X::Cannot::Lazy.new(action => ".pick from", what => Any), backtrace => Backtrace.new)
Doc_Holliwood LTA!
m: .say for (0..Inf).List.pick(Inf) 23:05
camelia Cannot .pick from a lazy list
in block <unit> at <tmp> line 1
23:11 Doc_Holliwood left 23:21 kent\n left, bahid joined
bahid hey 23:21
23:26 kent\n joined 23:30 bahid left 23:37 pecastro left 23:45 mowcat left, guifa2 joined
guifa2 ckc: what kind of module are you making with Lingua? 23:49
tellable6 guifa2, I'll pass your message to ckc