Camelia, the Perl 6 bug

IRC log for #parrot, 2008-09-15

Parrot | source cross referenced

| Channels | #parrot index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:01 Whiteknight joined #parrot
00:09 AndyA joined #parrot
01:17 dalek r31139 | tene++ | trunk:
01:17 dalek : [rakudo]
01:17 dalek : Replace another instance of :inline with :pirop('newclosure').
01:17 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31139
01:32 kid51 joined #parrot
01:38 dalek r31140 | Whiteknight++ | pdd09gc:
01:38 dalek : [pdd09gc] update to trunk from r31138, except for some of the generated files in PIRC/new
01:38 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31140
01:59 grim_fandango joined #parrot
02:36 Andy joined #parrot
03:03 xiaoyafeng joined #parrot
03:24 workbench joined #parrot
03:26 TonyC joined #parrot
04:04 idemal joined #parrot
04:08 bacek joined #parrot
04:10 bacek joined #parrot
04:17 idemal joined #parrot
04:29 grim_fandango joined #parrot
05:12 Zaba joined #parrot
05:59 uniejo joined #parrot
06:12 ian joined #parrot
06:47 mberends joined #parrot
06:50 dalek r31141 | allison++ | pdd27mmd:
06:50 dalek : [pdd27mmd] Some refactoring comments for Andrew Whitworth.
06:50 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31141
06:57 bacek joined #parrot
07:08 nopaste "cotto_home" at 96.26.202.243 pasted "experimental strerror patch for Parrot (requires make realclean)" (493 lines) at http://nopaste.snit.ch/14057
07:08 cotto_home If anyone's feeling adventurous (especially non-linux guys), feel free to play with that.
07:09 cotto_home msg cotto_work http://nopaste.snit.ch/14057
07:09 purl Message for cotto_work stored.
07:09 TiMBuS joined #parrot
07:11 moritz in the pdd27mmd the trailing_space test loops
07:11 moritz no
07:11 moritz must be something other, and the parallel testing harness masks that
07:12 dalek r31142 | cotto++ | trunk:
07:12 dalek : [tools] make nopaste.pl default to #parrot
07:12 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31142
07:15 cosimo joined #parrot
07:26 cotto_home apparently calling a sub with 206 params segfaults parrot
07:27 cotto_home I'm sure chromatic will be happy.
07:29 moritz "happy"
07:31 iblechbot joined #parrot
07:36 cotto_home well, he will be for the 75 seconds it'll take him to find and solve the problem
07:42 Zaba_ joined #parrot
07:53 dalek r31143 | fperrad++ | trunk:
07:53 dalek : [Lua]
07:53 dalek : - add a Markdown library
07:53 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31143
08:01 johbar joined #parrot
08:02 johbar hi
08:02 purl hey, johbar.
08:03 cotto_home hi
08:03 purl hi, cotto_home.
08:34 dalek r31144 | kjs++ | trunk:
08:34 dalek : [pirc/new] refactorings and cleanups
08:34 dalek : + invocation struct is now serialized into instructions, so that it properly participates in register allocation
08:34 dalek : + this allowed for simplification of data structures
08:34 dalek : + added function documentation
08:34 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31144
08:35 barney joined #parrot
09:08 paco joined #parrot
09:20 kj joined #parrot
09:25 johbar hey, it is difficult to develop something like uscript (scripting language from the unreal engine) with parrot?
09:25 johbar i looked around, but the most oo-languages are unusabled with parrot :(
09:25 johbar ruby, python,...
09:26 moritz it's not really difficult, but it's a lot of work
09:26 moritz Tene is working on cardinal (ruby) these days, so if there's something that doesn't work, provide him with a test case
09:27 kj there's also a primitive implementation of python, but there's lots of work to be done there
09:29 paco joined #parrot
09:36 paco !/set NOVICE off
09:47 gaz joined #parrot
09:49 johbar okay, i'll have a deeper look
09:50 kj johbar: what type of information are you looking for?
09:50 johbar hm, parrotcode.org is slow today..
09:53 johbar at the moment i'am looking for an language/vm to build up "vm" which is a gameengine
09:54 kj do you want to build your own language, or do you want to use an existing implementation?
09:54 kj Currently, there's many languages that are not finished yet, although some come close. Lua on parrot is quite complete, I think.
09:54 johbar i prefer an existing implementation
09:54 johbar well, oo in lua is a mess imho
09:55 kj well, it's not pure OO, you're right in that.
09:56 kj you could build your own language, and tailor it exactly to your needs. but that would take some effort of course.
09:56 braceta joined #parrot
09:56 johbar i think i'll use a finished parser/lexer and build my own library
09:59 dakkar joined #parrot
09:59 johbar mostly because it would be usefull if the language-pmc's use my enginies-memory manager
09:59 kj Using the parrot compiler tools you can create a parser very fast
10:26 dalek r31145 | allison++ | pdd27mmd:
10:26 dalek : [pdd27mmd] Change the p_i variant of 'eq' to a simple equality test: no point
10:26 dalek : multiple dispatching on an INTVAL.
10:26 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31145
10:32 Whiteknight joined #parrot
10:36 rdice joined #parrot
10:52 dakkar hmmm. does rakudo implement binding to signatures? as a form of "unpacking assignment"?
10:53 moritz can you give a short example
10:53 moritz (I don't think it does, though)
10:53 dakkar something like %h=(a=>1, b=>2); my :($a,$b) := %h;
10:54 dakkar and I'd expect $a to be 1 and $b to be 2
10:54 moritz rakudo: my %h=(a=>1, b=>2); my :($a,$b) := %h;
10:54 dakkar I get a funny "rtype not set"
10:54 polyglotbot OUTPUT[rtype not set␤current instr.: 'parrot;PCT::HLLCompiler;panic' pc 156 (src/PCT/HLLCompiler.pir:103)␤called from Sub 'parrot;PAST::Compiler;uniquereg' pc 1371 (src/PAST/Compiler.pir:188)␤called from Sub 'parrot;PAST::Compiler;call' pc 3229 (src/PAST/Compiler.pir:856)␤called from Sub
10:54 polyglotbot ..'parrot;PAST::Compiler;bind' pc 5539 (src/PAST/Compiler.pi...
10:54 moritz dakkar: I guess that's a "no" ;)
10:55 dakkar I wasn't sure I was writing something sensible
10:55 jonathan dakkar: It's not implemented yet.
10:55 moritz rakudo: my $x; my $y := :$x; say "still there"
10:55 polyglotbot OUTPUT[still there␤]
10:56 moritz so at least it parses signatures
10:56 moritz but it doesn't bind to them
10:56 jonathan Yes. But binding to them ain't done. :-)
10:56 dakkar jonathan: ok, so what I wrote would work? (in the future)
10:57 jonathan dakkar: I think you may want my :(:$a,:$b) := %h;
10:57 jonathan But I'd have to check the synopses to be 100% sure.
10:57 dakkar right, otherwise they might be taken as positionals
10:57 moritz pugs complains about "Wrong number of binding parameters" with either example
10:57 dakkar the synopses say :(:x($x), :y($y))
10:59 dakkar which looks a bit redundant
10:59 moritz should be equivlanent to :(:$x, :$y)
10:59 moritz (IMNSIO = In My Not So Informed Opinion)
11:00 jonathan It'd expect so - it's a signature, and :$x is how you normally write a named parameter in a sig.
11:01 dakkar all right, so I had gotten that right
11:01 dakkar I was trying to decide whether to include a P6 program on the instruction for the Italian Perl Workshop
11:02 dakkar but I wanted it to run; since making it work means it's not that different from the P5 version, I'll keep the P5 one
11:03 dakkar explaining how we'll select the winning bids on items we have in multiple copies, in a silent auction, is not that easy in Italian or English
11:38 kid51 joined #parrot
12:00 UltraDM joined #parrot
12:05 szbalint kid51: Actually I think smartlinks aren't part of the Perl 6 spec, but the POD draft merely defines L<> in a way so that we can't put smartlinks into POD without them being invalid L<>, because L<> assumes L<protocol:something> while smartlinks are in the style of L<spec/further_info>.
12:06 szbalint This is why I said the Perl 6 draft spec contradicts how smartlinks are defined....
12:06 moritz in Perl 6 we use the smartlink in the test files to link to the specs
12:07 moritz not spec cross-linking
12:09 szbalint My point was that if you would want to cross-link, you'd need to change how smartlinks are defined
12:10 moritz or enhance S26 a bit - remember, it's not cast in stone
12:16 kid51 Feel free to post these to the list.  We need a thorough discussion.
12:17 kid51 szbalint:  For some reason, your post yesterday didn't get CC-ed properly from RT to the list.  That's why I quoted it in its entirety.
12:17 kid51 Knowing out list, it will probably show up on list later today.
12:17 * kid51 goes to $job
12:19 bacek joined #parrot
12:28 johbar i'm using windows and notepad++. has someone a syntaxhighlighting-file for notepad++ and parrot-files (.pg, .pm)?
12:40 bacek johbar: I don't think so.
12:40 bacek But there is syntax highlight for both editors.
12:40 bacek ;)
12:40 johbar *.pm is perl of course
12:40 bacek evening everyone
12:40 johbar hi
12:40 purl salut, johbar.
13:04 gryphon joined #parrot
13:11 dalek r31146 | rurban++ | trunk:
13:11 dalek : [pdd30] + added Layout 1, Variant b "Below - Existing practice"
13:11 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31146
13:12 dalek r31147 | coke++ | trunk:
13:12 dalek : [tcl] update internal switch handling output diagnostic if only 2 switches
13:12 dalek : are specified. Add a test.
13:12 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31147
13:15 dalek r31148 | coke++ | trunk:
13:15 dalek : [tcl] Support [string is <class> -strict <string>] (http://code.google.com/p/p​artcl/issues/detail?id=43)
13:15 dalek : - rename a variable
13:15 dalek : - eliminate some old comments.
13:15 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31148
13:17 bacek pmichaud: around?
13:19 dalek r31149 | allison++ | pdd27mmd:
13:19 dalek : [pdd27mmd] Rapid response when comparing a PMC to itself, don't bother with
13:19 dalek : multiple dispatch.
13:19 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31149
13:20 space joined #parrot
13:21 apeiron joined #parrot
13:21 masak joined #parrot
13:22 schirmer joined #parrot
13:26 dalek r31150 | rurban++ | trunk:
13:26 dalek : [pdd30] * fix Layout 1b
13:26 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31150
13:36 braceta joined #parrot
13:37 dalek r31151 | coke++ | trunk:
13:37 dalek : [tcl] bump target version to 8.5.4
13:37 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31151
13:41 PacoLinux joined #parrot
13:46 space Hello everyone. Does anyone know, how many opcodes the virtual machine of parrot knows. I searched all documentation I found, but found no numbers.
13:47 moritz you could look at src/ops/*.ops
13:48 moritz is that number particularly important?
13:49 space I'am writing an article, that compares different virtual machines.
13:50 space It's not important, but I'm only missing this information for parrot.
13:50 moritz I guess that there's a list of ops generated during the build process
13:51 moritz but I'm not very familiar with the internals
13:52 moritz space: where are you going to publish your article?
13:52 jonathan space: If you find ops.num and see how many lines are in that file, it'll be a good inidication.
13:52 moritz but don't count lines beginning with #
13:52 jonathan space: Though a direct comparsion with number of ops that say, JVM or .NET has would be a tad misleading.
13:53 moritz 1196 it seems
13:53 moritz grep '^\w' src/ops/ops.num|wc -l
13:53 moritz 1197
13:53 bacek moritz: Joda???
13:53 moritz Joda?
13:53 space In Germany. I have only started writing the article. It's about Lua, but I'am also comparing with other virtual machines. Normally I'am writing for the German "Entwickler-Magazin", but I hope I can place the article in iX.
13:54 moritz space: cool ;)
13:54 bacek moritz: star wars ;)
13:55 space I heard about 1200, but wanted to verify this, because I could not remember, where I found this number. It sounded very high compared to Lua, .NET and Java.
13:55 moritz the iX is one of the most respected IT magazines in Germany
13:55 bacek nopaste?
13:55 clunker3 http://pasta.test-smoke.org/ or http://paste.husk.org/ or http://nopaste.snit.ch:8001/ or http://rafb.net/paste or http://poundperl.pastebin.com/ or http://paste.scsys.co.uk/
13:55 purl nopaste is at http://nopaste.snit.ch/ (ask TonyC for new channels) or http://rafb.net/paste or http://poundperl.pastebin.com/ or http://paste.scsys.co.uk/ or App::Nopaste or tools/dev/nopaste.pl or at http://www.extpaste.com/
13:55 moritz space: well, it's even a bit more
13:57 nopaste "bacek" at 122.110.95.159 pasted "Patch for Mapping.values to not stringify values (for moritz to commit ;)" (15 lines) at http://nopaste.snit.ch/14059
13:57 bacek moritz: pmichaud fixed .kv, but forgot .values
13:57 kj space: the number of 1200 includes /all/ variants, for instance there's a variant for each type of 'print'
13:58 kj print 42 -> print_ic (ic stands for integer constant); while print_sc stands for print string constant; likewise there's print_s for print string (register/variable).
13:58 moritz bacek: looks sane
13:58 space The Lua VM stated to have about 67 opcodes. I don't think they counted all variants.
13:58 kj so that way there's like 4 or 5 different variants (or maybe more, didn't count) of 1 op.
13:58 moritz bacek: I'll test and then commit
13:58 Theory joined #parrot
13:59 bacek moritz: S04/for.t fudged test "rakudo thinks that the values are strings" can be unfudged after commit
13:59 kj space: Lua works a bit different; I think in Lua each Lua object knows what type it is
13:59 bacek moritz: of cause it looks sane ;)
13:59 kj for lua you could check out the No frills to Lua bytecode manual (or something like that; a google would work here)
13:59 moritz bacek: obviously ;)
14:00 moritz bacek: and it even uses only the subset of PIR that I speak ;)
14:00 space Oh, I have to join a meeting. Will be back in about an hour.
14:00 bacek moritz: ;)
14:00 bacek rakudo: my $a={a=>42}; say $a.{a}
14:00 polyglotbot OUTPUT[Statement not terminated properly at line 1, near ".{a}"␤␤current instr.: 'parrot;PGE::Util;die' pc 119 (runtime/parrot/library/PGE/Util.pir:82)␤called from Sub 'parrot;Perl6::Grammar;eat_terminator' pc 24832 (src/gen_grammar.pir:2843)␤called from Sub 'parrot;Perl6::Grammar;statementlist' pc
14:00 polyglotbot ..23881 (src/gen_grammar.pir:2476)␤called from Su...
14:00 bacek rakudo: my $a={a=>42}; say $a{a}
14:00 polyglotbot OUTPUT[Could not find non-existent sub a␤current instr.: '_block11' pc 52 (EVAL_13:18)␤called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 (src/PCT/HLLCompiler.pir:481)␤called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1078 (src/PCT/HLLCompiler.pir:610)␤called from Sub
14:00 polyglotbot ..'parrot;PCT::HLLCompiler;command_line' pc 1257 (src/PCT/HLLCompiler.pi...
14:01 moritz bacek: $a<a>
14:01 bacek rakudo: my $a={a=>42}; my $key = 'a'; say $a{$key}
14:01 polyglotbot OUTPUT[42␤]
14:01 bacek rakudo: my $a={a=>42}; my $key = 'a'; say $a.{$key}
14:01 polyglotbot OUTPUT[Statement not terminated properly at line 1, near ".{$key}"␤␤current instr.: 'parrot;PGE::Util;die' pc 119 (runtime/parrot/library/PGE/Util.pir:82)␤called from Sub 'parrot;Perl6::Grammar;eat_terminator' pc 24832 (src/gen_grammar.pir:2843)␤called from Sub 'parrot;Perl6::Grammar;statementlist'
14:01 polyglotbot ..pc 23881 (src/gen_grammar.pir:2476)␤called from...
14:01 moritz bacek: not yet parsed
14:02 bacek moritz: I see.
14:02 davidfetter joined #parrot
14:02 bacek There is test in S29-list/reduce that uses dot-syntax...
14:02 bacek Last one.
14:03 johbar parrot on windows is not really working, is it?
14:03 bacek If remove dot it triggers very interesting bug in rakudo...
14:03 moritz johbar: it is, jonathan regularly develops under windows
14:03 bacek afk
14:03 johbar well, i try running Configure.pl and get some wierd segfaults in testXXX.exe
14:04 dalek r31152 | moritz++ | trunk:
14:04 dalek : [rakudo] Mapping.values shouldn't coerce to string, bacek++
14:04 dalek : Patch courtesy by Vasily Chekalkin, <bacek at bacek.com>
14:04 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31152
14:05 * moritz hope that he wrote bacek's name correctly
14:06 Zaba joined #parrot
14:06 kj johbar: parrot on windows is working fine. it's parrot on cygwin which needs some improvements.
14:07 moritz it might be intersting which compiler was used (for others to help you; I can't anyway :/ )
14:07 johbar gcc with activeperl
14:08 moritz is there a native gcc port for windows? wow, I didn't know that
14:08 kj neither did I...
14:08 kj you can download MS visual studio express edition for free
14:08 moritz johbar: I think jonathan uses msvc
14:09 johbar well, maybe its broken or not finished
14:09 johbar i'll try that
14:09 kj msvc is a bit stricter than gcc; meaning it implements C a bit stricter than gcc
14:09 kj and therefore it catches a few more warnings
14:11 Andy joined #parrot
14:11 bacek moritz: in time - yes ;)
14:11 moritz bacek: after about a dozen failed attempts... :/
14:12 bacek moritz: correctly spell russian names is hard job :)
14:13 NotFound kj: gcc can be much more strict. We have a set of warnings enabled in Configure by default softer than possible.
14:14 jonathan I build regularly on MS VC++, yes.
14:15 NotFound By the way, is not stricter by just warning on things. Stricter is to not compile such things at all.
14:18 nopaste "bacek" at 122.110.95.159 pasted "Strange but in rakudo." (8 lines) at http://nopaste.snit.ch/14060
14:20 moritz bacek: if you want to open a ticket, make sure it doesn't depend on your List.uniq patch
14:21 moritz (which btw still blocks on clarification from p6l)
14:21 bacek moritz: it's not related to List.uniq...
14:21 bacek It just... weird...
14:21 moritz bacek: rakudo is full of @weird_lexical_issues
14:22 moritz bacek: for example RT #58392
14:24 dalek r31153 | coke++ | trunk:
14:24 dalek : [tcl] avoid parrot tailcall bug, allow tcl shell to work again.
14:24 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31153
14:24 bacek moritz: yes...
14:26 moritz which is a parrot issue at its heart, as the pure PIR example demonstrates
14:32 nopaste "bacek" at 122.110.95.159 pasted "Strange but in rakudo (copmrehensive and simplified version)." (14 lines) at http://nopaste.snit.ch/14061
14:33 moritz bacek: open a ticket, perhaps that way it's easier to debug than the recursion thing that masak provided so far
14:43 Whiteknight joined #parrot
14:43 bacek moritz: I think that this is same problem as in 56612
14:43 bacek #56612 (for your logbot ;)
14:45 moritz bacek: if you happen to have some free time, please add that as a test to t/spec/integration/ (directory doesn't yet exists), that's for regression tests that don't belong to one particular synopsis
14:45 * moritz has to run now
14:46 * bacek have to sleep now...
15:04 dalek r31154 | allison++ | pdd27mmd:
15:04 dalek : [pdd27mmd] Check for a null PMC after fetching global multi, when searching
15:04 dalek : global scope.
15:04 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31154
15:15 dalek r31155 | allison++ | pdd27mmd:
15:15 dalek : [pdd27mmd] Fix signature of overridden multi to match the signature of vtable function.
15:15 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31155
15:17 dalek r31156 | allison++ | pdd27mmd:
15:17 dalek : [pdd27mmd] Passing an integer argument to the 'add' opcode invokes the
15:17 dalek : 'add_int' vtable function and multi.
15:17 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31156
15:29 particl1 joined #parrot
16:10 peepsalot joined #parrot
16:13 hercynium joined #parrot
17:56 gryphon joined #parrot
18:22 iblechbot joined #parrot
18:26 cotto_work codingstd goof in /usr/src/parrot/parrot-svn-clean/​compilers/pirc/new/pirsymbol.c:87 (line length)
18:27 kj cotto_work: I'll fix it
18:29 dalek r31157 | kjs++ | trunk:
18:29 dalek : [pirc/new] fix line length mess-up.
18:29 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31157
18:31 cotto_work kj, do you mind adding a test to languages/json?  I was going to port some tests from the JSON CPAN module, but the tests in languages/json are just the ones from mk_language_shell.pl
18:32 kj cotto_work: I was not aware of tests in languages/json...
18:32 kj eh oh right
18:32 cotto_work you're mentioned in languages/json/MAINTAINER
18:32 kj wait, I misread :-)
18:32 kj yeah that's right.
18:32 cotto_work lawl
18:32 kj well, maintainer... I'm the author :-)
18:32 kj not much of a maintainer
18:33 kj reason for not adding tests is that I don't know how to do that
18:33 kj I mean
18:33 kj it's not a language, it's a data description language
18:33 cotto_work ok.  I've got it on my maybe todo list.
18:34 kj I'm not so familiar with the testing infrastructure...
18:36 cotto_work If I get the tuits, I'll poke around JSON and see how it does testing.  It has many tests and should provide a clue or two.
18:38 kj cotto_work++ #thanks for that
18:46 sjansen joined #parrot
18:49 Ivatar joined #parrot
18:55 dalek r31158 | pmichaud++ | trunk:
18:55 dalek : [rakudo]: spectest-progress.csv update: 162 files, 3361 passing tests
18:55 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31158
19:03 AndyA joined #parrot
19:03 cognominal pmichaud, jonathan, is it possible to do simple regex matching in rakudo?
19:04 pmichaud for various values of "simple", yes.  :-)
19:04 pmichaud November is actually doing full grammars, I think.
19:04 pmichaud btw, I really think that http://use.perl.org/~masak/journal/37303 ought to be mentioned on rakudo.org somewhere.  (Andy: ping)
19:04 pmichaud or even reproduced in its entirety :-)
19:05 cognominal well, I just want to avoid explit calls to PGE or doing explicit grammars.
19:05 pmichaud if you're wanting to do    "foo" ~~ /pattern/     then  yes, that works just fine.
19:05 cognominal ok
19:05 pmichaud I don't know if matching against $_ works yet though (i.e., w/o the smart match ~~'s)
19:05 Andy ?
19:08 cognominal I was trying to do  a  m/.../ on $_  and got a block  But ~~ seems to work fine
19:08 cognominal rakudo :  say m/.../.WHAT
19:09 cognominal perl6:  say m/.../.WHAT
19:09 polyglotbot OUTPUT[Block␤]
19:10 pmichaud right, I don't think m/.../  defaults to matching on $_ yet.
19:10 pmichaud I think rakudo still treats it the same as rx/.../
19:11 pmichaud probably need a rakudobug@perl.org ticket for that, if there's not one already
19:12 cognominal that's ok. I just want to write sone clean Perl6 that I can show on a tutorial without digging in PGE
19:13 pmichaud very little (if any) PGE knowledge is needed for using regexes in Rakudo
19:17 cognominal I am very please by the state of rakudo. Except for the lack of  non boxed types, pir inlining, here-in and object  attributes initializations, it feels very nice.
19:17 cognominal pmichaud++
19:17 cognominal jonathan++
19:18 pmichaud we're getting there, and with increasing velocity :-)
19:19 cognominal I don't checked if  argument defaults are supported yet
19:19 pmichaud they are.
19:19 pmichaud perl6:  sub foo($x = 'yes') { say $x; };   foo();   foo('yes 2');
19:19 polyglotbot OUTPUT[yes␤yes 2␤]
19:20 cognominal nice.
19:20 pmichaud perl6:  sub foo($x?) { say $x; };   foo();   foo('yes 2');
19:20 polyglotbot OUTPUT[Use of uninitialized value␤␤yes 2␤]
19:21 pmichaud hmmmm.
19:21 pmichaud perl6:  sub foo($x?) { say $x//$x; };   foo();   foo('yes 2');
19:21 polyglotbot OUTPUT[Use of uninitialized value␤␤yes 2␤]
19:21 pmichaud perl6:  sub foo($x?) { say $x.defined ?? $x !! $x; };   foo();   foo('yes 2');
19:21 polyglotbot OUTPUT[␤yes 2␤]
19:21 pmichaud obviously something not right there.  :-)
19:22 particle perl6: say;
19:22 polyglotbot OUTPUT[␤]
19:22 particle perl6: say *;
19:22 polyglotbot OUTPUT[get_string() not implemented in class 'Whatever'␤current instr.: 'print' pc 13909 (src/gen_builtins.pir:8713)␤called from Sub 'say' pc 13931 (src/gen_builtins.pir:8723)␤called from Sub '_block11' pc 30 (EVAL_11:13)␤called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806
19:22 polyglotbot ..(src/PCT/HLLCompiler.pir:481)␤called from Sub 'parrot;PCT::HLLCompiler;...
19:22 particle just curious about that last one
19:22 pmichaud I'm not sure why $x//$x is giving me the uninitalized value warning.
19:23 particle why not? $x is uninitialized
19:23 cognominal what say *  would mean?
19:23 pmichaud oh, and it's no longer a Failure object.  So yes, I guess that makes sense.
19:23 pmichaud my $x = Failure.new;   say $x;
19:23 pmichaud perl6: my $x = Failure.new;   say $x;
19:23 polyglotbot OUTPUT[Use of uninitialized value␤␤]
19:23 pmichaud perl6: my $x = Failure.new;   say $x//$x;
19:23 polyglotbot OUTPUT[Use of uninitialized value␤␤]
19:24 pmichaud okay, *that* one is definitely wrong.
19:24 pmichaud testing a Failure for undef makes it into an uninteresting undef (i.e., should suppress the warning)
19:24 pmichaud that's why the following doesn't give a warning:
19:24 pmichaud perl6: my $x = Failure.new;   say $x.defined ?? $x !! $x;
19:25 polyglotbot OUTPUT[␤]
19:32 cognominal perl6:  my ($host, $port) = "localhost:8080" ~~ /(.*?):(\d+)/; say "$host:$port"
19:32 polyglotbot OUTPUT[Method 'lvalue' not found for invocant of class 'PAST::Stmts'␤current instr.: 'parrot;PAST::Compiler;as_post' pc 2878 (src/PAST/Compiler.pir:735)␤called from Sub 'parrot;PAST::Compiler;post_children' pc 1743 (src/PAST/Compiler.pir:367)␤called from Sub 'parrot;PAST::Compiler;as_post' pc 2008
19:32 polyglotbot ..(src/PAST/Compiler.pir:495)␤called from Sub 'par...
19:32 cognominal perl6:  my @a = "localhost:8080" ~~ /(.*?):(\d+)/; say "@a[0]:@a[1]"
19:32 polyglotbot OUTPUT[@a[0]:@a[1]␤]
19:33 cognominal perl6:  my @a = "localhost:8080" ~~ /(.*?):(\d+)/; say @a[0] ~~ ':' ~~ @a[1]
19:33 polyglotbot OUTPUT[0␤]
19:34 particle perl6: .say for "localhost:8080" ~~ /(.*?):(\d+)/;
19:34 polyglotbot OUTPUT[8080␤]
19:37 cognominal I will split it instead
19:37 japhb joined #parrot
19:39 japhb Anyone happen to know the status of using PIR modules in Rakudo?
19:40 cognominal arf, : is a metachar
19:40 cognominal perl6:  my @a = "localhost:8080" ~~ /(.*?) \: (\d+)/; say "@a[0]:@a[1]"
19:40 polyglotbot OUTPUT[@a[0]:@a[1]␤]
19:40 Andy The Czechs, they have been watching Rakudo
19:40 Andy http://translate.google.com/translate?u=http​%3A%2F%2Fwww.abclinuxu.cz%2Fzpravicky%2Fperl​-6-grant-mozilly-the-perl-foundation-splnen&​amp;hl=en&amp;ie=UTF-8&amp;sl=cs&amp;tl=en
19:41 cognominal perl6:  my @a = "localhost:8080" ~~ /(.*?) \:  (\d+)/; say @a[0] ~~ ':' ~~ @a[1]
19:41 polyglotbot OUTPUT[0␤]
19:41 particle perl6: .say for "localhost:8080" ~~ /(.*?)\:(\d+)/;
19:41 polyglotbot OUTPUT[localhost:8080␤]
19:41 particle perl6: .say for "localhost:8080" ~~ /(.*?) \: (\d+)/;
19:41 polyglotbot OUTPUT[localhost:8080␤]
19:41 particle hrmm
19:41 particle that seems wrong
19:41 Andy Again, I do not see much in the intestines parrotu, but it is not something similar as LLVM?
19:42 cognominal speaking of VM, I am curious to know if V8 can be pluggable in parrot
19:43 japhb cognominal: I would think more useful for Parrot would be the Tracemonkey design ...
19:43 japhb Well, and a nice GC
19:43 cognominal TraceMonkey?
19:43 purl TraceMonkey is nice
19:44 cognominal forget TraceMonkey
19:44 purl cognominal: I forgot tracemonkey
19:44 japhb cognominal: next version of Mozilla's JS engine ... does JIT of execution traces.
19:45 japhb Able to optimize away all op vtable calls, and specialize code automagically for runtime type situation
19:45 japhb (if certain variables in a loop always keep certain type info, then specialize code automatically for handling only that type, with fast guard code just in case).
19:47 cognominal my @a = ("localhost:8080" ~~ /(.*?) \:  (\d+)/ ) ; say @a[0] ~~ ':' ~~ @a[1]
19:47 cognominal perl6: my @a = ("localhost:8080" ~~ /(.*?) \:  (\d+)/ ) ; say @a[0] ~~ ':' ~~ @a[1]
19:47 polyglotbot OUTPUT[0␤]
19:47 japhb Last benchmark I looked at, Tracemonkey was only slower than V8 for recursive calls, and only because Tracemonkey at that time did not support trace JIT for recursion -- it was (or is) planned to be working for Tracemonkey's first release.
19:48 japhb My, polyglotbot is fast these days
19:48 cognominal perl6: my @a = ("localhost:8080" ~~ /(.*?) \:  (\d+)/ ) ; say @a[0] ~ ':' ~ @a[1]
19:48 polyglotbot OUTPUT[Use of uninitialized value␤localhost:8080:␤]
19:49 cognominal perl6: my @a = "localhost:8080" ~~ /(.*?) \:  (\d+)/  ; say @a[0] ~~ ':' ~~ @a[1]
19:49 polyglotbot OUTPUT[0␤]
19:49 cognominal arf
19:49 japhb jonathan, pmichaud: Any update on whether I'll be able to use my PIR OpenGL binding in Rakudo soon?
19:49 cognominal perl6: my @a = "localhost:8080" ~~ /(.*?) \:  (\d+)/  ; say @a[0] ~ ':' ~ @a[1]
19:49 polyglotbot OUTPUT[Use of uninitialized value␤localhost:8080:␤]
19:51 particle japhb: notfound recently accessed mysql via rakudo
19:52 particle maybe it's in languages/perl6/examples?
19:52 japhb *excellent*  (I've been away from Parrot for a while pretty much because I've been waiting for this, so if it's actually working, that would be great news!)
19:53 * japhb goes to pull updates ....
19:54 PerlJam particle: I don't think his code is in the repo.
19:55 PerlJam or, ack -ail mysql  only tells me about files in languages/pipp and examples/nci
19:55 particle try ack -ag \.p6
19:55 cognominal perl6:  say join ':',  ("localhost:8080" ~~ /(.*) \: (\d+) / )
19:55 polyglotbot OUTPUT[localhost:8080␤]
19:55 PerlJam ah yes.
19:56 cognominal seems that affecting the Match value does not work
19:56 NotFound japhb: If you have some problem let me know.
19:57 cognominal perl6:  my  $m := "localhost:8080" ~~ /(.*) \: (\d+) / ;  say $m[0] ~ ':' ~ $m[1]
19:57 polyglotbot OUTPUT[localhost:8080␤]
19:57 NotFound particle: examples/nci
19:58 cognominal yea
19:58 cognominal There is so many way to do it that one is bound to work :)
19:58 PerlJam NotFound: do you know if anyone is working on DBDI?
19:59 Theory joined #parrot
19:59 NotFound PerlJam: some days ago I asked google, and looks like all results are from years ago.
20:00 cognominal I remember Tim Bounce taking of Perl6 DBI to the mongueurs in Paris. That was probably 5 years ago :)
20:00 cognominal s/taking/talking/
20:01 PerlJam dbdi is supposed to be a parrot-level common DB interface that *all* HLLs could use to talk to a DBMS.  (as I understand it)
20:01 particle you mean dbi 2.0?
20:01 particle that's what i remember timbunce calling it
20:01 NotFound dbi on steroids.
20:02 PerlJam particle: dunno. I only have vague memories
20:02 particle i spoke with him about it at oscon
20:02 particle he's hoping for funding to hook parrot into the jvm and use jdbc
20:03 NotFound Some people talked recently about using jdbc via bytecode conversion.
20:03 NotFound When rurban started to look at the jvm and cli things
20:04 PerlJam seems like a missed opportunity wrt GSoC.
20:05 PerlJam or maybe I just haven't been paying close enough attention
20:05 pmichaud GSoC depends on students, mentors, and funding
20:05 pmichaud it's possible that there was a proposal for it but that Google declined to fund it
20:05 NotFound The problem I see is that few jdbc drivers are pure java.
20:06 PerlJam right, I'm saying I don't even remember a proposal
20:06 japhb Tim Bunce also wouldn't qualify as a student, and he's by far the most qualified to do the work.
20:06 japhb (And he wants to)
20:06 pmichaud there's always the TPF grants, or even a grant from the Ian Hague funds
20:07 NotFound And we hope to be able to make Parrot Foundation grants some day.
20:08 PerlJam seems like that would be a bit of stretch for the Ian Hague funds.
20:09 japhb Then there's the question of whether his financial situation can afford a small grant, or whether there is so much work that even a larger grant would equate to too little per hour.  (I have no idea what his finances are, it's just a guess.)
20:09 pmichaud I think I could make the case that it's *the* prime case for doing language-interoperable stuff on Perl 6 (and Parrot)
20:09 particle a dbi implementation for perl 6 is pretty important, but maybe it is a stretch depending on the terms of the grant
20:09 japhb pmichaud: I would agree with that.
20:10 pmichaud if we just say "implement DBI", it might be marginal.  But if we say "use DBI to flesh out and drive development of these other needed features", then it's pretty clear
20:10 Zaba_ joined #parrot
20:10 japhb definitely
20:10 pmichaud and I think that a DBI interface of some sort will be critical to a production implementation of Perl 6
20:10 PerlJam perl 6 is stymied by lack of "real world" things like DBI?
20:10 particle no doubt
20:11 NotFound Having at least one driver can be useful for dbdi, yes ;)
20:11 pmichaud "perl 6 implementation" is to "real world things"  as   "perl 6 specification" is to "perl 6 implementation"
20:11 particle i don't understand where this second d is coming from
20:11 PerlJam particle: Data Base Driver Interface ?
20:11 japhb What PerlJam said
20:12 pmichaud i.e., the perl 6 specification had trouble progressing until there were implementations driving it.  I think the same can be said for a perl 6 implementation -- at some point we need real-world stuff to drive the implementations
20:12 pmichaud November has been incredibly useful in this regard.
20:12 particle is dbdi a term used outside the perl world?
20:12 japhb Tim was/is unhappy with the interface between DBI and the DBDs, and believes that the driver interface for JDBC is much more solid.
20:13 PerlJam particle: doubtful
20:13 japhb pmichaud: that's why I've been pushing for so long for Rakudo to support using Parrot NCI wrappers.  It's needed for a whole lot of real world code.
20:14 NotFound pmichaud: that is the reason I started the Mysql and Xlib example modules, to have a few real world things to play with.
20:14 pmichaud japhb: I don't disagree.  we're getting closer to it every day.
20:14 particle ok, well i only know of dbi, and dbd. not dbdi. learn something new every day....
20:14 japhb dbdi == dbi <-> dbd api
20:15 NotFound japhb: yes, it was a great thing to be able to test those modules from perl6, even with my mininal knowledge of perl6.
20:16 NotFound And some help from some guys some here.
20:17 NotFound Will be great to do the same from others languages in the repo, BTW
20:17 PerlJam NotFound: what magic is necesary to run mysqltest.p6?
20:17 PerlJam I mean, if I did "make perl6", could I then just "perl6 mysqltest.p6" ?
20:17 NotFound PerlJam: compile Mysql.pir to pbc
20:17 PerlJam (with appropriate path info)
20:17 cognominal NotFound, the problem I have using some PIR module in Perl 6 is that they often use non boxed arguments.
20:17 japhb NotFound: OK, it looks like that Mysql.pir is an old style manual PIR NCI wrapper, that's good (because it's the way all my OpenGL / GLUT stuff is written, so I can apply lessons learned there).
20:19 pmichaud ...non boxed arguments?
20:19 japhb OK, so given that this works, is this documented anywhere?  What limitations do I need to be aware of?
20:19 NotFound cognominal: we will need some doc with guidelines for pir modules that want to be usable from any hll.
20:20 pmichaud NotFound: I should have something soon along those lines, at least w.r.t. Perl 6 modules and the Parrot Compiler Toolkit
20:20 cognominal maybe I was wrong.  and Perl 6 autoconvert Str into str when needed for exemple.
20:21 pmichaud Parrot automatically boxes and unboxes arguments
20:21 szbalint 21:04 <@PerlJam> seems like a missed opportunity wrt GSoC.
20:21 szbalint I tried to rearchitect dbi on Perl 6 for gsoc 2006, sadly it became a dismal failure with only small results
20:21 NotFound japhb: what I do was to change parrot for any limitation I found ;)
20:22 cognominal sometimes I work around the wrong problem :(
20:22 NotFound For example, the NULL string arguments thing.
20:22 japhb NotFound: heh.
20:23 Casan joined #parrot
20:23 szbalint it was a complex issue, no Perl 6 implementation was as usable as now and plans were much less formulated back then
20:24 japhb NotFound: Ah, speaking of which ... is that 64-bit clean?  The nasty hack I needed in call_toolkit_init.pir:93 was not.
20:25 NotFound japhb: I suppose UnManagedStruct and some bits of nci may need some changes for 64, but I don't have a 64 machine to work on.
20:25 szbalint also my dbi knowledge was not up to par for the job - I have to admit that in hindsight. dbi on Perl 6 / parrot is still on my todo list though...
20:26 Casan I was reading up on insideout objects, and then wondered if the benefits of the insideout object concept are integrated by default in the perl6 object model?
20:26 particle the benefits including true data abstraction? yes
20:26 PerlJam Casan: Depends on what you call "benefits"
20:27 japhb Casan: data hiding, yes.  Performance, no.
20:27 NotFound Well, I have a Commodore 64 emulator, but can't build parrot on it ;)
20:27 PerlJam Casan: some of inside out objects benefits aren't benefits in the world of perl 6.
20:27 PerlJam (i.e., they're only benefits in reaction to the common perl 5 object models)
20:28 Casan PerlJam: well, still not sure I have understood all parts of it. The part I am most interested in I think, is the assumed better utilization of memory / lesser memory overhead.
20:29 particle that sounds like an optimization question
20:29 szbalint one of the problems was that I tried to design / write mockup Perl 6 code first while "imagining" the underlying parrot internals based on a jdbc supplement
20:29 Casan So when thinking insideout objects, maybe its just recommended to forget all about it, and use the perl6 oo model as intended by the synopsis?
20:29 moritz yes
20:29 japhb Casan: memory optimization: probably not ... though potentially, if you use unboxed types.  But yes, you should just use the Perl6 OO model in the synopsis, and hold off on premature optimization.
20:30 particle casan: it's probably easier to start with the perl 6 oo model, and consider optimizations only when needed
20:30 Casan ok thanks, then I won't spend time understanding the ins and outs of the insideout object concept and just focus on perl6 from the getgo.
20:30 NotFound To play with new concepts maybe is easier to write a toy language that to play with rakudo.
20:31 NotFound s/that/than
20:32 PerlJam Casan: or use Moose if you're in Perl 5 lang.
20:32 PerlJam s/lang/land/
20:32 PerlJam though the former works too :)
20:34 japhb Is there a search path for Rakudo's 'use'?
20:34 szbalint so yeah, that's the untold short story :) I wouldn't say the endeavour was totally useless, but it didn't produce much code just experience and better plans - which didn't get going so far given lack of time
20:34 moritz japhb: it's @*INC + .
20:35 Whiteknight joined #parrot
20:36 japhb moritz: is there a plan for what @*INC should default to?
20:37 moritz japhb: the plan is to remove it at some point
20:37 * japhb blinks
20:37 japhb huh?
20:37 moritz japhb: problem is, Perl 6 allows module names that might not be represented as file names
20:37 moritz japhb: especially wrt unicode, and it forces case sensitive behaviour even on case insensitive file systems
20:38 japhb interesting ...
20:38 purl vedy vedy iinterestink
20:38 dalek r31159 | allison++ | pdd27mmd:
20:38 dalek : [pdd27mmd] Modify the generator for the delegate PMC so the multiple dispatched
20:38 dalek : vtable functions call the default implementation instead of throwing an
20:38 dalek : exception. Refactor so the Object PMC and the delegate PMC can share the same
20:38 dalek : check for which vtable functions get special treatment for multiple dispatch.
20:38 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31159
20:38 moritz also it supports loading of specific version
20:39 moritz but as a current approximation @*INC isn't bad
20:40 PerlJam moritz: you don't mean remove it so much as replace it with something more complicated and powerful, right?  :-)
20:40 moritz PerlJam: in the end I think we need something like a module database
20:41 particle written in nqp, of course ;)
20:41 pmichaud I agree it's likely to be some form of database, because searching for modules will have to be fast
20:41 PerlJam particle++
20:41 PerlJam sqlite!  :)
20:41 particle nqsql
20:42 * japhb beginning to wonder if 'sqlite' is the new 'magical pixie dust'
20:42 pmichaud magical pixie dust often solves a lot of problems :-)
20:42 particle sqlite is a good solution, as long as only one process is accessing the db at any time
20:42 japhb For lack of a leading '.', this crashes nicely: ./perl6 -e'say for @*INC'
20:43 pmichaud japhb:  does that complain about a missing 'for'?
20:43 dalek r31160 | pmichaud++ | trunk:
20:43 dalek : [rakudo]:  Fix <?before <terminator>> to be <?terminator>.
20:43 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31160
20:44 japhb pmichaud: yep, just before blowing up glibc.
20:44 pmichaud heh
20:44 pmichaud I'm actually working on that particular bug at the moment (see r31160 above)
20:44 japhb :-)
20:46 pmichaud rt #57352 :-)
20:49 japhb Are unrooted and/or relative paths expected to work in @*INC, or only absolute paths?
20:50 * szbalint returns to the shadows of dbi2-dev
20:58 dalek r31161 | Whiteknight++ | trunk:
20:58 dalek : [Book] move chapter 8 "Reference" to chapter 9. Create a new chapter 8 for PCT-related topics
20:58 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31161
20:58 dalek r31162 | allison++ | pdd27mmd:
20:58 dalek : [pdd27mmd] Call the vtable 'cmp' function in COMPARE instead of directly
20:58 dalek : calling multiple dispatch, to allow for PMCs that override the vtable function
20:58 pmichaud @*INC in rakudo is just "whatever you get" at the moment
20:58 dalek : for single dispatch.
20:58 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31162
20:58 pmichaud it's not really spec'd.
21:01 johbar joined #parrot
21:01 jan joined #parrot
21:12 dalek r31163 | pmichaud++ | trunk:
21:12 dalek : [rakudo]: Fix statement modifier after listops (RT #57352, #57334, #57076)
21:12 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31163
21:13 dalek r31164 | chromatic++ | pdd27mmd:
21:13 dalek : [dynpmc] Fixed MULTI declarations in Foo dynpmc.
21:13 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31164
21:13 clunker9__ joined #parrot
21:14 mberends left #parrot
21:15 jonathan pmichaud++ # 1 commit, 3 RTs.
21:16 pmichaud possibly more -- those were just the ones that were linked :-)
21:17 PerlJam you got rid of some of those terminators ... that didn't break any tests?
21:17 PerlJam I guess the "pipes" aren't really implemented?
21:17 pmichaud it didn't break spectest_regression no
21:17 pmichaud besides, STD.pm originally had them as terminators, but they have since moved
21:18 pmichaud i.e., I'm aligning with whatever STD.pm is now doing
21:18 PerlJam ah.
21:29 cotto_w0rk joined #parrot
21:32 pmichaud in PIR, what's a good mechanism for stringifying a float such that we don't lose precision?
21:39 cognominal joined #parrot
21:46 NotFound pmichaud: strigfying a float always lose precision.
21:46 pmichaud NotFound: I mean without going down to 6 digits of precision
21:46 pmichaud yes, I know that I'll lose some, but 6 digits is a bit ridiculous
21:47 NotFound Not very good, certainly.
21:49 nopaste "pmichaud" at 76.183.97.54 pasted "stringifying floats loses" (14 lines) at http://nopaste.snit.ch/14062
21:50 nopaste "pmichaud" at 76.183.97.54 pasted "stringifying floats loses #2" (12 lines) at http://nopaste.snit.ch/14063
21:51 nopaste "pmichaud" at 76.183.97.54 pasted "stringifying floats loses #3" (19 lines) at http://nopaste.snit.ch/14064
21:56 NotFound pmichaud: "%.16g"
21:56 * jonathan stares at pm's patch and tries to remember what on earth the --> operator is
21:56 moritz coercion?
21:56 purl i guess coercion is automagically letting one object act like another object when you need it to. See Param::Coerce for details
21:56 pmichaud isn't it a part of signatures?
21:56 pmichaud i.e., specifying the return type?
21:57 jonathan OH! Yes, of course!
21:57 jonathan Duh.
21:57 jonathan :-)
21:57 sjn jonathan: is it the other end of the less-than-not-autodecremeter? ("<!--" :)
21:57 * jonathan should get round to implementing the return type stuff at some point
21:57 pmichaud NotFound: won't %.16g cause me to always get floating point numbers with sixteen digits after the decimal?
21:58 jonathan sjn: where'd the 1 come from? ;-)
21:58 jonathan erm, !
21:58 moritz that's the 'not'
21:58 cognominal perl6: die unless 1
21:58 polyglotbot OUTPUT[Could not find non-existent sub unless␤current instr.: '_block11' pc 18 (EVAL_12:13)␤called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 (src/PCT/HLLCompiler.pir:481)␤called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1078 (src/PCT/HLLCompiler.pir:610)␤called from Sub
21:58 polyglotbot ..'parrot;PCT::HLLCompiler;command_line' pc 1257 (src/PCT/HLLCompil...
21:59 moritz cognominal: works with a newer version of rakudo
21:59 jonathan rakudo: my $x = 42; say 40 <!--$x;
21:59 polyglotbot OUTPUT[0␤]
21:59 jonathan :-D
21:59 moritz omfg
22:00 jonathan rakudo: my $x = -1; say 40 <!--$x; # of course should be true
22:00 polyglotbot OUTPUT[0␤]
22:00 jonathan oh.
22:00 jonathan oh!
22:00 jonathan hmm.
22:00 moritz rakudo: say !-2
22:00 polyglotbot OUTPUT[0␤]
22:00 moritz ! is boolean
22:01 jonathan Yes.
22:01 jonathan Ah. I know what I menat to do. But anyways...
22:01 jonathan Duh. Fail!
22:01 NotFound pmichaud: trailing decimel zeroes are removed.
22:02 nopaste "pmichaud" at 76.183.97.54 pasted "stringifying floats loses #4 (%.16g doesn't work)" (19 lines) at http://nopaste.snit.ch/14065
22:02 dalek r31165 | moritz++ | trunk:
22:02 dalek : [rakudo] add newly fudged pick.t to spectest_regression
22:02 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31165
22:03 NotFound pmichaud: but of course, it must have enough internal precission to know they are zeros.
22:05 pmichaud NotFound:  I'm wanting to take a Float and convert it into a valid literal for PIR
22:06 NotFound pmichaud: not an easy task to do the right thing in general.
22:07 pmichaud Perl does it :-)
22:08 moritz should be easy. Open RT
22:08 pmichaud I'm sending a message to the list
22:08 dalek r31166 | Whiteknight++ | trunk:
22:08 dalek : [Book] Do some initial introductory work on PCT/PGE/NQP alphabet soup
22:08 dalek diff: http://www.parrotvm.org/svn​/parrot/revision?rev=31166
22:08 cotto_work pmichaud++ #I was wondering about that too
22:09 pmichaud afk, dinner
22:11 Andy joined #parrot
22:15 Limbic_Region joined #parrot
22:26 cotto_work Infinoid, ping
22:27 Infinoid hi cotto_work
22:27 Zaba joined #parrot
22:27 cotto_work nice lag!
22:27 Infinoid what's up? :)
22:27 cotto_work can you try re-running the code from http://rt.perl.org/rt3/Tic​ket/Display.html?id=53458 ?
22:27 cotto_work It works for me on my cygwin setup (tm)
22:28 Infinoid sure, I can install mingw again and give it a try... I've reinstalled that box recently
22:29 cotto_work hmm.  Do you think it's good enough to close the ticket if it works for me?
22:29 moritz joined #parrot
22:30 cotto_work meh.  Give my history with testing, it'd probably be best for you to test it too. ;)
22:30 cotto_work if you've got the time to test it, give me a ping when it's done.
22:32 Infinoid will do.  will probably be tomorrow sometime
22:32 Infinoid (if that's ok)
22:32 cotto_work sounds good
22:32 cotto_work thanks
22:32 Infinoid and if you don't hear from me, flame me :P
22:33 * cotto_work checks flame thrower fuel
22:33 cotto_work looks good
22:33 purl O_O
22:48 cotto_w0rk joined #parrot
22:52 johbar heya :)
22:52 johbar i finaly found some time to play around with parrot
22:52 johbar i tryed cardinal
22:52 johbar ..\..\parrot.exe cardinal.pir test.rb
22:53 johbar error:imcc:No such file or directory <NL>         in file 'cardinal.pir' line 27
22:53 johbar he's right. line 27: ".include 'src/gen_builtins.pir'"
22:54 johbar there is no gen_builtins.pir
22:54 johbar gen sounds like generated? did i forgott something?
22:54 particle make?
22:54 purl i heard make was awful really
22:54 particle yes, you forgot to make cardinal
22:54 cotto_work botsnack
22:54 purl :)
22:55 particle you want to run the pbc file, not pir
22:57 johbar ah ok. did that but didnt recognized the error message
22:57 johbar nmake trys to fall back to make
22:57 particle what does that mean?
22:57 purl That boy needs therapy.
22:58 johbar C:\parrot\languages>nmake cardinal
22:58 johbar --> 'mingw32-make' is not recognized as an internal or external command
22:58 johbar make he get
22:58 particle cd cardinal
22:58 particle make
22:58 particle or nmake
23:20 nopaste "johbar" at 85.176.71.242 pasted "what is going wrong?" (17 lines) at http://nopaste.snit.ch/14066
23:22 jonathan johbar: We had something a bit like that happening in Rakudo.
23:22 jonathan Try just adding something else (like print statement, however that looks in Ruby) at the end of the program.
23:23 jonathan It's because it tries I think to check if a_song is true or something, back in HLLCompiler.
23:23 johbar ok. another thing: when i try to run test.rb from the svn nothing happens
23:23 jonathan OK, not sure about that - I don't work on and havne't tried Cardinal, I'm afraid.
23:23 jonathan But it doesn't seem like the Right Thing...
23:24 johbar yea
23:31 johbar hm... i like the idea of parrot... but its like 3 years ago... nothing really works :(
23:35 johbar maybe i get some freetime to contribute something useful

| Channels | #parrot index | Today | | Search | Google Search | Plain-Text | summary

Parrot | source cross referenced