🦋 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
|
|||
tbrowder | i think i'll put it on rosetta code as is. anyone can modify it as needed. | 00:06 | |
00:09
marcusr left
00:10
marcusr joined
00:35
HoboWithAShotgun joined
00:38
Doc_Holliwood left
00:47
HoboWithAShotgun left
01:13
squashable6 left
01:15
squashable6 joined
01:17
squashable6 left
01:18
squashable6 joined
01:35
marcusr left
01:36
marcusr joined
|
|||
Geth | ¦ problem-solving: vrurg assigned to jnthn Issue FQN method calls may need clarification github.com/perl6/problem-solving/issues/129 | 01:45 | |
01:48
wildtrees left
02:08
stanley_tam joined
02:48
Kaeipi left
02:49
Kaeipi joined
03:06
hythm joined
03:31
xinming left,
xinming joined
04:31
nativecallable6 left,
notable6 left,
benchable6 left,
greppable6 left,
shareable6 left,
statisfiable6 left,
reportable6 left,
coverable6 left,
unicodable6 left,
squashable6 left,
bloatable6 left,
quotable6 left,
releasable6 left,
committable6 left
04:32
squashable6 joined,
bloatable6 joined,
coverable6 joined,
quotable6 joined,
committable6 joined,
releasable6 joined,
reportable6 joined
04:33
nativecallable6 joined,
notable6 joined,
shareable6 joined
04:34
greppable6 joined,
benchable6 joined,
unicodable6 joined,
statisfiable6 joined
04:47
rindolf joined
05:31
rindolf left
05:32
hythm left
05:39
hythm joined
05:57
xinming left
06:01
xinming joined
06:03
robertle left
06:05
Merfont joined,
Kaeipi left
06:07
cpan-raku left
06:08
cpan-raku joined,
cpan-raku left,
cpan-raku joined
06:19
stoned75 left
06:26
maettu joined
07:17
stoned75 joined
07:35
nebuchadnezzar joined
07:39
stoned75 left
08:34
clarjon1 joined
09:00
robertle joined
09:01
sena_kun joined
09:05
sarna joined
09:07
Altai-man_ joined
09:09
chloekek joined
09:10
sena_kun left
10:07
MasterDuke left
|
|||
El_Che | SmokeMachine: It's not clear from the github page of Red supports Mysql/MariaDB. Does it | 10:26 | |
SmokeMachine: It's not clear from the github page of Red supports Mysql/MariaDB. Does it? | |||
SmokeMachine | it doesn’t yet... | ||
El_Che: ^^ | |||
El_Che: but it’s just a question of creating a new driver... | 10:27 | ||
El_Che | SmokeMachine: thank you. (Our admins guys only have Mysql and Oracle clusters running) | ||
SmokeMachine: looking at the SQLlite one. Not sure if I get what it does :) | 10:28 | ||
SmokeMachine: so the driver for sqllite is completely implemented in SQLiteMaster.pm6 and SchemaReader.pm6? | 10:29 | ||
No binary libs linked somewhere? | 10:30 | ||
SmokeMachine | El_Che: no, its implemented here: github.com/FCO/Red/blob/master/lib...SQLite.pm6 | ||
El_Che: those 2 classes are just to given a db, read it and create new models... | 10:31 | ||
El_Che | so this: github.com/perl6/DBIish (and nativecalls) | ||
got it | |||
SmokeMachine | the driver itself is this file I’ve sent you... | ||
El_Che | the driver is kind of the interface with DBIish | 10:32 | |
like DBI/DBM thing in P5 | |||
SmokeMachine | Yes… this and a way to translate the AST specific to that database... | ||
El_Che | you wrote a lot of code, Red is pretty big | 10:33 | |
SmokeMachine++ | |||
SmokeMachine | El_Che: but most of the translation (the SQL commom part) is implemented on CommonSQL... | ||
:) | |||
Yes… it’s getting big… but it’s still far from complete… :( | 10:34 | ||
El_Che | SmokeMachine: only browsing the code (too busy as it's the end of the planning cycle at work), but it's pretty impressive so far | ||
SmokeMachine | El_Che: :) thanks | 10:35 | |
El_Che | in the code I see: | ||
Person.^create-table; | |||
why the ^? | |||
SmokeMachine | It’s a meta-method call... | ||
El_Che | yeah, why not a regular method I mean | ||
SmokeMachine | Red do not add any method on your model... | ||
El_Che | I see | 10:36 | |
nice of you :) | |||
got to go, ad hoc meetign | |||
SmokeMachine | As in a class, you have to call .^attributes to get the attributes, in a model you have to call .^columns to get the columns... | 10:37 | |
and you need to use meta-methods for everything that touches the database... | |||
10:44
stanley_tam left
11:04
thundergnat left
11:09
sena_kun joined
11:10
Altai-man_ left
11:38
stanley_tam joined
12:06
xinming left
12:09
xinming joined
12:35
kensanata joined
12:37
lucasb joined
12:39
stanley_tam left
13:07
Altai-man_ joined
13:10
sena_kun left
13:52
eiro joined
14:17
mid_laptop joined
|
|||
kawaii | Hi, I'm using IO.watch to check for new files being created on a filesystem, but it seems that it doesn't check recursively within any subdirs of the path I've given it, any ideas? :) www.irccloud.com/pastebin/HFBm8Jv7/ | 14:25 | |
it only searches the root of my `%configuration<geotrack-filepath>` | 14:26 | ||
vrurg | kawaii: This limitation partly comes from libuv too: docs.libuv.org/en/v1.x/fs_event.html | 14:37 | |
But MoarVM doesn't set the recursive flag anyway. Perhaps, it should be optional. | 14:42 | ||
kawaii | vrurg: any hacky workaround to maybe detect all of the directories contained within a path and set up an array of event listeners? | 14:43 | |
:) | |||
vrurg | kawaii: same could be achieved in Raku too. BTW, I might have seen something like this in a module. Could a deja vu though. | 14:46 | |
15:01
delimited joined
15:08
sena_kun joined
15:10
Altai-man_ left
15:11
xinming left
15:13
xinming joined
|
|||
jnthn | vrurg: I think there's maybe a module; Cro certainly has code to do it also that could be borrowed | 15:47 | |
uh, kawaii ^^ :) | 15:48 | ||
It was hard enough to get right that I sometimes wonder if we shouldn't provide for it in core... | |||
15:48
delimited left
|
|||
vrurg | jnthn: why not provide optional support for UV_FS_EVENT_RECURSIVE in moar? IO::Notifications could then make use of it and bail out on unsupported yet platforms. | 15:51 | |
vrurg is afk | 15:52 | ||
kawaii | jnthn: if you could point me in the rigth direction that would be great :) | 15:53 | |
I have a directory which then has a dozen or so subdirs, and I need to monitor each one for new files | |||
jnthn | There's even github.com/croservices/cro/issues/48 for it | 15:55 | |
github.com/croservices/cro/blob/ma...s.pm6#L159 is the code you're after | 15:56 | ||
kawaii | jnthn: that seems to accept a hash of dirs, can we not do it dynamically? | 15:58 | |
jnthn | It takes an IO::Path? | 15:59 | |
`sub watch-recursive(IO::Path $path) {` | 16:00 | ||
kawaii | oh right I read it wrong, yes I see now | ||
16:03
delimited joined
|
|||
kawaii | jnthn: seems like I can't just hot-swap it in my code `whenever %configuration<geotrack-filepath>.watch-recursive -> $event` | 16:09 | |
`%configuration<geotrack-filepath>` is a Str, a path | |||
` No such method 'watch-recursive' for invocant of type 'Str'` | 16:10 | ||
jnthn | If you just copied it, then it's a sub, so you'd need to use .&watch-recursive | ||
But you'll also need to coerce to an IO path too (.IO) | 16:11 | ||
You'd have to do that to call .watch though... | |||
kawaii | I just added a `use Cro::Tools::Services;` to my code because lazy | ||
hey I got it working! | 16:14 | ||
thanks jnthn! | |||
jnthn | :) | 16:16 | |
16:26
jmerelo joined
16:27
kensanata left
16:32
xinming left
16:34
mid_laptop left,
xinming joined
16:45
delimited left
17:04
delimited joined
17:07
Altai-man_ joined
17:10
delimited left,
sena_kun left
17:12
robertle left
17:42
veesh left,
veesh joined
17:43
abraxxa left,
abraxxa joined
17:44
abraxxa left
17:45
abraxxa joined
17:49
xinming left
17:50
xinming joined
17:52
MasterDuke joined
18:02
delimited joined
18:05
abraxxa left
18:22
robertle joined
18:40
chloekek_ joined
19:09
sena_kun joined
19:10
Altai-man_ left
19:24
hythm_ joined
19:30
ufobat_ left
19:35
hythm_ left
19:37
hythm_ joined
19:41
stoned75 joined
19:44
wildtrees joined,
wildtrees left
19:45
stoned75_ joined,
wildtrees joined
19:48
wamba joined
19:53
jmerelo left,
xinming left
19:55
xinming joined
20:12
hythm_ left
20:17
delimited left,
delimited joined
20:21
maggotbrain joined
20:33
delimited left
20:34
delimited joined
20:35
sena_kun left
20:36
hythm left
20:44
delimited left,
delimited joined,
patrickb joined
21:19
MasterDuke left
21:25
Merfont left
21:26
Merfont joined
21:35
robertle left
21:41
Kaeipi joined
21:42
Merfont left
21:49
Kaeipi left
22:05
Kaiepi joined
22:07
chloekek_ left
22:26
Xliff joined
|
|||
Xliff | o/ | 22:26 | |
What's the best way to define a conditional constant? | |||
m: my $a; BEGIN { $a = 1; }; constant B := $a; B.say | 22:27 | ||
camelia | 1 | ||
Xliff | m: my $a; BEGIN { $a = 2; }; constant B := $a; B.say | ||
camelia | 2 | ||
Xliff | my $bits := BEGIN $*KERNEL.bits == 32 ?? uint32 !! uint64; our constant Pid is export := $bits; Pid.say | 22:28 | |
evalable6 | (Any) | ||
Xliff | my $bits := do BEGIN { $*KERNEL.bits == 32 ?? uint32 !! uint64 }; our constant Pid is export := $bits; Pid.say | ||
evalable6 | (Any) | ||
Xliff | my $bits; BEGIN { $bits = $*KERNEL.bits == 32 ?? uint32 !! uint64 }; our constant Pid is export := $bits; Pid.say | 22:29 | |
evalable6 | (uint64) | ||
Xliff | my $bits; BEGIN { $bits := $*KERNEL.bits == 32 ?? uint32 !! uint64 }; our constant Pid is export := $bits; Pid.say | 22:30 | |
evalable6 | (Any) | ||
Xliff | Wow! Can't bind? Huh | ||
23:05
patrickb left
23:07
cpan-raku left
23:08
cpan-raku joined,
cpan-raku left,
cpan-raku joined
|
|||
elcaro | how do I query which version of a module I have installed | 23:29 | |
eqv to perl5's $Module::Name::VERSION |