🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel! Set by lizmat on 6 September 2022. |
|||
00:00
reportable6 left
00:01
reportable6 joined
00:10
codesections left,
codesections1 joined
|
|||
tonyo | m: my Array[Int] $x .=new; $x.push(2); dd $x # Rog: | 00:10 | |
camelia | Array[Int $x = Array[Int].new(2) | ||
00:10
Sauvin left,
Sauvin joined
00:12
codesections1 is now known as codesections
|
|||
pelevesque | Has anyone here used an AI to generate some Raku code? | 00:16 | |
00:21
jgaz left
|
|||
MasterDuke | a couple people have mentioned doing it. could search the irc logs to find out exactly who | 00:47 | |
guifa | Array[Int].new(……) | 01:05 | |
01:17
teatime left,
teatime joined
01:33
epony left
01:34
Sauvin left
01:46
epony joined
02:10
teatime left,
teatime joined
|
|||
tonyo | pelevesque: i tried to get gpt to write the deflate algorithm but not much luck with it | 02:32 | |
guifa | Sweet, all formatters are done but for the named timezone ones. So close | 03:02 | |
03:10
evalable6 left,
linkable6 left,
linkable6 joined
03:11
evalable6 joined
03:26
Bocaneri joined,
Bocaneri is now known as Guest1086,
Guest1086 is now known as Sauvin_Too
03:46
Sauvin_Too is now known as Sauvin
04:46
greppable6 left,
reportable6 left,
coverable6 left,
benchable6 left,
committable6 left,
releasable6 left,
sourceable6 left,
unicodable6 left,
statisfiable6 left,
linkable6 left,
tellable6 left,
bisectable6 left,
squashable6 left,
bloatable6 left,
notable6 left,
shareable6 left,
evalable6 left,
nativecallable6 left,
quotable6 left,
releasable6 joined,
bisectable6 joined,
unicodable6 joined,
shareable6 joined
04:47
greppable6 joined,
squashable6 joined,
tellable6 joined,
bloatable6 joined
04:48
sourceable6 joined,
notable6 joined,
benchable6 joined,
statisfiable6 joined,
coverable6 joined,
nativecallable6 joined
04:49
committable6 joined,
evalable6 joined,
linkable6 joined,
quotable6 joined,
reportable6 joined
05:18
holyghost joined,
holyghost left
05:56
Sgeo_ joined
06:00
Sgeo left,
reportable6 left
06:01
reportable6 joined
06:12
holyghost joined
06:14
eseyman_ left
06:17
manu_ joined
06:19
manu_ is now known as eseyman
06:51
jpn joined
07:08
Sgeo_ left
07:12
jpn left
07:19
jpn joined
07:50
sena_kun joined
|
|||
Voldenet | pelevesque: I've tried generating raku code and it notoriously failed in human-like way | 07:51 | |
for instance, I've seen this: `sub x(Iterable $iterable) { for $iterable -> $item { … }}` | 07:52 | ||
also, I've failed to convince chatgpt what does 'lazy' mean, apparently: | 08:20 | ||
> You are correct that @($input) does not work with lazy arrays. Instead, we can use elems($input) to get the number of elements in $input. | |||
08:26
jpn left,
holyghost left
08:29
jpn joined
08:40
jpn left
08:41
jpn joined
09:36
jpn left
|
|||
Voldenet | otoh, openai requested an api for CArray: `my CArray[epoll_event] $events .= new; $events.elems = 10;` :> | 09:40 | |
09:48
jpn joined
10:11
ProperNoun left
10:13
ProperNoun joined
10:44
jpn left
10:47
Censor joined
|
|||
Anton Antonov | @Voldenet Which model of OpenAI are you using? | 11:28 | |
11:47
linkable6 left,
evalable6 left
11:49
linkable6 joined
11:50
evalable6 joined
|
|||
Voldenet | gpt-4 | 11:52 | |
12:00
reportable6 left
12:02
reportable6 joined
|
|||
Anton Antonov | @Voldenet Good to know. I have so far experimented only with GPT-3.5. See here : youtu.be/mI-oWLz5dYY . | 12:47 | |
Voldenet | btw, it's nice what chatgpt is able to create when you ask it to use nativecall | 12:56 | |
13:02
linkable6 left,
evalable6 left
13:03
linkable6 joined,
evalable6 joined
13:06
Censor left
13:29
japhb left
|
|||
Anton Antonov | I am more impressed ChatGPT-3.5 generates Raku grammars that work "out of box" : i.imgur.com/lydYleR.png | 13:45 | |
14:10
teatwo joined
14:12
teatwo left,
teatwo joined
14:13
teatime left
14:25
jpn joined
14:30
jpn left
|
|||
Voldenet | it can generate some grammars, but not always: pastebin.com/mnQV0Ydz | 14:31 | |
you can after some bouncing back and forth get useful result though pastebin.com/wdSYxYSh | 14:45 | ||
Anton Antonov | Right -- I would say some iteration over / with the generated results is expected. | 14:57 | |
15:03
Sgeo joined
15:10
ProperNoun left,
ProperNoun joined
15:20
jpn joined
15:24
jpn left
15:45
teatwo left,
jpn joined,
teatwo joined
15:53
jgaz joined
16:11
jpn left
16:19
jpn joined
16:24
jpn left
|
|||
lizmat | And yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2023/04/10/2023-...-patterns/ | 17:10 | |
17:16
bigdata joined
17:38
euandreh left
17:41
euandreh joined
17:43
jpn joined
|
|||
Rog | guifa: Array[Str].new, that makes sense. Although I'm still banging my head against the type system because my Positional[Str] %paths-to = @nodes Z=> Array[Str].new xx *; yields an error saying it wanted an Associative[Positional[Str]] but got a Hash. I guess the Hash itself doesn't carry type info? | 17:47 | |
Is there any way around that? | |||
17:48
jpn left
|
|||
I might just get rid of the typing for now because I'm not even sure I'll settle on Str here, but I'm still curious | 17:51 | ||
18:00
reportable6 left
18:02
reportable6 joined
|
|||
Nemokosch | % implies associative | 18:33 | |
Oh yeah gotcha xD you got the dimension right but the typing would still need an additional layer | 18:34 | ||
18:34
ecocode_ left,
bigdata left
|
|||
You'd still need to create it as Hash[Positional[Str]] or something... | 18:34 | ||
I think it's fair to say that there is no type deduction whatsoever | 18:35 | ||
18:36
ecocode joined
|
|||
p6steve | m: my Positional[Str] %p = <a b c> Z=> Array[Str].new xx ; | 18:40 | |
Raku eval | Exit code: 1 ===SORRY!=== Error while compiling /home/glot/main.raku Missing required term after infix at /home/glot/main.raku:1 ------> [Str] %p = <a b c> Z=> Array[Str].new xx⏏ ; expecting any of: prefix term | ||
p6steve | m: my Positional[Str] %p = <a b c> Z=> Array[Str].new xx *; | ||
Raku eval | |||
p6steve | works for me, but possibly I’m missing the point | 18:41 | |
Rog | Huh, maybe I’m on too old a version | 18:59 | |
Nemokosch | or too new, even | 19:05 | |
this is 2022. 02 or something | |||
19:31
jpn joined
|
|||
p6steve | i checked this on repl v2023.02 | 19:34 | |
19:36
jpn left
19:46
epony left
19:52
derpydoo joined
19:53
epony joined
20:13
jpn joined
20:19
jpn left
21:01
sena_kun left
21:24
jgaz left
21:44
derpydoo left
22:00
jpn joined
22:05
jpn left
23:05
nativecallable6 left,
statisfiable6 left,
bisectable6 left,
notable6 left,
releasable6 left,
reportable6 left,
evalable6 left,
quotable6 left,
bloatable6 left,
unicodable6 left,
squashable6 left,
benchable6 left,
committable6 left,
coverable6 left,
linkable6 left,
sourceable6 left,
greppable6 left,
tellable6 left,
shareable6 left,
statisfiable6 joined
23:06
committable6 joined,
sourceable6 joined,
quotable6 joined,
squashable6 joined,
coverable6 joined,
nativecallable6 joined,
bisectable6 joined
23:07
benchable6 joined,
unicodable6 joined,
notable6 joined,
linkable6 joined,
shareable6 joined,
releasable6 joined,
reportable6 joined
23:08
bloatable6 joined,
greppable6 joined,
tellable6 joined,
evalable6 joined
|