00:02
ky1 left
00:03
ky1 joined
00:12
ky1 left
00:13
ky1 joined
00:22
ky1 left
00:23
ky1 joined
00:33
ky1 left,
ky1 joined
00:42
Sgeo left
00:43
ky1 left,
ky1 joined
|
|||
SmokeMachine | usercontent.irccloud-cdn.com/file/.../image.png | 00:52 | |
00:52
ky1 left
|
|||
SmokeMachine | github.com/FCO/ASTQuery | 00:52 | |
00:53
ky1 joined
00:54
Manifest0 left
01:02
ky1 left
01:03
ky1 joined
01:12
ky1 left
01:13
ky1 joined
01:22
ky1 left
01:23
ky1 joined
01:32
hulk joined,
ky1 left,
kylese left
01:33
ky1 joined
01:42
ky1 left
01:43
ky1 joined
01:52
ky1 left
01:53
ky1 joined
02:02
ky1 left
02:03
ky1 joined
02:12
ky1 left
02:13
ky1 joined
02:15
hulk left,
kylese joined
02:32
ky1 left
02:33
ky1 joined
02:42
ky1 left
02:43
ky1 joined
02:52
ky1 left
02:53
ky1 joined
03:03
ky1 left,
ky1 joined
03:12
ky1 left
03:13
ky1 joined
03:22
ky1 left
03:23
ky1 joined
03:27
Sgeo joined
03:32
ky1 left
03:33
ky1 joined
03:42
ky1 left
03:43
ky1 joined
03:52
ky1 left
03:53
ky1 joined
04:03
ky1 left,
ky1 joined
04:12
ky1 left
04:13
ky1 joined
04:18
Aedil joined
04:22
ky1 left
04:23
ky1 joined
04:32
ky1 left
04:33
ky1 joined
04:43
ky1 left,
ky1 joined
04:44
simcop2387 left,
perlbot left
04:45
perlbot joined
04:46
simcop2387 joined
04:53
ky1 left,
ky1 joined
05:02
ky1 left
05:03
ky1 joined
05:12
ky1 left
05:13
ky1 joined
05:22
ky1 left
05:23
ky1 joined
05:30
Sgeo left
05:32
ky1 left
05:33
ky1 joined
05:43
ky1 left,
ky1 joined
06:03
ky1 left,
ky1 joined
06:13
ky1 left,
ky1 joined
06:22
ky1 left
06:23
ky1 joined
06:33
ky1 left,
ky1 joined
06:43
ky1 left,
ky1 joined
06:52
ky1 left
06:53
ky1 joined
07:02
ky1 left
07:03
ky1 joined
07:12
ky1 left
07:13
ky1 joined
07:16
sorenson_ joined
07:17
sorenson left,
sorenson_ is now known as sorenson
07:23
ky1 left,
ky1 joined
07:32
ky1 left
07:33
ky1 joined
07:37
Manifest0 joined
07:43
ky1 left,
ky1 joined
07:53
ky1 left,
ky1 joined
08:12
ky1 left
08:13
ky1 joined
08:22
ky1 left
08:23
ky1 joined
08:32
ky1 left
08:33
ky1 joined
08:42
ky1 left
08:43
ky1 joined
08:52
ky1 left
08:53
ky1 joined
09:12
ky1 left
09:13
ky1 joined
09:16
sena_kun joined
09:23
ky1 left,
ky1 joined
09:30
sena_kun left
09:33
ky1 left,
ky1 joined
09:52
ky1 left
09:53
ky1 joined
10:02
ky1 left
10:03
ky1 joined
10:13
ky1 left,
ky1 joined
10:22
ky1 left
10:23
ky1 joined
10:32
ky1 left
10:33
ky1 joined
10:42
Aedil left
10:43
ky1 left,
ky1 joined
10:49
Aedil joined
10:53
ky1 left,
ky1 joined
11:02
ky1 left
11:03
ky1 joined
11:23
ky1 left,
ky1 joined
11:32
ky1 left
11:33
ky1 joined
11:42
ky1 left
11:43
ky1 joined
|
|||
librasteve | o/ is there an idiomatic way to declare alias(es) with has? | 11:44 | |
SmokeMachine | how do you want to use that alias? on constructor? If that's the case, maybe something like this? | 11:52 | |
11:52
ky1 left
|
|||
SmokeMachine | m: class C { has $.a; method TWEAK(:$b, |) { $!a = $b } }; say C.new: :42b | 11:52 | |
camelia | C.new(a => 42) | ||
11:53
ky1 joined
|
|||
SmokeMachine | librasteve: ☝️ | 11:54 | |
librasteve | thanks for the fb - not really ... I had in mind something like has $.s($.server); | 11:55 | |
on the has declaration | |||
lizmat | librasteve this recently came up in one of leont's issues | 11:56 | |
librasteve | I know (from the docs), I can go | 11:57 | |
class EncodedBuffer { has $.enc; has $.data; submethod BUILD(:encoding(:$!enc), :$!data) { } } | |||
docs.raku.org/language/objects#Attributes | 11:58 | ||
I can go with that for now | |||
actually just gonna tie it close to where I need the abbreviation | 12:00 | ||
my $s := $.server; my $proc = Proc::Async.new: :w, qqw|ssh -p {$s.port} -tt -i {$s.key-path} {$s.login}|; | 12:01 | ||
(spose I could use a topicalizer) | |||
12:03
ky1 left,
ky1 joined
12:12
ky1 left
12:13
ky1 joined
|
|||
lizmat | librasteve I was thinking of syntax such as: has $.foo is built(:as<bar>) | 12:15 | |
librasteve | okaaay | 12:18 | |
sub alias-named(:color(:$colour), :type(:class($kind))) {} | 12:19 | ||
lizmat | has $.foo is built(:as<bar baz>) perhaps? | ||
librasteve | what about something more like Capture syntax? | ||
has $.foo is built is aliased(:bar(:baz($))); | 12:22 | ||
12:22
ky1 left
12:23
ky1 joined
|
|||
anyway I don't really mind an I know that syntax is hard ... so leave it to you | 12:24 | ||
(ie I trust your judgement) | |||
12:26
euandreh joined
12:29
euandreh left
12:30
euandreh joined
12:32
ky1 left
12:33
ky1 joined
12:42
ky1 left
12:43
ky1 joined
12:52
ky1 left
12:53
ky1 joined
13:02
ky1 left
13:03
ky1 joined
13:12
ky1 left
13:13
ky1 joined
13:15
euandreh left
13:18
euandreh joined
13:21
ky1 left
13:23
ky1 joined
13:32
ky1 left
13:33
ky1 joined
13:42
ky1 left
13:43
ky1 joined
13:53
ky1 left,
ky1 joined
13:57
knarkhov joined
|
|||
knarkhov | Hi, friends! I'm struggling with NativeCall. On C-side I have a function with FILE input arg: int process(FILE *filehandle) {...}. On Raku side I opened a filehandle via IO::Handle and now it's a problem to pass to native C-function. Any help is very appreciated. | 14:01 | |
14:02
Sgeo joined
14:03
ky1 left,
ky1 joined
|
|||
knarkhov | All good if I use a wrapper on C-side: int wrap_process(char *filename) { ... fp = fopen(fname, "r"); process(fp); ... }, but I need that stuff on Raku-side cause of external C-library | 14:04 | |
antononcube | @kharkov Do you have a gist (or pastebin) with that code? | 14:07 | |
14:08
euandreh left
|
|||
@kharkov I find / found the NativeCall Raku packages by Itsuki Toyota very instructive. For example, see: github.com/titsuki/raku-Algorithm-KdTree | 14:09 | ||
... aka @titsuki ... | 14:10 | ||
14:12
ky1 left
14:13
ky1 joined
|
|||
knarkhov | in my case, as I can imagine, FILE is actually a struct in C, so I have to define it as a CStruct class, map IO::Handle to it somehow and then get a pointer via nativecast. | 14:14 | |
antononcube | See the "Algorithm::KdTree" linked above -- it does C-structs and corresponding accessor functions in Raku. | 14:16 | |
knarkhov | here's the module: gitlab.com/pheix/raku-node-ethereu...ZG.rakumod | 14:19 | |
antononcube | @kharkhov I can take a closer look after 4-5 hours... | 14:22 | |
14:22
ky1 left
|
|||
knarkhov | it will be great! Thank you! I will post and update if I will get it working. | 14:23 | |
14:23
ky1 joined
|
|||
ugexe | you could pass the file descriptor | 14:31 | |
i dunno if that is ideal or not | 14:32 | ||
my $handle = "foo/bar/baz".IO.open; $handle.native-descriptor | |||
knarkhov | @ugexe, that was what I have tried in the beginning and got segfault. The problem is that C-func expects *FILE as pointer, but .native-descriptor gives int, so I have to "pack" to CArray and get a Pointer from it (similar to & in C): my $fhptr = nativecast(Pointer, CArray[int64].new($fh.native-descriptor)); | 14:42 | |
but that gives segfault as well(((( | |||
14:42
ky1 left
14:43
ky1 joined
14:52
ky1 left
14:53
ky1 joined
15:03
ky1 left,
ky1 joined
|
|||
antononcube | @kharkhov Sorry for advicing methodology instead of giving concrete code... But if you have IntelliJ's CLion you can use it together with the plugin comma-2.0. CLion has linter(s) built-in and can give you hints where the C-code might fail. | 15:04 | |
The C-code in your GitLab repository is simple, but still, CLion-with-Comma might be useful. | 15:05 | ||
15:12
ky1 left
15:13
ky1 joined
|
|||
knarkhov | honestly, I have just noticed - my $fhptr = nativecast(Pointer, CArray[int64].new($fh.native-descriptor)); works 1/10 times - I got my test passed at some moment: gitlab.com/pheix/raku-node-ethereu...189938968. So the approach with .native-descripto works, but bug is still there, I'm investigating... Thank you, I will ping you back on my new findings. | 15:20 | |
15:23
ky1 left,
ky1 joined
15:32
ky1 left
15:33
ky1 joined
|
|||
librasteve | hi folks - I'm off to the London Perl Raku Workshop tomorrow and the number of raku presentations is much lower than the number of perl ones ... act.yapc.eu/lpw2024/schedule?day=2024-10-26 | 15:35 | |
Please let me know if there is anything I should consider conveying to the wider perl / raku community ... I guess I will try to major on 6.e progress wrt to RakuAST is anyone asks how Raku is progressing... | 15:37 | ||
15:38
stanrifkin joined
15:42
ky1 left
15:43
ky1 joined
15:52
ky1 left
15:53
ky1 joined
|
|||
knarkhov | @ugexe, @antononcube, I got it working, 100x load/free are passed well: gitlab.com/pheix/raku-node-ethereu...8068#L458. The changes I've done: just opened file in bin mode on Raku side, slurp all its content to CArray, did CArray to Pointer nativecast and voala - it worked! Here's the diff: gitlab.com/pheix/raku-node-ethereu...18a8_31_30 | 15:54 | |
16:02
ky1 left
16:03
ky1 joined
16:13
ky1 left,
ky1 joined
|
|||
librasteve | antononcube: looks like there will be a BOF session on data science, I would like to mention your LLM and DataSet work to the attendees - do you have a good "index" page fof me to share? | 16:20 | |
16:23
ky1 left,
ky1 joined
|
|||
ab5tract | knarkhov: I think Xliff reported experiencing difficulties with arrays allocated in Raku which went away when using C-allocated arrays | 16:23 | |
16:32
ky1 left
16:33
ky1 joined
|
|||
antononcube | @librasteve Let me think -- I should have something like that. (But lately, I have been more active making Raku-related movies, not som much posts.) | 16:42 | |
@librasteve When do you need this slide/page? Today or, say, by the end of the week? | |||
librasteve | cool - the session is tomorrow (Sat) UK time | ||
16:43
ky1 left
|
|||
don't make anything new (unless you want) ... even a "search google antononcube raku llm" would be cool | 16:43 | ||
antononcube | Agh, ok. I will make a initial version today. It is probably going to be based on some answers I gave on Reddit/r/rakulang. | ||
16:44
ky1 joined
|
|||
Well. Raku RAG is pretty new and important. Same with Sparse Matrices (with named rows and columns.) | 16:44 | ||
(This week, I have been working on a presentation for latter, BTW.) | 16:45 | ||
librasteve | thanks! | 16:46 | |
16:52
ky1 left
16:53
ky1 joined
17:00
knarkhov left
17:02
ky1 left
17:03
ky1 joined
17:13
ky1 left,
ky1 joined
17:14
Aedil left
17:23
ky1 left,
ky1 joined
17:42
ky1 left
17:43
ky1 joined
17:52
ky1 left
17:53
ky1 joined
18:02
ky1 left
18:03
ky1 joined
18:07
sena_kun joined
18:12
ky1 left
18:13
ky1 joined
18:23
ky1 left,
ky1 joined
18:32
ky1 left
18:33
ky1 joined
18:43
ky1 left,
ky1 joined
18:53
ky1 left,
ky1 joined
19:02
ky1 left
19:03
ky1 joined
19:13
ky1 left,
ky1 joined
19:22
ky1 left
19:23
ky1 joined
19:25
knarkhov joined
19:33
ky1 left,
ky1 joined
19:43
ky1 left,
ky1 joined
19:51
knarkhov left
19:52
ky1 left
19:53
ky1 joined
20:02
ky1 left
20:03
ky1 joined
20:12
ky1 left
20:13
ky1 joined
20:22
ky1 left
20:23
ky1 joined
20:32
ky1 left
20:33
ky1 joined
20:42
ky1 left
20:43
ky1 joined
20:52
ky1 left
20:53
ky1 joined
21:02
ky1 left
21:03
ky1 joined
21:12
ky1 left
21:13
ky1 joined
21:23
ky1 left,
ky1 joined
21:32
ky1 left
21:33
ky1 joined
21:42
ky1 left
21:43
ky1 joined
21:52
ky1 left
21:53
ky1 joined
22:02
ky1 left
22:03
ky1 joined
22:13
ky1 left,
ky1 joined
22:32
ky1 left
22:33
ky1 joined
|
|||
SmokeMachine | I had a talk scheduled for tomorrow, but I won’t be able to do it… sorry, 1 less Raku talk… (but that would not be a good one anyway…) | 22:38 | |
22:42
ky1 left
22:43
ky1 joined
22:52
ky1 left
22:53
ky1 joined
23:02
ky1 left
23:03
ky1 joined
23:13
ky1 left,
ky1 joined
23:23
ky1 left,
ky1 joined
23:26
sena_kun left
23:42
ky1 left
23:43
ky1 joined
23:52
ky1 left
23:53
ky1 joined
|