»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg camelia perl6: ... | irclog: irc.perl6.org | UTF-8 is our friend! Set by sorear on 25 June 2013. |
|||
masak | lue: I'm inclined to agree. | 00:00 | |
grammar inheritance notwithstanding. | |||
extending rather than modifying will always be the "safe" strategy. | |||
lue | The only time you'd really want to change an existing grammar is to add a feature to it, e.g. to hook into a new slang, and macros could accomplish that perhaps. | 00:01 | |
00:01
tgt left
|
|||
masak | lue: I can see people maybe getting away with adding a twigil, or something similar. | 00:02 | |
but perhaps protoregexes will make that feasible. | |||
00:02
dmol left
00:05
treehug88 left
|
|||
lue still thinks the syntax inside the braces of slang { } needs to be something that pulls together grammar, actions, and other possible related things, instead of precisely the same things as go in grammar { } | 00:05 | ||
00:06
tgt joined
00:08
fridim__ left
|
|||
lue | Still a lot of thinking that needs to be done on slangs, just thought I'd let you know what I see slangs useful for nowadays :) . | 00:08 | |
masak | lue: thanks. | 00:10 | |
I agree we're not quite there yet. | |||
00:10
tgt left
|
|||
masak | as usual in these situations, I think things will only start to happen once the rubber meets the road -- once someone tries something, and gets feedback from users and from seeing it work in practice. | 00:10 | |
lue | I'm not surprised it's not even well-spec'd, let alone implemented; who'd be insane enough to allow the user to change the language they're writing in? ;) | 00:11 | |
masak | aka "rough consensus and working code" | ||
lue | I think there's still some work to do to get something that can be implemented in the first place, but certainly most of the ironing out will be in usage, not speculation :) | 00:12 | |
00:12
spider-mario left
|
|||
masak | agree that we must be fairly certain what we want, and we aren't yet :) | 00:15 | |
sometimes I wish I could associate an actions class with a grammar, slang or no. | 00:16 | ||
it's very rare that I do something other than 1-grammar-1-actions-class. | 00:17 | ||
Mouq | "chr codepoint cannot be negative" :? | ||
lue | masak: what, isn't :actions enough an association for you? :P | ||
Mouq: check for an E<> somewhere near where the backtrace tells you in the offending Pod6 file. | 00:18 | ||
masak | lue: no, because that association has to be done per-parse-call. I'd like to be able to make the association once, from the grammar. | ||
Mouq | lue: Re-ran, came up with same bug | 00:19 | |
lue | masak: one of my ideas is that slang could perhaps be a general grammar/action associator, with the special language-level bit being stuffing that slang-thing in a $~THING and using that variable somewhere in the Perl6 grammar/actions/etc. | ||
Mouq tries gist.github.com/Mouq/82ebe2 | 00:20 | ||
masak | lue: mhm. | ||
Mouq realizes how much that diff will annoy lue | |||
lue | Mouq: gist.github.com/Mouq/82ebe2 is a 404 :/ | ||
skids | masak: just overload .parse. | ||
Mouq | lue: gist.github.com/Mouq/82ebe2b9633c487d3795 | ||
lue | I still like my way for how it follows the POD generator's output. :) | 00:22 | |
Also, my way uses high-number PUA Unicode chars, so there :P | |||
00:23
fridim__ joined
|
|||
Mouq | lue: :) your way definitely wins on coolness (and probably actually-working-ness) | 00:24 | |
lue | Perhaps I can stick the HTML I want in one giant V<> at some point :) [Unless Pod::To::HTML tries to escape the angle brackets and such...] | 00:25 | |
Mouq realizes the problem is probably something as simple as spaces around the <p> | 00:27 | ||
lue | (fwiw, I originally wanted to use the C0 and/or C1 control chars (because they look so disused, at least in the stuff I find myself doing), but none of them have the precisely right meanings ☺ (closest is SOH/STX/ETX) ) | ||
Mouq notes that his diff did solve the problem though :) | 00:28 | ||
lue | Have yet to try latest everything on syngen, by the way. | ||
masak | skids: ooh | 00:29 | |
Mouq | (And you don't have to wait for all the HTML to be output to see if the issue was fixed w/ the removal of the Post-gen stage | ||
:) ) | 00:30 | ||
lue | Mouq: yeah, though I've been considering turning the pipeline into a concurrent sort of thing to take care of that "waiting on" issue :) | ||
masak | r: class Actions { method TOP { say "OH HAI" } }; grammar G { regex TOP { x }; method parse($input) { nextsame($input, :actions(Actions.new)) } }; G.parse("x") | 00:31 | |
camelia | rakudo-jvm c8ef8d: OUTPUT«(timeout)» | ||
..rakudo-parrot c8ef8d: OUTPUT«Too many positional parameters passed; got 1 but expected 0 in block at gen/parrot/CORE.setting:653 in method parse at /tmp/tmpfile:1 in block at /tmp/tmpfile:1» | |||
..rakudo-moar c8ef8d: OUTPUT«Too many positional parameters passed; got 1 but expected 0 in block at src/gen/m-CORE.setting:652 in method parse at /tmp/tmpfile:1 in block at /tmp/tmpfile:1» | |||
masak | r: class Actions { method TOP { say "OH HAI" } }; grammar G { regex TOP { x }; method parse($input) { nextwith($input, :actions(Actions.new)) } }; G.parse("x") | ||
camelia | rakudo-parrot c8ef8d: OUTPUT«Too many positional parameters passed; got 2 but expected 1 in method TOP at /tmp/tmpfile:1 in any !reduce at gen/parrot/stage2/QRegex.nqp:752 in any !cursor_pass at gen/parrot/stage2/QRegex.nqp:714 in regex TOP at /tmp/tmpfile:1 in m…» | ||
..rakudo-moar c8ef8d: OUTPUT«Too many positional parameters passed; got 2 but expected 1 in method TOP at /tmp/tmpfile:1 in any !reduce at gen/moar/stage2/QRegex.nqp:752 in any !cursor_pass at gen/moar/stage2/QRegex.nqp:714 in regex TOP at /tmp/tmpfile:1 in method …» | |||
..rakudo-jvm c8ef8d: OUTPUT«Too many positional parameters passed; got 2 but expected 1 in method TOP at /tmp/tmpfile:1 in any !reduce at gen/jvm/stage2/QRegex.nqp:752 in any !cursor_pass at gen/jvm/stage2/QRegex.nqp:714 in regex TOP at /tmp/tmpfile:1 in method par…» | |||
masak | oh, right. | ||
r: class Actions { method TOP($/) { say "OH HAI" } }; grammar G { regex TOP { x }; method parse($input) { nextwith($input, :actions(Actions.new)) } }; G.parse("x") | |||
camelia | rakudo-parrot c8ef8d, rakudo-jvm c8ef8d, rakudo-moar c8ef8d: OUTPUT«OH HAI» | ||
masak | \o/ | ||
and with that... | |||
...'night, #perl6 | 00:32 | ||
lue | ♞ masak o/ | ||
skids | masak: I do agree that that will be common enough that grammar might best be a parameterized role that takes an actions to use as a default. | ||
Oh goodnight. | |||
Mouq | o/ masak | 00:33 | |
Mouq ought to bed soon as well, getting close to the 36 hour mark of being awake | |||
lue | Heh, if only it wasn't complex enough to require ncurses, I'd have conc-syngen display a "leaderboard" (or whatever it's best called) of all the synopses with progress indicators for each one :P | ||
Mouq: yeesh, you should probably go to bed real soon. | 00:35 | ||
Aw, I get a segfault trying to run ./bootstrap.pl on perl6-m :( | 00:41 | ||
Mouq | lue: Are you sure you don't want rebootstrap.pl? | 00:44 | |
lue | positive. "No need to rebootstrap, running normal bootstrap" | ||
Mouq | :( | 00:45 | |
00:58
hoverboard is now known as NastySauce,
xenoterracide joined
|
|||
lue | Looks like the bootstrap script itself is what segfaults. | 00:59 | |
That explains it. the script is trying to `mkdir` /usr/local/languages/perl6/site , which it is not allowed to do (nor do I want it to do that, I want ~/.perl6/) | 01:05 | ||
01:07
tgt joined
|
|||
lue | .tell tadzik to see irclog.perlgeek.de/perl6/2014-03-04#i_8379034 (I get a segfault when perl6-m tries mkdir'ing a path it hasn't the permissions for. Should be creating ~/.perl6 instead anyway) | 01:07 | |
yoleaux | lue: I'll pass your message to tadzik. | ||
lue & | |||
01:09
bluescreen100 left
01:11
tgt left
01:12
kbaker_ joined
01:18
xinming_ left
01:24
xinming joined
|
|||
Mouq generates a Perl 6 hash of all lowercase HTML5 entities and the codepoint(s) they represent. Now. Where to put this. | 01:37 | ||
I can't imagine this is useful anywhere but in Pod parsing | 01:38 | ||
BenGoldberg | Not necessarily -- I can imagine it being used to convert html to text | 01:39 | |
Mouq | BenGoldberg: But that would use a full list. | ||
BenGoldberg | Oh, well nevermind then ;) | ||
Mouq | :) | ||
01:42
NastySauce is now known as hoverboard
01:45
xinming left
01:51
xenoterracide left
|
|||
Mouq | m: say "\c[8842,65024]" | 02:05 | |
camelia | rakudo-moar c8ef8d: OUTPUT«⊊︀» | ||
02:06
__thou left
02:07
grondilu left,
tgt joined
02:12
tgt left
02:14
kivutar left
02:21
kbaker_ left
02:23
xenoterracide joined
02:28
itz_ left,
Sqirrel left
02:29
itz left,
Sqirrel joined
02:31
klapperl joined
02:32
itz_ joined
02:34
klapperl_ left
02:41
alc joined,
itz joined
02:44
__thou joined
02:45
hoverboard left
02:48
regreg joined,
molaf left,
alc left
02:56
hoverboard joined
02:57
xenoterracide left
|
|||
[Coke] | should I have dalek report on mojo6 here? (slow going at the moment) | 03:04 | |
japhb__ | [Coke]: Definitely | 03:06 | |
03:08
tgt joined
03:12
xinming joined
03:13
tgt left
|
|||
japhb__ | Did jnthn++ mention when he would be 6ing again? | 03:14 | |
03:15
regreg left
03:33
xenoterracide joined
03:38
fridim__ left,
jnap left
04:03
cognominal left
04:09
tgt joined
04:14
tgt left
|
|||
moritz | [Coke]: for Mojo6, do you want to implement Mojolicious-style setter methods? | 04:15 | |
lue | .tell tadzik looks like it's moar's fault, not panda's. Try mkdir /test on all three backends. | 04:21 | |
yoleaux | lue: I'll pass your message to tadzik. | ||
04:23
cognominal joined,
xenoterracide left,
xenoterracide joined
04:29
molaf joined
|
|||
dalek | p: fb32da5 | larry++ | / (2 files): hook up new uniprop opcodes |
04:33 | |
04:39
hoverboard left
04:44
hoverboard joined
04:51
hoverboard is now known as suchip
|
|||
TimToady | so, I'm wondering if there's a magical way to bump revisions, or if one just does that by hand | 04:55 | |
04:56
suchip is now known as hoverboard
|
|||
lue | TimToady: I've not heard of some bumping tool, I believe it's all manual. | 04:59 | |
05:03
__thou left
|
|||
TimToady | and in a number like | 05:06 | |
2014.02-8-geb722b4, what is the significance of the 8? | 05:07 | ||
lue | I have no clue, unfortunately :( | ||
TimToady | the previous rev had a 5 there | 05:08 | |
but it's not the day of month | |||
maybe it just has to increase | |||
05:10
tgt joined
|
|||
lue | TimToady: perl tools/build/gen-version.pl in the top dir of rakudo might be helpful. | 05:11 | |
TimToady | looking and NQP::Configure.pm it's just a sequence number | 05:12 | |
s/and/at/ | |||
05:13
__thou joined,
BenGoldberg left
05:14
tgt left
|
|||
dalek | p: a1e5033 | larry++ | tools/build/MOAR_REVISION: bump moar revision |
05:20 | |
kudo/nom: 62996cb | larry++ | tools/build/NQP_REVISION: bump nqp revision |
05:21 | ||
TimToady hopes he done it rihgt | |||
05:22
[Sno] left
|
|||
TimToady | hopefully we can now start playing with uniprops in nom, and do things like return the Rat corresponding to the vulgar fractions | 05:23 | |
lue | TimToady: currently S15 has a uniprops function that returns a hash of all the properties a given character. I'm wondering if replacing that with a uniprop($char, $prop) type thing would be better. | 05:31 | |
(would have the advantage that the name &uniprops can be for the function that gives you a property for every character, akin to ord/ords and chr/chrs. If the hash is still needed, perhaps &unihash or something) | 05:32 | ||
dalek | kudo/nom: b4336af | larry++ | tools/build/NQP_REVISION: oops, need to bump the nqp that bumps moar |
05:33 | |
TimToady | there is no point in returning all the properties; any given program would only be interested in a few properties | 05:43 | |
the tendency is to look at the same set of props for a lot of character rather than a lot of props for a single char | 05:44 | ||
I think uniprop(Int $codepoint, Str $propname) should probably be the basic function, and it should cache whatever it needs to access that particular property for other chars too | 05:45 | ||
I'm thinking that it should return an Int, a Str, or a Rat depending on the nature of the property | 05:46 | ||
alternately, we can split into functions that return each type | |||
japhb__ | TimToady: re: irclog.perlgeek.de/perl6/2014-03-04#i_8379668 , the format of these is (most recent tag in commit path)-(revs since the tag)-g(7 leading digits of SHA-1 for this commit) | ||
(Optionally with -dirty on the end, if you've asked for it, and your working directory is not fully committed) | |||
TimToady | hmm | ||
lue | TimToady: yeah, I'm realizing now "return all the properties" provides no benefits, and only detriments. I'm wondering if uniprop($chr, *@props) would be better or part of a multi. | 05:47 | |
TimToady | we can have a multi uniprop that takes a string instead of a codepoint, but the basic interface is integer based | ||
lue | I can go for that. | 05:48 | |
TimToady | so we should provide access to the integer API for when that's the natural input | ||
lue | TimToady: the hash-based function as specced has this to say about its values: "Values for properties may be C<Bool> for binary ("Yes"/"No") values, a C<Rat> | ||
for numeric values, and C<Str> objects for all other types of values." | |||
.oO(The *one* place where polymorphic (return) types would be cool to have, though not necessary.) |
05:49 | ||
TimToady | well, a lot of them are Int rather than Rat | ||
lue | Yeah, I just went with Rat to reduce the number of possible types :) | ||
TimToady | but adding in Bool is...possible.. | ||
but we don't know which ones are bools in the current API | |||
well, I think it should .narrow :) | 05:50 | ||
lue | TimToady: this is what I used to discern possible return types: www.unicode.org/reports/tr44/tr44-1...erty_Table | 05:51 | |
C,E,S,M --> Str, N --> Rat (etc.), B --> Bool | |||
(The Enumeration values could theoretically be enums, but that would be pushing it I feel.) | 05:53 | ||
05:54
renormalist joined
|
|||
TimToady | except to calculate N, you need to be numerator and denominator, which are coming out as string enums right now, because of how moar compresses enumerations and things like them | 05:54 | |
lue | could the returns be subjected to val() processing perhaps? | 05:55 | |
the N values that is | |||
TimToady | well, we'll construct the right type somehow | ||
$num / $denom will work even if those are strings :) | 05:56 | ||
05:57
xinming_ joined
|
|||
TimToady | r: say ("5" / "1").WHAT | 05:57 | |
camelia | rakudo-parrot c8ef8d, rakudo-jvm c8ef8d, rakudo-moar c8ef8d: OUTPUT«(Rat)» | ||
TimToady | r: say ("5" / "1").narrow.WHAT | ||
camelia | rakudo-parrot c8ef8d, rakudo-jvm c8ef8d, rakudo-moar c8ef8d: OUTPUT«(Int)» | ||
05:59
xinming left
06:10
tgt joined
06:15
tgt left
|
|||
dalek | p: d6a2776 | larry++ | tools/build/MOAR_REVISION: oops, didn't understand format |
06:20 | |
kudo/nom: 82ea648 | larry++ | tools/build/NQP_REVISION: fix nqp revision, hopefull |
06:23 | ||
TimToady | okay, that's configuring better now | 06:25 | |
well, up to a point | 06:35 | ||
dalek | ecs: 33dad1e | lue++ | S15-unicode.pod: [S15] Make uniprop/uniprops be more useful. Instead of a hash of ALL THE PROPERTIES, it's a much more useful single-property lookup. |
||
kudo/nom: 2582919 | larry++ | tools/build/NQP_REVISION: If at first you don't succeed... ...suck until you do succeed. |
06:38 | ||
hoverboard | xkcd hit 1337 today! a momentous occasion! | ||
lue | .oO(Next order of business for S15: figure out what Unicodey and Stringy precisely do. But not tonight, at least not from me.) |
06:39 | |
TimToady | japhb++ for explaining the version numbers...now if I only understood how to count revs, or where it came up with that '9' | 06:42 | |
lue | ♘ #perl6 o/ | ||
TimToady | o/ | ||
japhb__ | TimToady: It's the output of `git describe` | 06:50 | |
TimToady | japhb__++ | 06:51 | |
cool, that makes it a lot easier :) | |||
japhb__ | :-) | ||
TimToady | someone should write a bump script... | ||
06:52
[Sno] joined
06:58
hoverboard left
|
|||
dalek | p: e79a521 | larry++ | tools/build/MOAR_REVISION: bump moar rev to get mkdir_p fix for lue++ |
07:05 | |
kudo/nom: fc2a6e6 | larry++ | tools/build/NQP_REVISION: bump nqp to get mkdir_p fix |
07:06 | ||
07:07
xfix left
|
|||
TimToady | one of these years I might be semi-competent | 07:09 | |
07:11
tgt joined
|
|||
TimToady | obviously mkdir is not sufficiently tested--the problem with letting Camelia chase all the mean people away is that the meanest poeple write the meanest tests... | 07:12 | |
07:13
xfix joined
|
|||
TimToady | of course, #?rakudo skip "mkdir NYI" doesn't help a whole lot here | 07:14 | |
07:16
berekuk joined,
tgt left
07:20
xinming_ left
07:24
arnsholt left
07:26
xinming joined
07:34
kaleem joined,
berekuk left
07:37
dmol joined
07:41
berekuk joined
07:42
FROGGS joined,
darutoko joined
07:46
pdcawley left
07:54
virtualsue joined
|
|||
TimToady | m: say nqp::getuniname(0x1f4a9) | 08:04 | |
camelia | rakudo-moar fc2a6e: OUTPUT«PILE OF POO» | ||
TimToady | \o/ | ||
tadzik | TimToady++ # |o| | 08:07 | |
yoleaux | 01:07Z <lue> tadzik: to see irclog.perlgeek.de/perl6/2014-03-04#i_8379034 (I get a segfault when perl6-m tries mkdir'ing a path it hasn't the permissions for. Should be creating ~/.perl6 instead anyway) | ||
04:21Z <lue> tadzik: looks like it's moar's fault, not panda's. Try mkdir /test on all three backends. | |||
tadzik | oh oh | ||
FROGGS | TimToady++ # \o/ | ||
tadzik | indeed, mkdir segfaults :) | 08:08 | |
FROGGS | tadzik: please bugreport is (if there is no ticket yet), and I'll care about it if nobody beats me to it | ||
.u PILE OF POO | 08:09 | ||
yoleaux | U+1F4A9 PILE OF POO [So] (💩) | ||
tadzik | lue: ah, it seems like the way bootstrap.pl figures out if a directory path is feasible is "try mkdir $that" | 08:10 | |
08:10
zakharyas joined
|
|||
tadzik | so, if it didn't segfault it would go to ~/.perl6 anyway :) | 08:10 | |
FROGGS | TimToady: I'd like to see a CharProperty class (or so) that gistifies to yoleaux output here | ||
tadzik | I seem to recall writing it as a check for writability (is that a word?), not sure why it's a "try" these days | ||
FROGGS | m: say "pups".w | ||
camelia | rakudo-moar fc2a6e: OUTPUT«No such method 'w' for invocant of type 'Str' in block at /tmp/nsIyaZHjI1:1» | ||
FROGGS | m: say "pups".IO.w | 08:11 | |
camelia | rakudo-moar fc2a6e: OUTPUT«False» | ||
tadzik | m: say "/bbbaaa".IO.w | ||
camelia | rakudo-moar fc2a6e: OUTPUT«False» | ||
FROGGS | this is supposed to segfault too, no? | ||
tadzik | not to my knowledge | ||
FROGGS | ahh, it is not mkdir | ||
tadzik | but why is it always false? | ||
maybe that's why panda uses "try mkdir" :) | |||
FROGGS | m: say "/tmp".IO.w | ||
camelia | rakudo-moar fc2a6e: OUTPUT«True» | ||
tadzik | >:( | ||
FROGGS | tadzik: an unknown dir is never writeable :o) | 08:12 | |
08:12
tgt joined
|
|||
TimToady | I already fixed the mkdir thing | 08:12 | |
tadzik | oh, awesome | ||
TimToady++ | |||
FROGGS | heeh | ||
TimToady++ | |||
tadzik | m: mkdir "/aaaa" | 08:13 | |
FROGGS | glad to have you on our side now :o) | ||
TimToady | it was just trying to format errno using %s | ||
camelia | rakudo-moar fc2a6e: OUTPUT«mkdir is disallowed in restricted setting in sub restricted at src/RESTRICTED.setting:2 in sub mkdir at src/RESTRICTED.setting:10 in block at /tmp/Zu95yW9RJP:1» | ||
tadzik | bleh | ||
hah | |||
FROGGS | >.< | ||
tadzik | I can see why that'd fail :) | ||
FROGGS | yeah | ||
08:15
virtualsue left
08:16
tgt left
|
|||
dalek | kudo/nom: 5f45799 | larry++ | src/core/Str.pm: implement rudimentary uniname, uniprop, and unival |
08:20 | |
TimToady | > ./perl6 -e 'say unival "⅖"' | 08:21 | |
0.4 | |||
timotimo didn't realize that was a thing | 08:22 | ||
moritz | $de eq '1' ?? $nu.Int !! $nu / $de; | 08:24 | |
missed the opportunity to write ($nu/$de).narrow # :-) | |||
m: say (5/1).narrow.WHAT | |||
camelia | rakudo-moar fc2a6e: OUTPUT«(Int)» | ||
moritz | though TimToady++'s code is probably more efficient | ||
TimToady | > ./perl6 -e 'say unival "\c[CUNEIFORM NUMERIC SIGN SHAR2 TIMES GAL PLUS MIN]"' | 08:25 | |
432000 | |||
08:26
zakalwe joined
08:27
berekuk left
|
|||
TimToady | this will make it really easy to write a roman numeral translator :) | 08:29 | |
08:30
tgt joined
|
|||
TimToady | except, of course, for getting the user to actually input roman numerals as unicode thinks of them... :) | 08:31 | |
sergot | hi o/ | 08:32 | |
mathw | Let me guess, Unicode has special characters for roman numerals that nobody knows about | 08:35 | |
TimToady | nope, I think someone knows about 'em | 08:36 | |
moritz | $ uni ROMAN|grep NUMERAL|wc -l | ||
40 | |||
08:37
pdcawley joined
|
|||
TimToady | some of them are certainly unfamiliar though | 08:39 | |
> ./perl6 -e 'say unival("ↈ")' | |||
100000 | |||
.u ↈ | |||
yoleaux | U+2188 ROMAN NUMERAL ONE HUNDRED THOUSAND [Nl] (ↈ) | ||
masak | morning, #perl6 | 08:41 | |
08:41
tgt left
|
|||
TimToady | o/ | 08:42 | |
it's morning here too :) | |||
moritz | \o masak, * | 08:45 | |
masak | japhb__: I think you'll see jnthn++ back here sometime tomorrow. | ||
09:05
rindolf joined
09:09
__thou left
09:11
zakharyas left
09:28
kbaker__ joined
|
|||
masak | r: say unival "5" | 09:33 | |
camelia | rakudo-parrot fc2a6e, rakudo-jvm fc2a6e, rakudo-moar fc2a6e: OUTPUT«===SORRY!=== Error while compiling /tmp/tmpfileUndeclared routine: unival used at line 1» | ||
masak | meh. | ||
moritz | one commit behind. | 09:36 | |
09:36
dakkar joined
|
|||
masak | *nod* | 09:37 | |
09:38
dmol left
|
|||
moritz | a small task for improving camelia: summarize 'rakudo-parrot fc2a6e, rakudo-jvm fc2a6e, rakudo-moar fc2a6e:' as 'rakudo-{parrot,jvm,moar} fc2a6e:' | 09:38 | |
masak | +1 | 09:46 | |
moritz | timotimo: ^^ you could add that to your next "how to help" section | 09:52 | |
10:04
spider-mario joined
10:05
rindolf left,
zakharyas joined
10:13
zakharyas left,
zakharyas joined
10:14
darutoko- joined
10:17
darutoko left,
zakharyas left
10:18
zakharyas joined
|
|||
masak | (OT) what's the name of the CPAN module that does correct matching of nested brackets/parentheses? | 10:19 | |
FROGGS | Regexp::Common::balanced? | 10:20 | |
masak | thanks. | ||
FROGGS | that is at least google's #1 for your question :o) | ||
10:21
xinming left
|
|||
masak | that's the one I was thinking of. | 10:21 | |
moritz | there's also Text::ParseWords | 10:22 | |
which exports quotewords | |||
10:22
kivutar joined
10:23
xinming joined
|
|||
masak | ooh | 10:27 | |
11:12
denisboyun joined
11:19
sqirrel_ joined
11:21
tgt joined
|
|||
colomon | TimToady++ | 11:22 | |
11:28
tgt left
|
|||
colomon | Error while compiling op getuniname: No registered operation handler for 'getuniname' | 11:30 | |
erm… possibly TimToady== | |||
TimToady-- | |||
masak | could it be an nqp version skew? | 11:40 | |
FROGGS | colomon: your moarvm is outdated | 11:46 | |
and you'd see a hint about that if you'd reconfigure nqp | |||
colomon | FROGGS: that was a parrot build | ||
FROGGS | ahh, interesting fact :o) | 11:47 | |
colomon: these ops were not added for nqp-p... | 11:48 | ||
so, we'd need to fudge this for !moar: github.com/rakudo/rakudo/commit/5f...d048c5c077 | |||
and perhaps other commits as well | 11:49 | ||
I do that now | |||
dalek | rakudo/eleven: 7c12aaf | Mouq++ | src/core/ (2 files): | 11:50 | |
rakudo/eleven: Fix regression caused by correct list flattening | |||
rakudo/eleven: | |||
rakudo/eleven: $/.pairs couldn't handle Matches with multiple matches under a single | |||
rakudo/eleven: index, e.g., where it should output 0 => (Match1,Match2) it would output | |||
11:50
dalek left
|
|||
FROGGS | that is not it yet | 11:50 | |
11:51
dalek joined,
ChanServ sets mode: +v dalek
|
|||
dalek | kudo/nom: f2471ab | (Tobias Leich)++ | src/core/Str.pm: fudge uniname/-prop/val which is implemented on moar only |
11:54 | |
FROGGS | colomon: ^^ | ||
I am rebuilding everything atm so this will take a while | 11:55 | ||
11:55
rindolf joined
11:56
Hamada joined
11:58
bowtie left
12:00
Mouq left
12:01
scottp joined,
bowtie joined
12:09
TestIRCClient joined
12:10
Hamada is now known as Sender,
Sender is now known as Sawaf
|
|||
Sawaf | Hello | 12:10 | |
12:10
TestIRCClient left
|
|||
colomon | FROGGS++ | 12:11 | |
FROGGS | hi Sawaf | ||
12:13
TestIRCClient joined
12:14
vendethiel left
|
|||
Sawaf | Please I need to ask how can I start learning perl | 12:14 | |
12:14
scottp left,
TestIRCClient left
12:15
scottp joined,
vendethiel joined
|
|||
tadzik | hello | 12:15 | |
you can start with perl6.org/documentation/ | 12:16 | ||
FROGGS | Sawaf: If you are interested in Perl 6, then perhaps perl6.org/getting-started/ | ||
Sawaf: if it is more about Perl 5, then www.perl.org/learn.html | |||
12:19
vendethiel left
12:20
vendethiel joined,
bowtie_ joined
12:21
TestIRCClient joined,
bowtie left
|
|||
Sawaf | Thanks FROGGS but can't I find a video tutorials ? | 12:22 | |
12:22
scottp left
|
|||
FROGGS | there are a lot of videos on youtube | 12:23 | |
Sawaf: but still, are you looking for Perl 5 or Perl 6? | |||
12:24
TestIRCClient left
12:25
TestIRCClient joined
|
|||
Sawaf | I'm looking for Perl 6 | 12:25 | |
FROGGS | then you should search for "Perl 6", "Jonathan Worthington", "Carl Masak", "Rakudo" to mention a few | 12:26 | |
12:29
TestIRCClient left,
TestIRCClient joined
|
|||
Sawaf | Thanks FROGGS I'll serch for it :) | 12:29 | |
FROGGS | you're welcome | 12:30 | |
do not hesitate to ask or play around here :o) | |||
r: say "hallo" # :o) | |||
camelia | rakudo-parrot fc2a6e, rakudo-jvm fc2a6e, rakudo-moar fc2a6e: OUTPUT«hallo» | ||
FROGGS | you can also do that in a private chat with the camelia bot | 12:31 | |
12:31
bowtie_ is now known as bowtie
|
|||
Sawaf | thanks alot | 12:32 | |
12:32
bluescreen10 joined
12:33
TestIRCClient left,
Sawaf left
12:36
bowtie_ joined
12:37
bluescreen100 joined
12:41
bluescreen__ joined,
bowtie_ left,
bluescreen10 left
12:43
kaleem left,
kaleem joined
|
|||
masak | hyperboleandahalf.blogspot.se/2010/...thing.html # thanks alot! | 12:44 | |
12:44
kaleem left
12:46
TestIRCClient joined
12:48
TestIRCClient left
|
|||
FROGGS | *g* | 12:49 | |
12:49
TestIRCClient joined
12:52
stevan_ left
12:57
bowtie left
12:59
skids left
13:06
xinming_ joined
13:09
xinming left
13:11
xinming_ left,
xinming joined
13:12
Mouq joined
13:15
dmol joined
|
|||
timotimo | moritz: i have a bit of code that goes into the right direction to do that already, but i never finished it :o | 13:15 | |
13:17
Mouq left
13:22
bowtie joined
13:28
bowtie left
13:29
bowtie joined
13:41
lue left
13:43
stevan_ joined
13:46
Alina-malina left
13:49
Alina-malina joined
13:53
lue joined
|
|||
[Coke] | moritz: if there's a natural sixian way to do it, I'll prefer that way. | 13:55 | |
13:56
fridim__ joined
13:57
bluescreen__ left,
bluescreen100 left
|
|||
moritz | [Coke]: well, there are rw attributes in Perl 6, but they tend to be a hassle | 14:00 | |
[Coke] | moritz: at this point, I'm just getting 15m here and there to pull in basic stuff. (rather than thinking big picture). happy to give out commit bits if anyone wants to poke at things they like. | 14:03 | |
14:08
TestIRCClient left
14:10
guru joined
14:11
guru is now known as Guest74190
14:14
Guest74190 is now known as ajr_
14:15
xragnar is now known as Guest47494,
xragnar_ joined,
Guest47494 left,
xragnar_ is now known as xragnar
14:25
skids joined
14:26
salv0 left
14:27
jnap joined
14:28
bluescreen10 joined
14:29
bowtie_ joined
14:30
kaare_ left
14:41
salv0 joined
14:45
kivutar left
14:59
Adriaaan joined
15:00
Mouq joined
15:04
Mouq left,
sqirrel_ left
15:06
bowtie_ left
15:08
stevan_ left
15:12
xfix left
15:13
xfix joined
15:24
test joined
|
|||
FROGGS | www.stephendiehl.com/llvm/ - Implementing a JIT Compiled Language with Haskell and LLVM | 15:24 | |
15:24
test left
15:34
FROGGS left
15:35
awwaiid_ is now known as awwaiid
15:36
bowtie left
15:37
__thou joined,
hoverboard joined
15:41
bowtie joined
15:43
telex left
15:44
ajr_ left,
telex joined
15:48
guru joined
15:49
guru is now known as Guest45846,
Guest45846 is now known as ajr_
16:03
dmol left
16:05
dmol joined
16:06
Adriaaan left
16:08
Adriaaan joined
16:10
ajr joined,
ajr is now known as Guest45360
16:11
denisboyun left
16:13
ajr_ left
|
|||
TimToady -- for thinking "What about jvm and parrot?" and then promptly getting distracted | 16:14 | ||
er, TimToady-- | |||
colomon | TimToady++ # for being human | 16:16 | |
16:17
hoverboard left
|
|||
TimToady | well, for trying anyway :) | 16:17 | |
m: say unival('⅓').nude | 16:18 | ||
camelia | rakudo-moar f2471a: OUTPUT«1 3» | ||
TimToady | m: say unival('3').nude; # curious | 16:19 | |
camelia | rakudo-moar f2471a: OUTPUT«No such method 'nude' for invocant of type 'Int' in block at /tmp/hVbqhLpZGw:1» | ||
TimToady | I guess Rats aren't cool enough :) | ||
m: say unival('⅓') | 16:20 | ||
camelia | rakudo-moar f2471a: OUTPUT«0.333333» | ||
TimToady | m: say uniprop('⅓', 'NumericValue') | ||
camelia | rakudo-moar f2471a: OUTPUT«0.33333333» | ||
TimToady | which gives the *appearance* of being more precise, but isn't | ||
m: say uniprop('⅓', 'NumericValue').round(15) | 16:21 | ||
camelia | rakudo-moar f2471a: OUTPUT«0» | ||
TimToady | m: say uniprop('⅓', 'NumericValue').Num.round(15) | ||
camelia | rakudo-moar f2471a: OUTPUT«0» | ||
TimToady | hmm | ||
pragma- | too much gibberish in here | ||
16:21
pragma- left
|
|||
moritz | .oO( too much pragma- in here ) |
16:21 | |
TimToady | m: say uniprop('⅓', 'NumericValue').WHAT | 16:22 | |
camelia | rakudo-moar f2471a: OUTPUT«(Str)» | ||
moritz | m: say uniprop('⅓', 'NumericValue').perl | ||
camelia | rakudo-moar f2471a: OUTPUT«"0.33333333"» | ||
TimToady | Str I expected, not .Num-ing I didn't | 16:23 | |
16:23
[Sno] left
|
|||
moritz | m: say "0.33333333".Num | 16:23 | |
camelia | rakudo-moar f2471a: OUTPUT«0.33333333» | ||
TimToady | maybe it's really a moar string | 16:24 | |
m: say +uniprop('⅓', 'NumericValue') | |||
camelia | rakudo-moar f2471a: OUTPUT«0.33333333» | ||
TimToady | that works | ||
m: say uniprop('⅓', 'NumericValue').Numeric.WHAT | 16:25 | ||
16:25
isacloud_ joined
|
|||
camelia | rakudo-moar f2471a: OUTPUT«(Rat)» | 16:25 | |
TimToady | m: say uniprop('⅓', 'NumericValue').Num.WHAT | ||
camelia | rakudo-moar f2471a: OUTPUT«(Num)» | ||
TimToady | m: say uniprop('⅓', 'NumericValue').Numeric | ||
camelia | rakudo-moar f2471a: OUTPUT«0.33333333» | ||
TimToady | m: say uniprop('⅓', 'NumericValue').Num | ||
camelia | rakudo-moar f2471a: OUTPUT«0.33333333» | ||
TimToady | say what? | ||
oh, duh | 16:26 | ||
.round was wrong | |||
m: say uniprop('⅓', 'NumericValue').Num.round(0.1 ** 15) | |||
camelia | rakudo-moar f2471a: OUTPUT«0.33333333» | ||
16:26
treehug88 joined
|
|||
TimToady | m: say unival('⅓').Num.round(0.1 ** 15) | 16:26 | |
camelia | rakudo-moar f2471a: OUTPUT«0.333333333333333» | ||
TimToady | m: say unival('⅓').Num.round(0.1 ** 20) | ||
camelia | rakudo-moar f2471a: OUTPUT«-0.0922337203685478» | ||
TimToady | ^^^ there's a bug | ||
m: say unival('⅓').round(0.1 ** 20) | 16:27 | ||
camelia | rakudo-moar f2471a: OUTPUT«-0.0922337203685478» | ||
TimToady | same bug for Rat, apparently | ||
masak | m: say (1/3).round(0.1 ** 20) | 16:29 | |
camelia | rakudo-moar f2471a: OUTPUT«-0.0922337203685478» | ||
16:31
xinming_ joined
16:33
xinming left
16:34
FROGGS joined
|
|||
colomon | :\ | 16:36 | |
r: say (1/3).round(0.1 ** 20) | |||
camelia | rakudo-parrot f2471a: OUTPUT«0.333333333333333» | ||
..rakudo-moar f2471a: OUTPUT«-0.0922337203685478» | |||
..rakudo-jvm f2471a: OUTPUT«0.3333333333333333» | |||
TimToady | I note the others are capped at 15 | 16:37 | |
r: say (0.1 ** 20).WAHT | |||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«No such method 'WAHT' for invocant of type 'Num' in block at /tmp/tmpfile:1» | ||
TimToady | r: say (0.1 ** 20).WHAT | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«(Num)» | ||
16:37
zakharyas left
|
|||
TimToady | hmm | 16:37 | |
that I didn't expect | |||
r: say (10 ** -20).WHAT | 16:38 | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«(Num)» | ||
TimToady | n: say (0.1 ** 20).WHAT | ||
camelia | niecza v24-109-g48a8de3: OUTPUT«Num()» | ||
TimToady | n: say (1 / 10 ** 20).WHAT | ||
camelia | niecza v24-109-g48a8de3: OUTPUT«Num()» | ||
TimToady | oh, wait | 16:39 | |
colomon | r: say (3333333333333333333/100000000000000000000).perl | ||
camelia | rakudo-jvm f2471a: OUTPUT«0.03333333333333333e0» | ||
..rakudo-parrot f2471a, rakudo-moar f2471a: OUTPUT«0.0333333333333333e0» | |||
colomon | r: say (3333333333333333333/100000000000000000000).WHAT | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«(Num)» | ||
TimToady | say 2 ** 64 | ||
r: say 2 ** 64 | |||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«18446744073709551616» | ||
TimToady | r: say (2 ** 64).chars | ||
16:39
kaleem joined
|
|||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«20» | 16:39 | |
TimToady | r: say (0.1 ** 19).WHAT | 16:40 | |
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«(Rat)» | ||
TimToady | that's the issue | ||
16:40
molaf_ joined
|
|||
TimToady | well, one of 'em | 16:41 | |
m: (^0x110000).pick.&uniname | 16:42 | ||
camelia | ( no output ) | ||
TimToady | m: (^0x110000).pick.&uniname.say | ||
camelia | rakudo-moar f2471a: OUTPUT«<unassigned>» | ||
TimToady | well, duh | ||
m: (^0x30000).pick.&uniname.say | 16:43 | ||
camelia | rakudo-moar f2471a: OUTPUT«<unassigned>» | ||
16:43
hoverboard joined
|
|||
TimToady | m: (^0x30000).pick.&uniname(10)».say | 16:43 | |
camelia | rakudo-moar f2471a: OUTPUT«*» | ||
TimToady | bleh | ||
m: (^0x30000).pick(10).&uniname».say | |||
16:43
molaf left
|
|||
camelia | rakudo-moar f2471a: OUTPUT«*» | 16:43 | |
TimToady | m: (^0x30000).pick(10)».&uniname».say | ||
camelia | rakudo-moar f2471a: OUTPUT«<Private Use><CJK Ideograph Extension B><CJK Ideograph Extension B>HEAVY RIGHT-POINTING ANGLE BRACKET ORNAMENT<unassigned><CJK Ideograph Extension A><unassigned><unassigned><CJK Ideograph Extension B>GREEK DASIA AND PERISPOMENI» | ||
TimToady | there we go, and I'll quit spamming for at least 30 seconds, lest people take me out and shoot me for designing Camelia :) | 16:44 | |
TimToady apologizes (slightly) for the manic phase into which his pneumonia drugs have (apparently) propelled him... :) | 16:46 | ||
skids | .oO(uninames would make good anime power callouts) |
16:47 | |
16:47
Sqirrel left
16:48
bowtie_ joined,
Mouq joined
|
|||
skids | .oO(I guess those are called "kiai") |
16:50 | |
16:50
Adriaaan left,
bowtie left,
bowtie_ is now known as bowtie
|
|||
TimToady | 気合 scream; yell; fighting spirit | 16:51 | |
skids | All I know is I wouldn't want to be hit in the head by a HEAVY RIGHT-POINTING ANGLE BRACKET ORNAMENT. | 16:52 | |
16:52
Mouq left
|
|||
skids | (or a PILE OF POO) | 16:53 | |
16:56
bowtie left,
bowtie joined
|
|||
rindolf | TimToady: I'm sorry to hear you had pneumonia. | 17:01 | |
17:07
btyler joined
17:12
dwarring joined
17:13
rindolf left
|
|||
[Coke] | news.perlfoundation.org/2014/03/out...n-201.html - anyone have some intern ideas for six? | 17:26 | |
masak | TimToady: I look at that and see "steam proper". | 17:28 | |
17:28
rindolf joined
|
|||
TimToady | well, yeah, in japanese the first has been metaphoricalized from "vapor" to "spirit"; see "spirits of ammonia" and such in English, and relationship of breath to spirit or soul in hebrew or greek | 17:31 | |
and the second one is more generally "fits", which in chinese tends to mean "is considered fitting" :) | |||
17:31
hoverboard left
|
|||
TimToady | but you can think of it as "proper spirit yell" or some such | 17:32 | |
something fitting for the occasion | |||
17:33
hoverboard joined
17:34
pecastro left,
[Sno] joined
|
|||
[Coke] | spirit yell sounds like what we used to do before a show - every cast/crew hold hands, start with a low note, raising pitch and volume, ending in a scream. | 17:35 | |
17:45
mcglk_ joined
17:46
dakkar left
17:47
bowtie left
17:48
bowtie joined
17:51
__sri joined
17:53
zakalwe left,
mcglk_ is now known as mcglk,
treehug88 left
17:58
kaleem left
18:02
bowtie left
18:04
bowtie joined
18:13
guru joined,
guru left
18:14
Guest45360 left
18:18
rindolf left
18:19
molaf_ left
18:22
tgt joined
18:24
Adriaaan joined
18:25
hoverboard is now known as moistcherry,
moistcherry is now known as hoverboard
18:33
shinobicl joined
|
|||
FROGGS is eager to see an update to perl6_pass_rates.csv | 18:35 | ||
18:36
kbaker__ left
18:37
Mouq joined
18:39
shinobicl left
|
|||
timotimo | is that because of parrot snapping back to the values it should have or did moar get something cool while i wasn't looking? | 18:40 | |
18:41
Mouq left
|
|||
[Coke] | FROGGS: thanks for the reminder; the one shot run went ok, now trying it via cron. | 18:42 | |
FROGGS | I dunno about moar, that is kinda the point | ||
\o/ | |||
[Coke]++ | |||
timotimo: and yeah, I hope that parrot is clean atm | |||
timotimo | heh. | ||
18:43
rurban joined
|
|||
timotimo | i'm kind of annoyed that the spectest pass rate is so excellent, but there are bugs that are not showing up there that cause it to be kind of unusable for module installation | 18:43 | |
FROGGS | t/spec/S10-packages/basic.rakudo.moar (Wstat: 256 Tests: 0 Failed: 0) | 18:44 | |
Non-zero exit status: 1 | |||
Parse errors: No plan found in TAP output | |||
perhaps it is a related issue? | |||
I was about to look at it | |||
ohh dear, it does work when I invoke it directly :/ | 18:45 | ||
timotimo | sounds like a good candidate >_> | ||
[Coke] | ok, it's running. | ||
FROGGS | cool! | 18:46 | |
[Coke] | LHF: find a test that says "nom regression", open a rakudobug for it, then update the test to refer to the RT #. | ||
LHF: /home/coke/sandbox/perl6-roast-data/Pugs.hs/t/spec/fudge: No such test file 't/spec/S05-metasyntax/prior.t' | 18:47 | ||
18:49
darutoko- left
|
|||
FROGGS | 66 hits for "nom regression" if I did it right | 18:50 | |
(in roast) | |||
18:51
pecastro joined
|
|||
FROGGS | btw, I bet that quite a high percentage of the failing tests in moar are fudged for jvm | 18:57 | |
like test eight of t/spec/S06-macros/quasi-blocks.t | |||
fails on moar, fudged for jvm | |||
timotimo | so moar would have an even higher percentage? ;) | 18:58 | |
FROGGS | yes | ||
18:58
berekuk joined
|
|||
FROGGS | /home/froggs/dev/rakudo/t/spec/S04-phasers/enter-leave.t:193:#?rakudo.jvm skip 'unwind' | 18:58 | |
/home/froggs/dev/rakudo/t/spec/S04-phasers/pre-post.t:161:#?rakudo.jvm skip "POST and exceptions" | |||
18:58
berekuk left
|
|||
FROGGS | the same here, this fails on moar | 18:59 | |
18:59
berekuk joined
|
|||
pmichaud | good afternoon, #perl6 | 18:59 | |
FROGGS | so it is not really backend specific | ||
hi pmichaud | |||
timotimo | pmichaud o/ | ||
19:00
pecastro left
19:03
berekuk left
|
|||
FROGGS | p: my $c = 0; macro donner { quasi { ++$c } }; say donner; say donner; say $c | 19:03 | |
camelia | rakudo-parrot f2471a: OUTPUT«120» | ||
FROGGS | is that expected? | ||
19:06
hoverboard left
|
|||
TimToady | all of the backends have been failing those | 19:08 | |
FROGGS | r: my $c = 0; macro donner { quasi { ++$c } }; say donner; say donner; say $c | ||
[Coke] | percentage is based on passing tests, so failing vs. skipped doesn't matter. | ||
camelia | rakudo-parrot f2471a: OUTPUT«120» | ||
..rakudo-jvm f2471a: OUTPUT«Cannot modify an immutable value in sub prefix:<++> at gen/jvm/CORE.setting:1782 in sub prefix:<++> at gen/jvm/CORE.setting:1780 in any at /tmp/tmpfile:1 in block at /tmp/tmpfile:1» | |||
..rakudo-moar f2471a: OUTPUT«No such method 'STORE' for invocant of type 'Mu' in sub prefix:<++> at src/gen/m-CORE.setting:1782 in sub prefix:<++> at src/gen/m-CORE.setting:1780 in any at /tmp/tmpfile:1 in block at /tmp/tmpfile:1» | |||
FROGGS | [Coke]: but it matters when we abort a test file on moar, where jvm skips a single test and continues | 19:09 | |
[Coke] | ah, yes, abort is worse than simple failure. | ||
FROGGS | but I'd like to see these tests fixed instead of skipped of course :o) | ||
[Coke] | this new testing box seems much slower. | ||
FROGGS | :/ | ||
[Coke] | Still on niecza. | ||
pugs is completely hosed now (though I can probably get it back to the 20% rate it enjoyed on host06) | 19:10 | ||
TimToady | we'd probably have better luck writing a Haskell backend for rakudo these days :) | 19:11 | |
FROGGS | but I hope we don't have to do that ó.ò | ||
three and one in the queue is enough I'd say | |||
[Coke] | I wouldn't call JS in the queue. | 19:12 | |
FROGGS | why not? | ||
[Coke] | it has no champion at the moment, yes? | ||
if no one is committed to working on it, it's dead. | |||
FROGGS | ohh, he is going to work on it I think | 19:13 | |
otherwise he should hand it over to us | |||
19:14
denis_boyun joined
|
|||
masak | pmichaud! \o/ | 19:16 | |
19:19
itz2 joined
|
|||
masak | FROGGS: no, that macro/quasi/1,2,0 thing is a bug, as far as I'm concerned. | 19:24 | |
FROGGS: it's related to strangelyconsistent.org/blog/lexpad...eed-fixups | |||
[Coke] | anyone looking into the java eval server failures that force the daily run to be done without? | ||
FROGGS | k | ||
masak: I guess it is not an easy fix? | 19:25 | ||
[Coke]: I'm not | |||
masak | FROGGS: I might be wrong, but it *used* to work. | ||
FROGGS: don't know what broke it, or when. | |||
FROGGS | masak: years ago I suppose? | 19:26 | |
star: my $c = 0; macro donner { quasi { ++$c } }; say donner; say donner; say $c | |||
camelia | star 2013-09: OUTPUT«120» | ||
masak | FROGGS: a year ago, I'd say. | 19:28 | |
FROGGS | k | ||
masak | but I may be wrong on this. | ||
FROGGS | that is a starting point :o) | ||
timotimo | so, if i had a gui system, or something that uses callbacks a lot | 19:30 | |
python would allow you to write things like "callback=self.the_shiny_callback" | |||
segomos | masak: that method foo { method bar { } } thing is throwing me off | 19:31 | |
timotimo | in perl6 we'd have to write something more like callback => { self.the_shiny_callback; }, don't we? | ||
FROGGS | timotimo: can't you pass it around using an & sigil? | ||
masak | FROGGS: yes, I'm wrong. there's an open ticket for this: rt.perl.org/Public/Bug/Display.html?id=120928 -- linked from that post. | ||
segomos: why? | 19:32 | ||
FROGGS | masak: thanks! | ||
masak | segomos: (genuinely curious) | ||
timotimo | FROGGS: not methods | 19:33 | |
the trick with python is that when you write self.the_shiny_callback, you get a "bound method" back | |||
which is kind of like a closure in disguise | |||
segomos | masak: it just looks like doing C.bar should be a syntax error, i know that it isn't, i'm just drawn to it | 19:34 | |
timotimo | to be exact, it's a closure that closes over exactly "self" and delegates any arguments you give to it to the method on that method invoked on that closed-over self | ||
19:34
virtualsue joined
|
|||
timotimo | i was about to complain, that p6's way is more wordy, but it's actually much clearer what's going on | 19:34 | |
19:35
__thou left
|
|||
masak | segomos: you can declare a method inside a class. that is all. :) | 19:36 | |
timotimo: Python's way of doing it is definitely a local minimum. it has "user simplicity" going for it. Perl 6's way is more "honest". | 19:38 | ||
timotimo | i think the increased amount of "honesty" makes perl 6 a kind of nicer language to be taught to complete beginners | 19:40 | |
but i'd have to try that to verify it. | |||
FROGGS | masak: that is an awesome post! | 19:41 | |
but I think "outselves" is a typo :o) | 19:42 | ||
19:43
treehug88 joined
19:44
Sqirrel joined
|
|||
timotimo | maybe masak has just outselved himself once again? :) | 19:44 | |
19:47
arnsholt joined
|
|||
FROGGS | masak: I think "this kind of fixup" as you say in the post already is in place for macros | 19:47 | |
at least I see something like that in the actions and world | |||
19:49
hoverboard joined
|
|||
masak | yeah. | 19:53 | |
FROGGS: thanks for typo spotting -- fixing. | |||
moritz upgrades feather{1,2,3} and host07 to get rid of the gnutls bug | 19:56 | ||
vendethiel | wat wat wat | 20:01 | |
wait | |||
r: class C { method a { say "a"; method b { say "b"; } } }; C.new.b | 20:02 | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«b» | ||
vendethiel | wtf | ||
masak | vendethiel: :) | ||
vendethiel | That's *really, really, really* surprising IMHO | ||
I actually discovered that from (I think) masak's post ? (lexpads and why roles need fixups) | |||
masak | we were surprised too, first time we discovered it. | ||
FROGGS | a method declaration just looks up the out class, and installs itself in there | ||
masak | but really, it falls out of how classes and method declarations work. | 20:03 | |
FROGGS | outer* | ||
vendethiel | well, I really don't think it should even allow that. What sense does it make ? | ||
moritz | r: class A { if True { method a { 'a' } } else { method b { 'b' } } }; say A.a; say A.b | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«ab» | ||
FROGGS | moritz: nice try :o) | 20:04 | |
masak | vendethiel: that's generally not the question Perl people ask... :) | ||
moritz: BEGIN time vs runtime. | |||
jnthn | Turns out it's a lot more effort to forbid it than allow it :) | ||
moritz | masak: I know :-) | ||
vendethiel | masak: I ask it though ;). can't you just refuse to parse `method`s inside a non-{class,role}? | ||
FROGGS | yay! I will have a rakudo 2013.01 in a few minutes :o) | ||
masak | vendethiel: you can't really TIMTOWTDI if you run around shouting "but what's the *use*!?" | ||
vendethiel | masak: no, far from that. But really, at first, I thought the code exampled messed up its { and } | 20:05 | |
masak | vendethiel: you write a module that refuses to parse it. everyone wins. | ||
moritz | vendethiel: there was a time when we wouldn't allow product of two Duration objects | ||
vendethiel | masak: would people be okay about that ? | ||
moritz | vendethiel: because we couldn't think of a use case | ||
vendethiel | moritz: (not sure what Duration objects are) | 20:06 | |
moritz | vendethiel: time spans | ||
masak | typos fixed -- strangelyconsistent.org/blog/lexpad...eed-fixups brought to you by Rakudo-on-Moar! | ||
moritz | vendethiel: until masak++ wanted to calculate standard deviations of Durations | ||
FROGGS | yay! :o) | ||
masak | vendethiel: we would. all is fair if you predeclare. | ||
vendethiel: my point is, we don't go around forbidding things just because we can't see the use. we're not Python devs. | 20:07 | ||
vendethiel | masak: if you predeclare that methods can't be nested ? | ||
masak | vendethiel: as in 'use Modules::Strict;' | ||
FROGGS | masak: haha, I tell that one my PHP peeps :o) | ||
20:07
pecastro joined
|
|||
vendethiel has to do PHP for school and is really sad | 20:07 | ||
(I need a JS-to-PHP to that I can compile anything to JS then back to PHP !) | |||
masak: "strict mode" before 6.0.0 seems like a bad idea though ? | 20:08 | ||
masak | vendethiel: not at all. we're experimenting *now*. | 20:09 | |
vendethiel: though I'm sorry to report that language-modifying modules are Not Quite There yet :/ | 20:10 | ||
vendethiel | masak: that's cool, i'm Not Quite Perler either. | ||
not yet, though. | |||
moritz | vendethiel++ | ||
FROGGS | masak: 2013.01 is also borken, I am going further back in time now | 20:11 | |
vendethiel | well, `method { method }` doesn't seem like a bug you should stumble upon unless you want to experiment | ||
(or unless you messed up your }, I guess) | |||
dalek | p: f30b65f | larry++ | / (2 files): add bool and match uniprop opcodes |
20:13 | |
masak | FROGGS++ | 20:14 | |
dalek | p: d3849dc | larry++ | tools/build/MOAR_REVISION: bump moar rev |
||
20:15
bluescreen100 joined
|
|||
dalek | kudo/nom: 02329b9 | larry++ | / (2 files): update to use new opcodes and bump NQP rev |
20:16 | |
TimToady hopes he did it all right this time | 20:17 | ||
there should be an emoticon with crossed fingers | |||
20:18
bluescreen100 left
|
|||
TimToady | I don't think the japanese have that gesture, so we don't have the emoji. :) | 20:18 | |
20:18
bluescreen100 joined,
bluescreen100 left
|
|||
FROGGS | TimToady: it looks good I'd say :o) | 20:18 | |
20:19
bluescreen10 left
|
|||
[Coke] | daily run up to S03 in parrot | 20:19 | |
TimToady | .n 😅 | ||
well now | |||
m: say '😅'.&uniname | 20:20 | ||
camelia | rakudo-moar f2471a: OUTPUT«SMILING FACE WITH OPEN MOUTH AND COLD SWEAT» | ||
TimToady | almost don't need a unicode bot anymore :) | ||
FROGGS | yeah :o) | ||
20:21
xenoterracide left
|
|||
masak | \o/ | 20:21 | |
[Coke] | m: say '�'.uniname | ||
camelia | rakudo-moar f2471a: OUTPUT«No such method 'uniname' for invocant of type 'Str' in block at /tmp/UCktbOVktq:1» | ||
moritz | off-topic question: is there a way to configure less to act like cat if the input is small enough to fit into one screen? | ||
FROGGS | [Coke]: it is a sub | ||
timotimo | i like that. | ||
[Coke] | I see that now ,yes. :) | ||
moritz | there's less -F, but that just exits, it doesn't cat the file | ||
masak | moritz: Git behaves like that, but I don't know how it does it. | 20:22 | |
moritz: ...maybe ask on #git ? :) | |||
geekosaur | for less there's an option | ||
20:22
pippo joined
|
|||
geekosaur | (of course, there's only a billion of them) | 20:22 | |
[Coke] | -F looks like it's supposed to work... | 20:23 | |
timotimo | isn't -E right? | ||
hm. well, almost. | |||
jercos | -E will die when the bottom is hit, -F looks more appropriate | ||
moritz | oh, I meant -E, not -F | ||
timotimo | oh? | 20:24 | |
ah! | |||
it exits and clears the screen | |||
that's annoying | |||
moritz | neither -E nor -F produce any output for me if the input is short | ||
geekosaur | odd | ||
20:25
Mouq joined
|
|||
[Coke] | mmm. I've seen this working, I think there's another option to go along with -F... | 20:25 | |
jercos | $ echo foo | less -F | ||
foo | |||
jercos shrugs | |||
moritz | oh | ||
less -XF | |||
geekosaur | might see if -L makes it work for you | 20:26 | |
oh, yes, the deinit clears screen thing | |||
moritz | ok, thanks everybody, timotimo++ jercos++ geekosaur++ [Coke]++ masak++ | ||
timotimo | yeah, -X | ||
i just stumbled upon that | |||
geekosaur | which is more likely not clears screen but switches to/from alternate screen, which is something I often disable in the terminal | ||
because it's obnoxious | 20:27 | ||
timotimo | aye, the alternate screen is an interesting concept | ||
it has the whole DWIM + WAT thing going on | 20:28 | ||
FROGGS | DO WAT I MEAN | 20:29 | |
moritz | FROGGS++ | ||
timotimo | :D | ||
20:29
Mouq left
|
|||
moritz | oh, now I understand why nothing remains in the terminal after less has terminated | 20:29 | |
lue | Ah, is the alternate screen the thing where I exit out of vi or whatever and I get to see all the previous terminal output there? | 20:30 | |
geekosaur | yep | ||
it has its place, sadly there is no way to specify which programs use it | 20:31 | ||
lue | It's weird how so many things I found searching for "alternate screen" tell you how to get rid of it. I get annoyed when I have to use the bare linux console and it doesn't do that. | ||
geekosaur | depending on the terminal description (termcap/terminfo stuff) in use, it may activate on all programs that use cursor addressing or programs that use insert/delete commands | 20:32 | |
20:33
dwarring left
|
|||
[Coke] | bottom of today's moar run: | 20:36 | |
gist.github.com/coke/9355089 | |||
only 20 aborted tests in rakudo.moar | 20:37 | ||
FROGGS | so we are down to 57 fails (from 71), nice!! | 20:39 | |
timotimo | aborted? | ||
as in return value != 0? | |||
FROGGS | like in S06-macros/unquoting.t aborted 10 test(s | ||
[Coke] | TimToady: S32-str/tclc.t 3 - tclc and German sharp s | 20:40 | |
that test is suspect and I think we should fix it or kill it. | |||
timotimo: aborted = teh test file crashed and we didn't try to run the remaining tests you declared. | |||
timotimo | ah | ||
[Coke] | usually a syntax that isn't supported or an unhandled exception. | ||
timotimo | why didn't you try to run the tests i declared? :( | ||
FROGGS | :o( | 20:41 | |
FROGGS cries too | |||
lue | r: say "ßß".tclc | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«ßß» | ||
lue | Doesn't even do anything; it's supposed to come out as ẞß of course. | 20:42 | |
timotimo | at least the insanity of "ss" is gone | ||
... or is it? | |||
[Coke] | the test is expecting 'Ssß' | ||
which might work if it was mid-word | 20:43 | ||
20:43
virtualsue left
|
|||
lue wishes Unicode would make everything easier by setting the uc mapping of ß to ẞ | 20:43 | ||
timotimo | aye | ||
FROGGS | +1 | ||
lue | Can't recall if that's against the stability policy though; worst case, they have to make new codepoints for ß and ẞ | 20:44 | |
moritz | and then have two ß characters that have different case mappings? NOOOOO | ||
n: say 'ß'.uc, 'ß'.tc, 'ß'.tclc | 20:45 | ||
camelia | niecza v24-109-g48a8de3: OUTPUT«ßSsSs» | ||
moritz | p6: say 'ß'.uc, 'ß'.tc, 'ß'.tclc | ||
camelia | rakudo-jvm f2471a: OUTPUT«SSSSß» | ||
..rakudo-parrot f2471a, rakudo-moar f2471a: OUTPUT«ßßß» | |||
..niecza v24-109-g48a8de3: OUTPUT«ßSsSs» | |||
timotimo | SSsssssssssssss | ||
NO LOL | |||
FROGGS | all are rong | ||
lue | timotimo: for the record, the tc mapping of ß *is* Ss | 20:46 | |
moritz | 4 implementations, 3 answers, all wrong | ||
lue: but 'ß'.uc is supposed to be 'SS' | |||
FROGGS | either SS or ẞ | ||
20:46
Vlavv joined
|
|||
lue | www.unicode.org/policies/stability_...l#Identity <-- I wouldn't say changing ß.uc to ẞ counts as changing the identity, does it? | 20:47 | |
FROGGS | lue: corret | ||
lue: if you would change the meaning of ß, but that is not the plan | |||
20:49
xenoterracide joined
|
|||
lue feels ß->ss and ẞ->SS should be left to the NFK* forms. | 20:49 | ||
ooc, just how many Germans are here right now? There's me, FROGGS, timotimo, and moritz, right? :) | 20:50 | ||
TimToady is part German... | |||
timotimo | oh, i didn't know you were german | ||
geekosaur is also part German... bery part | |||
TimToady | well, depends on how you count, of course | ||
geekosaur | *very part, bad typun | ||
[Coke] | I have a german born contractor here who is supposedly fluent, I could drag him in. | ||
FROGGS | I bet quite a few from U.S. and A are part german :o) | 20:51 | |
lue | timotimo: Well, half-German, but still :) | ||
timotimo | fair enough :) | ||
lue | (don't expect me to start speaking fluent German here though; need a lot of practice (and vocabulary) first) | ||
timotimo | hoelzro has an umlaut in his name, you may count that as german, too :P | ||
moritz submits ß case-folding rakudobug | |||
skids isn't even germane most of the time, forget German. | |||
TimToady | Ich bin nicht ein Berliner. | ||
FROGGS | lue: Sqirrel is also german :o) | 20:52 | |
timotimo | but germans can't say squirrel! | ||
FROGGS | hehe | ||
moritz | eichhörnchen! | 20:53 | |
lue | TimToady: Ich bin nicht ein Berliner; ich bin ein Sachse! | ||
20:54
guru joined
|
|||
FROGGS | [Sno] is german too | 20:54 | |
timotimo | ah yes, [Sno] :) | ||
timotimo waves | |||
20:54
guru is now known as ajr_
|
|||
FROGGS | and the british people are from saxonia anyway :P | 20:55 | |
so BinGOs++ is also german, period. | |||
20:56
__thou joined
|
|||
[Sno] waves back and goes to sleep | 20:57 | ||
FROGGS | that reminds me of the ancestry research I did years ago... that was nice | ||
sleep well [Sno] | |||
20:57
grondilu joined
|
|||
grondilu noticed the 99.83% | 20:58 | ||
(on github.com/coke/perl6-roast-data/b..._rates.csv that is) | |||
BinGOs | FROGGS: eh? | ||
lue | Hrm. The "Case Pair Stability" section at the bottom took away plenty of my hope. www.unicode.org/policies/stability_...#Case_Pair | ||
FROGGS | yes, TimToady++ fixed a lot of unicode issues | ||
TimToady | quick, add a bunch of tests for unicode props :D | ||
FROGGS | BinGOs: not that important :o) | ||
vendethiel | rakudo jvm 100% oO ? | ||
BinGOs | FROGGS: I am celt, not anglo-saxon. | ||
FROGGS | ohh | 20:59 | |
my bad | |||
BinGOs | from Welshland | ||
grondilu | vendethiel: the percentage are relative to the maximum. Since this maximum is obtained for jvm, jvm gets 100% | ||
20:59
treehug88 left
|
|||
vendethiel | grondilu: 5 failures, 610 todo, 1k5 skips | 21:00 | |
alright :p | |||
FROGGS | ummm, now I want to be on that said Island :/ | ||
grondilu | the number that count is the "pass" I guess | ||
itz2 | "Taffy Was A Welshman, Taffy Was a Thief " | ||
lue | Seems like we ain't getting ß.uc -> ẞ unless we add at least one new, otherwise-redundant character :/ . | 21:01 | |
FROGGS | hehe | ||
grondilu | r: printf "%.2f%%", 28931/ 28979 | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«0.00%» | ||
pippo | o/ #perl6 | ||
moritz | \o pippo | ||
FROGGS | when BinGOs was a thief he would probably steal electric power to have even more smokers :o) | ||
geekosaur | did you want a *100 in there? | ||
timotimo | probably | 21:02 | |
FROGGS | o\ pippo | ||
geekosaur | r: printf "%.2f%", 28931 * 100 / 28979 | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«'.2f%' is not valid in sprintf format sequence '%.2f%'» | ||
pippo | anybody could help me? Moar from latest git does no more compile. :-( | ||
geekosaur | oh futz | ||
r: printf "%.2f%%", 28931 * 100 / 28979 | |||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«99.83%» | ||
geekosaur | no cookies for you, xchat... | ||
pippo | Here is the error log: nopaste.info/96f407d25c.html | ||
[Coke] | pippo: what error are you getting? | ||
danke | |||
21:03
treehug88 joined
|
|||
vendethiel | and | 21:03 | |
[Coke] | pippo: did you update and reconfigure, or update and just make? | ||
moritz | looks like moar compiled just fine | ||
that's NQP failling | |||
vendethiel | r: printf "%.2f%%", 28979 * 100 / 28979+5+610+1505 | ||
moritz tries | |||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«2220.00%» | ||
moritz | vendethiel: precedence | ||
vendethiel | r: printf "%.2f%%", 28979 * 100 / (28979+5+610+1505) | ||
yeah | |||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«93.18%» | 21:04 | |
pippo | I have update and recompiled. Then erased everything then recompiled. No way! | ||
vendethiel | so rakudo.jvm passes 93.18% of perl6 specs | ||
moritz also tries | |||
nobody knows the actual number of tests in roast. | |||
pippo: did you also clean up the install directory? | 21:05 | ||
timotimo | vendethiel: that's more than i was expecting | ||
vendethiel: but a lot of spec tests are not yet written ;) | |||
pippo | moritz: yes. It was a subdir of rakudo. So it went erased when I nuked everything. | 21:06 | |
grondilu | r: printf "%.2f", .09 | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«0.09» | ||
[Coke] | my german guy says: "I always thought that ẞ was case insensitive" | ||
grondilu | r: printf "%.2f", 9 / 10 | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«0.90» | ||
timotimo | vendethiel: and pieces of the specs are not yet final anyway; things like S11 and lue's shiny new unicode specs for example | ||
masak | [Coke]: it definitely should have been! | ||
timotimo | and the list and iterators overhaul | ||
[Coke] | daily run now building r-j | ||
FROGGS | [Coke]: no, but for a long time there was no uppercase version of ß | 21:07 | |
lue | I wonder if the Identity Stability policy or the Case Pair policy would win in an argument for ß.uc -> ẞ | ||
grondilu | r: printf "%.2f", 28931/ 28979 | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«0.00» | ||
grondilu | r: printf "%.2f", 2891/ 2897 | 21:08 | |
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«0.00» | ||
grondilu | wth | ||
21:08
xragnar left
|
|||
lue | (also, there's the issue of losing linguistic info by converting to "SS") | 21:08 | |
grondilu | r: printf "%.2f", 289/ 289 | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«1.00» | ||
grondilu | r: printf "%.2f", 288/ 289 | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«0.00» | ||
FROGGS | masak: about the macros... bisecting did not help, I went back 2011.12 and either it still printed 1,2,0 or did not build | ||
grondilu | r: printf "%.2f", 27/ 29 | ||
FROGGS | masak: so I am going to debug HEAD | ||
camelia | rakudo-parrot f2471a, rakudo-jvm f2471a, rakudo-moar f2471a: OUTPUT«0.93» | ||
masak | FROGGS: ok. | 21:10 | |
FROGGS: then it probably never worked. | |||
FROGGS: thanks for the detective work. FROGGS++ | |||
FROGGS | I hope I can gain some knowledge about that though | 21:11 | |
[Coke] | gist.github.com/coke/9355722 - parrot log today | ||
segomos | masak: it's the method { method { } } thing that looks funny to me :-) | 21:12 | |
nested methods | |||
timotimo | oh, parrot is almost clean! | ||
very good | 21:13 | ||
S26 is documentation, no? | |||
interesting | |||
lue | timotimo: it is for docs, yes | ||
timotimo | probably just a little difference between current implementation and current tests | 21:14 | |
masak | segomos: sure, I understand that. | 21:16 | |
segomos: my point is that *distaste* is not a strong enough reason to forbid something. | |||
21:16
virtualsue joined
|
|||
timotimo | hm, i think i'm not getting the reference | 21:16 | |
is that about the "macros need fixups" blog post? | 21:17 | ||
segomos | masak: of course | ||
it's not even a distaste, just a fixation | |||
masak | segomos: it happens ;) | 21:18 | |
lue wonders where/how he files a property change to the Unicode consortium. | |||
[Coke] | masak: twitter.com/DannyTanner/status/331...7338493953 # pretty sure that's not the original, but I'm lazy | 21:19 | |
FROGGS | lue: www.unicode.org/pending/proposals.html | ||
lue | FROGGS: that's for new characters, AFAIK, not for proposing changes to characters (could've mis-skimmed though) | 21:21 | |
masak | [Coke]: weakly autopunnish, yes. | ||
[Coke]: though I can't verify the actual claim. it seems to be related to the verb "to sling". | 21:22 | ||
FROGGS | lue: this? www.unicode.org/pending/properties.html | 21:24 | |
lue | Hey, this looks like the avenue I need to go down: www.unicode.org/review/pri251/ | 21:27 | |
21:39
xinming_ left
21:41
itz2 left
21:42
xragnar joined
|
|||
lue | Can't install URI (and thus Pod::To::HTML) through Moar: t/01.t ................... 2/47 Cannot invoke null object | 21:46 | |
FROGGS | lue: known | ||
RT #121298 | 21:47 | ||
synopsebot | Link: rt.perl.org/rt3//Public/Bug/Displa...?id=121298 | ||
lue | good article for fellow ẞ lovers :) opentype.info/blog/2011/01/24/capital-sharp-s/ | 21:53 | |
21:58
kbaker__ joined
|
|||
masak .oO( I don't write capital S often, but when I do, I write it sharp ) | 21:59 | ||
lue: interesting article. I skimmed it. will read it careful...lier later. | 22:01 | ||
22:01
stevan_ joined
22:02
stevan_ left,
skids left
|
|||
lue | masak: most interesting thing I learned is that the ß.uc → SS thing was only ever meant to be an interim solution, because typsetters apparently couldn't agree on what the capital would look like :) | 22:02 | |
22:02
stevan_ joined
22:03
hoverboard is now known as Doctorape
22:05
Doctorape is now known as hoverboard
|
|||
masak | lue: :) | 22:06 | |
22:06
bluescreen10 joined
|
|||
FROGGS | lue: nice article! | 22:07 | |
masak | well, it's been good talking to y'all. | ||
'night, #perl6 | |||
FROGGS | gnight masak | ||
lue | ♞ mäsak o/ | 22:08 | |
22:08
kbaker__ left
|
|||
TimToady | for a second there, I thought someone had snuck a Prolog engine into Perl 6: | 22:14 | |
m: say '⅓'.&uniprop | 22:15 | ||
camelia | rakudo-moar 02329b: OUTPUT«No» | ||
TimToady | m: say '⅓'.&unimatch('No') | ||
camelia | rakudo-moar 02329b: OUTPUT«True» | ||
TimToady | m: say '⅓'.&unimatch('Nd') | ||
camelia | rakudo-moar 02329b: OUTPUT«False» | ||
FROGGS | No is numeric other? | 22:16 | |
but anyway, getting "No" as a response of a compiler to &say something is kinda funny :o) | 22:17 | ||
from a* | |||
[Coke] | m: say unipoo('a'); | 22:20 | |
camelia | rakudo-moar 02329b: OUTPUT«===SORRY!=== Error while compiling /tmp/eRJLLrgr02Undeclared routine: unipoo used at line 1. Did you mean '&uniprop', '&unibool'?» | ||
lue | I'd suggest that 'uni' can be shortened to 'u' in these sub names, but ambiguity issues come up with uname ... :) | 22:21 | |
22:22
tgt left
|
|||
rurban_ | lue: well most typesetters use the lowercase xDF for the uppercase version. | 22:25 | |
lue | m: say '⅓'.&uniprop('Numeric_Value') | ||
camelia | rakudo-moar 02329b: OUTPUT«0.33333333» | ||
lue | rurban_: and that's incredibly sick and wrong :) | 22:26 | |
[article from same guy as the last one: opentype.info/blog/2013/11/18/capit...n-review/] | |||
lue afk | |||
22:34
virtualsue left
|
|||
TimToady | r: say .chr, :16(.&uniprop("BidiMirroringGlyph")//next).chr when .&unimatch("BidiMirrored") for 0..0xffff; | 22:43 | |
camelia | rakudo-jvm 02329b: OUTPUT«(timeout)» | 22:44 | |
..rakudo-parrot 02329b: OUTPUT«unimatch NYI on parrot backend in sub unimatch at gen/parrot/CORE.setting:6760 in sub unimatch at gen/parrot/CORE.setting:6760 in block at /tmp/tmpfile:1» | |||
..rakudo-moar 02329b: OUTPUT«(timeout)())(<>><[]][{}}{«»»«༺༻༻༺༼༽༽༼᚛᚜᚜᚛‹››‹⁅⁆⁆⁅⁽⁾⁾⁽₍₎₎₍⅀)∁)∂)∃)∄)∈∋∉∌∊∍∋…» | |||
TimToady | hmm, some of them seem to think ) is the correct answer | 22:45 | |
timotimo | oooh, i like the spelling .&foo for foo($_, ...) | 22:46 | |
TimToady | m: say '∃'.uniprop("BidiMirroringGlyph") | ||
camelia | rakudo-moar 02329b: OUTPUT«No such method 'uniprop' for invocant of type 'Str' in block at /tmp/HUVW977xlW:1» | ||
TimToady | m: say '∃'.&uniprop("BidiMirroringGlyph") | 22:47 | |
camelia | rakudo-moar 02329b: OUTPUT«0029» | ||
TimToady | sucks if you leave out the & though | ||
hmm, I wonder why it things right paren is the mirror there... | |||
anyway, soon we oughta be able to generate the pairs for our parser automatically | 22:48 | ||
timotimo | hehe. | ||
TimToady | m: say "\c[COMET]".&uniprop("BidiMirroringGlyph") | ||
camelia | rakudo-moar 02329b: OUTPUT«0029» | ||
TimToady | aww | ||
22:50
tgt joined
|
|||
timotimo | ... wha? it's not snowman? | 22:51 | |
timotimo files a bug to the unicode consortium | |||
lue | timotimo: file your request here, so far as I can tell :) unicode.org/reporting.html | 22:53 | |
TimToady | m: say "༼".&uniname | ||
camelia | rakudo-moar 02329b: OUTPUT«TIBETAN MARK ANG KHANG GYON» | ||
timotimo | TimToady: do you want to write the support to match against the name of unicode chars inside a regex with an embedded regex now? :) | 22:54 | |
lue | TimToady: I assume unimatch only works on boolean properties? | ||
timotimo | seems likely | ||
TimToady | not sure | ||
22:55
tgt left
|
|||
TimToady | currently it looks up the table using the same property value, you'd have to separate them | 22:56 | |
btyler | well, doing my part to spread the culture...used "golf it down" in the context of a mozilla project bug report conversation and ended up sharing that phrase with a few confused devs :) | ||
22:57
treehug88 left
|
|||
timotimo | ... that is not a common thing?! | 22:57 | |
btyler | maybe it is generally, and just this batch of folks hadn't encountered it | ||
TimToady | m: my $table = nqp::unipropcode("BidiMirroringGlyph"), my $val = nqp::unipvalcode("0029"); say nqp:matchuniprop("(".ord, $table, $val) | 22:58 | |
camelia | rakudo-moar 02329b: OUTPUT«===SORRY!=== Error while compiling /tmp/fd79dMI2l8Undeclared routine: nqp:matchuniprop("(".ord, $table, $val) used at line 1» | ||
TimToady | m: my $table = nqp::unipropcode("BidiMirroringGlyph"), my $val = nqp::unipvalcode("0029"); say nqp::matchuniprop("(".ord, $table, $val) | ||
camelia | rakudo-moar 02329b: OUTPUT«WARNINGS:Useless use of "," in expression "my $table = nqp::unipropcode(\"BidiMirroringGlyph\"), my $val = nqp::unipvalcode(\"0029\")" in sink context (line 1)===SORRY!===Error while compiling op unipvalcode: Arg count 1 doesn't equal required ope…» | ||
TimToady | m: my $table = nqp::unipropcode("BidiMirroringGlyph"); my $val = nqp::unipvalcode("0029"); say nqp::matchuniprop("(".ord, $table, $val) | 22:59 | |
camelia | rakudo-moar 02329b: OUTPUT«===SORRY!===Error while compiling op unipvalcode: Arg count 1 doesn't equal required operand count 3 for op 'unipvalcode'» | ||
TimToady | m: my $table = nqp::unipropcode("BidiMirroringGlyph"); my $val = nqp::unipvalcode($table,"0029"); say nqp::matchuniprop("(".ord, $table, $val) | ||
camelia | rakudo-moar 02329b: OUTPUT«1» | ||
TimToady | it seems to say you can | ||
m: my $table = nqp::unipropcode("BidiMirroringGlyph"); my $val = nqp::unipvalcode($table,"0029"); say nqp::matchuniprop("[".ord, $table, $val) | |||
camelia | rakudo-moar 02329b: OUTPUT«0» | ||
lue | r: say '('.&uniprop('BidiMirroring') | 23:00 | |
camelia | rakudo-jvm 02329b: OUTPUT«uniprop NYI on jvm backend in sub uniprop at gen/jvm/CORE.setting:6753 in sub uniprop at gen/jvm/CORE.setting:6753 in block at /tmp/tmpfile:1» | ||
..rakudo-parrot 02329b: OUTPUT«uniprop NYI on parrot backend in sub uniprop at gen/parrot/CORE.setting:6757 in sub uniprop at gen/parrot/CORE.setting:6757 in block at /tmp/tmpfile:1» | |||
..rakudo-moar 02329b: OUTPUT«0» | |||
TimToady | yes, I just used it to match in the mirroring glyph table, but we don't expose that with unimatch() currently | ||
lue | m: say '('.&unibool('BidiMirroring') | ||
camelia | rakudo-moar 02329b: OUTPUT«(signal SEGV)» | ||
timotimo | heh, oops. | ||
lue | doesn't look like unibool works atm | 23:01 | |
23:01
Mouq joined
|
|||
timotimo | well, that's not a property that'd have a boolean value, eh? | 23:01 | |
lue isn't too sure about a separate function for boolean values anyway | |||
timotimo: oh, I thought it was. | |||
FROGGS | m: say "༼".&uniname # I am a bit surprised that this works | 23:02 | |
camelia | rakudo-moar 02329b: OUTPUT«TIBETAN MARK ANG KHANG GYON» | ||
23:02
rurban left
|
|||
timotimo | FROGGS: what's surprising about that? | 23:02 | |
FROGGS | ahh wait | ||
༼ makes the & look differently | |||
(and the second quote) | 23:03 | ||
༼& | |||
TimToady | you can only use unibool on 1-bit wide props | ||
m: say '('.&unibool('BidiMirrored') | |||
camelia | rakudo-moar 02329b: OUTPUT«(signal SEGV)» | ||
TimToady | hmm | ||
lue | TimToady: so it's a case of LTA error then :) | ||
TimToady | yeah... | ||
m: say 'A'.&unibool('BidiMirrored') | 23:04 | ||
camelia | rakudo-moar 02329b: OUTPUT«(signal SEGV)» | ||
TimToady | m: say 'A'.&unibool('Common') | ||
camelia | rakudo-moar 02329b: OUTPUT«(signal SEGV)» | ||
lue | m: say '('.&unibool('Bidi_Mirrored') | ||
camelia | rakudo-moar 02329b: OUTPUT«(signal SEGV)» | ||
lue | TimToady: any particular reason you made a separate unibool apart from uniprop? | 23:05 | |
TimToady | m: say 'A'.&unibool('Any') | ||
camelia | rakudo-moar 02329b: OUTPUT«(signal SEGV)» | ||
TimToady | well, uniprop is going to prefer the str output, which may be an enum | 23:06 | |
just seemed like a good thing to let it know exactly what you want on a low level | |||
23:07
Adriaaan left,
cognominal left,
cognominal joined
|
|||
lue | TimToady: just asking because string and integer are combined in uniprop. (Instead of every form being separated) | 23:08 | |
TimToady | we can expose those however we like | 23:09 | |
23:10
FROGGS left
|
|||
TimToady | m: my $table = nqp::unipropcode("Any"); say nqp::getuniprop_bool("[".ord, $table) | 23:11 | |
camelia | rakudo-moar 02329b: OUTPUT«(signal SEGV)» | ||
TimToady | well, looks like a low-level bug, but it's not obvious offhand | ||
oh, yes it is :) | 23:12 | ||
Mouq | o/ | 23:13 | |
TimToady++ | |||
Should the following work: | 23:14 | ||
p6: say 112344 ~~ /(.)$0/ | |||
p6: say 112344 ~~ /(.)($0)/ #this one | |||
timotimo | o/ Mouq | ||
camelia | rakudo-parrot 02329b, rakudo-jvm 02329b, rakudo-moar 02329b, niecza v24-109-g48a8de3: OUTPUT«「11」 0 => 「1」» | 23:15 | |
niecza v24-109-g48a8de3: OUTPUT«Use of uninitialized value in string context at /home/p6eval/niecza/lib/CORE.setting line 1389 (warn @ 5)  at /home/p6eval/niecza/lib/CORE.setting line 269 (Mu.Str @ 15)  at <unknown> line 0 (ExitRunloop @ 0)  at /tmp/tmpfile line 0 (A…» | |||
..rakudo-parrot 02329b, rakudo-jvm 02329b, rakudo-moar 02329b: OUTPUT«Nil» | |||
Mouq | m: say 112344 ~~ /(.){}($0)/ | ||
camelia | rakudo-moar 02329b: OUTPUT«Nil» | ||
lue | m: say 'z'.&unival | 23:24 | |
camelia | rakudo-moar 02329b: OUTPUT«NaN» | ||
rjbs | Postmodernism is dead. Perl is postmodern. Ergo...? -- www.prospectmagazine.co.uk/magazine...thenticism | 23:27 | |
23:32
Probably_Tadzik joined
|
|||
Probably_Tadzik | hey hey | 23:32 | |
my feather account seems to be... inactive? Or the password has been changed? | |||
I can verify myself on github/email/whatever-necessary | 23:33 | ||
timotimo | i just found ⌀⊙⊖⊕ on my keyboard \o/ | 23:36 | |
23:38
rurban joined
|
|||
Mouq | timotimo: It was a happy day indeed when I downloaded a keyboard mapper :) | 23:40 | |
timotimo | well, i've got little stickers glued to my keys | 23:41 | |
i just never looked at all of the symbols on them | |||
(for they are many) | |||
23:42
hoverboard left
|
|||
Mouq | timotimo: Ahh :) | 23:43 | |
timotimo | neo-layout.org ← truly a beauty | ||
lue | timotimo: too bad US keyboards don't have the extra keys for German layouts :( | 23:44 | |
timotimo | huh? | ||
lue | en.wikipedia.org/wiki/File:German-...y-2012.jpg vs en.wikipedia.org/wiki/File:ANSI_Ke...Factor.svg | 23:47 | |
23:47
skids joined
|
|||
pippo | my perl6-m broke after git commit fc2a6e632efa06c8c6dc1fd1c5564d2e4ac17c03 | 23:48 | |
timotimo | oh, the terrible one-line-return-key | ||
oh? the left key is extra wide, though? | |||
23:49
kaare_ joined
|
|||
lue | timotimo: on my specific keyboard, the |\ key is next to a shorter backspace, and I have a larger return as a result. But otherwise, that ANSI is my keyboard. | 23:49 | |
Yes, extra-wide shift key on the left, only 10 normal keys on the bottom row. | |||
timotimo | keyboards are weird, yo. | ||
anyway, i'm off to bed | |||
gnite! | |||
lue | Also one less key on the middle row (next to caps lock) | ||
♞ timotimo o/ | |||
timotimo | .o( i have not yet found that key on my keyboard ) | 23:50 | |
23:50
ajr_ left
|
|||
lue | s/next to/the row with/ | 23:50 | |
23:51
tgt joined,
BenGoldberg joined
|
|||
Mouq | night timotimo! | 23:51 | |
lue | So I couldn't use a German keyboard layout if I wanted to; I'm missing two keys! :) | 23:52 | |
Mouq wants to get a www.typematrix.com/ | |||
pippo | Sigh. Good night #perl6 | 23:53 | |
23:53
pippo left,
xinming joined
23:55
tgt left
|
|||
lue | Mouq: I wish these keyboard were still made: www.quadibloc.com/comp/images/scadet.gif | 23:56 | |
23:57
dmol left
|
|||
Mouq | night pippo! I'm sorry, i missed that your perl6-m broke | 23:59 |