🦋 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:00
rindolf left
|
|||
[Coke] | (y) | 00:03 | |
00:21
Xliff left
00:35
pecastro left
00:36
Petya joined
00:38
RaycatWhoDat joined
00:49
Petya left
00:50
berber44 joined
00:54
monkey__ joined
00:55
__jrjsmrtn__ left
00:56
__jrjsmrtn__ joined
00:57
mowcat left
|
|||
leont | r: role Foo[Int $a] {}; role Bar[Int $a] does Foo[$a] {} | 00:58 | |
camelia | ( no output ) | ||
5===SORRY!5=== Error while compiling <tmp> No appropriate parametric role variant available for 'Foo': Cannot resolve caller (Foo[Mu]:U, Mu:U); none of these signatures match: (::$?CLASS ::::?CLASS Mu, Int $a) at <tmp>:1 |
|||
leont | I assume that is a bug? | ||
It seems to work without type, just not with explicit types | 00:59 | ||
00:59
monkey__ left
|
|||
leont | Or more precisely, if Foo's argument is typed | 01:00 | |
01:09
sno left
01:22
monkey__ joined
01:35
sno joined
01:45
HarmtH_ joined
01:46
HarmtH left
01:51
guifa2 joined
02:04
indathrone joined
|
|||
moon-child | Callable[Str] is the type of a callable returning Str. How can I express the types of the parameters in the type? | 02:13 | |
elcaro | I'm not sure you can. a Callable symbol could be a multi, so I think the best you can do is (iterate through .cadidates if necessary and) inspect .signature | 02:21 | |
02:26
kini left
02:28
kini joined
|
|||
parabolize | :m role R1[Int $a] { method foo {$a} }; class C1 does R1[3] {}; C1.n | 02:38 | |
:r role R1[Int $a] { method foo {$a} }; class C1 does R1[3] {}; C1.new.foo.say; | |||
r: role R1[Int $a] { method foo {$a} }; class C1 does R1[3] {}; C1.new.foo.say; | 02:39 | ||
camelia | 3 | ||
02:39
kvw_5 joined
|
|||
parabolize | leont: I don't think the class needs the sig | 02:40 | |
I'm not sure what you are trying to do though | |||
02:42
kvw_5_ left
|
|||
parabolize | there is some examples in roast/S14-roles/parameterized-basic.t | 02:45 | |
02:52
squashable6 left,
aborazmeh joined
02:53
squashable6 joined
02:54
Kaiepi left
02:55
Kaiepi joined
02:56
Kaiepi left,
Kaiepi joined
03:03
aborazmeh left
03:13
RaycatWhoDat left
03:15
monkey__ left,
Kaiepi left
03:25
guifa2 left
03:26
vike left
04:26
nativecallable6 left,
linkable6 left,
notable6 left,
greppable6 left,
committable6 left,
quotable6 left,
bisectable6 left,
tellable6 left,
evalable6 left,
squashable6 left,
benchable6 left,
unicodable6 left,
coverable6 left,
sourceable6 left,
statisfiable6 left,
releasable6 left,
shareable6 left,
bloatable6 left,
committable6 joined,
coverable6 joined,
releasable6 joined
04:27
shareable6 joined,
notable6 joined,
unicodable6 joined,
statisfiable6 joined,
quotable6 joined,
bisectable6 joined,
benchable6 joined,
evalable6 joined
04:28
sourceable6 joined,
nativecallable6 joined,
squashable6 joined,
greppable6 joined,
linkable6 joined,
tellable6 joined
04:29
bloatable6 joined,
orinthe left
04:45
softmoth left
04:48
orinthe joined
04:56
orinthe left
05:02
abraxxa left
05:04
orinthe joined
05:05
abraxxa joined
05:12
kini left
05:13
kini joined
05:16
Kaiepi joined
05:51
vike joined
05:57
parabolize left
06:02
clarjon1 left
06:14
dataangel left
06:16
kini left
06:17
kini joined
06:25
jmerelo joined
06:29
Sgeo left
06:35
tejr left
06:36
tejr joined
06:54
xinming left
06:55
ufobat_ joined
06:56
xinming joined
07:00
wamba joined
07:22
muffindrake joined
07:50
moon-child left,
moon-child joined,
wamba left
07:57
moon-child left,
moon-child joined
07:58
domidumont joined
08:02
pecastro joined
08:03
kini left
08:12
frost-lab joined
08:13
codesections left
08:16
berber44 left
08:18
frost-lab31 joined
08:20
Kaiepi left
08:21
frost-lab left
08:27
Kaiepi joined
08:34
sono__ left
08:42
Kaeipi joined,
Kaiepi left
08:50
Kaeipi left
08:52
dakkar joined
08:54
Kaiepi joined
09:13
sena_kun joined
09:15
tealecloud joined
|
|||
gfldex | r: my Int $a = 10; role Foo[$a] {}; role Bar[Int $a] does Foo[$a] {} | 09:24 | |
camelia | ( no output ) | ||
gfldex | leont: ^^^ at the time `does Foo[$a]` is evaluated the container `$a` is Mu. The `$a` in Bar[Int $a] is a different container. | 09:26 | |
leont | So "inheriting" the argument across roles doesn't work at all? | 09:29 | |
09:32
Kaiepi left
09:50
wamba joined
|
|||
gfldex | r: role Foo[$a] {}; role Bar[Int $a = 10] does Foo[$a] {} | 10:08 | |
camelia | ( no output ) | ||
gfldex | leont: Well kinda, but it may not do what you want. | 10:09 | |
10:22
benkolera left
10:35
benkolera joined
11:07
Altai-man_ joined,
sena_kun left
11:14
sena_kun joined
11:15
Altai-man_ left
11:33
Kaiepi joined
|
|||
leont | I can see why it doesn't work, but it's would be a useful pattern if it did | 11:36 | |
11:48
Kaiepi left
11:49
Kaiepi joined
12:02
Altai-man_ joined
12:03
Kaiepi left,
Kaiepi joined
12:05
sena_kun left,
frost-lab31 left
12:18
rindolf joined
12:25
Kaiepi left
|
|||
leont | Is there a good pack 'H*' replacement that isn't marked experimental? | 12:45 | |
lizmat | does P5pack have it? | 12:51 | |
13:15
Kaiepi joined
13:26
xinming left
13:31
xinming joined
13:32
wamba left
14:02
benkolera left
14:25
wamba joined
14:27
wamba left
14:30
Sgeo joined
14:32
indathrone left
14:55
parabolize joined
14:58
daxim left
15:42
daxim joined
15:45
Kaiepi left
16:45
ggoebel joined
16:47
ufobat_ left
17:02
MasterDuke left
17:03
mahafyi joined
17:05
mowcat joined
17:18
mahafyi left,
Nasrudin left,
ThaEwat left,
samebchase left,
sivoais left,
tadzik left,
dg left,
[Coke] left,
samcv left,
defaultxr left,
DarthGandalf left,
silug left,
stux|RC left,
Ekho left,
mightypork_ left,
ribasushi_ left,
xkr47 left,
jraspass left,
lnx left,
mendel left,
ellipsis left,
synthmeat left,
cxreg2 left,
Ulti left
17:19
ilogger2 joined,
samcv joined,
tonyo joined,
timotimo joined,
tadzik joined,
daimon joined,
defaultxr joined,
grumble joined,
silug joined,
tobs joined
17:20
dotdotdot joined,
tyilanmenyn joined,
cgfbee joined,
pounce joined,
ribasushi joined,
BuildTheRobots joined,
epony joined,
stux|RC joined,
UukGoblin joined,
a3f joined,
kawaii joined,
kst joined
17:21
k-man joined,
samebchase- joined,
tomaw joined,
finsternis joined,
dg joined,
timeless joined
17:22
synthmeat joined,
dustinm` joined,
Ekho joined
17:23
renormalist joined
17:24
tinita joined,
Ulti joined
17:29
vike joined,
lnx joined
17:33
indathrone joined
17:39
grumble left
17:40
grumble joined
17:42
indathrone left,
skaji_ left,
Voldenet left,
roguelazer left,
Grinnz left,
PotatoGim left,
Grrrr left,
dg left,
tyilanmenyn left,
dotdotdot left,
defaultxr left,
tadzik left,
timotimo left,
silug left,
ribasushi left,
raydiak left,
summerisle left,
jcallen left,
rjeli left,
fvox left,
bartolin left,
pierrot left,
ingy left,
Mithaldu left,
moritz left,
samebchase- left,
UukGoblin left,
stux|RC left,
pounce left,
cgfbee left,
gabiruh left,
MilkmanDan left,
agentzh left,
wmoxam left,
ecocode_ left,
dylanwh left,
mrsolo left,
dgl joined,
pel_ joined,
UukGoblin joined,
bartolin_ joined,
moritz_ joined,
a6502_ joined,
hobbs joined,
cxreg2 joined,
ellipsis joined,
ambs joined,
[ptc]_ joined,
hobbs left,
hobbs joined,
lucs_ joined,
jdv79_ joined,
Voldenet joined,
tyilanmenyn joined,
EPic joined,
ingy joined,
raydiak joined,
[Coke] joined,
gfldex joined,
gabiruh joined,
Sir_Ragna joined,
sxmx joined,
timotimo joined,
pierrot joined,
bingos_ joined,
tailgate joined,
mendel joined,
jraspass joined,
aluaces joined,
wmoxam_ joined,
Grrrr joined,
pierrot left,
pierrot joined,
maggotbrain joined,
kvw_5 joined,
dogbert17 joined,
sno joined,
spacebat2 joined,
[Coke] left,
[Coke] joined,
releasable6 joined,
notable6 joined,
statisfiable6 joined,
tellable6 joined,
Voldenet left,
Voldenet joined,
takside joined,
fvox_ joined,
Manifest0 joined,
samebchase- joined,
imcsk8 joined,
broquaint joined,
perlmaros joined,
bdju joined,
El_Che joined,
cooper joined,
elcaro joined,
perigrin joined,
cooper left,
cooper joined,
tealecloud joined,
skaji_ joined,
karupanerura joined,
Altai-man_ joined,
mrsolo joined,
dylanwh joined
17:43
Grinnz joined,
ecocode joined,
tadzik joined,
mniip joined,
rindolf joined,
stux|RC joined,
wamba joined,
rjeli joined,
defaultxr joined,
Grinnz left,
Grinnz joined,
m_athias joined,
MilkmanDan joined,
PotatoGim joined,
cgfbee joined,
MilkmanDan left,
MilkmanDan joined,
xinming joined
17:44
summerisle joined,
jcallen joined,
sftp joined,
indathrone joined,
pounce joined,
benaiah joined,
DarthGandalf joined,
Mithaldu joined,
simcop2387 joined,
Maylay joined,
ribasushi joined
17:45
BuildTheRobots left,
markmarkmark joined,
roguelazer joined
17:46
__jrjsmrtn__ joined
17:47
judd7 joined
17:48
jmcgnh joined
17:49
BuildTheRobots joined,
webstrand joined
17:50
CIAvash joined
17:52
moon-child joined,
agentzh joined,
agentzh left,
agentzh joined
17:53
dgl is now known as dg
17:54
e left
|
|||
SmokeMachine | japhb: what a great surprise it was to learn you can use Red with MUGS! :) | 17:56 | |
17:57
mtj_ left,
leah2 left,
SmokeMachine left,
jhill left,
robinsmidsrod left,
Altreus left,
eseyman joined,
robins joined,
charsbar_ joined,
polettix joined,
tyilanmenyn is now known as tyil,
Altreus joined,
rba_ joined,
brown121407 joined,
ugexe joined,
SmokeMachine joined
17:58
charsbar_ is now known as charsbar,
moony joined,
timlegge joined,
rba_ is now known as rba,
timeless left,
kawaii left,
a3f left,
epony left,
Grauwolf left,
rypervenche left,
camelia left,
spacekookie left,
caasih left,
peteretep left,
pnu__ left,
esh left,
mithaldu_ left,
zostay left,
daxim joined,
leah2 joined,
a3f_ joined,
pnu__ joined,
mithaldu_ joined,
muffindrake joined,
rypervenche joined,
Grauwolf joined,
zostay joined,
Grauwolf left,
Grauwolf joined,
spacekookie joined,
peteretep joined,
kawaii joined,
tbrowder joined,
jhill joined,
caasih joined,
unclechu joined,
patrickbkr[m] joined,
kiti_nomad[m] joined,
tusooa joined,
ThaEwat joined,
AlexDaniel` joined,
Tirifto[m] joined,
uzl[m] joined,
epony joined,
l-as joined,
pwr22 joined,
Nasrudin joined,
JJAtria[m] joined,
juanfra__ joined
17:59
timeless joined,
esh joined,
xinming left,
kst left,
KotH left,
brass left,
Util_ left,
eaterof left,
Woodi left,
KotH joined,
avar joined,
Woodi joined,
avar left,
avar joined,
mst joined,
hvxgr joined,
kst joined
18:00
Util joined,
jjatria joined,
eater joined,
wingfold joined,
xinming joined,
mojca joined,
brass joined
18:01
lizmat joined
|
|||
SmokeMachine | I have 2 small suggestion about that, if you don’t mind: github.com/Raku-MUGS/MUGS-Core/blo...akumod#L40 you could use `schema(@models).create` and for everything else you can use `red-do :transaction, { … }` for transactions | 18:02 | |
18:02
camelia joined,
stux|RC-only joined
|
|||
SmokeMachine | japhb: ^^ | 18:02 | |
18:03
esh left,
muffindrake left,
AlexDaniel` left,
ThaEwat left,
riasue left,
perry left,
juanfra__ left,
kawaii left,
zostay left,
a3f_ left,
ugexe left,
Altreus left,
robins left,
BuildTheRobots left,
benaiah left,
hobbs left,
nine joined
18:04
riatre joined,
Benett joined,
perryprog joined,
londoed joined,
juanfra__ joined,
kawaii joined,
zostay joined,
a3f_ joined,
ugexe joined,
Altreus joined,
robins joined,
BuildTheRobots joined,
benaiah joined,
hobbs joined,
ssm_ joined,
_________ joined,
muffindrake joined,
BuildTheRobots left,
esh joined
18:05
juanfra__ left,
kawaii left,
zostay left,
a3f_ left,
ugexe left,
Altreus left,
robins left,
benaiah left,
hobbs left,
ssm_ left,
_________ left,
robinsmidsrod joined,
a3f joined,
hobbs joined,
hobbs left,
hobbs joined,
benaiah joined,
_________ joined,
zostay joined,
ugexe joined,
Altreus joined
18:06
ThaEwat joined,
ssm_ joined,
wingfold left,
l-as left,
pwr22 left,
Tirifto[m] left,
tusooa left,
__jrjsmrtn__ left,
Maylay left,
Mithaldu left,
indathrone left,
jcallen left,
summerisle left,
dylanwh left,
mrsolo left,
Grinnz left,
leont left,
spycrab0 left,
bonz060 joined,
Mithaldu joined,
AlexDaniel` joined,
spycrab0 joined,
jcallen_ joined,
summerisle_ joined,
Maylay joined,
mrsolo joined,
Grinnz joined,
leont joined,
indathrone joined,
dylanwh joined,
wingfold joined
18:07
__jrjsmrtn__ joined
18:09
buffet joined
18:10
juanfra__ joined,
e joined
18:11
kawaii joined,
pwr22 joined,
l-as joined
18:12
BuildTheRobots joined,
tusooa joined
18:13
Tirifto[m] joined,
asymptotically joined,
xelxebar joined,
DiffieHellman joined
18:15
vike left,
Ulti left,
tinita left,
dustinm` left,
tomaw left,
Ekho left,
daimon left,
samcv left,
tonyo left
18:16
ilogger2 joined,
telex joined,
k-man joined,
albino joined,
synthmeat joined,
tomaw joined,
mightypork joined,
k-man left,
k-man joined
18:17
shadowpaste joined,
synthmeat left,
synthmeat joined,
vike joined,
HarmtH joined,
mowcat joined,
Sgeo joined,
vrurg joined,
tobs joined,
samcv joined
18:18
nicholatian joined,
dustinm` joined,
quotable6 joined,
bloatable6 joined,
evalable6 joined,
unicodable6 joined,
nativecallable6 joined,
squashable6 joined,
shareable6 joined,
committable6 joined,
greppable6 joined,
coverable6 joined,
Ekho joined,
domidumont joined
18:20
gordonfish joined
18:21
domidumont left,
Ulti joined,
rjbs joined,
japhb joined,
ensamvarg joined,
MasterDuke joined
18:29
ThaEwat left,
AlexDaniel` left
18:44
CIAvash joined
18:49
ThaEwat joined
18:50
wamba joined,
kiti_nomad[m] joined
18:51
unclechu joined
18:52
l-as joined,
tusooa joined
18:55
Tirifto[m] joined,
JJAtria[m] joined
18:56
Nasrudin joined
18:59
BinGOs joined,
pwr22 joined,
uzl[m] joined
19:02
lizmat_ joined
19:03
lizmat left
19:05
AlexDaniel` joined,
MasterDuke left
19:06
Black_Ribbon joined
19:08
lizmat_ is now known as lizmat
19:11
juanfra__ joined
19:12
patrickbkr[m] joined
19:21
mniip joined
|
|||
leont | Getting this error when compiling rakudo on a fresh checkout: «While looking for 'CORE.c.setting.moarvm': no such file or directory» | 19:57 | |
Anyone got a clue what could be going on? | |||
moritz_ | leont: the last time somebody had this error, it was an OOM in an earlier compilation stage | 19:58 | |
leont | moritz_: Thanks, I'm pretty sure that's exactly it (this VPS has 512M ram apparently, not sure how I'm going to get rakudo on it) | 19:59 | |
tyil | I've had success with 1 gb memory raspi over a year ago, but not with VMs that had less | 20:00 | |
moritz_ | leont: compile somewhere else, compile it over? | 20:02 | |
20:03
tejr joined
20:14
MasterDuke joined
|
|||
japhb | SmokeMachine: Glad you liked the "surprise". Thanks for the Red tips! More always welcome. | 20:39 | |
20:43
nebuchadnezzar joined
20:46
perryprog is now known as perry
20:48
japhb left
20:49
marcusr joined
20:51
japhb joined
20:55
epony joined
21:10
Xliff joined
|
|||
Xliff | \o | 21:10 | |
Is there a Raku-approved way to take a void* from a CLib and hand it off to a Buf for management without an implicit copy? | |||
summerisle_ | I think that if you just say 'Buf' in a native sig, nativecall assumes you mean Pointer[Void] as far as calling convention goes. | 21:11 | |
Xliff | summerisle_: Yeah, I've had bad luck with using Buf in NativeCall sigs. Usually results in a SegV. | 21:12 | |
summerisle_ | hmm, i need to re-ident but i was doing a ton of stuff with nativecall and buffers that was going well | ||
Xliff | I have prior experience. Heh | ||
21:13
summerisle_ left,
summerisle joined
|
|||
summerisle | so what are you doing Xliff | 21:14 | |
iirc i was doing some stuff with binary data in buffers and passing them around nativecall | 21:15 | ||
Xliff | libical bindings | 21:16 | |
Particularly libical.github.io/libical/apidocs/...ource.html | |||
leont | My supply { whenever { ... } } is closing down without me asking for it. I'm not sure what I'm doing wrong | 21:36 | |
21:50
guifa2 joined
|
|||
summerisle | Xliff: and nativecast() won't do the trick? | 21:57 | |
i suppose you could always abuse memcpy | 22:05 | ||
Xliff | Already there. :) | 22:06 | |
summerisle: Will have to try nativecast. | |||
Still would like a way to tell Buf what its size is, which we currenly cannot do. | |||
22:07
guifa2 left
22:30
wamba left
|
|||
leont | Also, a CLOSE on another supply is running twice. I can't quite explain that either | 22:34 | |
22:36
dogbert17 joined
22:38
dogbert11 joined
22:40
dogbert17 left
22:49
indathrone left
23:07
dogbert17 joined
23:11
dogbert11 left
23:25
mowcat left
|
|||
leont | Turned out some of my debugging wasn't working, and the problem was somewhere else entirely | 23:40 |