🦋 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:08 markong left 00:12 regreg_ joined 00:13 regreg left 00:17 mowcat left 00:32 mensvaga left 00:39 epony left
rypervenche Is the ":my" supposed to be a "my" on docs.raku.org/language/grammars#Dy...n_grammars ? 00:41
leont No 00:45
That's how you declare a variable inside a rule
Without the colon it would match text, instead of being code
00:48 epony joined
rypervenche Ah ok. 00:49
leont It's not very common to encounter, I just happen to know because YAMLish very much depends on the feature 00:58
01:07 caterfxo joined 01:15 aborazmeh left 01:20 Kaiepi left 01:21 Kaiepi joined 01:22 Kaiepi left, Kaiepi joined 01:23 sena_kun joined 01:24 Altai-man_ left 01:27 Kaiepi left, Kaiepi joined 01:28 Kaiepi left 01:40 aborazmeh joined, aborazmeh left, aborazmeh joined 01:43 Doc_Holliwood left 01:47 wildtrees left 01:49 aborazmeh left 01:51 benlittle joined 01:52 discord6 left, cpage left 01:53 sena_kun left, discord6 joined, discord6 left, discord6 joined, sena_kun joined 01:54 discord6 left 01:55 discord6 joined 02:01 agentzh left 02:11 Xliff joined, molaf left 02:16 kubrat left 02:23 molaf joined, benlittle left 02:24 kubrat joined 02:30 agentzh joined, agentzh left, agentzh joined 02:31 leont left 02:37 agentzh left 02:48 imcsk8 left 02:49 agentzh joined, imcsk8 joined 02:54 Doc_Holliwood joined 03:05 caterfxo left 03:07 caterfxo joined 03:19 kst joined 03:22 Altai-man_ joined 03:25 sena_kun left 04:20 aluaces left, aluaces joined 04:42 wamba joined 04:54 discord6 left, discord6 joined, discord6 left, discord6 joined 04:57 discord6 left 05:00 Geth left, Geth joined 05:01 entonian left, [ptc] left 05:02 [ptc] joined, entonian joined 05:14 wamba left 05:23 sena_kun joined 05:24 Altai-man_ left 05:29 wamba joined 05:35 kst left 05:55 veesh left 06:00 lizmat left 06:02 lucs_ joined 06:03 shadowpaste0 joined, xxpor_ joined, shadowpaste left, xxpor left, lucs left, gugod left, gugod1 joined 06:06 lucs_ is now known as lucs 06:08 veesh joined 06:09 sauvin joined 06:23 lizmat joined 06:29 phogg left 06:30 phogg joined, phogg left, phogg joined 06:33 wamba left 06:34 veesh left 06:43 lizmat left 06:48 veesh joined 06:53 wamba joined 07:21 leont joined 07:22 Altai-man_ joined 07:25 sena_kun left 07:38 sno left 07:43 xinming_ left 07:45 xinming_ joined 07:47 xelxebar joined 07:54 leont left 07:58 rindolf joined 08:02 lizmat joined 08:12 justout joined 08:14 sno joined 08:16 HarmtH left, veesh left 08:30 veesh joined 08:45 lizmat left 08:50 xinming_ left 08:51 xinming_ joined 08:54 pecastro joined, reach_satori joined 08:57 lizmat joined 09:19 veesh left 09:23 sena_kun joined 09:25 Altai-man_ left 09:31 veesh joined 09:38 Sgeo_ left 09:39 Sgeo_ joined 09:45 lizmat left 09:51 lizmat joined, mowcat joined
Altreus I've asked a similar question before but - I have classes that need to know about each other, so that I can correctly use multi dispatch based on type. Is there a way of doing this without making an empty role for them both to consume, or empty parent class or something like that? 10:06
I was hoping I could somehow declare the existence of the type while remaining agnostic about the implementation of it 10:09
10:22 ensamvarg joined 10:26 xinming_ left 10:27 xinming_ joined
lizmat m: class A { ... }; class B is A { }; class A { } 10:28
camelia 5===SORRY!5=== Error while compiling <tmp>
'B' cannot inherit from 'A' because 'A' isn't composed yet (maybe it is stubbed)
at <tmp>:1
lizmat hmm
m: class A { ... }; class B { method b() { A.new } }; class A { }
camelia ( no output )
lizmat that works, as long as it's in the same compunit
Altreus ^^ 10:29
Altreus it's not :) 10:31
one class per file! ish
m: class A { ... }; class B { method b(A $a) { } }; class A { } 10:33
camelia ( no output )
Altreus mm
Also I'm quite enamoured with the 'unit' keyword :)
saves excess indentation 10:34
10:36 Black_Ribbon left 10:37 xinming_ left, xinming_ joined 10:43 wamba left 10:50 wamba joined
Ulti github.com/replit/polygott/pull/67 anyone familiar with rakudo-pkg and can leave me a comment? 10:55
lizmat El_Che ^^ ? 11:01
Altreus: then roles are your thing, I think :-) 11:02
Altreus c'est la vie
lizmat it's the reason the setting is compiled as a single humongous source-file 11:04
fwiw, I've suggested generalizing that concept in a problem-solving ticket 11:05
github.com/Raku/problem-solving/issues/143 11:06
11:06 lizmat left 11:15 hungrydonkey joined 11:18 aborazmeh joined, aborazmeh left, aborazmeh joined 11:22 Altai-man_ joined 11:24 sena_kun left 11:27 lizmat joined 11:37 veesh_ joined, veesh left 11:38 veesh_ is now known as veesh 11:43 reach_satori left 11:48 Doc_Holliwood left 11:52 HarmtH joined, regreg_ left 11:53 xinming_ left 11:55 xinming_ joined, markong joined 11:59 aborazmeh left, Doc_Holliwood joined 12:00 aborazmeh joined, aborazmeh left, aborazmeh joined 12:02 mensvaga joined, mensvaga left 12:03 x[LGWs4x4i]uG2N0 left, x[LGWs4x4i]uG2N0 joined, orinthe left, orinthe joined 12:04 oodani left 12:05 ribasushi left 12:06 aborazmeh left, phogg left, erdic left, xinming_ left, synthmeat left, El_Che left, tony-o_ left, El_Che joined 12:07 xinming_ joined, reach_satori joined 12:08 Summertime left 12:09 oodani joined, Summertime joined 12:10 synthmeat joined, phogg joined, phogg left, phogg joined, margeas joined 12:13 aborazmeh joined, aborazmeh left, aborazmeh joined, ribasushi joined, markong left 12:14 erdic joined, tony-o joined
moritz Hi all 12:18
I have a native sub declared as
sub py_bytearray_from_py(Pointer) is native($pyhelper) returns Pointer { ... }
when I try to call it, I get Cannot locate symbol '(null)' in native library '(null)'
any idea why it might try to call '(null)'? 12:19
12:21 markoong joined 12:22 margeas left
moritz (and the is native($pyhelper) works for other functions) 12:24
huh, it turns out this is a problem with error reporting. The symbol didn't exist in the C library, and the error message simply sucks 12:25
12:27 hungrydonkey left, hungryd17 joined 12:32 xinming_ left 12:34 xinming_ joined, foo222 joined 12:39 ctilmes joined 12:40 aborazmeh left 12:42 aborazmeh joined, aborazmeh left, aborazmeh joined 12:47 Doc_Holliwood left 12:48 aborazmeh left 12:50 aborazmeh joined, aborazmeh left, aborazmeh joined 12:53 hungrydonkey joined 12:56 hungryd17 left, aborazmeh left 12:57 aborazmeh joined, aborazmeh left, aborazmeh joined 13:01 lucasb joined 13:03 xelxebar left, aborazmeh left 13:05 aborazmeh joined, aborazmeh left, aborazmeh joined 13:06 xelxebar joined 13:10 aborazmeh left 13:12 aborazmeh joined, aborazmeh left, aborazmeh joined 13:22 aborazmeh left
El_Che Ulti, lizmat: I answered on the ticket 13:23
13:23 sena_kun joined 13:25 Altai-man_ left 13:26 mowcat left 13:35 mowcat joined 13:37 aborazmeh joined, aborazmeh left, aborazmeh joined 13:47 hungrydonkey left 13:48 hungrydonkey joined 13:51 mensvaga joined 13:52 molaf left 13:53 mowcat left 14:11 lizmat left 14:29 aborazmeh left, TeamBlast left 14:31 wamba left 14:41 mensvaga left 15:17 foo222 left 15:22 Altai-man_ joined 15:24 sena_kun left 15:45 Actualeyes joined 15:49 Actualeyes left 15:50 Actualeyes joined 15:54 dogbert17 joined 16:08 benlittle joined
benlittle Hello! Are there any existing projects for auto-completion in raku? Similar to what jedi is for python. 16:10
timotimo Comma has rathor competent completion 16:12
benlittle Isn't comma closed source?
timotimo at the moment, yes
benlittle
But at least it's a start 16:13
What's the base grammar for the rakudo compiler? If I wanted to build a lexer, I imagine I should subclass from that. 16:24
16:29 mowcat joined, mensvaga joined 16:33 sno left 16:41 jmerelo joined 16:44 lucasb left
timotimo the rakudo parser and one for autocompletion have different goals 16:46
one wants to reject wrong programs, the other wants to recover from mistakes, since there'll be a place where the user is currently editing
El_Che benlittle: the community comma edition is free as in beer 16:47
(I need yet to find a bar with free beer, but that's an other topic) 16:48
benlittle My only concern with closed source is that I want to understand the workings of the language better. That's also why I asked about the rakudo parser, as no matter what I do, I will need to have an idea of what the parser is actually doing with any given snippet of code. 16:56
Ulti El_Che: are you nxadm on GH? 16:57
I'm the other guy \o.
sorry if it came across as attacking rakudo-pkg I just wanted confirmation its repl.it not updating rather than you 16:58
glot.io has the same problem 16:59
it freezes everything from the last time the config was touched
which is quite unfortunate
16:59 wamba joined 17:00 phogg left
El_Che Ulti: o/ 17:02
Ulti: I didn't feel attacked, I thought you were misinformed and added my two cents :)
17:05 xelxebar left 17:06 phogg joined, phogg left, phogg joined, xelxebar joined 17:15 aborazmeh joined, aborazmeh left, aborazmeh joined 17:19 Actualeyes left, Actualeyes joined 17:22 aborazmeh left 17:23 sena_kun joined 17:24 Altai-man_ left 17:40 aborazmeh joined, aborazmeh left, aborazmeh joined
Altreus I have a %constructor with a key 'roles' with an array in it. %constructor<roles>.say gives [506956809471262731 506956997543985222] 17:45
And it's used to construct an object whose class has @.roles
Class.new(|%constructor)
And now @.roles is [[506956809471262731 506956997543985222]]
Why did it get considered to be a single value, and not an array going into an array container? 17:46
What don't I know? :)
Altreus home time 17:48
18:03 hungrydonkey left 18:12 aborazmeh left 18:32 wamba left
japhb m: dd (1,2,3); dd [1,2,3] 18:41
camelia (1, 2, 3)
Array element = [1, 2, 3]
japhb m: say (1,2,3).raku; say [1,2,3].raku 18:42
camelia (1, 2, 3)
[1, 2, 3]
japhb Altreus: ^^ the [] one is itemized
m: say (1,2,3).WHAT; say [1,2,3].WHAT 18:43
camelia (List)
(Array)
japhb m: say ($(1,2,3)).WHAT; say ($[1,2,3]).WHAT 18:44
camelia (List)
(Array)
japhb Hmmmph, perhaps I was thinking back in the old days.
18:46 Actualeyes left 18:50 Doc_Holliwood joined, aborazmeh joined, aborazmeh left, aborazmeh joined 19:05 jmerelo left 19:08 wildtrees joined 19:09 wildtrees left, wildtrees joined 19:11 wildtrees left, wildtrees joined 19:12 dertyhgtrfrde joined
dertyhgtrfrde pleae 19:12
please
What is the correct extension for a raku file ?
please help
please
When I create a ruby file I have the icon with the superb jewell 19:13
but when I create a raku file I don't have the icon with the butterfly
19:13 cpan-raku left
dertyhgtrfrde please HELP 19:14
AlexDaniel`
19:14 cpan-raku joined, cpan-raku left, cpan-raku joined
dertyhgtrfrde cpan-raku please 19:14
rypervenche uhhh 19:18
dertyhgtrfrde plaese 19:21
I have try ".pl6"
".rk"
none of these are able to display the butterfly
19:22 Altai-man_ joined
dertyhgtrfrde Altai-man_ please 19:23
Altai-man_ dertyhgtrfrde, .raku or .p6?
dertyhgtrfrde I still don't have the butterfly 19:24
even with ".raku"
19:24 sena_kun left, sauvin left
Altai-man_ dertyhgtrfrde, where do you want to see it? 19:33
19:33 Actualeyes joined
dertyhgtrfrde the icon on my file 19:33
should I have a butterfly
Exactly like the icon of a Ruby file have a ruby 19:34
Altai-man_ dertyhgtrfrde, what system do you use? I am not sure there should be any icon anywhere, except you are using Comma IDE.
19:34 ctilmes1 joined
dertyhgtrfrde Linux with Debian 19:34
If this not butterfly, I will not be happy 19:35
Altai-man_ dertyhgtrfrde, can you show a screenshot? 19:36
dertyhgtrfrde I will not
rypervenche dertyhgtrfrde: I'm assuming that your file manager does not have an icon for Raku yet. 19:37
dertyhgtrfrde Do you have a butterfly ?
rypervenche what should I do ?
Altai-man_ dertyhgtrfrde, I am not sure we'll be able to help without knowing which program do you even use to display your files.
19:37 ctilmes left
rypervenche dertyhgtrfrde: You could request that it get added upstream. I'm assuming you are seeing this in your file manager. If so, which one are you using? 19:38
What OS are you using and what version?
Also, you need to be patient. People here are volunteers and are not always available to answer questions right away. There is no need to spam "please", someone will respond when they are available to. 19:39
dertyhgtrfrde thunar 19:40
mst solution: stop caring about the icon, focus on learning the language 19:41
rypervenche I think that might be a GTK icon theme that handles that. I could be wrong there. 19:42
mst dertyhgtrfrde: this is not a raku problem and you should ask your distro's IRC channel for help instead.
rypervenche Yeah, your distro's channel will be able to help you find where to request its addition.
dertyhgtrfrde mst I could not program if there is not icon 19:43
It's not even an option
ok I will ask the distro 19:44
thanks
mst you can program whether there is an icon or not.
rypervenche dertyhgtrfrde: Even if you get it added upstream, it won't be available on your distro for at least one version upgrade. So unless you add it yourself, with that attitude you won't be coding in Raku.
mst you run 'raku myfile.rk' in the shell
19:44 gordonfish joined
mst dertyhgtrfrde: so no, that simply isn't true. 19:45
dertyhgtrfrde mst I think you don't understand
mst dertyhgtrfrde: you do not need an icon to program.
that is not true./
rypervenche By the way, .raku is the chosen extension for Raku files.
dertyhgtrfrde mst You are a genius
mst rypervenche: ah, sorry, my mistake 19:46
dertyhgtrfrde: you ran your file?
dertyhgtrfrde when I say I need the icon it's becaue
because I don't like when there is no icon
rypervenche Oooh, I think I see. Have you been running your scripts simply by double-clicking on them?
mst well, learn enough about your distro to install an icon then, I guess 19:47
my linux installs don't have icons for anything
dertyhgtrfrde the fact is that the script should be ported on a lot of distro
rypervenche Same, although I used to use Faenza icons when I used graphical file managers. 19:48
dertyhgtrfrde: What distro and version are you using?
dertyhgtrfrde it is not only for my computer, my distro
El_Che rypervenche: download an icon, right click on the file, change the icon on the basic tab, on the "open with" tab change the executable to raku
rypervenche dertyhgtrfrde: El_Che's message is for you. 19:49
El_Che sorry :)
dertyhgtrfrde Thanks
Hope a lot of distro will add an icon soon 19:50
rypervenche dertyhgtrfrde: They likely won't unless someone requests them. If we knew what distro you were using and therefore what icon theme, we could look into seeing how to get it added.
19:50 sena_kun joined
El_Che I see that .py and .p6 get an icon 19:52
19:52 Altai-man_ left
El_Che .p6 gets a cartoonish camel head :) 19:52
it means if you used the .p6 extension for now, you'll have your icon 19:53
distro's will catch up soon
dertyhgtrfrde: in case you want to report so people packaging stuff notice, you can post it here: github.com/Raku/problem-solving/issues 19:56
Doc_Holliwood Watching the german workshop videos. Man I relly wanted to be there.
El_Che Doc_Holliwood: url us? 19:57
Doc_Holliwood Who's that charming british man who looks like young Montgomery Scott?
www.video.uni-erlangen.de/course/id/891
El_Che thc 19:59
c
x
dertyhgtrfrde Is it true someone is creating "Raku On Rails" ? 20:01
El_Che There is Cro 20:02
dertyhgtrfrde it is broken 20:03
El_Che is it?
20:05 aborazmeh left
dertyhgtrfrde YES 20:05
El_Che dertyhgtrfrde: the developers are on this channel, they will interested to hear where and in github issues with your problems 20:06
20:09 Actualeyes left, Actualeyes joined
dertyhgtrfrde El_Che are you the developper ? 20:09
sena_kun dertyhgtrfrde, I'm one of them and probably can try to help if details given. 20:10
El_Che dertyhgtrfrde: no, but I have been helped before by the cro devs here 20:11
ctilmes1 Cro is awesome, devs are very helpful and responsive to issues reported through proper channels 20:16
dertyhgtrfrde sena_kun Hi. I am very sorry 20:18
I am here to troll
I though every body understood that
but it's seem not
sena_kun dertyhgtrfrde, (((( so trolled
dertyhgtrfrde I have never try Cro 20:19
even one second
So I can't tell you it is broken are not 20:20
or *
Is it true he is a spy ? 20:22
rypervenche It's nice to see fresh videos about Raku. Watching them now. :) Also looking forward to Jonathan's once he's feeling better. 20:26
dertyhgtrfrde Do you feer coronavirus ? 20:27
20:29 ChanServ sets mode: +o mst, mst sets mode: +b *!*5c9a5b04@*.w92-154.abo.wanadoo.fr, dertyhgtrfrde was kicked by mst (dertyhgtrfrde)), mst sets mode: -o mst
El_Che mst++ 20:30
mst El_Che: trout.me.uk/foom.jpg
20:30 nt80 joined
El_Che foom is that a new p5 OO framework? :P 20:30
tadzik that'd be Moof 20:31
El_Che tadzik++ 20:34
mst I'm currently using Mu 20:38
El_Che I think Mu is using you 20:42
20:52 Black_Ribbon joined
mst where software is concerned, that's often a muut point 20:55
21:04 caterfxo left, albongo left 21:05 albongo joined, caterfxo joined
El_Che software is hard 21:06
21:11 HarmtH left, pecastro left, vike left, ZzZombo left, maggotbrain left, k-man left, samebchase- left, TimToady left, ptrcmd left, webstrand left, moritz left, nebuchadnezzar left, timotimo left, bartolin left, eater left, ambs left, jdv79 left, tinita left, Mithaldu` left, perryprog left, pochi_ left, renormalist left, go|dfish left, Ulti left, hahainternet left, broquaint left 21:12 HarmtH joined, pecastro joined, vike joined, ZzZombo joined, maggotbrain joined, ptrcmd joined, samebchase- joined, TimToady joined, webstrand joined, moritz joined, nebuchadnezzar joined, timotimo joined, bartolin joined, hahainternet joined, eater joined, ambs joined, jdv79 joined, tinita joined, Mithaldu` joined, renormalist joined, perryprog joined, pochi_ joined, go|dfish joined, Ulti joined, broquaint joined 21:15 k-man joined 21:17 samebchase-2 joined 21:18 samebchase- left, sno joined 21:19 patrickb joined
patrickb o/ 21:19
21:20 regreg joined
patrickb I just watched the replay of the GPW2020 Raku Q&A session. The last question was about how to package a Raku app on Windows so someone that has no Raku installed can use it. 21:22
regreg patrickb, was there a reasonable asnwer to that question? i'm interested too 21:26
patrickb Since no one mentioned it I'd like to point out that the relocatable precompiled rakudo releases that are available since a while can be used to create bundles that will run on someone elses machine. These packages contain zef and modules installed with that bundled zef are also part of the bundle then.
So I'd say that's a really simple way to create bundles. 21:28
regreg: The answers that were given in the talk were a last years google summer of code project that worked on creating actual executable binaries for raku programs (it's not production ready yet and only works on linux) and the recommendation to use Docker. 21:29
regreg i'm on windows 21:30
using wsl
21:30 wildtrees left
regreg but i want to implement my game engine AI in raku 21:30
patrickb regreg: Sounds interesting! 21:32
regreg i actually have 2 projects, a stock market game and a civilization-like game
patrickb regreg: As advertised above, have a look at the precompiled release archives on rakudo.org They should run out of the box on Windows and can be used as the base for a raku program bundle. 21:33
regreg: Is the source code available somewhere to have a look? 21:34
regreg $ rakudo --version
This is Rakudo version 2020.01 built on MoarVM version 2020.01.1
implementing Perl 6.d.
no, it's a commercial game 21:35
indie game
if we hang around i might give you a license once i finish it :)
which might take about 1 year or so
patrickb lizmat, nine, moritz: ^ See above for another approach to packaging raku apps on Windows.
regreg this is the output from my windows installation of rakudo 21:36
in git bash
mingw
patrickb regreg: I'm not much into gaming (any more), more interested in the inner workings of the games nowadays. But thanks for the offer! :-) 21:37
tadzik regreg: sounds interesting, keep us updated :) 21:40
regreg i'm using raku mostly because of multimethods, i don't like using lisp syntax anymore 21:41
21:50 Altai-man_ joined 21:52 sena_kun left 21:56 foo222 joined 22:00 Doc_Holliwood left 22:08 patrickb left 22:09 benlittle left 22:14 lizmat joined 22:21 rindolf left 22:23 Actualeyes left, Actualeyes joined 22:35 caterfxo left, __jrjsmrtn__ left, Doc_Holliwood joined 22:44 ukine joined 22:45 ukine left 22:46 nhghu joined 22:47 upupbb-user2 joined, nhghu left 22:53 caterfxo joined 23:03 wamba joined 23:08 markoong left 23:10 markong joined 23:22 margeas joined 23:26 markong left 23:35 markoong joined 23:36 margeas left 23:37 dh7320 joined 23:41 dh7320 left 23:44 foo222 left 23:45 chloekek joined, Redfoxmoon left 23:49 hungrydonkey joined 23:51 sena_kun joined 23:52 Altai-man_ left 23:55 chloekek left 23:59 molaf joined, __jrjsmrtn__ joined