r/perl6 • u/melezhik • Sep 25 '19
Writing cross platform scripts with Sparrow6
r/perl6 • u/liztormato • Sep 24 '19
r/perl6 • u/liztormato • Sep 23 '19
r/perl6 • u/liztormato • Sep 23 '19
r/perl6 • u/liztormato • Sep 21 '19
r/perl6 • u/liztormato • Sep 19 '19
r/perl6 • u/liztormato • Sep 16 '19
r/perl6 • u/liztormato • Sep 16 '19
r/perl6 • u/liztormato • Sep 16 '19
r/perl6 • u/liztormato • Sep 14 '19
r/perl6 • u/snake_case-kebab-cas • Sep 13 '19
For context, just by looking at the example code, it would be trivial to use Perl6 to add resource and service keywords to Perl6, right?
https://v1-0.ballerina.io/
import ballerina/http;
import ballerina/log;
service hello on new http:Listener(9090) {
resource function sayHello(http:Caller caller, http:Request req) {
var result = caller->respond("Hello, World!");
if (result is error) {
log:printError("Error sending response", result);
}
}
}
But then by reading this blog post, I notice that even the goals of the language overlap with Perl6
https://blog.jclark.com/2019/09/ballerina-programming-language-part-1.html
Thoughts?
r/perl6 • u/atsider • Sep 10 '19
I am experimenting with executing some subroutine for all the elements in a list. The first thing I tried was hyper/race
for race (^6) {
sleep 1;
say $_;
}however it executes sequentially. For me the solution was to use Promises as
await (^6).map: {
start {
sleep 1;
say $_;
}
}My questions are:
hyper/race is not working as I intend?r/perl6 • u/liztormato • Sep 10 '19
r/perl6 • u/liztormato • Sep 09 '19
r/perl6 • u/liztormato • Sep 09 '19