»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋 Set by Zoffix on 25 July 2018. |
|||
00:07
Skarsnik left
|
|||
leont | It seems IO::Path.dir gives less than awesome error messages | 00:12 | |
Failed to get the directory contents of '/var/spool/cups': Failed to open dir: 13 | |||
13 means "permission denied", but somehow it prints the number instead of the message | 00:13 | ||
Also, returning a Failure object when the user is expecting a Sequence is not very helpful (use fatal was though) | 00:14 | ||
00:17
MasterDuke left
|
|||
leont | It works fine when iterating over it immediately, but not so much when putting it in an array first :-/ | 00:24 | |
El_Che | That would be a nasty surprise | 00:25 | |
leont | m: my @foo = "/var/spool/cups".IO.dir; dd @foo | 00:26 | |
camelia | Array @foo = [Failure.new(exception => X::IO::Dir.new(path => "/var/spool/cups", os-error => "Failed to open dir: 13"), backtrace => Backtrace.new)] | ||
leont | That | ||
El_Che | I wonder if, unlike the Java-like failure throwing, the style of (return value, error) returns (like in Go) make defensive programming easier | ||
leont | One could argue Failure should blow up when listified, but I'm not sure I can see all the implications of that | 00:28 | |
El_Che | catch it early or catch it later | 00:29 | |
it would break loops like "read all these files and show me their contents or error code" | 00:30 | ||
timotimo | m: sub willfail { fail "oh no" }; my @foo = willfail; say @foo.perl | 00:46 | |
camelia | [Failure.new(exception => X::AdHoc.new(payload => "oh no"), backtrace => Backtrace.new)] | ||
timotimo | yeah, that's not so cool | ||
but it's not being sunk, and sinking a failure or trying to work with it is what blows it up | |||
m: sub willfail { fail "oh no" }; my @foo = willfail.list; say @foo.perl | |||
camelia | [Failure.new(exception => X::AdHoc.new(payload => "oh no"), backtrace => Backtrace.new)] | ||
timotimo | m: sub willfail { fail "oh no" }; my @foo = willfail.eager; say @foo.perl | 00:47 | |
camelia | [Failure.new(exception => X::AdHoc.new(payload => "oh no"), backtrace => Backtrace.new)] | ||
00:48
dct left
|
|||
timotimo | m: sub willfail { fail "oh no" }; for willfail { .perl.say } | 00:49 | |
camelia | 5===SORRY!5=== Function 'willfail' needs parens to avoid gobbling block at <tmp>:1 ------> 3il "oh no" }; for willfail { .perl.say }7⏏5<EOL> Missing block (apparently claimed by 'willfail') at <tmp>:1 ------> 3il "oh no" }; for … |
||
timotimo | m: sub willfail { fail "oh no" }; for willfail() { .perl.say } | ||
camelia | Failure.new(exception => X::AdHoc.new(payload => "oh no"), backtrace => Backtrace.new) | ||
timotimo | failure is also a thing for cases when you're doing a whole bunch of things in parallel and you want to finish stuff before a single failure blows everything up | 00:50 | |
so that necessitates that failures can go into lists | |||
El_Che | or when failure is a expected return (my reading lots of files examples) | 00:52 | |
the "13" exit code is LTA in this case, indeed | 00:53 | ||
timotimo | m: sub willfail { fail "oh no" }; for try willfail() { .perl.say } | ||
camelia | Nil | ||
leont | I don't mind it going into a list, but it shouldn't become a list | ||
timotimo | well, assigning to a @foo will turn things into lists | ||
leont | Obviously. That's where I want it to fail ;-) | ||
s/fail/throw/ | |||
El_Che | oh, I see what you mean now | ||
timotimo | m: sub willfail { fail "oh no" }; for willfail.self { .perl.say } | 00:54 | |
camelia | oh no in sub willfail at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
leont | Yeah, self or use fatal will make it DWIM, but it's still non-intuitive behavior | 00:55 | |
00:57
zachk left
|
|||
timotimo | agreed | 00:58 | |
01:00
lizmat joined
|
|||
leont | I filed a ticket for the dir behavior, but maybe I should have filed one for fail. Will need to ponder that. | 01:02 | |
01:04
lizmat left
01:07
sena_kun left
01:09
MasterDuke joined,
MasterDuke left,
MasterDuke joined
01:12
meuirkat left
01:39
jast left
01:41
kurahaupo left,
kurahaupo_ joined
01:42
kurahaupo_ left
01:43
kurahaupo joined
01:45
kurahaupo_ joined
01:46
aborazmeh left
01:48
kurahaupo left
01:49
kurahaupo_ left,
kurahaupo joined
01:52
kurahaupo left
01:53
kurahaupo joined
01:55
jast joined
01:58
leont left
02:11
sauvin left
02:18
molaf left
02:19
jast left
02:20
jast joined
|
|||
Xliff | \o/ | 02:24 | |
gist.github.com/Xliff/afed9c58e738...6645520c8f | 02:28 | ||
MasterDuke | cool | 02:31 | |
02:32
molaf joined,
aborazmeh joined,
aborazmeh left,
aborazmeh joined
|
|||
Xliff | Thanks. | 02:36 | |
02:40
jme` left
|
|||
timotimo | good work, Xliff! | 02:43 | |
02:49
jast left,
jast joined
02:51
xinming_ left
02:53
jme` joined
02:56
Kaiepi left
02:59
Kaiepi joined
03:01
Kaypie joined,
Kaiepi left
03:05
Kaypie left
03:09
Kaiepi joined
03:16
sauvin joined
03:22
Kaypie joined,
Kaiepi left
|
|||
Xliff | timotimo: Thanks! :) | 03:37 | |
Now I need ideas for other things to do with what I have. Suggestions welcome! :) | |||
Simple GTK apps would be nice. | |||
Like... I'm not currently able to write a media player, yet. But wouldn't mind helping create one. :) | 03:38 | ||
03:41
aborazmeh left
|
|||
Xliff | Is there any way to distribute a module through zef that has already been precompiled? | 03:47 | |
03:48
ufobat_ joined
|
|||
Xliff | p6-GtkPlus is already clocking in at 30 minutes using optimal build order, and I'd prefer if end users didn't have to endure that prior to getting their hands dirty. | 03:48 | |
Maybe I could have said that better. | |||
s/hands dirty/feet wet/ | 03:49 | ||
?? | |||
03:52
ufobat__ left
|
|||
vrurg | Xliff: WOW! Amazing! | 03:53 | |
Xliff | vrurg: :) Thanks. | 03:54 | |
Unfortunately, depends on GTKPlus, which depends on Pango which has a blocker. | |||
Actually, I need to make an issue on that so I can track it. | |||
03:58
jast left,
jast joined
04:01
zacts joined
|
|||
Xliff | OK. So I am currently stuck on p6-Pango with the two issues listed. Once those are fixed, I can release Pango, and p6-GtkPlus | 04:04 | |
Once those are released p6-WebkitGTK is only a week's worth of work behind. | 04:05 | ||
Until then, to use everything I've been working on, you have to go through a lot of shite. | |||
See instructions for github.com/Xliff/p6-VisualGrammar | 04:06 | ||
04:17
mowcat left,
Sgeo_ joined
|
|||
Xliff | OK. Next step is p6-GTK-MineSweeper.... Just coz! | 04:20 | |
04:21
Sgeo left
04:22
zacts_pi joined
04:23
_isomorphismes joined
04:25
zacts left
04:38
jast left
04:46
jast joined
|
|||
hahainternet | Xliff: this work seems very impressive ☺ | 04:47 | |
my only criticism of visualgrammar is that you should take care to use a colourblind-aware series of colours | 04:48 | ||
04:48
zacts_pi is now known as zacts
04:51
isomorphismes left
04:55
jast left,
jast joined
05:00
araraloren joined
|
|||
Xliff | hahainternet: I hear you. Right now I am using a module I converted from Javascript. See github.com/Xliff/p6-RandomColor | 05:01 | |
hahainternet: If there were an algorithm to generate random colors... or even an infinite set of colors for colorblind users, I would implement it in a second. | |||
Or, at the very least, something that I could use to convert a RandomColor to something colorblind-aware. | 05:02 | ||
Thanks for the suggestion! Could you add an issue to RandomColor? | |||
hahainternet | Xliff: the problem is people fail to understand colourblindness | ||
Xliff | I know. | ||
hahainternet | it's not just a question of being unable to see absolute colours | ||
but also adjacent colour differences | |||
Xliff | Yes. And I know I need further education on that. | ||
hahainternet | i also am not aware of any algorithm for picking optimal colours | ||
but i have seen colourblind schemes before | |||
i've got time tomorrow, i'll do a bit of research ☺ | 05:03 | ||
Xliff | Be aware that p6-VisualGrammar does attempt to prevent colors too adjacent to each other. | ||
=D | |||
hahainternet | yes, the problem is that the 'too adjacent' map is generally based on colour distance | ||
but obviously that map changes when you have broken eyes :( | |||
Xliff | I am very grateful for interested persons who find a problem and are willing to offer a solution. | ||
hahainternet | i'd like to know the correct solution tbqh | 05:04 | |
Xliff | Yeah. Me too. | ||
hahainternet | it's a problem i encouter a lot, as i have bad red/green and a weak blue channel i think | ||
Xliff | It is more an issue for RandomColor than it is for VisualGrammar, tbh | ||
Ah. | |||
hahainternet | it's 5am for me so i won't be able to do much now | ||
Xliff | No worries. I am patient. | ||
hahainternet | but it's on my list for tomorrow now :D | ||
Xliff | :) | ||
Do you think you could just add a quick issue to github.com/Xliff/p6-RandomColor? | 05:05 | ||
I don't need details, just a quick notice. | |||
hahainternet | yeah can do | 05:06 | |
Xliff | Thanks! | ||
05:10
aborazmeh joined,
aborazmeh left,
aborazmeh joined
|
|||
Xliff | hahainternet: :D | 05:12 | |
05:26
entonian joined
05:27
entonian left
|
|||
araraloren | I made the simple Pluggable example works | 05:33 | |
The IO::Handle.lock/unlock and require need another thread lock :) | 05:34 | ||
They are not thread safe | |||
gist.github.com/araraloren/cfb7d7b.../revisions | |||
05:36
zacts left
05:41
kst joined
05:55
jast left
05:57
jast joined
06:22
kurahaupo_ joined,
aborazmeh left,
atweiden-air joined
06:25
kurahaupo left
06:40
kurahaupo_ left,
kurahaupo joined
06:41
kurahaupo left,
kurahaupo_ joined
06:43
kurahaupo_ left,
kurahaupo joined
06:45
rindolf joined
06:46
kurahaupo_ joined
06:49
kurahaupo left
06:54
kurahaupo_ left,
kurahaupo joined
06:59
kurahaupo_ joined
07:00
kurahaupo left
07:11
_isomorphismes left
07:12
cpage left
07:13
jmerelo joined
07:14
abraxxa left
|
|||
jmerelo | releasable6: status | 07:15 | |
releasable6 | jmerelo, Next release will happen when it's ready. 6 blockers. 158 out of 257 commits logged | ||
jmerelo, Details: gist.github.com/d791089c603142762a...dcac84aae3 | |||
07:15
abraxxa joined
07:30
cpage joined
07:41
domidumont joined
07:45
atweiden-air left
08:07
jast left
|
|||
Geth | doc: 8ef3a57525 | (JJ Merelo)++ | 2 files Revision and reflow, refs #2594 |
08:10 | |
08:24
ravenousmoose joined
08:32
jast joined
08:35
ravenousmoose left
08:43
kurahaupo_ left,
kurahaupo joined
08:49
kurahaupo left,
kurahaupo joined
09:04
kurahaupo_ joined,
kurahaupo left
09:05
kurahaupo_ left,
kurahaupo joined
09:07
_isomorphismes joined,
kurahaupo left,
kurahaupo joined
09:08
TreyHarris left,
kurahaupo left,
kurahaupo joined
09:11
kurahaupo_ joined,
_isomorphismes left
09:12
kurahaupo left
09:15
jast left
09:17
jast joined
09:28
araraloren left,
araraloren joined
09:29
ravenousmoose joined
09:35
ravenousmoose is now known as ravenousmoose[aw,
ravenousmoose[aw left
09:51
someuser left
09:52
jast left
09:54
marmor joined
10:04
jast joined
10:07
marmor left
10:08
marmor joined,
oodani left
10:09
oodani joined
10:14
jast left
10:15
kensanata joined,
pecastro joined
10:16
jast joined
10:19
yqt joined
10:20
jast left
10:29
jast joined
10:30
ravenousmoose joined
10:38
ravenousmoose left
10:53
araraloren_ joined
10:54
araraloren left
10:58
marmor left
11:05
jmerelo left
11:18
ChoHag joined
11:27
kurahaupo_ left,
kurahaupo joined
11:28
kurahaupo_ joined
11:31
kurahaupo left
11:37
quad_ left
11:39
AlexDaniel left
11:41
jast left
11:46
jast joined
11:55
kensanata left,
MilkmanDan left
11:56
MilkmanDan joined
12:03
sena_kun joined
12:05
kurahaupo_ is now known as kurahaupo
12:31
leont joined,
grondilu joined
12:32
nelsonhb joined
|
|||
Geth | ecosystem: 53fa15ae36 | (Jonathan Stowe)++ | META.list Remove more of my modules to CPAN |
12:51 | |
El_Che | remove to? | 12:59 | |
moritz | probably just "move to" | 13:00 | |
13:02
nelsonhb left
13:04
jast left
13:08
_isomorphismes joined
13:10
jast joined
13:13
_isomorphismes left
13:14
[particle] joined
13:15
jast left
13:16
rfold joined,
[particle]1 left
|
|||
rfold | Is it possible to ./Configure.pl rakudo-star so that building will not install zef? | 13:18 | |
El_Che | you need all the extra modules? YOu could be regular rakudo instead | 13:19 | |
13:19
jast joined
|
|||
moritz | right, rakudo star = rakudo + zef + modules | 13:19 | |
you need zef to install the modules | |||
if you don't want zef, you can't have modules, and then you're back to just rakudo | 13:20 | ||
rfold | I don't need any of them. | ||
Thanks, I'll try to install Rakudo! | |||
leont | But you need my precious modules! :-p | 13:21 | |
El_Che | there are binaries for Linux and regular rakudo is now also part of homebrew on macos | ||
13:29
grondilu left
|
|||
MasterDuke | moritz: did you happen to catch my comment about github.com/croservices? it has a lot of modules in the repos under it (e.g., Cro::HTTP, Cro::WebSocket) | 13:30 | |
13:39
AlexDaniel joined
|
|||
moritz | MasterDuke: I forgot, sorry | 13:40 | |
MasterDuke | no worries | ||
13:41
lizmat joined
13:43
Sgeo_ left
13:44
araraloren_ left,
araraloren_ joined
|
|||
rfold | Cool I got it working. | 13:45 | |
MasterDuke | rfold: what are you planning to use rakudo for without any modules? | 13:52 | |
13:59
pmurias joined
|
|||
pmurias | rfold: if you don't want to use any module you could try a raw rakudo release instead of star? | 14:00 | |
araraloren_ | rfold you can try rakudo release | 14:08 | |
github.com/nxadm/rakudo-pkg/releases | |||
14:23
pmurias left
14:26
rfold left
14:28
pmurias joined
14:32
oftl left
14:40
pmurias left
14:49
Ven`` joined
14:58
araraloren_ left
14:59
MasterDuke left
15:03
domidumont left
15:10
_isomorphismes joined
15:14
_isomorphismes left
15:19
jast left,
w17t joined
15:22
wi15ht left
15:26
James123 joined
15:28
leont left
15:36
rindolf left
15:40
mowcat joined
15:41
reach_satori_ joined
15:43
reach-satori left,
rindolf joined
15:47
James123 left
15:50
Kaypie left
15:51
Kaypie joined,
ravenousmoose joined
15:54
domidumont joined
16:11
domidumont left
|
|||
moritz | ok, I now know why perl6-all-modules doesn't include many of the Cro-related modules | 16:48 | |
the job starts by downloading modules.perl6.org/s/from:cpan/.json | |||
and then for each distribution, it looks at the "url" field | |||
and expects a link to a tarball, but finds for example github.com/croservices/cro-core.git | 16:49 | ||
where other modules contain URLs like cpan.metacpan.org/authors/id/H/HO/H...2.7.tar.gz | 16:50 | ||
my problem is, I have no idea if my script should be able to deal with git URLs, or if something is wrong | |||
and if yes, if it's in modules.perl6.org, or with the Cro dists, or something else | 16:51 | ||
hahainternet | github always gets special cased in dep managers, frustratingly | ||
same is true for Go | |||
Harzilein | sometimes gitlab gets special cased too | 16:55 | |
moritz | perlpunks.de/paste/show/5c4de2fd.326b.c7 | 16:57 | |
what's the point to upload things to CPAN if our meta data doesn't even contain links to the CPAN URLs? | 16:58 | ||
17:03
zacts joined
17:06
Ven`` left
17:09
zakharyas joined,
AlexDaniel left
|
|||
moritz | m: say 'foo'.endswith('o') | 17:09 | |
camelia | No such method 'endswith' for invocant of type 'Str'. Did you mean 'ends-with'? in block <unit> at <tmp> line 1 |
||
17:33
pmurias joined
17:37
pmurias left
17:42
kurahaupo left
17:43
kurahaupo joined
|
|||
lizmat | .ask jmerelo perhaps it's a good idea to postpone the Squashathon one week on account of FOSDEM next weekend ? | 17:50 | |
yoleaux | lizmat: I'll pass your message to jmerelo. | ||
17:54
domidumont joined
17:58
pmurias joined
18:04
|oLa| joined,
|oLa| left
18:05
ravenousmoose left
18:14
zacts left,
satori__ joined
18:16
Juanita joined
|
|||
Juanita | I love when on my body cum, find me here - gmy.su/:45ny | 18:17 | |
18:17
reach_satori_ left,
Juanita left
|
|||
moritz | .tell MasterDuke github.com/moritz/perl6-all-module...cpan/JNTHN looks much better now | 18:19 | |
yoleaux | moritz: I'll pass your message to MasterDuke. | ||
18:26
w17t left
18:32
|oLa| joined,
|oLa| left
18:39
ravenousmoose joined
18:40
ravenousmoose is now known as ravenousmoose[aw
18:41
ravenousmoose[aw left
18:45
molaf left
18:50
MasterDuke joined,
MasterDuke left,
MasterDuke joined
18:54
Sgeo joined
19:00
Kaypie left
19:02
Kaiepi joined
19:06
jme` left
19:07
jernster joined
19:09
kensanata joined
19:18
kensanata left
19:21
ravenousmoose joined
19:24
pmurias left
19:25
lookatme_q left
19:26
lookatme_q joined
19:29
pmurias joined
19:31
pmurias left
19:33
isomorphismes joined
19:34
pmurias joined
19:44
domidumont left
19:47
w17t joined
19:48
domidumont joined,
domidumont left
19:57
zacts joined
19:59
kurahaupo_ joined
20:00
kurahaupo_ left,
kurahaupo left,
kurahaupo_ joined
20:01
kurahaupo joined,
kurahaupo_ left
20:02
kurahaupo left,
kurahaupo joined
20:08
molaf joined
20:13
zacts left
20:18
pmurias left
20:23
pmurias joined
20:32
kurahaupo_ joined
20:34
kurahaupo left
|
|||
hahainternet | Xliff: so i did some reading, and it seems the theory is fairly well established, in the standard colourspace diagram, a series of lines radiating from one of 3 points models deficiency in one colour receptor set | 20:36 | |
but specific algorithms to reduce the colourspace to a linear pick i don't yet know | |||
so i'll get back to you if i find something :p | |||
20:36
kurahaupo joined
20:38
kurahaupo_ left
20:39
pmurias left
20:40
lizmat_ joined,
pmurias joined
20:41
pmurias left
20:43
lizmat left
20:47
pmurias joined
20:50
yqt left
20:55
pmurias left,
pmurias joined,
lizmat_ left
20:58
lizmat joined
20:59
patrickb joined
21:02
Kaiepi left
21:06
pmurias left,
pmurias joined
21:07
Kaiepi joined
21:08
patrickb left
21:10
pmurias left
21:12
ravenousmoose left
21:15
Kaypie joined,
Kaiepi left
21:17
drolax joined
21:38
lookatme_q left,
lookatme_q joined
21:44
Sgeo left
21:45
Sgeo joined
21:46
zakharyas left
21:53
kensanata joined
21:58
jast joined
22:10
ufobat_ left,
drolax left
22:11
drolax joined
22:22
gfldex joined,
gfldex left,
gfldex joined
22:25
kensanata left
22:31
markoong joined
22:41
mowcat left
22:52
drolax left
23:04
pecastro left
23:10
leont joined
23:23
rindolf left
|