00:25 MasterDuke joined 00:26 librasteve_ left 00:57 human-blip left 01:36 MasterDuke left 01:59 kylese left 02:02 kylese joined 02:15 kylese left, kylese joined 02:40 annamalai left 02:59 ShimmerFairy left 03:00 ShimmerFairy joined 03:30 dustinm` left 03:43 dustinm` joined 03:58 ntv joined, apogee_ntv left 03:59 ntv is now known as apogee_ntv 04:19 annamalai joined 04:27 Aedil joined
disbot2 <melezhik.> timo: yeah . I don’t know , maybe I had to clarify , sorry . One of the reason I post my LLM related stuff here is it that Sparrow is written on Raku and it uses Raku regexps as a part of DSL and I find it quite interesting that code generated by some LLMs for this regexp rules is quite accurate, but I general I am agree with you that none Raku relate led stuff should be somewhere else . I don’t mind post this in other place , it’s just I 04:47
don’t have any other audience rather then here ) sorry
<melezhik.> From practical point of view anyone could your code from this snippets and adapt it and run it for their infrastructure compliance checks using sparrow, again I don’t post all the LLM stuff here but the one I find of good quality and maybe the one showing that some LLM are quite good in generating Raku regexps 04:50
<melezhik.> Another thought … u guess AI in general and reasonable and wise way to leverage it could be a really a good a vehicle to popularize Raku among others none Raku folks . And please don’t get me wrong I am not a supporter of vibe coding and LLM for the sake of it. But imho this a future we need to embrace or better to say to look forward ))) 04:54
04:58 dg left 05:04 dg joined
Voldenet topnep: cool module, but some things may not work reliably - `get-terminal-width` is attempting to be defensive and have timeouts for `tput cols` in a way that will spawn a process and forget about it 06:17
consider simpler `qx/tput cols/.Int` 06:18
Yes, it will hang if tput cols hangs for some reason
but spawning promises and then killing the process when it's not started will definitely not work 06:19
it might if `tput cols` hangs, but if process doesn't start because of high load in 2 seconds, it eventually might start
and since it's for ffmpeg, high load is not unlikely 06:20
I'm also not sure how I feel about FFmpegFlags and reimplementing ffmpeg command line parsing, it feels icky 06:21
well, maybe not icky, but brittle, if there's edge case (and there are), iirc old ffmpeg used to accept `-crf:20` for example 06:31
you can't possibly make it handle all ffmpeg versions reliably, because there's been changes 06:34
if you need to add some flag to every stream, consider more lightweight aproach, like asking users to add it 06:38
06:55 kylese left 06:56 kylese joined 07:35 kylese left
disbot2 <librasteve> fwiw I think there is a latent question “will my LLM be as expert and as efficient in raku as it is in <python rust typescript PHP go>.any” so I encourage the sharing of comparison evidence that they do a good job and of prompts to foster that 07:35
07:36 kylese joined
disbot2 <librasteve> there is (at least for me) the worry that any niche language will suffer from lack of training set “out there” eg the number of SO answers, or general GH repos is relatively low 07:38
Voldenet bigger threat is GH repos that are llm-made 07:39
disbot2 <librasteve> so if we have good results let’s post them … but in a side channel so as not to flood the #raku main channel 07:40
<librasteve> yeah an infinite regression to slop beckons
07:41 kylese left 07:42 kylese joined
Voldenet other than that, I don't, in general, believe in llm-generated code 07:42
it's often bug-ridden and simply stupid – the other day I generated a bunch of scripts that literally did `my %opts = :thing(Nil); %opts<thing>:delete;` 07:43
disbot2 <librasteve> oddly (?) I find I am a late adopter of tooling … happy to let others do the trial and error part (odd? because I am an early adopter of Raku) 07:44
Voldenet I'm hoping that AI in general (not just llm) will keep improving so at some point the code not only works, but doesn't feel painful to look at 07:45
s/works/work/
disbot2 <librasteve> I was late to syntax highlighting, IDEs and now LLMs … but now I am giving it a fair shot (Claude) and it is undeniably a time saver for me (keep a close eye, TDD, and NOT in my important code) 07:48
Voldenet the worst pain is probably sycophantic behavior – mistakes in prompt integrate falsehoods into code :( 07:49
disbot2 <librasteve> amen
Voldenet either way, llms are good at generating tests, fortunately
disbot2 <melezhik.> Ok. The fact is I am surprised how good for example deep seek in generating good quality code for sparrow framework which is 1) written on Raku 2) has Raku regexps based API 07:50
Voldenet so you can test their code with their own tests and see bugs :P
disbot2 <melezhik.> It’s that good that could be used by devops / sre / mfrs people straight way with little adaption to their custom needs 07:51
<librasteve> yeah … test generation solves a pain and often LLM test covers something I have not thought of (wood for trees)
Voldenet I've seen the validators for configs generated by deepseek, they seemed fairly complete
disbot2 <melezhik.> And if it gets some traction will result in promoting Raku in general
Voldenet (the openssh iirc) 07:52
disbot2 <melezhik.> Think about Ansible - Python , sort of example
<melezhik.> mfrs -> infra 07:53
Voldenet imo python is go-to language for people who don't do programming, kinda like improved basic 07:54
disbot2 <melezhik.> Also posting anything Raku related ( maybe not directly ) in channel rather then #raku honestly does not make a sense for me. Too few people we even have here in this channel so to fracture stuff into other channels
Voldenet I don't think raku can compete with python on that field 07:55
disbot2 <melezhik.> The example of Ansible Python is a it or people first t knew Ansible and then Python through that
<melezhik.> My belief is that none Raku ( ops, devops ) people will starry using Sparrow ( with almost minimal Raku impact at first ) and then will discover Raku through the tool ( which has SDK for many languages including of course Raku ) 07:58
<melezhik.> It can . I don’t see why. This exactly what’s Sparrow framework for, specially targeted for none dev people 07:59
<melezhik.> I don’t see why -> I don’t see why it’s not 08:00
Voldenet eh, most of ansible code is playbooks, you can do quite a lot without python
disbot2 <librasteve> I think that DSLs (like Sparrow) are a secret weapon for LLM effectiveness
<melezhik.> Exactly 08:01
<librasteve> since they are human readable, domain centric and constrain the training set and the LLM output 08:02
<melezhik.> This was my eye opener , cause it’s so much easier to generate DSL via LLM
Voldenet DSLs are also quite limited (not for general programming) which is also a great thing
disbot2 <melezhik.> Yep
<melezhik.> And sparrow task check dsl by itself is very simple 08:03
<librasteve> @melezhik. let’s get an example sparrow on raku.org front page … can you take a look at the other examples and note the typical length and then provide me your best proposal (code and words) via a gist? 08:05
<librasteve> a PR github.com/Raku/raku.org here would be even better 08:07
<melezhik.> @librasteve good idea , will take a look , I think I can adjust some of my LLM generated examples, and btw you can try to generate something by the prompt example I use 08:13
<melezhik.> deep seek is the best in that way
<melezhik.> Of course the final code still need to review but it’s pretty accurate 08:14
<librasteve> thanks! &afk for a bit
<melezhik.> Sure 08:16
<melezhik.> For anyone who cares - this is a prompt I use gist.github.com/melezhik/d57132c9d...7c04c98399 08:17
<melezhik.> You can feed it into deep seek expert level , you can alter prompt to generate generator: and code: blocks on Raku instead of Python , it should work 08:18
<melezhik.> gist.github.com/melezhik/d57132c9d...e1-txt-L54 08:19
<melezhik.> line 54
<melezhik.> You can also just replace !python by !raku in the prompt 08:20
<melezhik.> I use deep seek free chat bot in browser
<melezhik.> It’s impressive
<melezhik.> Line gist.github.com/melezhik/d57132c9d...e1-txt-L51 and gist.github.com/melezhik/d57132c9d...e1-txt-L56 need also to be changed to Raku - it’s easy to guess how 08:22
<melezhik.> In gist.github.com/melezhik/d57132c9d...le1-txt-L7 replace sshd by any word / tool you like and check it out ! )) 08:23
<melezhik.> It’s fun 😊
<melezhik.> Here is Raku adapted version of Sparrow prompt for deep seek gist.github.com/melezhik/79fa65373...9b8fa7f570 08:37
08:42 apogee_ntv left 08:43 apogee_ntv joined 08:48 Sgeo left 09:09 itaipu left 11:43 shareable6 left 11:44 shareable6 joined
Voldenet DSLs are also quite limited (not for general programming) which is also a great thing 13:28
oops
wrong window
13:58 megeve_ joined 14:04 librasteve_ joined
SmokeMachine librasteve_: please, see if this is a bit more inline with what you were thinking: usercontent.irccloud-cdn.com/file/...4%402x.png 14:13
disbot2 <antononcube> @lizmat Using "Memoize" in "Math::NumberTheory" is in my TODO list. 14:16
SmokeMachine usercontent.irccloud-cdn.com/file/....25.00.gif 14:25
librasteve_, apogee_ntv: ☝️ 14:26
disbot2 <melezhik.> @librasteve Voldenet: I have updated Raku prompt - gist.github.com/melezhik/6f25775aa...93e7ca824b 14:42
SmokeMachine it seems it also "fixes" the infinite loop "problem": usercontent.irccloud-cdn.com/file/....43.43.gif 14:44
apogee_ntv Oh that looks awesome 14:50
SmokeMachine I still have to redraw the borders when there is no error... :( 14:51
apogee_ntv Yeah, you probably want matchstate in store and then sub the parent to matchstate? 14:52
SmokeMachine and the scroll is not working well either... but I think I'll stop for pause it for now... 14:54
I still need to find out what I'm doing wrong... usercontent.irccloud-cdn.com/file/....55.34.gif 14:56
apogee_ntv Are you on newest Selkie? 15:08
Hm that is weird, I think the problem is that one 'TOP' card is still in frame all the way down, it probably wants scroll on that element not on the Trace element 15:09
And then make Trace vbox with 1 line for match/fail line at the bottom
Its the children of 'TOP' that you want to scroll 15:10
I still need to fix actually scrolling widgets, right now it just works out which ones fit and renders them. 15:11
So since you have that top level widget that overflows the Trace, it needs its own scrollbar.
If you make all of the match boxes scrollviews that should work. 15:12
The ones that arent scrollable wont render a scrollbar. 15:14
SmokeMachine let me try that
it's looking a bit better, but each box has a scroll now... 15:18
apogee_ntv Hm, scroll should only appear if the content is too big for the box.
SmokeMachine usercontent.irccloud-cdn.com/file/...5%402x.png
apogee_ntv Yeah, this is basically behavior I have not implemented yet, like viewport logic for a widget bigger than screen 15:19
SmokeMachine and only when I point to specific parts it scrolls... usercontent.irccloud-cdn.com/file/....19.31.gif 15:20
I'll be back to this in a few hours... 15:21
apogee_ntv Yeah I need to implement some kind of trait for viewportable widgets.
So it will render only the part that should show when scrolling 15:22
I havent needed this behavior yet but it's on my todos
Basically its simple except for images/videos which make it hard :D
Voldenet SmokeMachine: wow that grammar editor is really amazing 15:24
SmokeMachine Voldenet: thanks 15:36
It’s still very badly written… but if anyone would like to improve that: github.com/FCO/Selkie-UI/blob/main...round.raku 15:42
15:45 topnep left 15:46 johnjay left 15:51 topnep joined 16:01 topnep left 16:04 topnep joined 16:27 itaipu joined 16:29 abraxxa joined 16:32 maylay left 16:38 maylay joined 17:16 topnep_ joined 17:19 topnep left 18:11 [Coke] joined
[Coke] .seen codesections 18:12
tellable6 [Coke], I saw codesections 2023-11-11T17:01:26Z in #raku: <codesections> The source for design.raku.org is at github.com/Raku/old-design-docs, if we really need it
[Coke] .seen ctilmes
tellable6 [Coke], I saw ctilmes 2021-08-22T15:14:00Z in #raku: <ctilmes> raku 2021.08 is on the official alpine distribution for 'edge', install with 'apk add rakudo'
[Coke] BitEnum & _ both have test failures that are impacting "essential" downstream modules.
18:15 bisectable6 left, unicodable6 left, quotable6 left, bloatable6__ left, benchable6 left, releasable6 left, coverable6 left, committable6 left, nativecallable6 left, tellable6 left, huggable6 left, shareable6 left, linkable6 left, notable6 left, sourceable6 left, greppable6 left, evalable6 left 18:18 linkable6 joined, bloatable6 joined, notable6 joined, greppable6 joined, sourceable6 joined, bisectable6 joined 18:19 nativecallable6 joined, evalable6 joined, shareable6 joined, benchable6 joined, committable6 joined, releasable6 joined, quotable6 joined, huggable6 joined 18:20 unicodable6 joined, coverable6 joined, tellable6 joined 18:40 Sgeo joined
disbot2 <librasteve> SmokeMachine: just amazing !! 18:56
19:20 topnep_ left 19:21 topnep joined 19:31 abraxxa left
SmokeMachine I asked open code to convert that to web and it created this: usercontent.irccloud-cdn.com/file/....56.13.gif 19:58
20:17 Aedil left
SmokeMachine usercontent.irccloud-cdn.com/file/....11.29.gif 21:13
21:25 topnep left 21:26 topnep joined
disbot2 <librasteve> even more awesomer 21:35
librasteve_ (code hilites too) 21:38
[Coke]: howdy! ^^ I made you a wordcloud plugin (I recall you mentioned this a week or so ago) - hope you like it ;-) github.com/librasteve/Air-Plugin-Wordcloud www.irccloud.com/pastebin/6rTIlqCv 21:41
SmokeMachine 187.77.178.93:3001 22:30
I should get a domain… 22:34
Is that working for you? 23:15
23:30 topnep left 23:31 topnep joined