»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend! Set by moritz on 22 December 2015. |
|||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “Discuss performance benefits of native types”: github.com/perl6/doc/issues/1534#i...-341855126 | 00:00 | |
00:01
mcmillhj joined
00:06
mcmillhj left
00:07
COMBORICO joined
00:09
ryn1x joined
|
|||
squashable6 | 🍕 AlexDaniel++ opened issue “False-positives on “Perl 6 Types” page”: github.com/perl6/doc/issues/1649 | 00:10 | |
🍕 AlexDaniel++ labeled issue “False-positives on “Perl 6 Types” page”: github.com/perl6/doc/issues/1649 | |||
00:11
cdg joined
|
|||
AlexDaniel | .tell samcv you were assigned here :) github.com/perl6/doc/issues/1517 Actually, I think anyone can write about it, so feel free to unassign yourself | 00:11 | |
yoleaux | AlexDaniel: I'll pass your message to samcv. | ||
ryn1x | I've been reading all the renaming Perl6 posts and blogs and while I do like Perl 6... a name just came to me that I think might be appropriate. What about Monarch? Then we could keep Camelia with P6 still hidden in the wings as a tribute to it’s history. It would also symbolize the next phase for the language; after it has emerged from it’s chrysalis and is no longer a new version of Perl, but a new | 00:14 | |
language entirely. Feel free to tell me it is a terrible idea! | |||
00:15
committable6 left,
committable6 joined,
ChanServ sets mode: +v committable6,
cdg left
|
|||
AlexDaniel | ryn1x: irclog.perlgeek.de/perl6/2017-11-01#i_15387453 | 00:16 | |
00:17
wamba left
|
|||
AlexDaniel | huggable: I came up with a new name :is: irclog.perlgeek.de/perl6/2017-11-01#i_15387453 | 00:17 | |
huggable | AlexDaniel, Added I came up with a new name as irclog.perlgeek.de/perl6/2017-11-01#i_15387453 | ||
00:19
mempko left
00:20
mcmillhj joined
|
|||
AlexDaniel | ryn1x: also goo.gl/NcdTxV | 00:20 | |
NEXT :) | 00:21 | ||
ryn1x | Alias, my bad. | 00:22 | |
00:25
mcmillhj left
|
|||
squashable6 | 🍕 jnthn++ wrote a comment on “Discuss performance benefits of native types”: github.com/perl6/doc/issues/1534#i...-341857521 | 00:25 | |
🍕🍕🍕 First contribution by jnthn++! ♥ | |||
00:26
mson left
00:35
mcmillhj joined,
margeas left
|
|||
squashable6 | 🍕 jnthn++ wrote a comment on “Add Metamodel::EnumHOW page”: github.com/perl6/doc/pull/1648#iss...-341858608 | 00:37 | |
00:39
BenGoldberg joined
00:40
mcmillhj left,
leont left
00:50
mcmillhj joined
|
|||
Geth | marketing: 47a1da3277 | (Zoffix Znet)++ (committed using GitHub Web editor) | README.md Add info on requests indicating people can ask us to design marketing materials |
00:52 | |
squashable6 | 🍕 raiph++ opened issue “`eof` doc; reword to avo…”: github.com/perl6/doc/issues/1650 | 00:54 | |
🍕🍕🍕 First contribution by raiph++! ♥ | |||
00:54
diakopter joined
00:57
mson joined
00:58
mcmillhj left
01:06
troys is now known as troys_
01:08
mcmillhj joined
01:09
ryn1x left,
ryn1x joined
01:12
mcmillhj left
|
|||
squashable6 | 🍕 zoffixznet++ wrote a comment on “`eof` doc; reword to avo…”: github.com/perl6/doc/issues/1650#i...-341861211 | 01:13 | |
01:15
dj_goku_ left
01:19
ryn1x left
01:23
mcmillhj joined
01:24
diakopter left
01:28
mcmillhj left
01:30
AlexDaniel left
01:35
mcmillhj joined,
ZzZombo left,
ZzZombo joined
|
|||
samcv | AlexDaniel`, thanks for the heads up | 01:36 | |
yoleaux | 00:11Z <AlexDaniel> samcv: you were assigned here :) github.com/perl6/doc/issues/1517 Actually, I think anyone can write about it, so feel free to unassign yourself | ||
01:39
wander left
01:40
mcmillhj left
01:41
grondilu left
|
|||
COMBORICO | Ryn1x, you still there? | 01:43 | |
01:50
mcmillhj joined
01:52
espadrine left,
darkmorph left
01:53
aborazmeh joined,
aborazmeh left,
aborazmeh joined
01:54
Rawriful left
01:55
imcsk8 left
01:57
mcmillhj left
02:00
kalkin- joined
02:01
cdg joined
02:04
kalkin-- left
02:05
mcmillhj joined
02:06
cdg left
02:10
mcmillhj left
02:11
pecastro left
02:12
comborico1611 joined
02:14
troys_ is now known as troys,
pecastro joined,
Herby_ left
02:17
mcmillhj joined
02:18
pecastro left
02:21
mcmillhj left
02:25
pecastro joined
02:27
comborico1611 left,
bitrauser_ joined
02:28
mcmillhj joined,
COMBORICO left
|
|||
ZzZombo | "The IO::Path type offers two other handy methods: .words and .lines that lazily read the file in smaller chunks and return Seq objects that (by default) don't keep already-consumed values around." | 02:29 | |
didn't that get changed? | |||
02:31
bitrauser left
02:33
mcmillhj left
02:37
eliasr left
02:43
mcmillhj joined
02:45
ilbot3 left
02:46
Zoffix joined
|
|||
Zoffix | ZzZombo: no. You might be thinking of .comb and .split that were made non-lazy (at least until we implement Cat type) | 02:47 | |
02:50
mcmillhj left
|
|||
ZzZombo | ??? "Made IO::Path.lines non-lazy so it can always close the file handle [0083c4f]" | 02:51 | |
Found it. | |||
github.com/rakudo/rakudo/blob/nom/...2017.03.md | |||
Zoffix | ZzZombo: it was reverted during IO grant. | 02:52 | |
ZzZombo | Good. | 02:53 | |
Zoffix | ZzZombo: IO::Path just delegates to IO::Handle here: github.com/rakudo/rakudo/blob/mast...th.pm#L638 and IO::Handle uses !LINES-ITERATOR: github.com/rakudo/rakudo/blob/mast...#L491-L508 and lines iterator reads lazily: github.com/rakudo/rakudo/blob/mast...#L450-L487 | 02:54 | |
:/ ToolChain summit pics are restricted: www.flickr.com/photos/101485128@N0...688805565/ and Yahoo wants my phone number to create an account... No way I'm giving anything to Yahoo :/ | 02:55 | ||
Was trying to find this pic in better quality pbs.twimg.com/media/C_9ZW8cVYAAOqr4.jpg | |||
02:55
ilbot3 joined,
ChanServ sets mode: +v ilbot3
02:56
Cabanossi left
02:57
Cabanossi joined
|
|||
Zoffix | Oh found non-restricted link: www.flickr.com/photos/101485128@N0...688805565/ the restricted one was listed on the Weekly BTW: p6weekly.wordpress.com/2017/05/22/...-21-yap6b/ (first one in "Other posts" section) | 02:57 | |
Huh. The two URLs are the same :| | 02:59 | ||
ZofBot: Flikr's screwing with me! | |||
ZofBot | Zoffix, i assume its useful for -something- | ||
Zoffix | I hope so... | ||
03:01
mcmillhj joined
03:07
mson left
03:09
mcmillhj left
03:10
dj_goku joined,
dj_goku left,
dj_goku joined
|
|||
geekosaur | soem things have referrer restrictions | 03:13 | |
even in this day and age | |||
03:19
mcmillhj joined
03:21
ugexe left
03:24
mcmillhj left
03:25
noganex joined
03:28
noganex_ left
03:34
mcmillhj joined
03:35
wander joined
|
|||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “Mention 「my %h{Int}」 syn…”: github.com/perl6/doc/issues/1588#i...-341868960 | 03:38 | |
03:38
mcmillhj left
03:39
Cabanossi left
03:42
Cabanossi joined
03:44
khw left
|
|||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “Grammar.parse talks abou…”: github.com/perl6/doc/issues/1583#i...-341869207 | 03:44 | |
🍕 W4anD0eR96++ closed issue “Grammar.parse talks abou…”: github.com/perl6/doc/issues/1583 | |||
03:47
mcmillhj joined
|
|||
squashable6 | 🍕 W4anD0eR96++ opened issue “Grammar .parse, details about *%opt needed”: github.com/perl6/doc/issues/1651 | 03:49 | |
03:52
mcmillhj left
|
|||
ZzZombo | seems like perl6 doesn't wanna deal with BOM in files. | 03:57 | |
Or something, IDK. | 03:58 | ||
"Malformed UTF-8 at line 1 col 1" | |||
the file has the BOM at the start. | |||
My text viewer reports it's in UTF-16, but the `:enc` option to `Grammar.parsefile` doesn't make it fly. | 03:59 | ||
squashable6 | 🍕 W4anD0eR96++ edited issue “False-positives on “Perl 6 Types” page”: github.com/perl6/doc/issues/1649 | 04:00 | |
ZzZombo | Instead it seems to give me strange characters in unexpected positions. | ||
04:03
mcmillhj joined
|
|||
Zoffix | IIRC we should do handle it | 04:07 | |
s/should //; | |||
04:10
mcmillhj left
04:17
cdg joined
04:22
mcmillhj joined,
cdg left
04:27
napo1eon joined
04:28
mcmillhj left
04:29
troys is now known as troys_
04:33
BenGoldberg left
04:35
mcmillhj joined
04:40
mcmillhj left,
Cabanossi left
04:41
Cabanossi joined
04:45
ugexe joined,
mcmillhj joined
04:50
mcmillhj left
04:55
ivans left
04:58
ivans joined
|
|||
ZzZombo | Ah, welp, forgot to `chcp 65001`, that's why the strange characters. | 05:01 | |
False alarm. | |||
But still, why does it not use the BOM to open in the right encoding? | |||
geekosaur | because that's an old Windows-ism explicitly disavowed by the Unicode standard: the BOM is only defined in >8bit encodings, so not in UTF-7 or UTF-8 | 05:03 | |
Microsoft eventually stopped doing it, but Windows programmers being Windows programmers (cf. skipping Windows 9) you still fidn programs icorrectly adding BOMs to UTF-8 files | 05:04 | ||
ZzZombo | But the file IS in UTF-16. | ||
05:04
nadim_ joined
|
|||
ZzZombo | Every program and tester I've used confirms that. | 05:05 | |
05:05
mcmillhj joined
|
|||
geekosaur | hm. in that case the decoder should be dealing | 05:05 | |
.ask samcv should the UTF16 (not UTF8!) reader be handling BOMs? | 05:06 | ||
yoleaux | geekosaur: I'll pass your message to samcv. | ||
05:10
mcmillhj left
05:16
mcmillhj joined
05:21
mcmillhj left
|
|||
samcv | geekosaur, hm | 05:23 | |
yoleaux | 05:06Z <geekosaur> samcv: should the UTF16 (not UTF8!) reader be handling BOMs? | ||
samcv | does it handle it at all geekosaur? | ||
Geth | doc/doc-regex-interpolation: 9893517423 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/regexes.pod6 Document Regex Interpolation I think it's worthy to be documented, because people will looking for a way to using patten given at the runtime. But I'm not sure if this's the only way to interpolate patten(string) into regex. |
05:24 | |
doc: W4anD0eR96++ created pull request #1652: Document Regex Interpolation, jnthn++ |
|||
squashable6 | 🍕 W4anD0eR96++ opened pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652 | ||
samcv | geekosaur, there seems to be code to check for BOM in there at least | 05:26 | |
05:31
mcmillhj joined
05:35
mcmillhj left
|
|||
geekosaur | samcv, ZzZombo was having the issue | 05:39 | |
check backscroll | |||
05:40
aborazmeh left
|
|||
samcv | ah. i see | 05:42 | |
well utf-8 ignores BOM | |||
and it defaults to utf-8 | |||
so is the question if we should default to some form of detection rather than defaulting to utf-8 or not i suppose | 05:43 | ||
your thoughts on that would be appriciated btw | 05:44 | ||
ZzZombo | Yeah, I expected it to attempt to detect the encoding IF there is BOM. | 05:45 | |
Then fall back to UTF-8, otherwise. | |||
samcv | i believe with utf8 you are supposed to ignore the BOM so if we did that we'd have to default to autodetect or something | 05:47 | |
and wait for 6.d to do it | |||
05:47
mcmillhj joined
05:48
ivans left,
ivans joined,
travis-ci joined
|
|||
travis-ci | Doc build passed. Alex Chen 'Document Regex Interpolation | 05:48 | |
travis-ci.org/perl6/doc/builds/297103628 github.com/perl6/doc/commit/98935174232d | |||
05:48
travis-ci left
05:54
mcmillhj left
|
|||
samcv | geekosaur, thoughts on that? | 05:57 | |
06:04
mcmillhj joined,
wamba joined
06:08
mcmillhj left
06:19
mcmillhj joined
06:23
mcmillhj left
06:30
epony left,
mcmillhj joined
06:31
epony joined
06:35
mcmillhj left
06:46
mcmillhj joined
06:51
konsolebox joined
06:53
mcmillhj left
07:02
ivans left
07:04
mcmillhj joined
07:07
ivans joined
07:10
mcmillhj left
07:13
setty1 joined
07:16
troys_ is now known as troys
07:20
mcmillhj joined
07:21
troys left
07:25
mcmillhj left
|
|||
Geth | doc: 1139c6d6ec | (Alex Chen)++ (committed using GitHub Web editor) | doc/Type/Signature.pod6 Document what `is rw` stands for fix #1639 |
07:26 | |
synopsebot | Link: doc.perl6.org/type/Signature | ||
squashable6 | 🍕 W4anD0eR96++ closed issue “rw (what it stands for)”: github.com/perl6/doc/issues/1639 | ||
07:32
domidumont joined
07:33
mcmillhj joined
|
|||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “doc >>. on lists of Callables”: github.com/perl6/doc/issues/1643#i...-341878217 | 07:33 | |
07:38
mcmillhj left
07:39
mempko joined,
fatguy joined
|
|||
Geth | doc/W4anD0eR96-patch-1: 739b25786c | (Alex Chen)++ (committed using GitHub Web editor) | htmlify.p6 disable generate title with "Documentation for" fix #1623 |
07:39 | |
07:41
andrewalker joined
|
|||
Geth | doc: 5e65409088 | (Alex Chen)++ (committed using GitHub Web editor) | htmlify.p6 Title generated without useless start fix #1623 |
07:43 | |
squashable6 | 🍕 W4anD0eR96++ closed issue “Useless "Documentation for " in some page titles.”: github.com/perl6/doc/issues/1623 | ||
07:47
darutoko joined
|
|||
buggable | New CPAN upload: Acme-Test-Module-1.0.1.tar.gz by SKAJI cpan.metacpan.org/authors/id/S/SK/...0.1.tar.gz | 07:47 | |
New CPAN upload: Acme-Test-Module-1.0.2.tar.gz by SKAJI cpan.metacpan.org/authors/id/S/SK/...0.2.tar.gz | 07:57 | ||
08:01
pentashift joined,
domidumont left
08:02
domidumont joined
08:08
Piotr joined
08:11
rindolf joined
08:17
cdg joined
|
|||
Geth | doc: fafd286256 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/operators.pod6 doc operators' ASCII/Unicode variants fix #1560 |
08:20 | |
synopsebot | Link: doc.perl6.org/language/operators | ||
squashable6 | 🍕 W4anD0eR96++ closed issue “doc ≅ (unicode for =~=)”: github.com/perl6/doc/issues/1560 | ||
08:22
cdg left
08:23
rindolf left,
rindolf joined
08:27
espadrine joined
|
|||
buggable | New CPAN upload: Acme-Test-Module-1.0.3.tar.gz by SKAJI cpan.metacpan.org/authors/id/S/SK/...0.3.tar.gz | 08:27 | |
08:32
Piotr left
08:36
sena_kun joined
08:40
araraloren joined
08:52
setty1 left
08:53
mempko left
08:54
leont joined
09:01
domidumont left
09:08
Cabanossi left
09:11
Cabanossi joined
09:13
AlexDaniel joined
|
|||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “Useless "Documentation for " in some page titles.”: github.com/perl6/doc/issues/1623#i...-341882993 | 09:17 | |
🍕 AlexDaniel++ reopened issue “Useless "Documentation for " in some page titles.”: github.com/perl6/doc/issues/1623 | |||
09:18
zakame joined,
pmurias joined,
TEttinger left
|
|||
zakame | hi all | 09:18 | |
pmurias | zakame: hi | 09:19 | |
araraloren | hi zakame | ||
Geth | doc: 494b842151 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6 Fix the heading in traps |
||
synopsebot | Link: doc.perl6.org/language/traps | ||
AlexDaniel | wander: o/ :) | 09:22 | |
m: say ‘42’ ~~ /\d+/ | 09:24 | ||
camelia | 「42」 | ||
09:24
espadrine left
|
|||
wander | \o | 09:26 | |
squashable6 | 🍕 AlexDaniel++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148926351 | 09:27 | |
🍕 AlexDaniel++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148926399 | |||
🍕 AlexDaniel++ submitted a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74250651 | |||
🍕 AlexDaniel++ edited a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74250651 | |||
🍕 AlexDaniel++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148926356 | |||
AlexDaniel | geez | ||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “Add Metamodel::EnumHOW page”: github.com/perl6/doc/pull/1648#iss...-341883622 | 09:29 | |
09:29
eugene_barsky joined
|
|||
squashable6 | 🍕 AlexDaniel++ self-assigned issue “Handle enum types specially in type graphs”: github.com/perl6/doc/issues/72 | 09:30 | |
AlexDaniel | that one is the oldest doc issue that is still open :) | ||
geekosaur would say underscores are fine, insofar as they are a warning that you're poking at internals | 09:33 | ||
AlexDaniel | so MOP is “internals”? | 09:34 | |
geekosaur | (come to think of it, if *that* isn't documented somewhere, perhaps it should be) | ||
well, implementation details, as jnthn noted in the prior comment | 09:35 | ||
AlexDaniel | jnthn also said that eventually we want to have it spec-ed | ||
which makes it part of the perl 6 language, and that I guess means that it won't longer be some internal thing | 09:36 | ||
geekosaur | not exactly. I'd actually prefer putting warnings in it that it's not part of the public perl 6 interface and may be non-portable or subject to change, and using it is at one's own risk | ||
AlexDaniel | but I don't really know | ||
geekosaur | as I read jnthn's comment, he'd prefer not to spec it but thinks it might become necessary | 09:37 | |
AlexDaniel | in other words, eventually we'll get rid of underscores there? | ||
geekosaur | if it ends up becoming spec then likely yes | ||
AlexDaniel | hm | ||
geekosaur | unless we still want to maintain some kind of 'this is implementation detail' distinction, but that starts becoming dicey if it ends up part of the spec | 09:38 | |
I'm not real keen on making it spec, since it makes it harder to change if we come up with a better way to do things | 09:39 | ||
Geth | doc/doc-regex-interpolation: 6ea6243802 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/regexes.pod6 Update regexes.pod6 |
||
squashable6 | 🍕 W4anD0eR96++ synchronize pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652 | ||
geekosaur | I mean, by the same arguments about exposing it, one could argue nqp which is already being used in places should be a spec candidate | ||
which, no. | |||
squashable6 | 🍕 W4anD0eR96++ submitted a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74250906 | 09:40 | |
🍕 W4anD0eR96++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148926615 | |||
🍕 AlexDaniel++ wrote a comment on “Add Metamodel::EnumHOW page”: github.com/perl6/doc/pull/1648#iss...-341884149 | |||
Geth | doc: 5d08cfcc98 | (Brian Duggan)++ | doc/Type/Metamodel/EnumHOW.pod6 Add Metamodel::EnumHOW page Resolves #1642 |
||
synopsebot | Link: doc.perl6.org/type/Metamodel/EnumHOW | ||
squashable6 | 🍕 AlexDaniel++ closed issue “Deadlink for Metamodel::…”: github.com/perl6/doc/issues/1642 | ||
Geth | doc: 310efd33b6 | (Aleks-Daniel Jakimenko-Aleksejev)++ (committed using GitHub Web editor) | doc/Type/Metamodel/EnumHOW.pod6 Merge pull request #1648 from perl6/enum_how Add Metamodel::EnumHOW page |
||
squashable6 | 🍕 AlexDaniel++ merged pull request “Add Metamodel::EnumHOW page”: github.com/perl6/doc/pull/1648 | ||
geekosaur | documenting it is fine but I'd include big warnings about it being non-spec and use at your own risk. Likewise for any nqp docs | 09:41 | |
and would be very cautious about spec-ing things that could end up tying you to a particular implementation | 09:42 | ||
hm, I should proabbly be saying this in the ticket... | |||
09:43
espadrine joined
|
|||
AlexDaniel | yes please :) | 09:43 | |
or in a git commit, it's squashathon after all :) | 09:44 | ||
squashable6 | 🍕 AlexDaniel++ submitted a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74250987 | 09:45 | |
🍕 AlexDaniel++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148926692 | |||
09:45
Actualeyes left
|
|||
tbrowder | fwiw, just saw o’reilly’s programming newsletter article showing perl is most disliked language. | 09:45 | |
09:45
eugene_barsky left
|
|||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148926707 | 09:46 | |
🍕 W4anD0eR96++ submitted a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74251003 | |||
🍕 geekosaur++ wrote a comment on “Add Metamodel::EnumHOW page”: github.com/perl6/doc/pull/1648#iss...-341884415 | |||
🍕🍕🍕 First contribution by geekosaur++! ♥ | |||
Geth | doc/doc-regex-interpolation: b58e2dc9b4 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/regexes.pod6 Update regexes.pod6 |
09:47 | |
squashable6 | 🍕 W4anD0eR96++ synchronize pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652 | ||
🍕 AlexDaniel++ opened issue “ClassHOW and EnumHOW pag…”: github.com/perl6/doc/issues/1653 | 09:50 | ||
🍕 AlexDaniel++ labeled issue “ClassHOW and EnumHOW pag…”: github.com/perl6/doc/issues/1653 | |||
🍕 AlexDaniel++ wrote a comment on “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#iss...-341884849 | 09:54 | ||
kalkin- | I have created a NativeCall wrapper around the Open-Simplex algorithm. The algo is seeded with an int, and then you call the function noise2(1, 1) and you get a double back. It's a stable aglorithm, this means each time i call nois2 with the same arguments, it will return the same result for the same seed | 10:04 | |
This works in my simple C programm | |||
but if I call it from the wrapper the result of noise2 function is always different | |||
There must be something wrong with NativeCall interface, shouldn't it? | 10:05 | ||
10:05
evalable6 left,
evalable6 joined
|
|||
kalkin- | I can't explain this behavior | 10:06 | |
geekosaur | can't say anything without seeing code. a quick web search got me a C implenentation that expects open_simplex_noise2 to be called with three parameters, not two... | 10:19 | |
10:23
araraloren_ joined,
cdg joined
10:26
araraloren left
|
|||
kalkin- | geekosaur: that's the implementation i use. the first parameter is a struct | 10:27 | |
which is a private attribute of my object | 10:28 | ||
10:28
cdg left
|
|||
kalkin- | geekosaur: let me clean up code and i will upload it | 10:29 | |
It's currently part of a package which I'm not allowed to make available publicly | |||
10:38
Cabanossi left
10:41
Cabanossi joined
|
|||
kalkin- | geekosaur: github.com/kalkin/Algorithm-Open-Simplex | 10:54 | |
I added a simple test t/02-simplex.t which reproduces my issue | |||
geekosaur | uh | 11:01 | |
11:01
evalable6 left,
evalable6 joined
|
|||
geekosaur | struct osn_context contains two pointers to int16_t. you are giving it two flat values | 11:02 | |
I'm a little surprised it's not coring tbh | |||
kalkin- | I thought declaring it is rw would make it pointers? | 11:03 | |
geekosaur: also removing = 0 doesn't fix the issue, assigning default value was my attempt of fixing it | 11:04 | ||
I also first tried to declare the Struct just as a CPointer, without any attributes, but it still has the same issue | |||
ups there is a type in t/02 I just pushed a fix for it | 11:05 | ||
geekosaur | grrr. nativecall docs don;'t mention is rw doing anything | 11:06 | |
I would expect for a CStruct repr that is rw would be a no-op; having it magically pointer things inside a struct 'is a bit too magical | |||
as a direct parameter, 'is rw' would necessarily do that | 11:07 | ||
but here you'd want to apply that to the struct, not the fields therein | |||
(and in any case a struct is already by reference so not sure it'd do anything) | |||
the default value thing... if I am reading right, shouldn't have done anything and possibly should have thrown an error, since there is no Scalar container and therefore you have to bind, not assign | 11:11 | ||
kalkin- | Just noticed I'm using Rakudo 2017.09, may be I should upgrade? | 11:12 | |
geekosaur | and I'm not sure 'Struct is rw' gives you double indirection, hm | 11:13 | |
kalkin- | geekosaur: is rw was the issue | 11:14 | |
nop | |||
wait | |||
wtf | |||
11:15
sftp left
|
|||
kalkin- | now the tests pass | 11:15 | |
11:15
sftp joined
|
|||
kalkin- | I fixed some build issues, which were only a problem in the repo i just pushed and the test passes | 11:15 | |
This is weird | |||
Because in my other code it doesn't | 11:16 | ||
11:16
llfourn left
|
|||
kalkin- | K, test seems to pass, but if i execute the code via perl6 command line it doesn't | 11:17 | |
This is weird | 11:19 | ||
geekosaur | hm. I downloaded your repo and added some debug prints, and it's failing to build complaining about missing LibraryMake. missing dep? | ||
11:19
mr-foobar left
|
|||
kalkin- | Yes | 11:19 | |
geekosaur installing that separately | |||
kalkin- | I hope you fetched the latest version. I had to fix some build errors | 11:20 | |
geekosaur | oh, heh, test will probably fail because of the debug output... | 11:21 | |
11:22
mr-foobar joined
|
|||
geekosaur | actually it fails because it's looking for the .so in the wrong directory | 11:22 | |
Geth | doc: patzim++ created pull request #1654: Some markup fixes for Language/Modules. |
||
squashable6 | 🍕 patzim++ opened pull request “Some markup fixes for Language/Modules.”: github.com/perl6/doc/pull/1654 | ||
geekosaur | hm, or that is what you fixed; I apparently granbbed just before your last commit | 11:23 | |
kalkin- | geekosaur: I have fixed it in acf9ac2 commit | 11:24 | |
11:25
ChoHag left
11:26
patrickz joined
11:27
dakkar joined
|
|||
geekosaur | still defaulting one dir too high | 11:28 | |
Cannot locate native library '/home/allbery/Downloads/resources/libraries/libopensimplex.so': /home/allbery/Downloads/resources/libraries/libopensimplex.so: cannot open shared object file: No such file or directory | |||
might not be something you have control over though, but %*RESOURCES being weird | |||
11:29
eliasr joined
|
|||
kalkin- | HEAD definitely build fine here. I also checked the generated Makefile, everything looks like it should be | 11:29 | |
11:29
mattr joined
|
|||
kalkin- | weird | 11:30 | |
11:36
ChoHag joined
|
|||
geekosaur | so: | 11:37 | |
init: ctxp = 0x681a2b0 (0x4b2ec70) | |||
n2d: ctx = 0x681a2b0 | |||
the second line should match the *second* value in the first line | |||
so it's not being passed as pointer-to-pointer | 11:38 | ||
kalkin- | geekosaur: I though because I have a Struct is rw paramter in line 24 it would make it a pointer-to-pointer | 11:40 | |
I assume that Stuct class is already a pointer, so adding is rw to the subroutine makes a pointer-to-pointer. if not how would it be done in perl6? | |||
geekosaur | [04 11:07:44] <geekosaur> (and in any case a struct is already by reference so not sure it'd do anything) | 11:41 | |
kalkin- | geekosaur: i thought you meant is rw in line 10 | ||
geekosaur | also, uh, you didn't want to Struct.new because C is allocating it | 11:43 | |
Geth | doc/doc-regex-interpolation: c117e00e70 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/regexes.pod6 Update regexes.pod6 |
||
squashable6 | 🍕 W4anD0eR96++ synchronize pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652 | ||
11:44
araralonre__ joined
|
|||
kalkin- | It segfaults if I don't assign Struct.new to $!Struct | 11:45 | |
geekosaur | yes, you're not calling the C part right so you are losing that allocation and then you hide that by using Struct.new | 11:46 | |
I showed you the output from C side | |||
11:47
araraloren_ left
|
|||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#iss...-341890662 | 11:47 | |
🍕 W4anD0eR96++ deleted a comment on “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#iss...-341890662 | 11:48 | ||
geekosaur | basiclaly what you are doing is not going to work because you are trying to simultaneously have perl 6/nativecall and C manage the allocation | 11:49 | |
kalkin- | geekosaur: yes, but I don't know how to call it right. I'm rereading the NativeCall documentation part on Structs, but I still can't figure it out | 11:50 | |
11:51
araraloren_ joined
11:54
araralonre__ left
11:55
azawawi joined
|
|||
azawawi | hi | 11:55 | |
yoleaux | 3 Nov 2017 23:23Z <MasterDuke> azawawi: btw, `$packed = (^$size).map({$buffer[$_]})` should be faster than repeatedly .appending | ||
azawawi | .tell MasterDuke to my surprise after trying it out, the old non-map solution was a bit faster. | 11:56 | |
yoleaux | azawawi: I'll pass your message to MasterDuke. | ||
11:57
azawawi left
|
|||
geekosaur | well. I have it passing the right pointers now but I think something else has gone wrong. | 11:57 | |
this is complex enough you need more of a nativecall expert. not sure who that'd be though | 11:58 | ||
maybe nine | |||
Geth | doc: 689cc94111 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/traps.pod6 Make the expression clearer and fix link(dirty) fix #1576 |
11:59 | |
synopsebot | Link: doc.perl6.org/language/traps | ||
squashable6 | 🍕 W4anD0eR96++ closed issue “Broken link at d…”: github.com/perl6/doc/issues/1576 | ||
geekosaur | oh. forgot to fix the other pointers | ||
Geth | doc/doc-regex-interpolation: 082d518c64 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/regexes.pod6 Update regexes.pod6 |
12:02 | |
squashable6 | 🍕 W4anD0eR96++ synchronize pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652 | ||
12:06
margeas joined,
knight__ joined
12:07
mattr left,
patrickz left
|
|||
geekosaur | ok, I have it behaving locally. test still fails because you forgot comparing floating point requires fuzz | 12:07 | |
values print out identical but are not == because IEEE floating point | |||
knight__ | me, again.. :-) Hello, is there any possibility to do something like this: I have unstable version of Perl6 - last, can I define in source code, that I want use version from 2017.07 -> Because in last version I am getting an error: IO::String is a builtin type, not an external module | 12:08 | |
And in version 2017.07, everything works correctly | |||
And, my prof... :-X | |||
? | |||
kalkin- | k, but still what is the right way of passing uninitialized structs to a subroutine? :) | ||
geekosaur | lpaste.net/2111067440635969536 | 12:09 | |
because you need that double pointer and allocation in C instead of in Perl | 12:10 | ||
oh, foo, forgot to remove the dd | |||
possibly extending NativeCall to handle that better is something you could request | 12:12 | ||
kalkin- | geekosaur: ohhh, this makes sense | ||
geekosaur | but once you get into stuff like this, it all gets rather hairy and operhaps it's better not to tryto second0guess. especially given that C is actually ambiguous when it comes to pointers | ||
kalkin- | I understand your code, but I wouldn't have figured it out to do it like this just by reading the docs | 12:13 | |
geekosaur | (did you mean a pointer or an array? NativeCall would have to guess which you meant, probably, since the C types are of no help whatsoever) | ||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “Mixed | and || in regexes (trap?)”: github.com/perl6/doc/issues/1141#i...-341892262 | 12:14 | |
geekosaur | I cheated and popped the NativeCall source open | 12:15 | |
even so, that bind to $!struct is kinda scary --- was not sure it'd retain its repr | |||
but copying is definitely not what I want. then again maybe = ends up being := anyway; docs are ambiguous as to whether that refered to individual fields or the whole CStruct | 12:16 | ||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “Nil vs Any confusion (trap)”: github.com/perl6/doc/issues/1134#i...-341892517 | 12:18 | |
geekosaur | I kinda don't like how NativeCall works; it's trying to be too smart but trying to speak to too dumb a language over too dumb an interface (C and its types, that is) | ||
kalkin- | geekosaur: thank you for your help and time | 12:19 | |
geekosaur | but FFI is in general courting core dumps, because C and its types are all you get and C's type system is too dumb to prevent errors | ||
kalkin- | btw: would it make sense to add a DESTROY method which calls open_simplex_noise_free? | 12:21 | |
12:21
darkmorph joined
|
|||
geekosaur | I would think so | 12:21 | |
kalkin- | Does every calss implement Metamodel::Finalization? | ||
geekosaur: great, thanks! | 12:22 | ||
geekosaur | otherwise you're leaking three pointers to memory perl didn't allocate and therefore can't free | ||
12:22
patrickz joined
12:23
aborazmeh joined,
aborazmeh left,
aborazmeh joined
|
|||
kalkin- | geekosaur: yes of course, I just wasn't sure if DESTROY is the right way to do it and if Metamodel::Finalization is part of _every_ object | 12:23 | |
geekosaur | hahaha | 12:24 | |
popped the documentation for it. had to load the svg separately because it's just a fuzzy line | |||
kalkin- | geekosaur: lol i though it just some kind of ornament :) | ||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “Mixed | and || in regexes (trap?)”: github.com/perl6/doc/issues/1141#i...-341892919 | 12:25 | |
geekosaur | I don't know if repr(CStruct) will have the finalizer stuff | 12:27 | |
I would hope it does, because DESTROY is most useful in exactly cases like this | |||
12:27
patrickz left
12:30
darkmorph left
|
|||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “Grammar doc discusses ac…”: github.com/perl6/doc/issues/897#is...-341893308 | 12:31 | |
Geth | doc: 82966bcc21 | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Perl6/TypeGraph/Viz.pm Render Enums differently in type graphs This should resolve #72. The ticket says to “render enum types differently from classes”, but does not specify how exactly. This commit makes enums green. I am sure that there are better (and prettier) ways to do it, but the graph generation code is already unnecessarily convoluted, so perhaps we need a rewrite that will take care of all these tiny issues? |
12:32 | |
squashable6 | 🍕 AlexDaniel++ closed issue “Handle enum types specially in type graphs”: github.com/perl6/doc/issues/72 | ||
doc: 83c7646bb3 | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Perl6/TypeGraph/Viz.pm Untoothpick strings |
12:33 | ||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “Handle enum types specially in type graphs”: github.com/perl6/doc/issues/72#iss...-341893567 | 12:35 | |
🍕 AlexDaniel++ wrote a comment on “Unreadable type graphs”: github.com/perl6/doc/issues/246#is...-341893609 | |||
kalkin- | geekosaur: I wanted to add it on on the Algorithm::Open-Simplex class | ||
wander | m: say "if else" ~~ / i | if || "if else" / | 12:39 | |
camelia | 「if」 | ||
wander | m: say "if else" ~~ / i || if | "if else" / | ||
camelia | 「i」 | ||
wander | m: say "if else" ~~ / (i || if) | "if else" / | 12:40 | |
camelia | 「if else」 | ||
12:42
ZzZombo left,
ZzZombo joined
|
|||
geekosaur | meanwhile I have it working with =~= for the test, but testing fails because 00-meta.t fails | 12:44 | |
oh, because Test::Meta is failing # Failed test 'version is present and doesn't have an asterisk' | 12:45 | ||
good enough I guess | |||
wander | m: say "if else" ~~ / if | i || "if else" / | 12:46 | |
camelia | 「if」 | ||
wander | m: say "if else" ~~ / if || "if else" | if / | ||
camelia | 「if」 | ||
wander | m: say "if else" ~~ / if || "if el" | "if else" / | 12:47 | |
camelia | 「if」 | ||
wander | m: say "if else" ~~ / (if || "if el") | "if else" / | ||
camelia | 「if else」 | ||
MasterDuke | . | ||
yoleaux | 11:56Z <azawawi> MasterDuke: to my surprise after trying it out, the old non-map solution was a bit faster. | ||
geekosaur | hm, maanged to completely forget I was testing if the finalizer was being called | 12:48 | |
which it probably wasn't because global destruction needs some option I can't recall or fine | |||
*find | |||
(perl 6 knows OSes free memory automatically, so it doesn't waste time on global destruction for the most part. there's some knob overriding this for use with valgrind) | 12:49 | ||
MasterDuke | .tell azawawi hm, map was a little faster for my made up test case. however, i realized you're really just taking a slice. it doesn't appear to be faster, but `$packed = $buffer[^$size]` is at least simpler | ||
yoleaux | MasterDuke: I'll pass your message to azawawi. | ||
MasterDuke | geekosaur: --full-cleanup passed to moar, but it doesn't work perfectly | 12:50 | |
geekosaur | it's too late now, I blew the working area away | ||
12:54
knight__ left
12:55
ilmari left
|
|||
Geth | doc: bc61a6d1e2 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/traps.pod6 Document using C<|> or C<||> as a trap #1141 |
12:58 | |
synopsebot | Link: doc.perl6.org/language/traps | ||
13:00
ilmari joined
|
|||
geekosaur | hm, I've thought of a way NC could handle this, and think it works for all cases because it's C side that has to deal with the ugliness | 13:01 | |
13:01
rindolf left
|
|||
geekosaur | has Struct $!struct is unmanaged; | 13:01 | |
then in the init call, $!struct is rw | 13:02 | ||
which would tell it to double-indirect in the init call. and ideally warn you to set up a destructor. or would 'will leave' work? | 13:05 | ||
you'd also hopefully get an error instead of a core dump if you tried to access it before the init call | 13:06 | ||
13:08
APic left
13:09
rindolf joined,
APic joined
|
|||
kalkin- | geekosaur: here the tests passes with == | 13:11 | |
13:12
yqt joined
|
|||
geekosaur | yeh, I was misled by the other test which I thought was separate but is in fact a prerequisite | 13:13 | |
so it was 00-meta that was failing for me the whole time | |||
I would still use =~= just because I don't trust floating point to be reliably == | 13:14 | ||
Geth | doc: 9659f324eb | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/5to6-nutshell.pod6 Modify advice of C<|> and C<||>, ronaldxs++ fix #1141 |
||
synopsebot | Link: doc.perl6.org/language/5to6-nutshell | ||
squashable6 | 🍕 W4anD0eR96++ closed issue “Mixed | and || in regexes (trap?)”: github.com/perl6/doc/issues/1141 | 13:15 | |
🍕 W4anD0eR96++ requested a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652 | 13:16 | ||
13:17
dakkar left
|
|||
squashable6 | 🍕 MasterDuke17++ submitted a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74255007 | 13:21 | |
🍕 MasterDuke17++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148930468 | |||
🍕 MasterDuke17++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148930564 | 13:24 | ||
🍕 MasterDuke17++ submitted a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74255064 | |||
🍕 W4anD0eR96++ wrote a comment on “Useless "Documentation for " in some page titles.”: github.com/perl6/doc/issues/1623#i...-341896837 | 13:27 | ||
🍕 MasterDuke17++ submitted a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74255138 | |||
🍕 MasterDuke17++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148930635 | |||
13:31
Thrush joined
|
|||
Thrush | I discovered that there's a really nice idiom for checking to see if a numerical list/array is already sorted: [<=] (1,2,2,3,5) | 13:33 | |
m: say [<=] (1,2,2,3,5) | |||
camelia | True | ||
Thrush | m: say [<=] (4,1,2,2,3,5) | ||
camelia | False | ||
AlexDaniel | Thrush: yes :) | 13:34 | |
Thrush: although… there's a little problem with the implementation right now | |||
Thrush | And my question is: What if I sorted my array by some other criterion? Like by word-length, like this: my @words = <Happy birthday to you>.sort( *.chars ); How would I check then if @words is sorted by my a certain criterion? | 13:35 | |
m: my @words = <Happy birthday to you>.sort( *.chars ); @words.say | |||
camelia | [to you Happy birthday] | ||
Thrush | AlexDaniel: Oh, what's the problem? | ||
AlexDaniel | Thrush: actually, nevermind, I can't reproduce it | 13:36 | |
m: my @a = eager 42 xx 80000; say [<=] @a | |||
camelia | True | ||
Thrush | I suppose I could map() the array, then check. | 13:37 | |
m: my @words = <Happy birthday to you>.sort( *.chars ); say [<=] @words.map( *.chars ); | |||
camelia | True | ||
AlexDaniel | yeah | ||
13:38
aborazmeh left
|
|||
Thrush | This works, but what if my sort wasn't numerical at all? Like, I sorted by the reversed word? Like this: | 13:38 | |
m: my @words = <happy birthday to you>.sort( *.flip ); @words.say | |||
camelia | [to you birthday happy] | ||
Thrush | How would I use [<=] (or something similar) to check sorted order, without re-sorting the array? | 13:39 | |
Geth | doc: 836213dab0 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/traps.pod6 Attempt to deconfuse | || trap I guess a code example should make it more clear. |
13:40 | |
synopsebot | Link: doc.perl6.org/language/traps | ||
AlexDaniel | Thrush: then you'd use a corresponding operator, in this case &leg | 13:41 | |
m: my @words = <happy birthday to you>.sort( *.flip ); say [leg] @words | |||
camelia | 5===SORRY!5=== Error while compiling <tmp> Cannot reduce with leg because structural infix operators are diffy and not chaining at <tmp>:1 ------> 3y birthday to you>.sort( *.flip ); say [7⏏5leg] @words expecting any of: … |
||
AlexDaniel | ah! Well, maybe not | ||
m: my @words = <happy birthday to you>.sort( *.flip ); say [cmp] @words | 13:42 | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Cannot reduce with cmp because structural infix operators are diffy and not chaining at <tmp>:1 ------> 3y birthday to you>.sort( *.flip ); say [7⏏5cmp] @words expecting any of: … |
||
AlexDaniel | right, then maybe there's no easy way | ||
not every operator can be chained like ≤ | |||
squashable6: status | |||
squashable6 | AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈22 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
AlexDaniel, Log and stats: gist.github.com/a2768a5c073a3de1d9...0fb629e3f5 | |||
Thrush | I was thinking of a more complicated sort, like first by word-length, but if they are the same, then by alphabetical order. Like this: | 13:43 | |
Geth | doc/doc-regex-interpolation: 94bdf62273 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/regexes.pod6 Update regexes.pod6 |
||
squashable6 | 🍕 W4anD0eR96++ synchronize pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652 | ||
Thrush | m: my @words = <to say hi and hello>.sort( { [$_.chars, lc($_)] }; @words.say | 13:44 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1) at <tmp>:1 ------> 3sort( { [$_.chars, lc($_)] }; @words.say7⏏5<EOL> |
||
Thrush | m: my @words = <to say hi and hello>.sort( { [$_.chars, lc($_)] } ); @words.say | ||
camelia | [hi to and say hello] | ||
Thrush | If I encapsulated into a function for re-use, could I use it both to sort, and with an operator similar to [<=] (for checking if an array is already sorted) ? | 13:45 | |
13:46
setty1 joined
|
|||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148931058 | 13:47 | |
🍕 W4anD0eR96++ submitted a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74255561 | |||
Thrush | Here's another question: Let's say I have an array with several undefined elements, like this: my @a; @a[0,3] = <a b>; | ||
m: my @a; @a[0,3] = <a b>; @a.say | |||
camelia | [a (Any) (Any) b] | ||
Thrush | Is there an Array method that will remove undefined elements? Something like this: @a = @a.compress(); | 13:48 | |
I guess this works: | 13:50 | ||
m: my @a; @a[0,3] = <a b>; @a.=grep( *.defined ); @a.say | |||
camelia | [a b] | ||
Thrush | But is there a more straight-forward way? If there is a function/method for it, I'd like to know about it. | 13:51 | |
13:52
patrickz joined
|
|||
squashable6 | 🍕 W4anD0eR96++ labeled issue “Grammar doc discusses ac…”: github.com/perl6/doc/issues/897 | 13:53 | |
Thrush | Now that I think about it, why does this work? say [<=] (1, 2, 3, 4, 5); | 13:54 | |
Shouldn't (1 <= 2) return True, which then causes (True <= 3) to get compared next? | |||
Geth | doc: 799e25c33a | (Patrick Sebastian Zimmermann)++ | doc/Language/modules.pod6 Some markup corrections to Language/Modules. |
13:55 | |
doc: d3bc401882 | (Patrick Zimmermann)++ (committed using GitHub Web editor) | doc/Language/modules.pod6 Merge pull request #1654 from patzim/master Some markup fixes for Language/Modules. |
|||
synopsebot | Link: doc.perl6.org/language/modules | ||
squashable6 | 🍕 patzim++ merged pull request “Some markup fixes for Language/Modules.”: github.com/perl6/doc/pull/1654 | ||
AlexDaniel | Thrush: no, because you can actually write 1 <= 2 <= 3 <= 4 <= 5 | 14:03 | |
ah | |||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “False-positives on “Perl 6 Types” page”: github.com/perl6/doc/issues/1649#i...-341899274 | ||
AlexDaniel | m: my @words = <happy birthday to you>.sort( *.flip ); say [le] @words | ||
camelia | False | ||
AlexDaniel | m: my @words = <happy birthday to you>.sort( *.flip ); say [le] @words.sort | ||
camelia | True | ||
AlexDaniel | Thrush: here's a relevant list: docs.perl6.org/language/operators#...Precedence | 14:04 | |
14:07
dpk joined
|
|||
Geth | doc: d3336436dc | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/typesystem.pod6 Avoid auto-generate '/type/*' #1649 |
14:10 | |
synopsebot | Link: doc.perl6.org/language/typesystem | ||
Thrush | Thanks for that link, AlexDaniel. I never knew that "min" and "max" could be used as infix operators. | 14:12 | |
Geth | doc: cee601a1f4 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/objects.pod6 Fix False-positives on “Perl 6 Types” page(dirty) |
14:13 | |
synopsebot | Link: doc.perl6.org/language/objects | ||
14:13
leah2 left,
patrickz left
|
|||
squashable6 | 🍕 AlexDaniel++ edited issue “Lots of broken links, in…”: github.com/perl6/doc/issues/561 | 14:16 | |
🍕 AlexDaniel++ wrote a comment on “Lots of broken links, in…”: github.com/perl6/doc/issues/561#is...-341900257 | |||
wander | AlexDaniel: issue #1623 | 14:17 | |
AlexDaniel | wander: hmm | 14:18 | |
14:18
leah2 joined
|
|||
AlexDaniel | wander: ok | 14:18 | |
I'm fine with that :) | |||
wander | :) | 14:19 | |
14:19
TomLeg joined
|
|||
wander | docs.perl6.org/routine-method.html | 14:21 | |
what a mess | |||
When does it start? I don't think my last commit causes it | 14:23 | ||
14:27
Zoffix left
|
|||
TomLeg | Are there tutorials on how to contribute, as promised in the poster? | 14:32 | |
Thrush | sub infix:<.oO>($name, $thought) { say "$name thinks $thought" }; 'Foo' .oO 'awesome' | 14:35 | |
m: sub infix:<.oO>($name, $thought) { say "$name thinks $thought" }; 'Foo' .oO 'awesome' | |||
camelia | Foo thinks awesome | ||
Thrush | That's strange... on my own perl6 REPL, when I type that line, I get exactly that output. But then when I type "'Foo' .oO 'awesome'" by itself, I get a compiler error. | 14:36 | |
Why is that? | |||
14:39
llfourn joined
14:41
fatguy left
|
|||
geekosaur | because the repl is a bit buggy | 14:41 | |
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “Useless "Documentation for " in some page titles.”: github.com/perl6/doc/issues/1623#i...-341902090 | 14:44 | |
🍕 MasterDuke17++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148932532 | 14:45 | ||
🍕 MasterDuke17++ submitted a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74256980 | |||
geekosaur | rt.perl.org/Public/Bug/Display.html?id=131530 rt.perl.org/Public/Bug/Display.html?id=131900 | 14:46 | |
squashable6 | 🍕 W4anD0eR96++ submitted a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74257017 | ||
🍕 W4anD0eR96++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148932576 | |||
14:47
yqt left
|
|||
Thrush | Thanks for letting me know about the buggyness of the REPL, geekosaur. | 14:48 | |
squashable6 | 🍕 MasterDuke17++ submitted a review on pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#pul...w-74257048 | ||
🍕 MasterDuke17++ wrote a comment on a review for “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652#dis...r148932608 | |||
Geth | doc/doc-regex-interpolation: 69cdc07531 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/regexes.pod6 Add type constrains to speed up examples MasterDuke17++ It should be nice if keep using effective code in examples. |
14:50 | |
squashable6 | 🍕 W4anD0eR96++ synchronize pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652 | ||
AlexDaniel | TomLeg: hello :) | 14:51 | |
squashable6 | 🍕 W4anD0eR96++ edited issue “False-positives on “Perl 6 Types” page”: github.com/perl6/doc/issues/1649 | ||
AlexDaniel | TomLeg: not sure if we have something specifically for the squashathon this time (there was a rakudo squashathon guide previous month). Maybe take a look at github.com/perl6/doc/blob/master/C...IBUTING.md ? | 14:52 | |
TomLeg | hiya AlexDaniel | ||
thanks | |||
AlexDaniel | TomLeg: but basically you can just choose any issue you like and work on it: github.com/perl6/doc/issues | ||
14:52
Thrush left
|
|||
AlexDaniel | TomLeg: do you have a commit bit? | 14:53 | |
TomLeg | no | ||
AlexDaniel | TomLeg: what's your github account? | ||
TomLeg | legrady | ||
AlexDaniel | TomLeg: github.com/perl6/doc/invitations | 14:54 | |
TomLeg | thanks got it | 14:55 | |
AlexDaniel | TomLeg: this way you should be able to change things and close issues :) | ||
TomLeg | And off to work .... | 14:56 | |
AlexDaniel | wander: mess? You mean the fact that it says method method method method method? :) | ||
wander | yes, is it normal? | ||
14:57
darkmorph joined,
Exodist left
|
|||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “Useless "Documentation for " in some page titles.”: github.com/perl6/doc/issues/1623#i...-341903138 | 14:58 | |
🍕 AlexDaniel++ closed issue “Useless "Documentation for " in some page titles.”: github.com/perl6/doc/issues/1623 | |||
AlexDaniel | wander: well, “normal”, I'm pretty sure there was an issue for it | ||
14:58
Exodist joined
|
|||
Geth | doc: 8f105bbd42 | (Alex Chen)++ (committed using GitHub Web editor) | doc/Language/enumeration.pod6 Try to fix #1649 not sure if this cause the issue, but I think it is. |
15:01 | |
synopsebot | Link: doc.perl6.org/language/enumeration | ||
squashable6 | 🍕 W4anD0eR96++ closed issue “False-positives on “Perl 6 Types” page”: github.com/perl6/doc/issues/1649 | ||
15:03
domidumont joined
|
|||
AlexDaniel | wander: can't find the ticket for method, method, method, method problem | 15:08 | |
wander: oh, it feels like it was parti | 15:10 | ||
partially fixed | |||
wander | :o | 15:13 | |
geekosaur | so it's only 3 of them now? >.> | 15:14 | |
15:15
mson joined
|
|||
AlexDaniel | 3? :) | 15:15 | |
ACCEPTS lists 20 :) | 15:16 | ||
wander | How to trigger `Debug { note colored("Para node2html called for ", "bold") ~ $node.gist };` | ||
something like --DDebug | 15:17 | ||
? | |||
15:17
pecastro left
|
|||
AlexDaniel | wander: sorry, where's that? | 15:18 | |
ZzZombo | is there a way to make a positional argument of a sub to be an alias to a named one? Like `$a` is the same as `:$param`. | 15:20 | |
wander | I've found some code written as above, seems `Debug` is a Phasers, but I don't know how to trigger it | ||
geekosaur | not so far as I know. but a sub taking a block/closure (which is what that looks like) would be possible, and how you trigger it would be up to the sub | 15:21 | |
phasers are all-uppercase | |||
15:22
eugene_barsky joined
15:23
eugene_barsky left
15:24
domidumont left
|
|||
geekosaur | m: my $*Debug = True; sub Debug(Block $b) { if $*Debug { $b(); } }; Debug { note 'hi' } | 15:31 | |
camelia | hi | ||
wander | yes, I see `sub Debug(Callable $) { }` | 15:37 | |
XD | |||
geekosaur | looks like they disabled it then | ||
wander | yes, below it there is an enable version | 15:39 | |
15:44
evalable6 left,
evalable6 joined,
ChanServ sets mode: +v evalable6
|
|||
squashable6 | 🍕 zoffixznet++ wrote a comment on “`eof` doc; reword to avo…”: github.com/perl6/doc/issues/1650#i...-341907077 | 15:46 | |
🍕 zoffixznet++ closed issue “`eof` doc; reword to avo…”: github.com/perl6/doc/issues/1650 | |||
15:47
nadim_ left
15:55
khw joined
|
|||
Geth | Pod-To-HTML/W4anD0eR96-patch-1: 8757bec166 | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm make `=begin Html` emit raw HTML Fix #23 @coke |
16:00 | |
16:00
zakame left
|
|||
Geth | Pod-To-HTML: W4anD0eR96++ created pull request #26: make `=begin Html` emit raw HTML |
16:01 | |
16:02
pecastro joined
16:08
zakame joined
|
|||
Geth | Pod-To-HTML/W4anD0eR96-patch-1: 4347092242 | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm Update HTML.pm |
16:12 | |
doc/master: 8 commits pushed by (Alex Chen)++ | 16:14 | ||
squashable6 | 🍕 W4anD0eR96++ merged pull request “Document Regex Interpolation, jnthn++”: github.com/perl6/doc/pull/1652 | ||
AlexDaniel | wander++ :) | 16:15 | |
great work | |||
wander | \o | ||
16:15
wamba left
16:21
zakharyas joined,
mcmillhj joined
16:22
domidumont joined
16:23
yqt joined
16:24
Piotr joined
|
|||
SmokeMachine | is there a way to cancel a Promise.start ? | 16:24 | |
16:25
ZzZombo left,
ZzZombo_ joined
|
|||
lizmat | SmokeMachine: no | 16:27 | |
SmokeMachine | lizmat: shouldn't? | 16:28 | |
lizmat | well, personally I think we should have a way | ||
but at the moment, there isn't such a way just yet | |||
your only option is to check some variable regularly inside the started code, and die if that changes to a state that indicates you want it stopped | 16:29 | ||
16:30
mcmillhj left
|
|||
SmokeMachine | lizmat: I was thinking... the way that is sad to make a timeout, is to use Promise.anyof($promise-that-should-timeout, Promise.in($timeout))... but it doesn't really times out... the promise continue running... | 16:30 | |
AlexDaniel | right | 16:31 | |
SmokeMachine | kotlin's coroutines have a isActive function to do that... (check some variable regularly) | ||
AlexDaniel | m: react { whenever Promise.in(3) { say ‘hello’ }; whenever Promise.in(1) { say ‘timeout’; done } } | 16:32 | |
camelia | timeout | ||
AlexDaniel | I don't know if it keeps running in this case | ||
lizmat | m: react { whenever Promise.in(3) { say ‘hello’ }; whenever Promise.in(1) { say ‘timeout’; done } }; sleep 3 | 16:33 | |
SmokeMachine | m: react { whenever Promise.in(3) { say ‘hello’ }; whenever Promise.in(1) { say ‘timeout’; done } }; sleep 3 | ||
camelia | timeout | ||
lizmat | that I didn't expect | ||
SmokeMachine | me neither... | ||
squashable6 | 🍕 zoffixznet++ wrote a comment on “`eof` doc; reword to avo…”: github.com/perl6/doc/issues/1650#i...-341910939 | 16:38 | |
🍕 zoffixznet++ reopened issue “`eof` doc; reword to avo…”: github.com/perl6/doc/issues/1650 | |||
16:39
Cabanossi left
16:40
darkmorph left
16:41
Cabanossi joined
|
|||
lizmat | m: react { whenever Promise.in(3) { say ‘hello’ }; whenever Promise.in(1) { say ‘timeout’ } } # without the "done", they do show up both | 16:41 | |
camelia | timeout hello |
||
lizmat | weird | ||
AlexDaniel | that's exactly how react block works | 16:44 | |
lizmat | well, I meant: weird that the in(3) doesn't fire anyways | 16:46 | |
or not ? | |||
Geth | doc: c3a93a55df | (Aleks-Daniel Jakimenko-Aleksejev)++ | htmlify.p6 method, method, method, method, method This commit resolves the problem when “method” is repeated 20 times needlessly. It was assumed that .unique is going to do the trick, but in reality it's an array of 1-element arrays, so we have to slip it. There was a ticket for that issue but I can't find it. |
16:51 | |
AlexDaniel | wander: there ↑ | ||
lizmat: 「done」 is like 「last」 but for react blocks :) | |||
lizmat | but then why isn't the code following the react executed ? | 16:52 | |
AlexDaniel | m: react { whenever Promise.in(3) { say ‘hello’ }; whenever Promise.in(1) { say ‘timeout’; done } }; say ‘you sure?’ | ||
camelia | timeout you sure? |
||
lizmat | scuse me, sorry | ||
it is | |||
ok, I see where my misconception is now | 16:54 | ||
16:54
ChoHag left
|
|||
lizmat | the Promise.in(3) internally most likely *does* fire, but the code block is not executed because it's no longer inside the react block | 16:54 | |
somehow I read the block as being part of the Promise, but it isn't | 16:55 | ||
16:59
comborico1611 joined
|
|||
comborico1611 | What is the special variable $x called? | 17:00 | |
moritz | comborico1611: $x isn't a special variable | ||
squashable6 | 🍕 zoffixznet++ edited issue “`eof` docs need to expla…”: github.com/perl6/doc/issues/1650 | ||
Geth | doc: be80f8d80a | MasterDuke17++ (committed using GitHub Web editor) | doc/Language/regexes.pod6 Note performance benefit of using a statically... typed Str|str for regex literal interpolation. |
17:01 | |
synopsebot | Link: doc.perl6.org/language/regexes | ||
Geth | Pod-To-HTML: 8757bec166 | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm make `=begin Html` emit raw HTML Fix #23 @coke |
||
Pod-To-HTML: 4347092242 | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm Update HTML.pm |
|||
Pod-To-HTML: b15389b3a9 | (Zoffix Znet)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm Merge pull request #26 from perl6/W4anD0eR96-patch-1 make `=begin Html` emit raw HTML |
|||
Pod-To-HTML: db0b4144ed | (Zoffix Znet)++ (committed using GitHub Web editor) | META6.json Bump version |
17:02 | ||
comborico1611 | Hey. Alright then. Thank you! | ||
wander | AlexDaniel: got it | ||
comborico1611 | Heh* | 17:03 | |
MasterDuke | wander: i wasn't very clear in my comments. i didn't really care about performance of the example, but that there was some explanation that using typed variables was faster | ||
hobbs | comborico1611: you can call it Betty, and it will call you Al. | ||
comborico1611 | I always liked that song. | 17:05 | |
hobbs | and you can call it special if you want :) | ||
moritz | it's special to you if you care about it a lot :-) | 17:06 | |
comborico1611 | I remember talking on here about $0 (captured variable shorthands), and someone said that $x was special or something. | 17:07 | |
Ja. | |||
wander | MasterDuke: my opinion is, if we use effective examples, then user will feel Perl 6 effective. and yes, using typed variables was faster, but it's a wide topic | ||
geekosaur | at one point I think I said something about $N while indicating thwt N is a number | 17:08 | |
$0, $1, $2, ... | |||
wander | maybe we can mention it at this section, but for details, efficiency should be a separated section | 17:09 | |
comborico1611 | Anyways, never mind. Now back to the book -- passed the halfway mark! | ||
timotimo | lizmat, AlexDaniel, there is a concept of "cancellation" for async work that we know how to terminate, waiting for a timer to fire is one, a server socket listening for incoming connections is another. react blocks handle cancellation for you | ||
comborico1611 | Is $n special?! | 17:10 | |
AlexDaniel | SmokeMachine: ↑ | ||
comborico1611: there are no special variables that I know of | |||
maybe except $_ | |||
or even @_ maybe | |||
comborico1611 | $/ | 17:11 | |
timotimo | and $! is also special | ||
lizmat | timotimo: but we can't "cancel" a thread in general, can we ? | ||
hobbs | $^things are pretty special | ||
timotimo | we cannot, no | ||
comborico1611 | Is there a list of special variables in the docs? | ||
timotimo | in the future there can be a mechanism that threads will regularly check if they are supposed to explode via an exception another thread sent it, but that's to be designed and implemented | ||
BBL | |||
geekosaur | sigh | 17:12 | |
ok, never ever use a schematic around you | |||
$0, $1, $2, $3, $4, $5, how many more do I count out? | |||
ugexe | docs.perl6.org/language/variables | ||
AlexDaniel | docs.perl6.org/language/variables#..._Variables | ||
:) | |||
comborico1611 | Yep, just found it. It doesn't look to be very organized. I don't know. | 17:13 | |
I see why. it is titled Pearl 5 to Pearl 6 variables. | 17:14 | ||
lizmat | docs.perl6.org/language/variables#...Attributes # more specifically, geekosaur | ||
AlexDaniel | timotimo: well, $_ you can declare yourself, everything else you kinda can't | ||
timotimo | you can't declare $/ or $! ? | 17:16 | |
17:17
Piotr left
|
|||
lizmat | m: my $/ = 42; say $/ | 17:18 | |
camelia | Potential difficulties: Redeclaration of symbol '$/' at <tmp>:1 ------> 3my $/7⏏5 = 42; say $/ 42 |
||
lizmat | m: { my $/ = 42; say $/ } | ||
camelia | 42 | ||
lizmat | if it's in a scope, it should be warningless | ||
Geth | doc: 9f8aa4e1b0 | (Zoffix Znet)++ | 2 files Improve .eof docs for non-seekable handles Resolves #1650 |
17:21 | |
squashable6 | 🍕 zoffixznet++ closed issue “`eof` docs need to expla…”: github.com/perl6/doc/issues/1650 | ||
SmokeMachine | great! | 17:22 | |
17:23
pmurias left
|
|||
comborico1611 | m: sub factorial (Int $num) { my $product = 1; for 1..$num -> $x { $product *= $x } return $product } say factorial 5; | 17:25 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Strange text after block (missing semicolon or comma?) at <tmp>:1 ------> 3 1; for 1..$num -> $x { $product *= $x }7⏏5 return $product } say factorial 5; |
||
17:26
ChoHag joined
|
|||
AlexDaniel | m: sub factorial (Int $num) { my $product = 1; for 1..$num -> $x { $product *= $x }; return $product }; say factorial 5; | 17:26 | |
camelia | 120 | ||
comborico1611 | m: sub factorial (Int $num) { my $product = 1; for 1..$num -> $x { $product *= $x; } return $product; } say factorial 5; | 17:27 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Strange text after block (missing semicolon or comma?) at <tmp>:1 ------> 031; for 1..$num -> $x { $product *= $x; }7⏏5 return $product; } say factorial 5; |
||
comborico1611 | Thanks! | ||
I was confused because of the following rule: when a statement is the last code line of a block immediately before the curly brace the final semicolon is optional. | 17:30 | ||
17:30
espadrine left
|
|||
geekosaur | wrong rule in this case :) | 17:30 | |
comborico1611 | In addition to putting the semicolon in the wrong spot. Haha. | ||
17:31
Piotr joined
|
|||
comborico1611 | It's just a C plus plus difference. | 17:31 | |
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “docs.perl6.org design”: github.com/perl6/doc/issues/1090#i...-341915177 | ||
comborico1611 | In C plus plus, I think the only time you add a semicolon at the end of a brace is for classes. | ||
squashable6 | 🍕 zoffixznet++ wrote a comment on “docs.perl6.org design”: github.com/perl6/doc/issues/1090#i...-341915302 | 17:33 | |
AlexDaniel | comborico1611: I think it's discussed in more detail on this page: docs.perl6.org/language/syntax#Sep...Semicolons | ||
comborico1611 | m: sub factorial (Int $num) { my $product = 1; for 1..$num -> $y { $product *= $y }; return $product } say factorial 5; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Strange text after block (missing semicolon or comma?) at <tmp>:1 ------> 3$y { $product *= $y }; return $product }7⏏5 say factorial 5; expecting any of: infix infix … |
||
comborico1611 | Thanks! | 17:34 | |
AlexDaniel | wander: that looks a bit better I guess? docs.perl6.org/routine-method.html | ||
wander | yes, i saw it | ||
nice work \o | 17:35 | ||
squashable6 | 🍕 W4anD0eR96++ edited issue “False-positives on “Perl 6 Types” page”: github.com/perl6/doc/issues/1649 | 17:36 | |
wander | BTW, ^^ is caused because how we generate '/type/*' | ||
comborico1611 | m: sub factorial (Int $num) { my $product = 1; for 1..$num -> $y { $product *= $y }; return $product }; say factorial 5; | 17:37 | |
camelia | 120 | ||
wander | it's should be documented that =head ... start with 'Role' or 'enum' is special | ||
s/documented/mentioned in CONTRIBUTING.md or so/ | |||
AlexDaniel | squashable6: status | 17:38 | |
squashable6 | AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈18 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
AlexDaniel, Log and stats: gist.github.com/767f1e81a1b180d42f...445f4f0620 | |||
comborico1611 | So pointy block eliminates need to declare a variable? | ||
AlexDaniel | comborico1611: you mean like in -> $y { } ? Well, it's not exactly a variable, but a parameter of the pointy block | 17:40 | |
just like in sub foo($y) { } | |||
comborico1611 | Ahh, i see. Thank you. Still trying to wrap my head around what pointy block is. | 17:42 | |
It's a function, not an operator. | |||
AlexDaniel | you can also write “sub ($y) {}” and it is quite similar | 17:43 | |
comborico1611 | Yes, I'm just going through the example in the book. | 17:45 | |
17:46
zakharyas left
|
|||
comborico1611 | Does the pointy block have any other parameters in my example? | 17:46 | |
squashable6 | 🍕 AlexDaniel++ opened issue “「anon」 is only documente…”: github.com/perl6/doc/issues/1655 | 17:47 | |
🍕 AlexDaniel++ labeled issue “「anon」 is only documente…”: github.com/perl6/doc/issues/1655 | |||
AlexDaniel | comborico1611: no? | 17:48 | |
comborico1611 | Heh. | 17:49 | |
Thanks. | |||
17:50
ChoHag left
|
|||
squashable6 | 🍕 W4anD0eR96++ opened issue “Accidentally generate '/type/*'”: github.com/perl6/doc/issues/1656 | 17:53 | |
🍕 W4anD0eR96++ edited issue “Accidentally generate '/type/*'”: github.com/perl6/doc/issues/1656 | 17:54 | ||
17:54
Cabanossi left
17:56
Cabanossi joined
|
|||
wander | m: say anon class foo {} | 18:03 | |
camelia | (foo) | ||
wander | say anon role foo {} | 18:04 | |
evalable6 | (foo) | ||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “「anon」 is only documente…”: github.com/perl6/doc/issues/1655#i...-341917772 | 18:06 | |
18:06
ChoHag joined
|
|||
squashable6 | 🍕 W4anD0eR96++ wrote a comment on “「anon」 is only documente…”: github.com/perl6/doc/issues/1655#i...-341918135 | 18:11 | |
18:15
chakli joined
|
|||
chakli | hey is this the right behavior of m:g ?? | 18:17 | |
m: "720\n500\n740\n200\n730\n"~~m:g/(7.0)/; say $0 | |||
camelia | 「720」 0 => 「720」 |
||
chakli | m: "720\n500\n720\n200\n720\n"~~m:g/(720)/; say $0 | 18:18 | |
camelia | 「720」 0 => 「720」 |
||
wander | m: say "720\n500\n740\n200\n730\n"~~m:g/(7.0)/; | 18:25 | |
camelia | (「720」 0 => 「720」 「740」 0 => 「740」 「730」 0 => 「730」) |
||
wander | be aware of what $/ exactlly be | ||
m: .say for "720\n500\n740\n200\n730\n"~~m:g/(7.0)/ | 18:28 | ||
camelia | 「720」 0 => 「720」 「740」 0 => 「740」 「730」 0 => 「730」 |
||
18:34
darutoko left
|
|||
chakli | how do i remove the 「 wen printing? | 18:34 | |
gfldex | m: .put for "720\n500\n740\n200\n730\n"~~m:g/(7.0)/ | 18:35 | |
camelia | 720 740 730 |
||
geekosaur | use something other than .say/.gist | ||
18:35
konsolebox left
|
|||
wander | .Str.say for "720\n500\n740\n200\n730\n"~~m:g/(7.0)/ | 18:36 | |
m: .Str.say for "720\n500\n740\n200\n730\n"~~m:g/(7.0)/ | |||
camelia | 720 740 730 |
18:37 | |
chakli | thanks :) | ||
18:38
napo1eon left
|
|||
Geth | doc: gfldex++ created pull request #1657: link to /routine/gist |
18:39 | |
squashable6 | 🍕 gfldex++ opened pull request “link to /routine/gist”: github.com/perl6/doc/pull/1657 | 18:40 | |
🍕🍕🍕 First contribution by gfldex++! ♥ | |||
18:40
konsolebox joined
|
|||
comborico1611 | Maybe I'm a complete newb here, but I think calling the pointy block operator/function thing instead, the dynamic assignment operator is better. | 18:46 | |
moritz | it's binding, not assignment | 18:47 | |
comborico1611 | What is the difference? | 18:48 | |
kalkin- | If i have some C function i.e: foo(int width, int height, double array[width][height]), I assume a wrapper in perl6 for that would be „ sub foo(int32, int32, CArray[CArray[double]])”, right? But how do i a CArray[CArray[double]] in perl6 before passing it to the wrapper function? | ||
From the documentation I see that just an array can be allocated with CArray[double].new, but how to do it for a 2D array? | 18:49 | ||
moritz | comborico1611: see docs.perl6.org/language/containers | ||
comborico1611 | Thank you. | ||
Geth | doc: 67ea14b849 | (Wenzel P. P. Peppmeyer)++ (committed using GitHub Web editor) | doc/Type/Mu.pod6 Update Mu.pod6 link to /routine/gist |
18:50 | |
synopsebot | Link: doc.perl6.org/type/Mu | ||
Geth | doc: cb967cf412 | (Aleks-Daniel Jakimenko-Aleksejev)++ (committed using GitHub Web editor) | doc/Type/Mu.pod6 Merge pull request #1657 from gfldex/patch-2 link to /routine/gist |
||
squashable6 | 🍕 AlexDaniel++ merged pull request “link to /routine/gist”: github.com/perl6/doc/pull/1657 | ||
moritz | kalkin-: if nobody has a better idea, create a CArray, and then have a loop where you allocate the inner arrays and assign them to elements of the outer | ||
kalkin- | moritz: thanks that was my backup plan which I'm trying to implement currently | ||
comborico1611 | According to the index of my book, binding and lexpad are not covered in this book. Are these advanced topics? | 18:55 | |
18:55
azawawi joined
|
|||
comborico1611 | Rather than saying Advanced topics, I should say are these non beginner topics? | 18:56 | |
azawawi | . | ||
yoleaux | 12:49Z <MasterDuke> azawawi: hm, map was a little faster for my made up test case. however, i realized you're really just taking a slice. it doesn't appear to be faster, but `$packed = $buffer[^$size]` is at least simpler | ||
azawawi | MasterDuke: ping | ||
MasterDuke: it is simpler and way faster gist.github.com/azawawi/51780f76b8...585fd17c35 MasterDuke++ | 18:57 | ||
comborico1611 | (Testing to see if irc supports smileys) 😁 | 19:02 | |
MasterDuke | oh, nice | 19:03 | |
19:03
knight__ joined
|
|||
knight__ | Hello, can I do something like this if perl6_ver == 2017.10 { use IO::String } ? | 19:04 | |
azawawi | MasterDuke: i forgot about slices btw... must be the C / NativeCall stuff :) | 19:05 | |
MasterDuke | heh, took me a while to think of them too | 19:07 | |
19:08
Cabanossi left
|
|||
comborico1611 | (testing for error message) | 19:09 | |
for <red orange yellow> <-> $color {$color = tc}; | 19:10 | ||
AlexDaniel | did you forget m: ? :) | 19:11 | |
geekosaur | knight__, "use" is lexically scoped so no, that won't work as such. | ||
19:11
Cabanossi joined
|
|||
comborico1611 | m: for <red orange yellow> <-> $color { $color = tc $color }; | 19:11 | |
camelia | Parameter '$color' expected a writable container, but got Str value in block <unit> at <tmp> line 1 |
||
comborico1611 | Heh, yeah. | 19:12 | |
AlexDaniel | m: for <red orange yellow>.Array <-> $color { $color = tc $color }; | ||
camelia | ( no output ) | ||
geekosaur | and I think you wanted $color .= tc ? (first version) | ||
comborico1611 | Yeah. That is a tricky for message: "got a Str value". | 19:13 | |
I'm unfamiliar with .= | |||
I was just seeing if the error message was the same in the book. | 19:14 | ||
geekosaur | just as $a += b is $a = $a + $b, $a .= foo is $a = $a.foo | ||
lizmat | m: my $a = "foo"; $a .= tc; say $a | ||
camelia | Foo | ||
geekosaur | but you wrote '$color = tc' the first time around (when you forgot the m:) | 19:15 | |
comborico1611 | Interesting. ( .=) | 19:17 | |
19:22
espadrine joined
|
|||
comborico1611 | (I'm trying to read this in English: for @colors <-> $color { }; ) "for every element in the array colors, for each traversal, dynamically bind each element to the variable $color, and perform the action in the brace." Is this correct? | 19:24 | |
Correction: and perform the action in the brace to said variable per traversal | 19:26 | ||
kalkin- | k, I couldn't figure out how to create a CArray[CArray[num64]], but I remembered that in c an array[width][height] is the same as array[width×height], so I just created a CArray[num64] with the length width×height and passed it to the function | 19:30 | |
it seems to work | |||
geekosaur | yes, actually, thats's a good point, the other would be double *array[width] and then malloc each element, much like you would have been doing in perl 6 | 19:33 | |
knight__ | geekosaur: Thank you. | 19:36 | |
geekosaur | I was trying to remember how you hack around that but I am short on sleep due to coughing fits again so someone else is going to have to do the thinking :/ | ||
19:42
evalable6 left,
evalable6 joined
|
|||
lizmat throws a bone to the Squashathon crowd | 19:46 | ||
azawawi | :) | ||
Geth | doc: be13fe0cfd | (Elizabeth Mattijsen)++ | 3 files Preliminary pod on Telemetry/Telemetry::Period and snapper It's been a while since I wrote pod, and I'm pretty sure I got the L<> and C<>'s mixed up, as well as forgetting a lot of stuff. Pull requests welcome! Also when my ramblings have been unclear! |
||
squashable6 | 🍕🍕🍕 First contribution by lizmat++! ♥ | ||
19:48
comborico1611 left,
domidumont left
|
|||
azawawi | lizmat: does this mean tickets like github.com/perlpilot/benchmark/issues/6 could be fixed? :) | 19:48 | |
19:49
comborico1611 joined
|
|||
lizmat | m: use Telemetry :COLUMNS; say "used {cpu} microseconds CPU so far" | 19:50 | |
camelia | used 317774 microseconds CPU so far | ||
lizmat | m: use Telemetry; snap; Nil for ^1000 | ||
camelia | Telemetry Report of Process #14627 (2017-11-04T19:50:48Z) No supervisor thread has been running Number of Snapshots: 2 Initial Size: 87264 Kbytes Total Time: 0.00 seconds Total CPU Usage: 0.00 seconds wallclock ut… |
||
lizmat | m: use Telemetry; snap; Nil for ^1000000 | 19:51 | |
camelia | Telemetry Report of Process #14745 (2017-11-04T19:51:24Z) No supervisor thread has been running Number of Snapshots: 2 Initial Size: 92240 Kbytes Total Time: 0.06 seconds Total CPU Usage: 0.06 seconds wallclock ut… |
||
azawawi | lizmat++ | 19:52 | |
El_Che | lizmat: telemetry? You finally moved to windows 10? | ||
lizmat | I was more going for the dictionary definition: "the process of recording and transmitting the readings of an instrument" | 19:53 | |
El_Che | :) | ||
Geth | doc: ac9f27c9ff | (Steve Mynott)++ | doc/Type/Telemetry.pod6 minor typo fix |
19:54 | |
synopsebot | Link: doc.perl6.org/type/Telemetry | ||
squashable6 | 🍕🍕🍕 First contribution by stmuk++! ♥ | ||
comborico1611 | Are for " @array " and " for 0..@array.end " equivalent under-the-hood? | 19:55 | |
Sorry " for @array " | |||
lizmat | comborico1611: no, because @array gives you the elements | 19:56 | |
geekosaur | one is the actual elements, the other is the indices | ||
lizmat | and 0..@array.end gives you the indiexes | ||
comborico1611 | Thank you. Is"end" short for something else? | ||
lizmat | m: my @a = <a b c>; for @a.kv -> $index, $string { say "$index: $string" } # you can also have both | 19:57 | |
camelia | 0: a 1: b 2: c |
||
lizmat steps away from the keyboard for a bit | |||
Geth | doc: d733b1e40e | (Steve Mynott)++ | doc/Language/regexes.pod6 minor typo fix |
19:58 | |
synopsebot | Link: doc.perl6.org/language/regexes | ||
19:58
cdg joined
|
|||
moritz | comborico1611: .end is just the index of the last element | 20:01 | |
geekosaur | docs.perl6.org/type/Array#(List)_routine_end | 20:02 | |
comborico1611 | Roger that. | ||
Is there a programming language that is more operator rich and Perl 6? | 20:03 | ||
THAN Perl6 | |||
moritz | APL | 20:04 | |
geekosaur considered responding "APL/J/K", but does that actually mean operators or methods? | 20:06 | ||
20:07
TEttinger joined
|
|||
moritz | well, I'm sure the Java standard library has more methods than Perl 6 :-) | 20:08 | |
20:10
HoboWithAShotgun joined
|
|||
HoboWithAShotgun | in #math | 20:10 | |
20:14
travis-ci joined
|
|||
travis-ci | Doc build failed. Elizabeth Mattijsen 'Preliminary pod on Telemetry/Telemetry::Period and snapper | 20:14 | |
travis-ci.org/perl6/doc/builds/297317953 github.com/perl6/doc/compare/cb967...13fe0cfdb6 | |||
20:14
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 20:14 | |
20:21
travis-ci joined
|
|||
travis-ci | Doc build failed. Steve Mynott 'minor typo fix' | 20:21 | |
travis-ci.org/perl6/doc/builds/297320304 github.com/perl6/doc/compare/be13f...9f27c9ff3d | |||
20:21
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 20:21 | |
20:23
telex left
|
|||
comborico1611 | m: my @colors = <red orange yellow green blue indigo violet>; for @colors.kv -> $index, $color { say "$index $colors; }; | 20:23 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Variable '$colors' is not declared. Did you mean any of these? @colors $color at <tmp>:1 ------> 3lors.kv -> $index, $color { say "$index 7⏏5$colors; }; |
||
20:24
telex joined
|
|||
comborico1611 | m: my $colors; my @colors = <red orange yellow green blue indigo violet>; for @colors.kv -> $index, $color { say "$index $colors }; | 20:24 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Unable to parse expression in double quotes; couldn't find final '"' (corresponding starter was at line 1) at <tmp>:1 ------> 3 $index, $color { say "$index $colors };7⏏5<EOL> expecting … |
||
comborico1611 | m: my $colors; my @colors = <red orange yellow green blue indigo violet>; for @colors.kv -> $index, $color { say "$index $colors" }; | 20:25 | |
camelia | Use of uninitialized value $colors of type Any in string context. Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful. 0 1 2 3 4 5 6 in block at <tmp> line 1 Use of uninitialized valu… |
||
geekosaur | you have a typo | 20:26 | |
you wanted $color instead of $colors in the say | |||
which is what the error was telling you | |||
comborico1611 | Thanks | ||
lol | |||
Why are people doing lol with slashes now? | 20:27 | ||
m: my $colors; my @colors = <red orange yellow green blue indigo violet>; for @colors.kv -> $index, $colors { say "$index $colors" }; | |||
camelia | 0 red 1 orange 2 yellow 3 green 4 blue 5 indigo 6 violet |
||
comborico1611 | m: my $colors; my @colors = <red orange yellow green blue indigo violet>; for @colors.kv -> $0, $color { say "$index $colors" }; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Cannot declare a numeric parameter at <tmp>:1 ------> 3lue indigo violet>; for @colors.kv -> $07⏏5, $color { say "$index $colors" }; |
||
comborico1611 | m: my $colors; my @colors = <red orange yellow green blue indigo violet>; for @colors.kv -> 0, $color { say "$index $colors" }; | 20:28 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Variable '$index' is not declared. Did you mean any of these? &index &rindex at <tmp>:1 ------> 3et>; for @colors.kv -> 0, $color { say "7⏏5$index $colors" }; |
||
20:28
f0x joined
|
|||
azawawi | how does one fix the issue of forward struct declarations in Perl 6... for example the following | 20:32 | |
m: use NativeCall; class Bees is repr('CStruct') { has CArray[Bee] $.ptr; } class Bee is repr('CStruct') { has Bees $.obj; } | |||
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared name: Bee used at line 1 |
||
azawawi | m: use NativeCall; class Bees is repr('CStruct') { has CArray $.ptr; } class Bee is repr('CStruct') { has Bees $.obj; } | 20:33 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Strange text after block (missing semicolon or comma?) at <tmp>:1 ------> 3is repr('CStruct') { has CArray $.ptr; }7⏏5 class Bee is repr('CStruct') { has Bee expecting any of: … |
||
azawawi | m: use NativeCall; class Bees is repr('CStruct') { has CArray $.ptr; }; class Bee is repr('CStruct') { has Bees $.obj; } | ||
camelia | ( no output ) | ||
20:33
comborico1611 left
|
|||
azawawi | m: use NativeCall; class Bees is repr('CStruct') { has CArray[Bee] $.ptr; }; class Bee is repr('CStruct') { has Bees $.obj; } | 20:34 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared name: Bee used at line 1 |
||
azawawi | any forward declarations for classes in Perl 6? | 20:38 | |
20:38
Cabanossi left
|
|||
geekosaur | class Bee {...}; | 20:40 | |
the ... is literal | |||
20:41
Cabanossi joined
|
|||
geekosaur | docs.perl6.org/language/typesystem...clarations | 20:41 | |
20:42
travis-ci joined
|
|||
travis-ci | Doc build failed. Steve Mynott 'minor typo fix' | 20:42 | |
travis-ci.org/perl6/doc/builds/297321404 github.com/perl6/doc/compare/ac9f2...33b1e40e5e | |||
20:42
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 20:42 | |
azawawi | m: use v6; use NativeCall; class Bee { ... }; class Bees is repr('CStruct') { has CArray[Bee] $.ptr; }; class Bee is repr('CStruct') { has Bees $.obj; } | 20:44 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> An exception occurred while parameterizing CArray at <tmp>:1 Exception details: Cannot resolve caller infix:<===>(Bee, Str); none of these signatures match: ($?) (\a, \b) … |
||
geekosaur | hm. I wonder if the forward decl needs a repr for that to work. or if that's even legal | 20:47 | |
legal but doesn't help. hm | |||
20:50
comborico1611 joined
|
|||
azawawi | geekosaur: going to use a fake object (same size) for now :) | 20:53 | |
azawawi is working on MsgPack::unpack(Blob) -> Perl 6 code | 20:54 | ||
geekosaur | yeh, I think that's what you'll need to do, looking at the --ll-exception | 20:55 | |
lizmat | hmmm... looks like class Kernel is still without *any* documentation ? | ||
geekosaur | CArray needs to know too much about the type | ||
AlexDaniel | lizmat: github.com/perl6/doc/issues/1569 and github.com/perl6/doc/issues/503 | 20:58 | |
20:59
chakli left
|
|||
squashable6 | 🍕 AlexDaniel++ wrote a comment on “doc /type/Kernel”: github.com/perl6/doc/issues/1569#i...-341929439 | 21:00 | |
21:10
eliasr left
21:18
rindolf left
21:19
pentashift left
|
|||
AlexDaniel | squashable6: status | 21:21 | |
squashable6 | AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈14 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
AlexDaniel, Log and stats: gist.github.com/0d00eb65ff723113a9...de66eb8040 | |||
21:23
knight__ left
21:24
Morfent left
21:32
nadim_ joined
|
|||
Geth | doc: 83bfdd4e79 | (Elizabeth Mattijsen)++ | doc/Type/Telemetry.pod6 Add some text about subroutines exported And how to import them selectively. |
21:33 | |
synopsebot | Link: doc.perl6.org/type/Telemetry | ||
21:39
Cabanossi left
21:41
Cabanossi joined
21:42
ivans left,
ivans joined
21:47
ivans left,
ivans joined
21:48
dominix joined
21:51
TomLeg left
21:52
nadim_ left
21:57
dominix left
22:01
okl joined
22:02
travis-ci joined
|
|||
travis-ci | Doc build failed. Elizabeth Mattijsen 'Add some text about subroutines exported | 22:02 | |
travis-ci.org/perl6/doc/builds/297347728 github.com/perl6/doc/compare/d733b...bfdd4e794d | |||
22:02
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 22:02 | |
22:03
HelpWithPerl joined
|
|||
HelpWithPerl | Hey guys | 22:03 | |
How do I check if a variable is within an array? | 22:04 | ||
Geth | perl6.org: 6103378a39 | (Zoffix Znet)++ (committed using GitHub Web editor) | source/.htaccess Add short URL for IRC web chat |
22:05 | |
doc: e8ee9762dd | (Zoffix Znet)++ (committed using GitHub Web editor) | html/.htaccess Use correct redirect code for IRC web chat |
|||
comborico1611 | Newb here also. | ||
22:05
colomon left
22:06
Zoffix joined
|
|||
Zoffix | HelpWithPerl: that's a bit of a vague question. Do you mean a value is present in an array? | 22:06 | |
22:06
Sgeo left
|
|||
geekosaur | you could be looking just for presence, for its index, or to search by a pattern or other criterion | 22:07 | |
lizmat | or you could be using set operators: | ||
m: my @a = ^10; say 42 (elem) @a | |||
camelia | False | ||
Zoffix | m: say 'foo' ∈ <foo bar ber>; # that's what I usually use 'cause it's pretty, but that cares about allomorphs | ||
camelia | True | ||
lizmat | m: my @a = ^10; say 7 (elem) @a | ||
camelia | True | ||
Zoffix | So 42 ∈ <42 100 50> won't work | ||
geekosaur | that was what I meant by presence | ||
22:07
colomon joined
|
|||
Zoffix | m: say so <foo bar ber>.grep: 'foo'; # you could .grep for it, but that doesn't stop after it was found | 22:08 | |
camelia | True | ||
geekosaur | m: <foo bar baz quux>.grep(/z/, :k).say # report position(s) | ||
camelia | (2) | ||
22:08
ivans left
22:09
Cabanossi left
|
|||
Zoffix | m: say Nil === <foo bar ber>.first: 'foo'; # you could .first it, but that won't work if your value and array contents could be Nils (rarelly would matter) | 22:09 | |
camelia | False | ||
comborico1611 | What about regex? [ $variable-name ~~ / $variable-name / | ||
Sorry for bracket. | 22:10 | ||
Zoffix | Actually | ||
geekosaur | just drop the | ||
er | |||
m: <foo bar baz quux>.grep(/z/).say | |||
camelia | (baz) | ||
Zoffix | m: say Nil === <foo bar ber>.first: 'foo', :k; # this is probably the bestest way | ||
camelia | False | ||
comborico1611 | (i feel like the little child that wants to help.) | ||
Zoffix | m: say Nil === (Nil,).first: Nil, :k; # this is probably the bestest way | ||
camelia | False | ||
Zoffix | m: say Nil === (42,).first: Nil, :k; # this is probably the bestest way | 22:11 | |
camelia | True | ||
Zoffix | \o/ | ||
comborico1611 | Interesting. | ||
22:11
Cabanossi joined
|
|||
Zoffix fels like a spammer :D | 22:11 | ||
\o | |||
22:11
Zoffix left
|
|||
geekosaur | only until sigyn notices, then you really are >.> | 22:11 | |
22:12
setty1 left
|
|||
geekosaur | although it looks like the spambot's not in here any more | 22:12 | |
22:12
okl left
|
|||
comborico1611 | Is moritz's Fundamental book the next logical book to purchase after the beginner book? | 22:13 | |
22:14
ivans joined
|
|||
comborico1611 | I don't have the hacker drive/talent to learn by experimentation. I learn best with a book. | 22:14 | |
22:15
raiph joined,
colomon left
|
|||
Geth | doc: df06cbc070 | (Elizabeth Mattijsen)++ | doc/Type/Kernel.pod6 Initial version of Kernel documentation. |
22:20 | |
synopsebot | Link: doc.perl6.org/type/Kernel | ||
lizmat | ?? no squashable feedback anymore ? :-( | 22:21 | |
squashable6 | 🍕 lizmat++ wrote a comment on “doc /type/Kernel”: github.com/perl6/doc/issues/1569#i...-341933977 | ||
lizmat | ah, only the first commit I guess :-) | 22:22 | |
22:24
sena_kun left,
Khisanth left
|
|||
comborico1611 | m: my @numbers = 1 2 3; | 22:27 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Two terms in a row at <tmp>:1 ------> 3my @numbers = 17⏏5 2 3; expecting any of: infix infix stopper postfix statement end statement mod… |
||
azawawi | CStruct (HAS CUnion) + CArray inside the CUnion = recipe for various rakudo segfaults... | ||
comborico1611 | m: my @numbers = [1 2 3]; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Two terms in a row at <tmp>:1 ------> 3my @numbers = [17⏏5 2 3]; expecting any of: infix infix stopper statement end statement modifier … |
22:28 | |
22:28
tomaw_ joined
|
|||
geekosaur | comborico1611, plain or in brackets you need commas | 22:28 | |
comborico1611 | m: my @numbers = {1 2 3}; | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Two terms in a row at <tmp>:1 ------> 3my @numbers = {17⏏5 2 3}; expecting any of: infix infix stopper statement end statement modifier … |
||
geekosaur | <> you don't, but you get allomorphs | ||
Geth | doc: f2df22e8f1 | (Elizabeth Mattijsen)++ | doc/Type/Kernel.pod6 Oops, forgot Kernel.bits |
||
HelpWithPerl | Okay guys | ||
azawawi | at some point, i just want to write it in C instead of Perl 6 :) | ||
comborico1611 | Thanks | ||
Just what i was wondering. | |||
geekosaur | m: my @a = <1 2 3>; dd @a[0] | ||
camelia | IntStr @a = IntStr.new(1, "1") | ||
22:29
tomaw_ is now known as tomaw
|
|||
comborico1611 | m: my @numbers = <1 2 3>; | 22:29 | |
camelia | ( no output ) | ||
geekosaur | that's an allomorph; it's not sure whether it's an Int or a Str :) | ||
comborico1611 | You talking to me? | ||
geekosaur | about the IntStr thing I made the bot do, yes | 22:30 | |
which is what you get from the <1 2 3> for | |||
m | |||
whereas if you do | |||
comborico1611 | m: my @numbers = 1, 2, 3; | ||
camelia | ( no output ) | ||
geekosaur | m: my @a = 1, 2, 3; dd @a[0] | ||
camelia | Int @a = 1 | ||
geekosaur | it's just an Int | ||
comborico1611 | What is dd? | ||
geekosaur | 'debug dumper' | 22:31 | |
it's a way to see exactly what something is, instead of various prettified (or uglified) views of it | |||
HelpWithPerl | What would I need to add to say (@tableau).grep: Int; for it to check integers that are multiples of 3 and 5? | 22:32 | |
comborico1611 | I don't understand. But it's okay. I need to enter some code. The semicolon look to be in the wrong spot | ||
I see. | |||
22:32
cdg left
22:33
cdg joined,
travis-ci joined
|
|||
travis-ci | Doc build failed. Zoffix Znet 'Use correct redirect code for IRC web chat' | 22:33 | |
travis-ci.org/perl6/doc/builds/297356389 github.com/perl6/doc/compare/83bfd...ee9762dde5 | |||
22:33
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 22:33 | |
geekosaur | m: my @n = 1, 3, 5, 7, 9, 15; say @n.grep: {$^a % 3 == 0 && $^a % 5 == 0} | ||
camelia | (15) | ||
Geth | doc: 6fef43cb4a | (Elizabeth Mattijsen)++ | doc/Type/Distro.pod6 Initial version of the Distro documentation |
||
synopsebot | Link: doc.perl6.org/type/Distro | ||
geekosaur | if you also need to check the Int part, | 22:34 | |
m: my @n = 1, 3, 5, 7, 9, 15; say @n.grep: {$^a ~~ Int && $^a % 3 == 0 && $^a % 5 == 0} | |||
camelia | (15) | ||
HelpWithPerl | Thanks :D | ||
geekosaur | or you can be more explicit instead of using a placeholder: | ||
ilmari | m: say (^30).grep: { $_ %% 3 && $_ %% 5 } | ||
camelia | (0 15) | ||
ilmari | m: say (^35).grep: { $_ %% 3 && $_ %% 5 } | ||
camelia | (0 15 30) | ||
geekosaur | m: my @n = 1, 3, 5, 7, 9, 15; say @n.grep: -> $n {$n % 3 == 0 && $n % 5 == 0} | ||
camelia | (15) | ||
squashable6 | 🍕 lizmat++ wrote a comment on “Kernel, Distro, VM and P…”: github.com/perl6/doc/issues/503#is...-341934592 | ||
22:34
nadim_ joined
|
|||
ilmari | %% is "is divisble by" | 22:35 | |
geekosaur | hm, probably shouldn't have used n for both | ||
ah, right | |||
kalkin- | Hmm NativeCall is SLOW! I have a c function which takes <1 second to run and populates an array with 10⁸ elements, takes wrapped ≥34 seconds! | ||
geekosaur | m: my @n = 1, 3, 5, 7, 9, 15; say @n.grep: -> $v {$v %% 3 && $v %% 5} | ||
camelia | (15) | ||
geekosaur | kalkin-, yes, it's got to remap all of those elements into something Perlish | 22:36 | |
kalkin- | There is no way to optimize that, isn't there? | ||
comborico1611 | m: my @numbers = <1 2 3>; sub add-numbers ( @numbers ) { my total = 0; for @numbers -> $x { $total += $x; } return $total; } | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> Malformed my (did you mean to declare a sigilless \total or $total?) at <tmp>:1 ------> 3 sub add-numbers ( @numbers ) { my total7⏏5 = 0; for @numbers -> $x { $total += $x; |
||
comborico1611 | m: my @numbers = <1 2 3>; sub add-numbers ( @numbers ) { my $total = 0; for @numbers -> $x { $total += $x; } return $total; } | 22:37 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Strange text after block (missing semicolon or comma?) at <tmp>:1 ------> 3 0; for @numbers -> $x { $total += $x; }7⏏5 return $total; } |
||
geekosaur | repr('CStruct'), CArray, etc. don;t mean it's literally using C values, it just provides a way for NativeCall to request packing and unpacking between C form and Perl form | ||
comborico1611 | m: my @numbers = <1 2 3>; sub add-numbers ( @numbers ) { my total = 0; for @numbers -> $x { $total += $x; }; return $total; } | 22:38 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Malformed my (did you mean to declare a sigilless \total or $total?) at <tmp>:1 ------> 3 sub add-numbers ( @numbers ) { my total7⏏5 = 0; for @numbers -> $x { $total += $x; |
||
comborico1611 | m: my @numbers = <1 2 3>; sub add-numbers ( @numbers ) { my $total = 0; for @numbers -> $x { $total += $x; }; return $total; } | ||
camelia | ( no output ) | ||
22:38
cdg left
|
|||
comborico1611 | I believe this author did not understand where to put ; outside of brace. | 22:39 | |
22:39
wamba joined
|
|||
geekosaur | or just being pedantic | 22:39 | |
comborico1611 | I think I'll take a break. | ||
22:40
Khisanth joined
|
|||
comborico1611 | I don't think so. | 22:40 | |
kalkin- | It's a pity, but I can't use Perl 6 for my current project. I love the expressiveness of Perl 6, but it just doesn't scale for my purposes | ||
22:42
ivans left
22:47
ivans joined
22:48
azawawi left,
travis-ci joined
|
|||
travis-ci | Doc build failed. Elizabeth Mattijsen 'Initial version of Kernel documentation.' | 22:48 | |
travis-ci.org/perl6/doc/builds/297360376 github.com/perl6/doc/compare/e8ee9...06cbc0709e | |||
22:48
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 22:48 | |
Geth | doc: db79ec9c3d | (Elizabeth Mattijsen)++ | doc/Type/VM.pod6 Initial version of documentation of VM |
22:52 | |
synopsebot | Link: doc.perl6.org/type/VM | ||
squashable6 | 🍕 lizmat++ wrote a comment on “Kernel, Distro, VM and P…”: github.com/perl6/doc/issues/503#is...-341935628 | ||
22:54
Cabanossi left
22:55
Cabanossi joined
22:57
travis-ci joined
|
|||
travis-ci | Doc build failed. Elizabeth Mattijsen 'Oops, forgot Kernel.bits' | 22:57 | |
travis-ci.org/perl6/doc/builds/297362376 github.com/perl6/doc/compare/df06c...df22e8f187 | |||
22:57
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 22:57 | |
lizmat | hmmm... did *I* break all of the builds ? | 22:58 | |
23:01
travis-ci joined
|
|||
travis-ci | Doc build failed. Elizabeth Mattijsen 'Initial version of the Distro documentation' | 23:01 | |
travis-ci.org/perl6/doc/builds/297363569 github.com/perl6/doc/compare/f2df2...ef43cb4a7c | |||
23:01
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 23:01 | |
Geth | doc: b558e0936b | (Elizabeth Mattijsen)++ | doc/Type/Perl.pod6 Initial version of Perl class information |
23:02 | |
synopsebot | Link: doc.perl6.org/type/Perl | ||
23:02
colomon joined
|
|||
squashable6 | 🍕 lizmat++ wrote a comment on “Kernel, Distro, VM and P…”: github.com/perl6/doc/issues/503#is...-341936247 | 23:02 | |
🍕 lizmat++ wrote a comment on “Kernel, Distro, VM and P…”: github.com/perl6/doc/issues/503#is...-341936303 | 23:03 | ||
lizmat | good night, good Squashathon folks! | 23:04 | |
23:05
Piotr left
|
|||
HelpWithPerl | Is there anything wrong with this line of code? $total + @somme[$i]; | 23:08 | |
Juerd | No, but realise it doesn't really do anything by itself. | 23:09 | |
HelpWithPerl | Oh, yeah, but after some testing I think that the issue is inside of that line :P | ||
Do you mind have a quick look? I could add the code into a pastebin | 23:10 | ||
raiph | m: my $total = 42; my @somme = [1,2,3]; my $i = 1; say $total + @somme[$i]; $total + @somme[$i]; | ||
camelia | WARNINGS for <tmp>: 44 Useless use of "+" in expression "$total + @somme[$i]" in sink context (line 1) |
||
Juerd | HelpWithPerl: What's the issue? | 23:11 | |
23:11
nadim_ left
|
|||
HelpWithPerl | I'm tring to solve the 1st Project Euler problem, but the numbers aren't adding :P | 23:12 | |
Juerd | That's a bit too high level :) | ||
raiph | HelpWithPerl: a pastebin would be fine | 23:13 | |
HelpWithPerl | lol | ||
geekosaur | were you tryuing to return that, or actually add the value to $total? | 23:14 | |
HelpWithPerl | pastebin.com/ak5Xftqm | 23:15 | |
geekosaur | you wanted += | ||
Juerd | HelpWithPerl: Normally, you would do something with the result of the addition | ||
geekosaur | + will add them but discard the result because it's in sink context | ||
Juerd | HelpWithPerl: 1 + 1 returns 2, but if you just have 1 + 1, the numbers are added, and the resulting 2 is thrown away. | ||
geekosaur | hm, actually it's not sink context | ||
loops are weird :( | |||
HelpWithPerl | Oh, okay | 23:16 | |
geekosaur | so the loop returns a list, which gets silently sunk ignoring the contents | ||
Juerd | HelpWithPerl: To assign the result to the same variable, use $somme = $somme + @total[$i]; or the shorthand form $somme += @total[$i]; | ||
HelpWithPerl | I've just tried that, but it just gives the most recent number in the array | 23:17 | |
Juerd | What does "give" mean? :) | 23:18 | |
HelpWithPerl | Well, returns :P | 23:19 | |
23:19
travis-ci joined,
cdg joined
|
|||
travis-ci | Doc build failed. Elizabeth Mattijsen 'Initial version of documentation of VM' | 23:19 | |
travis-ci.org/perl6/doc/builds/297368223 github.com/perl6/doc/compare/6fef4...79ec9c3da2 | |||
23:19
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 23:19 | |
23:24
cdg left,
darkmorph joined
|
|||
HelpWithPerl | Yes! I realised what the problem was! | 23:25 | |
!!!1! | |||
I had the total declaration inside the loop, so every time it ran the loop it would get reset to 0 | 23:26 | ||
Thanks for the help guys :D | |||
23:27
ivans left
23:34
mson left
|
|||
Geth | perl6.org: a2565accc5 | (Zoffix Znet)++ (committed using GitHub Web editor) | source/.htaccess Add short URL for sponsoring jnthn To have something of sane length to use in print |
23:35 | |
23:35
census joined
23:38
colomon left
23:39
ivans joined
23:45
HelpWithPerl left
|
|||
Geth | doc: 1dcf12a96d | (Zoffix Znet)++ | 2 files Unbust doc build |
23:48 | |
23:48
travis-ci joined
|
|||
travis-ci | Doc build failed. Elizabeth Mattijsen 'Initial version of Perl class information' | 23:48 | |
travis-ci.org/perl6/doc/builds/297370656 github.com/perl6/doc/compare/db79e...58e0936b06 | |||
23:48
travis-ci left
|
|||
buggable | [travis build above] ☠ Did not recognize some failures. Check results manually. | 23:48 | |
23:56
colomon joined
|