🦋 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.
01:03 sftp left 01:10 sftp joined 01:29 hulk joined 01:30 kylese left 02:02 Aedil joined 02:05 deoac left 02:15 hulk left, kylese joined 02:18 arkiuat left 02:31 arkiuat joined 02:35 arkiuat left 03:04 arkiuat joined 03:05 xinming left 03:06 xinming joined, vasko4 left 03:09 vasko4 joined 03:40 arkiuat left 03:45 kylese left 03:48 kylese joined 03:53 arkiuat joined 03:57 arkiuat left 04:15 arkiuat joined 04:20 arkiuat left 04:32 arkiuat joined 04:36 arkiuat left 05:01 arkiuat joined 05:06 arkiuat left 05:32 arkiuat joined 05:37 arkiuat left 06:02 arkiuat joined 06:06 arkiuat left 06:33 Sgeo left 06:35 arkiuat joined 06:40 arkiuat left 07:03 arkiuat joined 07:07 arkiuat left 07:09 lichtkind joined 07:29 arkiuat joined 07:34 arkiuat left 07:55 dakkar joined 08:00 guifa joined 08:01 arkiuat joined 08:08 arkiuat left, LainIwakura joined 08:12 librasteve_ joined
librasteve_ weekly: rakujourney.wordpress.com/2025/07/...k-todoing/ 08:12
notable6 librasteve_, Noted! (weekly)
tellable6 2025-07-26T10:26:58Z #raku <melezhik> librasteve_: you may use any example you think is reasonable to use for a new Raku web site from sparrowhub.io/examples
2025-07-26T10:27:34Z #raku <melezhik> librasteve_: if you need anything fancier - please let me know - I will see what I can do
08:23 LainIwakura left 08:33 avar left
Voldenet librasteve_: cool post, but one thing about the approach bothers me - "hx-post" address written manually instead of referencing a method somehow 08:34
so even if you mix HxTodo into model, the address isn't exactly loosely coupled
and the form itself is tightly coupled to the model as well
08:36 arkiuat joined
Voldenet not that I think this code can be any more generic 08:40
08:41 arkiuat left 09:05 arkiuat joined 09:09 arkiuat left
guifa so I was looking at how WKWebView wowrks, it looks like I won't ever be able to enable direct access to DOM objects because SeCuRiTy 09:35
best thing I can think of is modify the prototypes and give every DOM a UUID, then pass that over to Raku as psuedo element that contains the ID and can translate method/attribute calls on it 09:36
09:39 arkiuat joined 09:43 arkiuat left 09:45 guifa left
SmokeMachine Voldenet: I was thinking the same on my Cromponents, and on my prerelease versions, calling a method with accessible (controller on Air) trait from the RENDER method would return the attributes to access that method (using htmx or not)… I removed it because I couldn’t find a good way to get the real path of the component… it could be under a different path… but I plan to retry that someday… 09:47
So, on my old version Cromponent, you had a method `sub bla(Int $i) is accessible{ :http-method<PUT> }` and on your RENDER you have: `<button <.bla: 42>>…` that call should, return at least: `hex-put=“/<component-url-path>/<obj-id>/bla/42”` and probably all other attributes set on `is accessible`… 09:54
Voldenet Not sure if it's useful, but it's related - in .net there's something like this learn.microsoft.com/en-us/dotnet/a...et-mvc-5.2 09:59
SmokeMachine But I think that for doing that I need a better way for getting the path for an endpoint from Cro itself… and I couldn’t find a way for getting that… 10:00
Voldenet I wonder if cro even has component -> route map somewhere
SmokeMachine Yeah… I don’t think it does… and that why I removed that option from Cromponents… and I plan to try to find a way to add that to Cro… 10:01
Voldenet though definitely it's something that Cro should be able to do 10:02
SmokeMachine Even it I need to ass the block code itself as parameter to make it able do search on its tree to return the path… but it would be better to use some kind of a name… 10:03
Voldenet well, .net theoretically could accept Expression with controller call, but practically it's not that magical for some reason 10:05
10:06 arkiuat joined
Voldenet probably even a simple helper would do the job, without something like `url-to-controller(&Todo.update, :id(42))` 10:07
or even `url-to-controller({ Todo.update(id => 42) })` 10:09
10:13 arkiuat left 10:33 apac joined 10:40 arkiuat joined 10:43 LainIwakura joined 10:45 arkiuat left 11:07 arkiuat joined 11:11 arkiuat left 11:21 arkiuat joined 11:22 librasteve_ left 11:25 arkiuat left 11:33 LainIwakura left 11:35 arkiuat joined 11:51 vasko45 joined 11:52 vasko4 left, vasko45 is now known as vasko4 11:58 librasteve_ joined
librasteve_ notable6: weekly 11:59
notable6 librasteve_, 10 notes: gist.github.com/44ce243c44a53d10f2...86170d8a82
librasteve_ notable6: weekly reset 12:01
notable6 librasteve_, Moved existing notes to “weekly_2025-07-28T12:01:02Z”
librasteve_ teases rakudoweekly.blog/2025/07/28/2025-...onal-week/ 12:11
12:26 guifa joined 13:07 LainIwakura joined
disbot4 <antononcube> @librasteve Should have said in blog: "[...] for those that like number theory or graphics." 13:18
<antononcube> Anyway, I hope my next Number theory video to be the last of that series. 13:19
14:02 deoac joined 14:22 librasteve_ left
guifa if you pass a method callback to NativeCall 14:24
14:24 apac left
guifa is that going to be unique to a specific object or generic for all instances? 14:25
14:35 apac joined 14:55 LainIwakura left 15:05 arkiuat left 15:10 arkiuat joined, guifa left 15:14 arkiuat left 15:28 arkiuat joined, BooK left 15:29 BooK joined
Voldenet wayland: some things broke and wayland.github.io/blog/raku/genera...sation.xml links to localhost:8000 for most resources now :/ 15:40
tellable6 Voldenet, I'll pass your message to wayland76
15:40 arkiuat left 15:57 guifa joined 16:02 arkiuat joined 16:04 lichtkind left 16:09 LainIwakura joined 16:15 LainIwakura left 16:18 sftp left 16:19 sftp_ joined, sftp_ is now known as sftp 16:22 LainIwakura joined 16:35 dakkar left 16:51 LainIwakura left 17:12 guifa left 17:14 apac left 17:24 LainIwakura joined 17:36 stanrifkin joined 17:41 lichtkind joined 17:55 librasteve_ joined
disbot4 <librasteve> @antononcube … just riffing on earlier comments here ;-) 18:00
<antononcube> 💡 Agh... yeah, of course! 18:01
jdv www.reddit.com/r/rakulang/comments...over_tiny/ 18:03
i guess that is kinda disjointed 18:04
[Coke] i assume it got stuck thinking it was an intentional postfix if 18:07
18:28 LainIwakura left
tbrowder hi, how can i use zef to fetch a distro source to a specific directory? 18:40
disbot4 <melezhik.> tbrowder: you may use that - as sparrow plugin or you may just steal , idea from - sparrowhub.io/plugin/zef-fetch/0.001000 18:43
18:43 LainIwakura joined
[Coke] Looks like 'fetch' isn't giving you a local copy but is putting in the normal download dir 18:49
If you just want to poke around, 'zef look App::Cal' will open a shell in a downloaded copy of the repo
tbrowder [Coke]: that’s what i need, thnx! 18:59
btw, finally got through Utils presento. good-oh! 19:00
19:27 guifa joined
guifa actually better question re NativeCall: is there any way I can just pass a Raku object as a pointer to be able to pass it back to a callback? 19:27
it seems like it'll need to be repr(CStruct) but then you lose the ability to have full attributes 19:28
SmokeMachine librasteve_: I just realised the link to my post is pointing to a different place. 19:42
guifa if not I'll just have to come up with some other system using id codes or something 19:47
20:05 librasteve_ left
Voldenet guifa: I think there's no way around it, because you'd have to somehow mark the object as non-GC a'la `explicitly-manage`, which can only handle strings 20:21
otherwise you'd risk freeing the object used by native code anyway 20:22
guifa yeah, in this case there wouldn't be any issue because the teardown would happen between two objects at the same time, so there wouldn't be the chance
basically for each Raku object there's a single ObjC object 20:24
I can store the pointer for the ObjC one in Raku land but not the other way around
I'll just create an incrementing id attribute for the Raku object and then pass that to the Obj-C one to send of each time. If the type keeps it all in a nice list it won't require toooooo much spaghettiness 20:26
20:31 arkiuat left
Voldenet yeah, something like 0x0.st/8RcH.raku but maybe with spaghetti-free 20:33
guifa egads 20:34
yeah I'm going to try to keep it a bit cleaner since there will be a lot of methods haha
but I think I'm spending 10x the time on trying to do that cleanliness
Voldenet I simply had to make that SpaghettiPtr class joke ;> 20:41
20:43 arkiuat joined
guifa tell me you already had that available 20:49
and that wasn't something you made on the spot lol
hrmmm... SIGSEGV 21:10
disbot4 <librasteve> Voldenet: github.com/librasteve/Air/issues/24 … thanks for point on hx-post written manually … i made an issue and will take a proper look later this week 21:25
21:32 LainIwakura left 21:39 cm left, cm_ joined 21:40 cm_ is now known as cm
disbot4 <librasteve> SmokeMachine: pretty sure i fixed the link … oops 21:43
guifa oh heck yeah finally figured it out 21:47
had a slight mismatch of types
21:49 librasteve_ joined, LainIwakura joined 21:53 Aedil left 21:55 LainIwakura left 22:19 Sgeo joined
disbot4 <melezhik.> [Coke]: just in case I would like to mention that zef-fetch sparrow plugin does invoke zef look command - github.com/melezhik/sparrow-plugin...k.bash#L11 , it’s just a matter of additional recursive copy command to copy this random temp directory to any desired location 22:25
<melezhik.> But yeah one can run zef look command directly as well 22:27
22:38 stanrifkin left 22:40 lichtkind left, lichtkind joined 22:45 lichtkind left 23:59 librasteve_ left