Welcome the channel on the development of Cro, a set of libraries for building reactive distributed systems, lovingly crafted to take advantage of all the Raku Programming Language has to offer (cro.services). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
SmokeMachine dev.to/fco/crolite-filling-the-moj...ystem-4ebi 00:49
japhb Nice! 01:13
SmokeMachine japhb: does that make sense? 01:14
japhb I like the idea, yeah. Seems like a different subspace than the places the `cro` tool itself covers 01:29
And one of the biggest reasons I use Raku in the first place is that it doesn't force unnecessary complexity on you. So this feels quite nice. 01:31
(Where by 'you' in this case I meant 'programmers just trying to Get Things Done') 01:32
SmokeMachine japhb: I agree, that’s one of my favourite reasons as well. :) 01:52
08:31 ds7832 joined
leont Yeah that looks sensible 10:56
SmokeMachine I’ve been wandering… librasteve_ might be right… maybe I’ll create a PR for Cro to add named endpoints… 12:08
disbot2 <librasteve> really liking Crolite 12:37
SmokeMachine :) 13:29
I have a question to you all... the generated names for endpoints... if I have a endpoint like: `get -> "bla", Int $a {...}` what would be the best generated name? `GET_bla_Int_$a`, `GET_bla_Int`, `GET_bla_Int_a`, `GET_bla_$a`, GET_bla_a` or what? 16:24
I'm tending to `GET_bla_Int`... 16:25
disbot2 <librasteve> I agree, I think the name of the var is really internal to the block 16:35
<librasteve> but need to keep anything used in the multi despatch 16:36
SmokeMachine but the name of the parameter will not influence on the dispatch, right?! 16:38
disbot2 <librasteve> yes - that is why I agree that Get_bla_Int is good 16:41
SmokeMachine I'm woring on a PR for Cro to add named routes to it... do you think it's a good idea? 16:56
for Cro::HTTP to be correct... 16:57
disbot2 <librasteve> yes, I strongly support this idea 17:13
<librasteve> I would also welcome Crolite as a repo in the Cro organisation if you wish (no pressure, but I think it is a natural home for it if you agree) 17:14
SmokeMachine Yes, I think that may make sense... 17:17
it's still a WiP, but this is how it's looking for now: github.com/FCO/cro-http/commit/8c4...79a9a6b71b 18:36
and for now it allows stuff like this: usercontent.irccloud-cdn.com/file/.../image.png 18:37
disbot2 <librasteve> .oO … that’s cool … is it dynamic (ie when the server is running)? 20:08
SmokeMachine librasteve_: it prepares a hash of names => handlers when it finishes the route {...}... 20:12
disbot2 <librasteve> =b 20:13
SmokeMachine Does anyone know how to test redirect with Cro::HTTP::Test? I am trying with this, with no luck: github.com/croservices/cro-http/co...902R44-R49 22:25