»ö« 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. |
|||
00:07
dansamo left
00:16
Psyche^ left,
dmol joined
00:17
Psyche^ joined
00:19
Mouq joined
00:20
dmol left
00:28
grondilu left
00:31
ajr_ left
00:58
BenGoldberg joined
01:01
dayangkun joined
01:09
woosley joined
01:22
FROGGS_ joined
01:23
cognominal left
01:26
FROGGS left
01:33
zakharyas joined
01:51
Vlavv` left
01:54
rpr223 left
01:56
rpr223 joined
02:21
pprs3 joined
02:39
xenoterracide__ left
02:50
xenoterracide joined
02:55
xorp joined
02:58
xenoterracide_ joined,
xenoterracide left,
xenoterracide_ left,
xenoterracide_ joined
03:10
Vlavv` joined
03:23
aindilis joined
03:32
araujo left
03:40
pmurias left
03:48
preflex_ joined,
ChanServ sets mode: +v preflex_
03:49
preflex left,
preflex_ is now known as preflex
03:52
PZt left
03:57
PZt joined
04:17
benabik left,
dwarring left
04:26
[Sno] left
|
|||
Mouq makes Rakudo PR #216 | 04:53 | ||
05:07
benabik joined
|
|||
masak | *yawn* morning, #perl6 | 05:15 | |
Mouq | Don't merge that PR | 05:16 | |
:p | |||
05:18
BenGoldberg left
05:21
dayangkun left
|
|||
masak | Mouq: shall I invalidate it? | 05:23 | |
Mouq | I just made a comment saying it shouldn't yet be merged, but go ahead. | 05:25 | |
05:25
[Sno] joined
|
|||
Woodi | morning :) | 05:27 | |
masak | Mouq: done. | 05:28 | |
Woodi: mornin' | 05:29 | ||
& | |||
Woodi | so, what is teoretical mining of ':' in perl6 ? eg. one used in ':2nd' above :) | ||
Mouq | ':something' is a pair or adverb. It's just sugar, and the list is here: perlcabal.org/syn/S02.html#Adverbial_Pair_forms | 05:30 | |
Woodi | ook, looking | 05:31 | |
Mouq | Well, sugary | ||
r: my $str = "I love books, and they love me". $str ~~ s:2nd/love/hate/; say $str | 05:33 | ||
camelia | rakudo e22ac2: OUTPUT«===SORRY!=== Error while compiling /tmp/3C0qoFXzHoUnsupported use of . to concatenate strings; in Perl 6 please use ~at /tmp/3C0qoFXzHo:1------> str = "I love books, and they love me". ⏏$str ~~ s:2nd/love/hate/; say $…» | ||
Mouq | r: my $str = "I love books, and they love me"; $str ~~ s:2nd/love/hate/; say $str | ||
camelia | rakudo e22ac2: OUTPUT«I love books, and they hate me» | ||
Mouq | I guess for matches they're actually called 'Modifiers' S05:171 which is probably for the best since they don't actually de-sugar like normal adverbs | 05:36 | |
synopsebot | Link: perlcabal.org/syn/S05.html#line_171 | ||
Mouq | r: $t = 'est'; Q '$t' :qq | 05:39 | |
camelia | rakudo e22ac2: OUTPUT«===SORRY!=== Error while compiling /tmp/Z8qLIndEL6Variable '$t' is not declaredat /tmp/Z8qLIndEL6:1------> $t⏏ = 'est'; Q '$t' :qq expecting any of: postfix» | ||
Mouq | r: my $t = 'est'; say (Q '$t' :qq) | ||
camelia | rakudo e22ac2: OUTPUT«===SORRY!=== Error while compiling /tmp/YDLqPBBvPMYou can't adverb thatat /tmp/YDLqPBBvPM:1------> my $t = 'est'; say (Q '$t' :qq⏏) expecting any of: pair value» | ||
Woodi | why Pairs are "extracted" to separate type/form ? something like lists or just sugar ? | ||
Mouq | "All of the adverbial forms (including the normal ones with identifier keys) are considered special tokens and are recognized in various positions in addition to term position" | 05:41 | |
I guess calling them sugar is wrong. They're a chunk of the language | 05:42 | ||
05:47
FROGGS_ left,
SamuraiJack_ joined
|
|||
Mouq | sub power ( :$level ) { say "His {&?ROUTINE.name} level is over $level!" }; power :9000level | 05:48 | |
r: sub power ( :$level ) { say "His {&?ROUTINE.name} level is over $level!" }; power :9000level | |||
camelia | rakudo e22ac2: OUTPUT«===SORRY!=== Error while compiling /tmp/AJRzS9D_FDMalformed radix numberat /tmp/AJRzS9D_FD:1------> e} level is over $level!" }; power :9000⏏level expecting any of: number in radix notation» | 05:49 | |
Mouq | Awww | ||
moritz | \o | ||
Mouq | o/ | ||
moritz | r: my %h = :1st; say %h.perl | ||
camelia | rakudo e22ac2: OUTPUT«===SORRY!=== Error while compiling /tmp/C96hdSdtuaMalformed radix numberat /tmp/C96hdSdtua:1------> my %h = :1⏏st; say %h.perl expecting any of: number in radix notation» | ||
moritz | seems to work only as regex adverbs | 05:50 | |
std: :1st | |||
camelia | std a0bcfb1: OUTPUT«ok 00:01 120m» | ||
moritz | n: my %h = :1st; say %h.perl | ||
camelia | niecza v24-98-g473bd20: OUTPUT«{}.hash» | ||
moritz | n: my %h = (:1st); say %h.perl | ||
camelia | niecza v24-98-g473bd20: OUTPUT«{}.hash» | ||
moritz | I'm pretty sure that's wrong | 05:51 | |
though adverbs are somewhat of a mistery to me | |||
Mouq | S02:3776 | ||
synopsebot | Link: perlcabal.org/syn/S02.html#line_3776 | ||
Mouq | Oh, that didn't link to the right place | 05:52 | |
05:55
woosley left
|
|||
Mouq | I think my browser's just being weird. "For identifiers that take a numeric argument…" | 05:55 | |
06:04
PacoAir joined
06:05
darutoko joined
06:10
FROGGS joined
06:18
dayangkun joined
06:36
xenoterracide_ left
06:54
PacoAir left
07:04
hummeleB1 joined
07:05
araujo joined
07:07
kurahaupo joined
07:11
araujo left
07:17
tadegenban joined,
tadegenban left
07:33
salv0 left
07:34
PacoAir joined,
salv0 joined
07:36
dwarring joined
07:37
moukeddar joined
|
|||
dwarring | PR for nqp rubyish example - github.com/perl6/nqp/pull/137 | 07:37 | |
07:46
sqirrel joined
07:47
moukeddar left
07:54
dmol joined
07:57
aindilis left
08:04
dayangkun left
|
|||
hoelzro | o/ #perl6 | 08:08 | |
08:10
btyler left
08:11
rpr223 left,
pprs3 left
08:15
dayangkun joined
|
|||
moritz | \o | 08:21 | |
dwarring: if that's fine for you, I'd squash all of those commits into one | 08:23 | ||
moritz siply goes ahead | 08:26 | ||
dalek | p: 3c7ac10 | dwarring++ | examples/rubyish/ (18 files): Add rubyish example Ruby subset extended from the `rubyish-4` example, as introduced in the Edument [Rakudo and NQP internals course](github.com/edumentab/rakudo-and-nq...s-course). |
||
moritz | and dwarring++ now has an nqp commit bit | 08:27 | |
08:46
hummeleB1 left
|
|||
jnthn | morning o/ | 08:48 | |
08:53
dakkar joined
|
|||
hoelzro | ahoy jnthn | 08:54 | |
09:05
daxim joined
09:07
moukeddar joined
09:13
xinming left
09:15
xinming joined
09:33
pernatiy left
09:35
dansamo joined
09:39
fhelmberger joined
09:41
xinming left
09:43
xinming joined
|
|||
nwc10 | aristotle pointed me at programming.oreilly.com/2013/10/dea...luded.html (which links to www.leancrew.com/all-this/2012/04/p...th-others/ ) and possibly related is also www.python.org/dev/peps/pep-0439/ | 09:55 | |
ie - the downsides of having a "batteries included" philosphy, that at least some Pythonistas think that Perl is better at OO glue (so Perl 6 ought to steal the best process starting API from CPAN) and that Python is belatedly shipping a module installer in core. | 09:56 | ||
tadzik | oh, is it just me griding my teeth upon the division operator overloaded to do paths? | 09:58 | |
(grinding?) | |||
nwc10 | no, I am too. IIRC Boost does that, and I don't like it at all | ||
jnthn | Or how C++ has << overloaded for output? :) | 10:01 | |
diakopter | I have whitespace overloaded for concatenation | 10:03 | |
nwc10: did you try it on the pi yet? :) | 10:05 | ||
nwc10 | not yet. Pi's SD card is rather unhappy. | 10:06 | |
10:06
zakharyas left
|
|||
diakopter | I couldn't get my bain working enough to get started on the Galaxy | 10:07 | |
*brain | |||
tadzik | my pi's sdcard is always unhappy :( | 10:12 | |
it doesn't like surprise power downs | |||
diakopter | my galaxy's sdcard makes my galaxy unhappy, even though it's Samsung also | 10:13 | |
GlitchMr | <jnthn> Or how C++ has << overloaded for output? :) | ||
I hate iostream interface. | |||
yosefk.com/c++fqa/io.html | 10:14 | ||
nwc10 | jnthn: I guess I'm sort of prepared to overlook << and >> because they seem to end up being pretty sucky for actually coping with any real file formats I ever had to deal with | ||
jnthn | nwc10: So far in my career I managed to escape using C++, and after various discussions with $dayjob's C++ teacher about the language I'm not in a hurry to need to know it. ;) | ||
GlitchMr | I personally find C++ worse than PHP. | 10:15 | |
nwc10 | yes, keep your remaining sanity for more useful projects | ||
GlitchMr | Yes, you can use sane subset of it, except this sane subset is called C. | ||
The only thing I could possibly miss are strings, but that's about it. | 10:16 | ||
tadzik | except that they're not part of C++, technically ;) | 10:17 | |
jnthn chuckles at his mail client labeling a mail from on of $dayjob's sales folks as "This message may be a scam" | 10:18 | ||
GlitchMr | std::string is not part of C++? | ||
tadzik | what I mean is that it's part of the standard library, not part of the language | ||
as in, "this is not std::string" | |||
GlitchMr | Without standard library, C++ would be C with booleans and classes. | 10:19 | |
(and booleans are in C99 anyway) | |||
It would feel like Perl without arrays and hash tables. | 10:20 | ||
10:31
araujo joined
10:35
fhelmberger_ joined
10:36
fhelmberger left,
pernatiy joined
|
|||
dalek | rlito: fcea756 | (Flavio S. Glock)++ | misc/tree_grammar.pl: Perlito - misc - tree grammar placeholder |
10:44 | |
10:49
grondilu joined
|
|||
colomon | GlitchMr: for my $work, I had to reimplement the bits of the C++ standard library I needed, because (when I started) I could not rely on my customers all using compilers that had working versions of it. | 10:51 | |
GlitchMr | That makes sense. | ||
I mean, C++ is not even a standard. | |||
Or rather, it is, but it doesn't specify anything. | |||
For example, name mangling. The specification says it has to be done, but not how, so everybody does it different way. | 10:52 | ||
FROGGS | good that our specs tend to say how it has to work too | 10:53 | |
10:55
kurahaupo left,
dayangkun left
|
|||
GlitchMr | C++ portability doesn't exist. | 10:55 | |
10:58
daxim left,
daxim_ joined
|
|||
GlitchMr | Mixing C++ code? That's simple, ensure they both were compiled with the same options and the same compiler. | 10:59 | |
nwc10 | IIRC the intent pretty much is that compilers do name mangling *differently*, because if they did it the same way, they would have to lay out the detailed implementation of classes and vtables byte for byte identically | 11:03 | |
GlitchMr | Other languages have standarized name mangling. | 11:05 | |
For example, Foo$1 is anonymous class in method of class Foo. | 11:06 | ||
11:06
c1sung left
|
|||
GlitchMr | (in Java)' | 11:06 | |
11:07
c1sung joined
|
|||
GlitchMr | Or Objective-C, which is compiled language. It also has standarized name mangling. | 11:09 | |
grondilu reads en.wikipedia.org/wiki/Name_manglin...in_C.2B.2B | 11:15 | ||
according to this, if C++ does not standardize name mangling, it's more or less intentional. | |||
11:17
frdmn left
|
|||
grondilu | Also: « A standardised requirement for name mangling would also prevent an implementation where mangling was not required at all — for example, a linker which understood the C++ language. » | 11:17 | |
One day there may be a C++ compiler in Perl 6, right? | 11:18 | ||
masak | grondilu: the standard answer to that is "yes, but you'd still have to write a VM/runtime on top of C++" | ||
grondilu | I don't understand why. Couldn't we use the same VM Perl 6 uses? | 11:19 | |
jnthn | masak: A C++ compiler written in Perl 6, I think grondilu meant. Not writing a Perl 6 compiler in C++. | 11:25 | |
or that's how I read it, anyway... | |||
grondilu | yeah that's what I meant. | ||
moritz | oh my, no easy task | 11:26 | |
Timbus | perl in C++... topaz?? | ||
nwc10 | first, could I have a Perl 6 compiler written in NQP? :-) | ||
pony remains optional | |||
note, do not want a pony instead of the Perl 6 compiler, even if it's cheaper just to ship me a pon.y | 11:27 | ||
Timbus | plz spec pony | ||
pony is required | |||
moritz | plz unspec Timbus :-) | ||
grondilu | I suspect once Perl6 is fast and fully functional, people will have lots of fun writting compilers for various languages. C++ won't be any exception. | 11:28 | |
11:28
moukeddar left
|
|||
nwc10 | pony has 4 legs, which point downwards. Is unambiguously alive (no nails or perches involved). Does not have captions in front of it (so do not confuse with a LOLCAT or similar). Eats grass, oats and similar vegetable matter, converts to nitrogen rich fertiliser. Effectively also eats money, without doing so directly. | 11:30 | |
Timbus | yes but | 11:31 | |
nwc10 | pony will not pass perl 6 regression test suite, however hard you flog | ||
Timbus | what colour is it | ||
masak | pony-colored! | ||
Timbus | hoho | ||
nwc10 | orange. Or the closest you can get with spray-tan. | ||
oh, I forgot, pony is not a valid ingredient of beefburgers, cottage pie, or other cow-based food products | 11:33 | ||
11:33
colomon left
|
|||
nwc10 | (neither is a Perl 6 compiler) | 11:33 | |
the pun potential of that has not been tested. It might get rather surreal | 11:35 | ||
although, quite truthfully, yesterday we enjoyed a nice roast for lunch | |||
jnthn | Gee, I look away for a moment and we end up talking about spray-tanning ponies... | 11:37 | |
11:38
colomon joined
|
|||
moritz | .oO( spanning pony trees ) |
11:38 | |
11:48
zakharyas joined
|
|||
flussence_ | neat, I can build all of rakudo-jvm in a bit under an hour on my netbook now | 11:48 | |
dalek | rlito: 3bc9e5a | (Flavio S. Glock)++ | misc/tree_grammar.pl: Perlito - misc - tree grammar - actions |
11:51 | |
12:01
SamuraiJack_ left
|
|||
[Coke] gets to lead a workshop at work today that was pulled up several days earlier than anticipated on a topic that is much more boring than jnthn++'s workshop. | 12:07 | ||
[Coke] is therefore unmotivated, unprepared, and unhappy. | |||
(and offline. laters) | 12:10 | ||
12:26
dayangkun joined
|
|||
tadzik | . o O ( unmotivated, unprepared, unhappy and unplugged ) | 12:34 | |
jnthn | Sounds like am emo concert... | 12:35 | |
moritz | :-) | 12:36 | |
FROGGS | *g* | ||
12:39
gabriel joined
|
|||
tadzik | ;D | 12:40 | |
12:59
kbaker_ joined
|
|||
pmichaud | good morning, #perl6 | 13:00 | |
jnthn | hi, pmichaud | 13:01 | |
moritz | good am, pm | ||
13:10
colomon_ joined,
arnsholt_ joined,
MrMeek-afk joined
|
|||
dalek | rlito: 0be0d64 | (Flavio S. Glock)++ | misc/tree_grammar.pl: Perlito - misc - tree grammar - macros |
13:10 | |
13:11
kst` joined
|
|||
FROGGS | hi pmichaud | 13:12 | |
13:12
colomon left,
arnsholt left,
MrMeek left,
colomon_ is now known as colomon,
skids left,
cotto left,
atta left
13:13
skids joined,
perigrin left,
cotto joined,
atta joined
13:14
perigrin joined,
simcop2387 joined
13:16
araujo left
13:18
araujo joined
13:22
prevost joined
13:33
lowpro30 joined
13:41
bluescreen10 joined
13:42
jnap joined
13:44
btyler joined
|
|||
dalek | rlito: 063696d | (Flavio S. Glock)++ | misc/tree_grammar.pl: Perlito - misc - tree grammar - cleanup |
13:54 | |
13:55
benabik left
13:57
kaare_ joined
14:00
lowpro30 left
14:16
xinming left
14:18
xinming joined
14:19
Timbus left
14:20
Timbus joined
14:23
kbaker_ left
14:27
sqirrel left
14:36
ajr joined,
ajr is now known as Guest86284
14:38
zakharyas left
14:43
benabik joined
14:44
Guest86284 is now known as ajr_
14:45
dmol left
|
|||
Mouq | p5eval: printf("%.50f", 1.115) | 14:48 | |
p5eval | Mouq: 1.114999999999999991118215802998747676610946655273441 | ||
Mouq | r: printf("%.50f", 1.115) | ||
camelia | rakudo e22ac2: OUTPUT«1.0000000000000000000000000000000000000000001.15e+49» | ||
diakopter | p5eval: printf("%.500f", 1.115) | ||
p5eval | diakopter: 1.11499999999999999111821580299874767661094665527343750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | ||
Mouq likes p5's approximation better than rakudo's fail | |||
timotimo | ... what the hell is that 1.00000...0001.15 thing? :D | 14:49 | |
Mouq | n: printf("%.50f", 1.115) | ||
camelia | niecza v24-98-g473bd20: OUTPUT«1.11500000000000000000000000000000000000000000000000» | ||
diakopter | megafail | ||
Mouq | niecza++ | ||
14:49
kst` is now known as kst
|
|||
timotimo | well, you *did* ask for a float to be output | 14:50 | |
and niecza just goes ahead and says "haha, that's totally a rat!" | |||
14:50
kaleem joined
14:53
gshank joined
|
|||
FROGGS | Mouq: please send a rakudobug | 14:54 | |
14:54
xenoterracide_ joined
|
|||
Mouq | FROGGS: Roger | 14:55 | |
r: printf("%.50f", '1.115') | 14:57 | ||
camelia | rakudo e22ac2: OUTPUT«1.0000000000000000000000000000000000000000001.15e+49» | ||
14:57
rindolf joined
|
|||
moritz | r-j: printf("%.50f", '1.115') | 14:58 | |
camelia | rakudo-jvm e22ac2: OUTPUT«1.000000000000000000000000000001.1499999999999994E49» | ||
moritz | r: printf("%.10f", '1.115') | ||
camelia | rakudo e22ac2: OUTPUT«1.1150000000» | ||
diakopter | nqp-m: printf("%.10f", '1.115') | 15:02 | |
camelia | nqp-moarvm: OUTPUT«Bytecode validation error at offset 22, instruction 4:register operand index 50 out of range 0..9» | ||
FROGGS | r: printf("%.50f", 1.115) | 15:03 | |
camelia | rakudo e22ac2: OUTPUT«1.0000000000000000000000000000000000000000001.15e+49» | ||
FROGGS | nqp: say(nqp::sprintf("%.50f", 1.115)) | ||
camelia | nqp: OUTPUT«get_pmc_keyed() not implemented in class 'Float'current instr.: 'next_argument' pc 50548 (src/stage2/gen/NQPHLL.pir:19479) (src/stage2/gen/NQPHLL.nqp:2137)» | ||
15:03
rindolf left
|
|||
FROGGS | nqp: say(nqp::sprintf("%.50f", [1.115])) # better | 15:04 | |
camelia | nqp: OUTPUT«1.0000000000000000000000000000000000000000001.15e+49» | ||
jnthn | nqp-jvm: nqp: say(nqp::sprintf("%.50f", [1.115])) # curious | ||
camelia | nqp-jvm: OUTPUT«Confused at line 2, near "nqp: say(n" in panic (src/stage2/gen/NQPHLL.nqp:279) in comp_unit (src/stage2/gen/NQP.nqp:772) in TOP (src/stage2/gen/NQP.nqp:669) in parse (src/stage2/gen/QRegex.nqp:1247) in parse (src/stage2/gen/NQPHLL.nqp:1376) in…» | ||
FROGGS | why does that take so long to compute? | ||
15:04
kaleem left
|
|||
jnthn | nqp-jvm: say(nqp::sprintf("%.50f", [1.115])) # curious | 15:04 | |
camelia | nqp-jvm: OUTPUT«1.000000000000000000000000000001.1499999999999994E49» | ||
jnthn | Portably buggy :P | 15:05 | |
Mouq | So, you can't submit bugs from rt.perl.org? | 15:08 | |
FROGGS | no | 15:09 | |
[email@hidden.address] | 15:10 | ||
15:11
FROGGS left
|
|||
Mouq | It is done. | 15:13 | |
15:13
rindolf joined
|
|||
dalek | albot/host07: e2559d7 | diakopter++ | build-scripts/rebuild-nqp-moarvm.sh: new |
15:14 | |
jnthn | diakopter: Does it need to git pull in the NQP repo too or is that handled elsewhere? | 15:16 | |
diakopter | did it already | 15:17 | |
dalek | albot/host07: 43c8596 | diakopter++ | evalbot.pl: newer |
15:19 | |
diakopter | evalbot control restart | ||
15:19
camelia left
15:20
camelia joined
|
|||
diakopter | nqp-moarvm: say('I see you'); | 15:20 | |
nqp-m: say('I see you'); | |||
.. | |||
15:20
ChanServ sets mode: +v camelia
|
|||
camelia | nqp-moarvm: OUTPUT«I see you» | 15:20 | |
diakopter | nqp-m: say('I see you'); | ||
camelia | nqp-moarvm: OUTPUT«I see you» | ||
diakopter | nqp-m: say('I see you'); | ||
camelia | nqp-moarvm: OUTPUT«I see you» | ||
diakopter | nqp-m: say('I see you'); | ||
camelia | nqp-moarvm: OUTPUT«I see you» | ||
diakopter | nqp-m: 1 | ||
camelia | ( no output ) | ||
diakopter | nqp-m: nqp::say(nqp::list) | 15:21 | |
camelia | nqp-moarvm: OUTPUT«cannot stringify thisframe_name_0» | ||
diakopter | nqp-m: nqp::say(nqp::outer_ctx) | 15:22 | |
camelia | nqp-moarvm: OUTPUT«No registered operation handler for 'outer_ctx'compile_op» | ||
diakopter | nqp-m: nqp::say(nqp::outerctx) | ||
camelia | nqp-moarvm: OUTPUT«No registered operation handler for 'outerctx'compile_op» | ||
diakopter | nqp-m: nqp::say(nqp::reprname(1)) | 15:23 | |
camelia | nqp-moarvm: OUTPUT«P6int» | ||
diakopter | nqp-m: nqp::say(nqp::reprname(nqp::newtype)) | ||
camelia | nqp-moarvm: OUTPUT«Arg count 0 doesn't equal required operand count 3 for op 'newtype'compile_mastop» | ||
diakopter | nqp-m: nqp::say(nqp::reprname(nqp::can(1,''))) | 15:24 | |
camelia | nqp-moarvm: OUTPUT«P6int» | ||
diakopter | nqp-m: nqp::say(nqp::can(1,'')) | ||
camelia | nqp-moarvm: OUTPUT«0» | ||
diakopter | nqp-m: nqp::say(nqp::can(1,nqp::null)) | ||
camelia | nqp-moarvm: OUTPUT«0» | ||
diakopter | nqp-m: nqp::say(nqp::can(nqp::null,nqp::null)) | ||
camelia | nqp-moarvm: OUTPUT«(signal SEGV)» | ||
diakopter | hee | ||
Mouq | nqp-m: nqp::say(nqp::can(nqp::null,'do anything?')) | ||
camelia | nqp-moarvm: OUTPUT«(signal SEGV)» | ||
diakopter | it's *really* null | ||
jnthn | Yeah...we should deal with that at some point :) | 15:26 | |
15:28
[Sno] left
|
|||
diakopter | to whoever fixes that: you have to check all if conditionals that could have an implied NULL, all occurrences of NULL, all memset, and all calloc | 15:28 | |
and all occurrences of 0, for good measure | 15:29 | ||
and all ternary ops | |||
jnthn | And while, and... :P | ||
diakopter | and all && | 15:30 | |
*sigh* | |||
jnthn | Damn, you're making the SEHs sound easy :P | ||
diakopter | and for() | ||
dalek | rlito: 1e7c085 | (Flavio S. Glock)++ | misc/tree_grammar.pl: Perlito - misc - tree grammar - more patterns |
15:31 | |
diakopter | jnthn: are we allocating in gen2 for the 6model bootstrap? | 15:32 | |
TimToady | hot water heater busted, sigh, so I know what I'm doing today... | ||
hopefully just a thermostat | 15:33 | ||
jnthn | TimToady: Not being warm, apparently... | ||
timotimo | stay cool, tim. tim, stay cool | ||
jnthn | diakopter: Don't think so, though we could | ||
diakopter: In the grand scheme of things, it's not a lot of objects :) | |||
TimToady | who is this "tim" of which you speak? | ||
huf | a dangerous powerful wizard iirc | 15:34 | |
TimToady 's name is "toady" | |||
timotimo | doesn't scan. www.youtube.com/watch?v=qTDvkCU3u3w | ||
well, it does for the second part, but that's not the part that everybody knows (obviously) | 15:35 | ||
TimToady is merely a toady of tims | |||
rjbs | There is more than one adjective describing you. | 15:36 | |
TimToady | timid ain | 15:37 | |
ain't one of 'em | |||
timotimo | aye, it's a sign of the tims. | ||
diakopter | there's no tim like the present | ||
timotimo | o TimToady o mores! | 15:38 | |
(mores than one way to do it, that is!) | |||
diakopter | what is that, old Scottish? | ||
15:41
rindolf left
|
|||
timotimo | laTim. | 15:41 | |
15:46
dayangkun left
|
|||
TimToady | it's really an oriental name, so "tim" is the family part, and "toady" is the given name :) | 15:46 | |
that's why I prefer to go by "toady" | 15:47 | ||
it also serves as a microshibboleth when people don't know my real name and assume it must be "Tim" :) | 15:53 | ||
15:53
rindolf joined
|
|||
TimToady | hence I prefer that my friends *not* do that... | 15:54 | |
15:57
cognominal joined
16:00
dayangkun joined
|
|||
timotimo | okay :) | 16:00 | |
16:03
benabik left
16:04
btyler left
16:11
benabik joined
16:16
go|dfish joined
|
|||
TimToady | skimming those Python articles made me realize that one of the reasons for providing more than one way to do it is to allow the language to scale properly; if there's only one way to do things, it's usually either too heavy or too light for your current purposes | 16:20 | |
it's like dealing with the government; the amount of paperwork is always going to be too little or too much :) | 16:21 | ||
or a quantum superposition of those... | |||
jnthn | or just not at all :P | 16:22 | |
16:23
FROGGS joined
|
|||
TimToady | well, yes, "can't get there from here" is closely related to "can't get their form here" | 16:24 | |
the other alternative is to pay enough that your government just tells you what would be on your forms if you had any :P | 16:25 | ||
jnthn | I do receive a form. I then can send an SMS to say I agree with it, and that's my tax return done for the year. ;) | 16:26 | |
If I'm paying that much they better be doing the darn calcs for me :P | |||
16:27
[Sno] joined
|
|||
TimToady | well, you're still sending in a lot of notional paper, it's just monetary paper :) | 16:27 | |
.oO(waterbed theory of government paper) |
16:28 | ||
FROGGS | o/ | ||
TimToady | so government is like a pony: Effectively also eats money, without doing so directly. (Except, of course, when it does do so directly, but then it's more like a goat.) | 16:33 | |
arnsholt_ | jnthn: Yeah, I quite like that system as well | 16:35 | |
16:36
arnsholt_ is now known as arnsholt
|
|||
arnsholt | Apparently some Americans are horrified by the fact that it's even possible =) | 16:36 | |
jnthn | ;) | ||
arnsholt: BTW, I'm free in Oslo on Thursday evening for a few hours. | 16:37 | ||
16:37
pmurias joined
|
|||
jnthn | For beer/dinner/meatspace nativecall plotting... :) | 16:37 | |
16:38
fhelmberger_ left
|
|||
arnsholt | I'll be away, unfortunately | 16:38 | |
jnthn | Ah, no worries :) | 16:39 | |
Today I heard I'll probably be there for a couple of days in Nov too | |||
Seems Norway is a monthly happening nowadays. :) | |||
16:39
fgomez joined
|
|||
arnsholt | Cool | 16:41 | |
Gimme a shout if you have some free time to kill | |||
jnthn | Typically, I have at least one free evening, sometimes two. :) | 16:42 | |
TimToady | well, in America you can find people horrified by nearly anything that they are told to be horrified by :) | 16:46 | |
arnsholt | Is there a reason only install/bin/{nqp,perl6} are runnable outside of the repo on JVM? | ||
TimToady: Yeah, I guess that's true of anywhere | |||
TimToady | alas, the one thing they almost never do is get horrified by the motivations of the people that are telling them what to be horrified by | 16:48 | |
arnsholt | Well, the people doing the telling aren't going to tell them to be horrified by that, are they? =) | ||
perigrin | TimToady: I'm horrified by that truth. | 16:49 | |
TimToady | it's always trivially easy to "justify" extremism by pointing out the other extreme | ||
16:50
pernatiy left
|
|||
TimToady | and compromise seems to be completely busted here right now because the extremists can compromise, and even the people in the middle can't compromise now because that just moves things toward one extreme or the other :) | 16:51 | |
*can't compromise | |||
16:52
SamuraiJack_ joined
|
|||
TimToady | We all agree on the necessity of the other guy compromising... | 16:52 | |
perigrin | well the problem is that compromise *is* moving (somethings) towards one extreme or the other ... and moving *other* things the other direction. If it were everything moving in one direction it would be called capitulation. | 16:55 | |
though the extremists like to think it's called compromise still. | |||
TimToady | and we've decided to clean up all the unsanitary processes in the sausage factory; as a result, no sausage can be made anymore | ||
we got rid of all the smoke-filled rooms and all the pork-barrel earmarks, so there's nothing to trade with | 16:56 | ||
as a result, we'll likely take down the entire world economy before the tea party wakes up and smells the coffee | 16:57 | ||
16:57
dansamo left
|
|||
TimToady | on the other hand, I'm more depressed by my broken water heater :) | 16:59 | |
perigrin | that's cold. | 17:01 | |
TimToady thinks, however, that the US is straying into another period resembling the extended fight between North and South, only this time the Red and Blue are a gerrymandered patchwork, and it's hard to foresee a Missouri Compromise for that to hold things together for a few more years | 17:02 | ||
and just as in the Civil War (ours, not yours :), the outcome is not really in doubt, but that won't stop them from fighting it | 17:03 | ||
17:05
benabik left
|
|||
TimToady | well, at least we'll be able to fight using Perl 6 :) | 17:06 | |
17:07
fgomez left
|
|||
TimToady should go fix his water heater before making any more dire predictions :) | 17:08 | ||
17:08
ajr_ left
17:12
benabik joined
17:13
kay__ left
17:14
dakkar left
17:20
pmurias left
17:41
sqirrel joined
|
|||
dalek | volaj: db7be71 | (Arne Skjærholt)++ | / (2 files): Make the test suite run on JVM. Here be hackery. Most notably, figuring out how to compile libraries on JVM is tricky, so for now we can run the test suite with Rakudo/Parrot to get them built and then again with Rakudo/JVM. Also, the extension guessing doesn't, so far. It just assumes the shared library extension is so. |
17:42 | |
arnsholt | jnthn: I think there's a role mixin bug on Rakudo/JVM | ||
If you take that latest Zavolaj commit (and replace the hardcoded .so with .dll) and run t/01-argless.t it should fail on the last test, which exercises the is symbol function | 17:43 | ||
17:45
prevost left
|
|||
arnsholt | If you move the is symbol so that it's before the the is native, it works | 17:45 | |
timotimo | weird | ||
arnsholt | IIRC the Parrot backend had this exact same bug | ||
japhb | .tell ssutch FYI: In case you don't watch emails from github, I sent you a pull request for p6-pb. More to come, I hope. | 17:47 | |
yoleaux | japhb: I'll pass your message to ssutch. | ||
ssutch | cool | ||
yoleaux | 17:47Z <japhb> ssutch: FYI: In case you don't watch emails from github, I sent you a pull request for p6-pb. More to come, I hope. | ||
ssutch | ill take a look right now | ||
japhb | Excellent. :-) | ||
ssutch | merged! | 17:48 | |
are you working on something with perl 6 and protobufs? | |||
17:49
woosley joined
|
|||
japhb | ssutch, thanks! I'd like to get a fully working Perl 6 protobuf implementation, which would allow Perl 6 to participate fully in Google APIs (plus others who adopted protobufs as well). Your project seemed like a good start. :-) | 17:51 | |
dalek | rlito: 48991b3 | (Flavio S. Glock)++ | misc/tree_grammar.pl: Perlito - misc - tree grammar - star |
||
ssutch | cool | ||
i wanted to use RethinkDB with perl 6 | |||
when i have some tuits later i hope to finish the impl, really like programming in perl 6 | 17:52 | ||
japhb | Nice homepage for RethinkDB. | ||
Besides the two of us, I believe masak expressed interest in working on this, so I think between us we should be able to scrape up tuits here and there. :-) | 17:53 | ||
ssutch | totally | 17:54 | |
for me it's just tough right now because i am spending all my time on contracts to support a start up which i spend all my time on ;) | |||
17:54
Rotwang joined
|
|||
japhb | LOL. Been there, done that. | 17:54 | |
Notice that I am not doing it *now*. ;-) | 17:55 | ||
17:55
jeffreykegler joined
|
|||
ssutch | yeah i hope that in the next 6 months i'll just be able to spend all my time on a profitable startup and then spend all my time on side projects (perl6 et al.) | 17:55 | |
japhb | Yay for side projects! | 17:56 | |
17:59
daxim_ left
18:05
rindolf left,
SamuraiJack_ left
18:08
lizmat_ joined,
lizmat left,
lizmat_ is now known as lizmat
18:13
dmol joined
18:17
frdmn joined
18:21
jeffreykegler left,
jnap left
18:22
jnap joined
18:38
sqirrel left
18:44
sqirrel joined
18:49
BenGoldberg joined
|
|||
BenGoldberg | join #moarvm | 18:49 | |
BenGoldberg forgot the / | 18:50 | ||
FROGGS | :o) | 18:51 | |
18:53
darutoko left
|
|||
timotimo | and now the Pet Shop Boys are playing their famous song "Go Moar" in my head ... | 18:58 | |
FROGGS .oO( /join #moar, life is peaceful there... ) | 18:59 | ||
19:02
lowpro30 joined
19:08
benabik left
19:12
Mouq left,
lowpro30_ joined
19:15
lowpro30 left
19:19
wsri left
19:23
lowpro30_ left
|
|||
BenGoldberg | There is no #moar :) | 19:24 | |
19:24
lowpro30_ joined
|
|||
jnthn | tbh, I think one irc channel is enough for us :P | 19:25 | |
BenGoldberg | nqp-m: say( NQPMatch ) | 19:26 | |
camelia | nqp-moarvm: OUTPUT«(signal SEGV)» | ||
19:32
wsri joined
|
|||
GlitchMr | nqp-m: say( SEGV ) | 19:33 | |
camelia | nqp-moarvm: OUTPUT«» | ||
GlitchMr | hm, I see | ||
nqp-m: say( say ) | |||
camelia | nqp-moarvm: OUTPUT«» | ||
GlitchMr | camelia: help | 19:34 | |
camelia | GlitchMr: Usage: <(rakudo-jvm|nqp-jvm|star|pugs|nqp|std|niecza|rakudo|p5-to-p6|b|nqp-moarvm|nom|r|j|nqp-m|nqp-mvm|pnr|p6|nr|npr|n|perl6|rj|p56|prn|rn|r-j|r-jvm|p|rnp|nrp|rpn)(?^::\s) $perl6_program> | ||
GlitchMr | j: say now | ||
camelia | rakudo-jvm e22ac2: OUTPUT«Instant:1381779309.557» | ||
GlitchMr | p5-to-p6: use strict; use warnings; if (1) { while (<>) { print "Hello, world!"; } } | 19:35 | |
camelia | p5-to-p6 : OUTPUT«# use strict# use warningsif 1 { while (glob('')) { print('Hello, world!') }}» | ||
GlitchMr | <> is glob? | ||
timotimo | <> is more like lines() | 19:36 | |
19:37
sqirrel left
|
|||
moritz | p5 <> can act both like glob and like lines(); | 19:52 | |
TimToady | but it's only glob if it doesn't match '<' <ident>? '>' | 19:56 | |
20:01
sqirrel joined,
lowpro30__ joined
20:05
lowpro30_ left
|
|||
BenGoldberg | p5-to-p6: use feature 'say'; say "Hello World"; | 20:13 | |
camelia | p5-to-p6 : OUTPUT«# use featuresay('Hello World')» | ||
BenGoldberg | p5-to-p6: sub foo { print "a method" }; __PACKAGE__->foo; | 20:15 | |
camelia | p5-to-p6 : OUTPUT«sub main::foo { print('a method')}__PACKAGE__.foo()» | ||
BenGoldberg | r: say __PACKAGE__ | ||
camelia | rakudo e22ac2: OUTPUT«===SORRY!=== Error while compiling /tmp/GcGJ3Ez_CkUndeclared name: __PACKAGE__ used at line 1» | ||
BenGoldberg | p5-to-p6: sub foo { print "a method" }; main->foo; | 20:16 | |
camelia | p5-to-p6 : OUTPUT«sub main::foo { print('a method')}main.foo()» | ||
20:16
cognominal left
|
|||
BenGoldberg | r: sub main::foo { print("test") }; main.foo; | 20:16 | |
camelia | rakudo e22ac2: OUTPUT«===SORRY!=== Error while compiling /tmp/uIbkDmSgL_Undeclared routine: main used at line 1. Did you mean '&min'?» | ||
20:17
PacoAir left
|
|||
rjbs | fg | 20:26 | |
Sorry! | |||
arnsholt | *sigh* jdb is a bit crap | 20:34 | |
grondilu | off topic: Andrew Ng's class on machine learning starts again today: ml-class.org | ||
arnsholt | I've heard good things about that course | 20:35 | |
grondilu | yep, the first one was cool. | ||
arnsholt | Machine learning is pretty cool too | 20:36 | |
20:38
cognominal joined
20:42
pernatiy joined
20:43
benabik joined
|
|||
arnsholt | jnthn: Another Rakudo/JVM weirdo: calling set_str(null) on a P6OpaqueInstance with a str box_target results in the string being "null"... | 20:45 | |
FROGGS | r: say nqp::null() | 20:47 | |
camelia | rakudo e22ac2: OUTPUT«(Mu)» | ||
FROGGS | j: say nqp::null() | ||
slooooooow | |||
camelia | rakudo-jvm e22ac2: OUTPUT«(Mu)» | ||
FROGGS | I have seen that "null" in a ast dumpm I think | ||
dump* | |||
20:52
kaare_ left
|
|||
arnsholt | From jdb inspection it looks like it happens somewhere inside the inlined set_str created by P6str | 20:52 | |
20:53
bluescreen10 left
|
|||
jnthn | arnsholt: Hmm...odd | 21:01 | |
21:02
benabik left
|
|||
jnthn | arnsholt: I can imagine it printing as "(null)" or so | 21:02 | |
FROGGS | an nqp::isnull_s check would help there I guess | ||
jnthn | arnsholt: Is there a difference between nqp::null and nqp::null_s here? | ||
21:02
dayangkun left
21:03
bbkr_ joined,
bbkr__ left
|
|||
arnsholt | jnthn: No idea, since this is in NativeCall code | 21:04 | |
FROGGS | nqp-jvm: say(nqp::null_s()) | ||
arnsholt | But I've inspected the values, and the java.lang.String being passed to set_str is null | ||
camelia | nqp-jvm: OUTPUT«null» | ||
FROGGS | nqp-jvm: say(nqp::null()) | ||
camelia | nqp-jvm: OUTPUT«java.lang.NullPointerException in (src/stage2/gen/NQPCORE.setting:672) in print (src/stage2/gen/NQPCORE.setting:671) in say (src/stage2/gen/NQPCORE.setting:678) in (/tmp/xpEcSDuZYX:1) in (src/stage2/gen/NQPHLL.nqp:1098) in eval (src/stage2/…» | ||
FROGGS | nqp: say(nqp::null()) | ||
camelia | nqp: OUTPUT«Null PMC access in get_string()current instr.: '' pc 768 (src/stage2/gen/NQPCORE.setting.pir:355) (src/stage2/NQPCORE.setting:665)» | ||
FROGGS | nqp: say(nqp::null_s()) | ||
camelia | nqp: OUTPUT«» | ||
arnsholt | jnthn: Check out Zavolaj HEAD and swap out the hardcoded .so for .dll and you should be able to repro by running t/03-simple-returns.t | 21:05 | |
t/01-argless.t has the mixin bug I mentioned earlier. Pretty sure that very same bug was fixed a while back, so I think it's backend specific | 21:07 | ||
21:12
BenGoldberg left
21:13
benabik joined
21:17
dayangkun joined
|
|||
Ulti | can I suggest total is cached in Baggy and not just Bag so that roll uses the cached value | 21:22 | |
at least the way I use BagHash/KeyBag is to sample from a distribution so adding data isn't that common but I .roll thousands of times in tight loops | 21:23 | ||
TimToady | one shouldn't even need to cache Bag since summing an immutable value should cache itself via constant folding in the first palce | 21:29 | |
*place | |||
21:32
sqirrel left,
BenGoldberg joined
21:34
pdurbin joined
|
|||
lizmat | TimToady: until we have that in place, I guess we can fake constness for now in Bag | 21:43 | |
Ulti: caching total in BagHash/MixHash will have to wait until I've had the tuits to fix visibility of attributes in roles | 21:44 | ||
jnthn | arnsholt: Will look tomorrow, too tired today :( | 21:47 | |
22:03
retupmoca left
22:05
retupmoca joined
22:08
Rotwang left
22:10
lowpro30__ left
22:14
benabik left
|
|||
Ulti | in the mutable baggy things its more you want to update the total as you go | 22:22 | |
22:25
dmol left
|
|||
dalek | p: ee184fe | dwarring++ | examples/rubyish/ (3 files): rubyish - line spanning of parenthesised lists; checks on '<%' .. '%>' placement |
22:26 | |
22:28
benabik joined
22:31
benabik left
22:32
pdurbin left
22:35
lopsoflove joined
22:36
lopsoflove left
22:38
kurahaupo joined
22:47
araujo left
22:51
araujo joined
22:58
denis_boyun joined
23:08
denis_boyun left
23:10
denis_boyun joined
23:11
dwarring left
23:12
denis_boyun left
|
|||
dalek | rl6-roast-data: 172099f | coke++ | / (2 files): today (automated commit) |
23:13 | |
[Coke] | Not sure if anyone noticed, but rj took the lead briefly when rp had an issue. | 23:14 | |
TimToady | we want rj to be better, not rp to be worse :) | ||
colomon | rj took the lead in spectests? woah. | 23:16 | |
diakopter | rm will rm you | 23:21 | |
lue | .oO(I'm not surprised rp isn't soaring. We 'ad to nail it to its perch, else 'e woulda climbed up to the bars and muscled 'is way out.) |
23:22 | |
diakopter | -_- | ||
[Coke] | colomon: r.p had the flu or something. it's back today. | 23:23 | |
TimToady | it was pining for a fjord | 23:26 | |
23:28
benabik joined
23:33
dmol joined
|
|||
colomon just tried to make the C++ ternary operator ? ! | 23:52 | ||
23:53
xinming left
|
|||
diakopter | colomon: giggle. | 23:54 | |
colomon | it's not the first time I've done it. | ||
diakopter | I've done ?? !! in ... hmm, what was it, JavaScript? | ||
Java? | |||
I don't remember | |||
colomon | I'm good at remember it's not doubled in C++. I'm bad at remember what the characters are. | 23:55 | |
colomon is getting better at using GDB thanks to the last two weeks. :( | |||
23:56
xinming joined
23:59
pecastro_ joined
|