Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
Set by moderator on 19 April 2018.
japhb timotimo: Probably useful eventually. For now, simplicity of build/test cycle is the key. I'm already saddled with having to build a fresh docker image with every edit. :/ 00:10
00:27 stmuk_ joined 01:19 FROGGS joined 01:58 ilbot3 joined
moderator Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
01:59 FROGGS_ joined 06:28 lizmat joined
jnthn All our deployed cro-using sites have a reverse proxy in front that do caching, so the Cro app serves the assets (keeping things nicely contained) and sets appropriate headers, and then the reverse proxy just caches them. Makes for easy development and then scales better in production. 08:40
tony-o i'm having a weird issue where (request-body -> $body { $body<key-that-exists>; }) is giving me Cannot invoke this object (REPR: Null; VMNull) when doing $body<key-that-exists> - trying to simplify the problem so i can gist it 11:03
seems to happen when i do route { post ::("M::&l"); post ::("N::&l"); }; 12:03
and N and M are in separate files
Geth cro-http: 7e28a6bec9 | (Jonathan Worthington)++ | lib/Cro/HTTP/Client.pm6
Make it possible to replace HTTP client connector

This will be used in implementing HTTP testing without the need to actually touch the local network, though could potentially have some other use cases too (for example, tunneling).
13:30
jnthn tony-o: That sounds horribly like a Rakudo pre-comp related issue 13:32
tony-o trying to pare what i have to make it reasonable to ask someone about 14:10
14:36 FROGGS joined 15:04 lizmat joined
japhb jnthn: At some point in the future, it would be really cool to see a talk about how you deploy, or a tutorial therefor. I get the feeling there is interesting detail behind the handwave of "Kubernetes swarm with reverse proxies in front of Cro instances". 15:16
tony-o here is the simplest instance i can make work with the error, nine is taking a look too but it's a strange thing 15:48
github.com/tony-o/p6-cro-test
in R.pm6 if you put A::&a-call before B::&b-call then the curl works (for me), otherwise it fails 15:49
jnthn japhb: It's...pretty boring, but if it'd help I can write up what I'm doing. :-) 16:50
Though I suspect the reaction will be "can you show how to do it with nginx instead of apache?" :P
17:59 lizmat_ joined
japhb jnthn: I take it you use Apache then? :-) 18:43
In all seriousness, I think just like the Tipsy tutorial, even "boring" things like that help people that are overwhelmed by ETOOMANYDOCS and just want to get something working without studying for days in order to understand everything. Also, tinkerers who prefer to iterate towards good enough, rather than separate design and build. 18:47
It also improves our reputation for giving people something ready for day-to-day use, and not just for playing with. 18:48
That it's not rocket surgery is beside the point. :-)
Plus, sometimes it helps to have the best teachers teach the undergrad stuff, not just the graduate classes. 18:49
20:45 lizmat joined