pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, smop: etc.) || We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/
Set by TimToady on 25 January 2008.
00:10 japhb joined 00:23 jebix joined, cyberpass left 00:30 cmarcelo joined 00:42 wknight8111 joined 00:55 nipotaway is now known as nipotan 01:03 Schwern joined 01:08 jebix left, cnhackTNT joined 01:29 silug left 02:01 japhb left 02:07 cmarcelo left 02:32 japhb joined 02:37 silug joined 02:40 namelessuser joined 02:59 wknight8111 is now known as wknight-away 03:05 Schwern left 03:06 wknight-away is now known as wknight8111 03:07 Schwern joined, Schwern left 03:14 dmq joined 03:27 jjore joined 03:56 wknight8111 is now known as wknight-away 03:57 Khisanth left, khisanth_ joined 03:58 khisanth_ is now known as Khisanth 04:24 REPLeffect joined 04:37 wknight-away left
pugs_svn r19770 | rhr++ | [Unicode.pm] AnyChar, Byte, Codepoint 05:05
r19770 | rhr++ | make codepoint level "universal" per S02, respect $?NF
05:13 monomorph joined 05:19 alester joined 05:41 iblechbot joined 05:43 monomorph left 05:44 monomorph joined, Aankhen`` joined 05:48 alester left 05:55 chacha_chaudhry joined 05:58 penk joined 06:13 iblechbot left 06:29 devogon joined
pugs_svn r19771 | rhr++ | [Unicode.pm] StrPos, StrLen, substr 06:39
06:55 IRSeekBot joined 07:06 jisom joined 07:09 barney joined 07:13 orafu joined 07:36 viklund joined 07:52 REPLeffect left 07:58 cxreg joined 08:15 kane_ joined 08:16 Psyche^ joined, Psyche^ is now known as Patterner 08:20 cosimo joined 08:22 Auzon joined 09:04 orafu left 09:21 riffraff joined
riffraff hi 09:21
moritz_ hi riffraff ;) 09:29
cosimo hi 09:30
09:51 viklund left, wknight-away joined 09:53 viklund joined 10:05 zamolxes joined 10:08 hanekomu joined 10:17 cnhackTNT left 10:23 jisom_ joined 10:30 barney left 10:41 jisom left 10:54 ebassi joined 11:03 wknight-away left 11:04 njbartlett joined 11:11 chacha_chaudhry left 11:20 alester joined 11:23 alester left
pugs_svn r19772 | ruoso++ | [smop] Had I said YAY? No... I should say YYYYYYYYYAAAAAAAAAAAAAYYYYYYYYYYYY!!!! test/02_stack.t already runs code written in sm0p code. 11:27
ruoso test/02_stack.t leaks 82 objects :) 11:30
good to know the lowlevel mem trace works :) 11:31
moritz_ but at least you know it ;)
11:31 jisom_ left
pugs_svn r19773 | ruoso++ | [smop] marking a new version, once that the sm0p preprocessor seems to be just fine... 11:38
11:43 njbartlett left 11:47 njbartlett joined
spinclad smop++!! 11:50
hurrah and huzzah!
11:52 zamolxes left
moritz_
.oO( can I integrate sm0p into the evalbot? )
11:52
11:54 nipotan is now known as nipotaway
spinclad .oO ( sure tho it may be a fair few releases before it can take any notice ) 11:55
ruoso moritz_, at least until there is some more types implented it would be a little pointless.. 11:58
there's no much thing you can do with int and bool ;) 12:00
spinclad well, with lambda for continuations and bools for true = -> ($x, $y) { $x } and false = -> ($x, $y) { $y }, you can go quite a way 12:04
no i/o though, that could make it hard
ruoso spinclad, I still don't have a Code type 12:19
:) 12:20
12:29 alester joined 12:32 cognominal_ joined 12:34 iblechbot joined 12:35 jferrero joined 12:38 jferrero left 12:55 Psyche^ joined 13:04 buubot joined, ebassi left 13:12 alester left, Patterner left, Psyche^ is now known as Patterner 13:14 njbartlett left 13:15 njbartlett joined 13:25 cmarcelo joined 13:26 alester joined 13:35 hanekomu left, njbartlett left
pugs_svn r19774 | moritz++ | [evalbot] fixed rakudo execution in 'perl6:' target 13:36
13:36 exp_evalbot joined
moritz_ perl6: say("hi"); 13:36
exp_evalbot kp6: OUTPUT[hiā¤]
..pugs: OUTPUT[hiā¤]
..rakudo: No output (you need to produce output to STDOUT)
moritz_ I don't get it 13:37
bbl&
13:39 ebassi joined 13:44 smtms joined 14:07 alester left 14:08 alester joined 14:14 alester left 14:53 exp_evalbot left, exp_evalbot joined
moritz_ perl6: say "hi"; 14:53
exp_evalbot kp6: OUTPUT[hiā¤]
..pugs: OUTPUT[hiā¤]
..rakudo: OUTPUT[hiā¤]
[particle] seems to be working, what was the trick? 14:54
moritz_ to restart the evalbot *after* svn up'ping 14:56
[particle] heh
15:05 njbartlett joined 15:09 Schwern joined 15:10 Auzon left, orafu joined 15:11 riffraff left 15:15 cosimo left 15:17 njbartlett left, sri_work joined 15:18 njbartlett joined, Aankhen`` left 15:19 Aankhen`` joined 15:24 rdice joined 15:37 alester joined 15:38 cyberpass joined 15:53 BinGOs_ joined, BinGOs_ is now known as BinGOs 15:57 iblechbot left 16:06 justatheory joined 16:09 BinGOs left 16:18 chris2 joined 16:20 Psyche^ joined 16:24 ebassi left 16:27 jjore left 16:30 BinGOs joined 16:36 Patterner left, Psyche^ is now known as Patterner 16:43 marmic joined 16:47 jjore joined 16:48 manfred joined 16:51 blindfish joined 17:16 eviltwin_b joined 17:18 eviltwin_b is now known as allbery_b
ruoso I was thinking better about the autoboxing... 17:36
considering $continuation.has_next()
this method should return true or false,
mofino can it punch you if you use it incorrectly?
ruoso that's the point... how should I deal with it? 17:37
mofino I don't know of any autoboxing devices
ruoso in theory it can return something that is not a proper Bool value 17:38
mofino (I have no idea what you are talking about)
:)
ruoso in the lowlevel implementation, when I call $continuation.has_next() it returns a SMOP__Object*
mofino ok
ruoso should I take additional checking steps? 17:39
17:40 allbery_b left
[particle] does SMOP__Object have a .true() method? 17:40
ruoso SMOP__Object* doesn't have any method... it have only MESSAGE
17:40 allbery_b joined
mofino backs away slowly 17:40
ruoso the methods are implemented inside the message call 17:41
the way the responder interface decides to
[particle] where is SMOP__Object defined?
ruoso include/smop_base.h 17:42
17:42 ebassi joined
ruoso the thing is how do I make the autoboxing? 17:43
mofino autoboxing?
ruoso my bool $a = $obj.Bool;
mofino ... 17:44
ruoso bool is a native type... native types are the only ones I know the C lowlevel struct for
mofino forces $a to be a bool?
ruoso all others I only know how to call its responder interface
mofino or rather, predefines $a to be a bool?
ok 17:45
ruoso mofino, I'm talking in much lower level
mofino right
ruoso what makes it really complicated is the stackless thing... 17:46
mofino you mean this isn't complicated in itself?
could've fooled me
ruoso because I need to be able to autobox from the high-level object to the native type without recursing 17:47
mofino I see... I think. 17:48
ruoso because the code that runs the interpreter needs to autobox the return of the $continuation.has_next() call to the native bool
so it can decide if it will run the next operation 17:49
17:50 jjore left
ruoso one thing I can do is to force the signature of this low-level methods to return the native bool and fail otherwise 17:51
hmmm
[particle] that's i think what i was getting at with the .true() comment
ruoso hmmm
[particle]++
17:52 jjore joined 17:54 orafu left, OuLouFu joined 17:56 REPLeffect joined 18:06 alester left 18:17 DarkWolf84 joined 18:24 ebassi left 18:38 macroron joined, Jamtech joined 18:40 macroron left, macroron joined 18:41 macroron left, macroron joined
cj anyone have a link to an article on fail-soft exceptions? 18:43
18:44 IllvilJa joined 18:45 barney joined
ruoso :) :) :) :) I've just saw a DESTROYALL being called from within the garbage collector :) :) :) 18:55
using CPS
:) :) :)
TimToady :)++ 18:57
pugs_svn r19775 | lwall++ | [STD] listops are technically terms, not prefixes 19:06
19:17 Jamtech left 19:18 jisom joined 19:19 cosimo joined 19:21 pbuetow joined 19:31 [particle1 joined
mofino heh 19:36
19:41 chris2 left 19:47 OuLouFu left, [particle1 is now known as [particle] 19:49 rdice_ joined, rdice left, rdice_ left 19:51 alester joined 19:54 iblechbot joined
pugs_svn r19776 | ruoso++ | [smop] Getting better and better... the garbage collection code is already being called using CPS, but it is still segfaulting at some point. 19:58
ruoso actually... it's not the CPS code that is segfaulting... 20:04
it's the code after that...
CPS DESTOYALL is doing just fine...
home & 20:05
20:09 manfred left 20:11 shlomif joined 20:13 shlomif is now known as rindolf 20:14 jisom left 20:24 Lorn_ joined 20:26 barney left 20:31 Schwern left
cj wp.colliertech.org/cj/?p=175 20:39
lambdabot Title: The PƦdantic Programmer ōæ½xBB Blog Archive ōæ½xBB Perl 6 on the CLI via DLR; A summary
cj I'm building .deb packages of the DLR, so you debian folks in the audience should have an easier time of contributing, if you're interested. 20:41
anyway, I've got /work/ work I need to get to... after lunch.
20:42 blindfish left, rindolf left 20:47 pbuetow left 20:55 pbuetow joined
wolverian cj++ # nice 20:59
21:09 thoughtpolice joined 21:12 Aankhen`` left 21:21 alester left 21:22 ebassi joined 21:27 zev joined 21:31 meppl joined 21:33 macroron left 21:37 [particle1 joined 21:38 gbacon joined
pugs_svn r19777 | rhr++ | [Unicode.pm] allow writing to substrs at a different unicode level than the substr call 21:44
21:47 [particle] left 22:03 Schwern joined 22:04 thepler left 22:05 Schwern left
rakudo_svn r25388 | jonathan++ | [perl6] Fix breakages to attributes. 22:06
22:08 marmic left, marmic joined 22:12 Limbic_Region joined 22:22 jeffreykegler joined 22:23 iblechbot left
rakudo_svn r25389 | particle++ | [rakudo] added perl6doc 22:24
r25389 | particle++ | this is a working partial implementation of perl6doc,
r25389 | particle++ | intended as a beginning for anyone who wants to hack the pod grammar
r25389 | particle++ |
r25389 | particle++ | svn up && cd languages/perl6 && make Makefile && cd src/utils && make perl6doc(.exe)?
moritz_ "make Makefile"? 22:31
either "make" or "make -f Makefile"
22:38 sri_work left 22:56 thoughtpolice left 23:00 meppl left
pugs_svn r19778 | rhr++ | [Unicode.pm] make samebase use a consistent unicode level 23:01
23:02 meppl joined
rhr_ TimToady: can we have :nf<xx> and :enc<xx> regex modifiers to go along with :codes etc.? e.g. token :codes :nf<d> {...} 23:05
moritz_ why not :codes<nfd> and :bytes<utf-8>? 23:06
TimToady :bytes would also need to know normalization
rhr_ bytes needs nf also
moritz_ right
TimToady though I suppose one could make a case for :bytes<nfd utf-8> 23:07
or vice versa
but I don't see a strong argument either way for bundling/unbundling 23:08
rhr_ me either 23:09
TimToady bundling associates it more clearly in people's minds
and I don't know that :enc makes any sense without :bytes 23:10
moritz_ same with :nf<d> without :codes
TimToady (or :bytes)
on the other hand it could be viewed as setting a lexical default 23:11
rhr_ it seems unlikely you'd want a particular nf but not care about codes/bytes
TimToady "whenever I say :codes below I mean :nf<d>"
I dunno, whichever way we do it will be wrong :) 23:12
moritz_ allow all ways? ;-)
in good perl tradition
TimToady well, in perl tradition, anyway...
moritz_ pugs: my @arr = <ab cd>; my $scalar = @arr; say $scalar.perl 23:13
exp_evalbot OUTPUT[["ab", "cd"]ā¤]
rakudo_svn r25390 | jonathan++ | [rakudo] Attributes should always be named $!foo when actually stored, so implement this. If it's declared $x, make $x an alias to $!x. This should be somewhat more in line with S12.
moritz_ pugs: my @arr = <ab cd>; my $scalar = @arr; say (+$scalar).perl
exp_evalbot OUTPUT[2ā¤]
23:20 gbacon left 23:22 sheepmullet joined, gbacon joined
rhr_ S02:702 has the example substr($string, 42.as(Bytes), 1.as(ArabicChars)) how can 42.as(Bytes) know to create a StrPos (as opposed to StrLen) object associated with $string? 23:22
23:22 gbacon left
rhr_ should there be a substr variant that takes two StrLens? 23:23
23:23 gbacon joined
rakudo_svn r25391 | jonathan++ | [rakudo] Start to handle nested classes. We don't get the nested namespaces right yet, but at least attributes and methods get associated with the correct class now. 23:25
23:26 jferrero joined
pugs_svn r19779 | cosimo++ | [t] Test suite refactoring. 23:28
r19779 | cosimo++ | Moved various builtins/io under t/spec/S16-fh.
r19779 | cosimo++ | Fixed pod syntax.
r19779 | cosimo++ | Added S16 smartlinks.
23:31 mncharity joined
mncharity 23:31
lambdabot mncharity: You have 1 new message. '/msg lambdabot @messages' to read it.
pugs_svn r19780 | cosimo++ | [t] Moved and smartlinked `connect' builtin tests (t/spec/S16-fh)
23:32 cosimo_ joined 23:33 ManarD- joined
mncharity TimToady: thanks 23:34
23:34 ManarD- left
cosimo_ hi! 23:37
mncharity hmm. that different grammar rules might or might not wish the grammar to have been .new()ed... hmm. maybe it's time to make kp6-ruby more true to the p6 prototype-like oo semantics. or maybe that's mission creep for kp6 bootstrap (kp6 does non-instance rules... I don't think it does instance rules(?)). 23:38
but that's a puzzle for later. bbl &
cosimo_: hello :)
(I'm just now disappearing) & 23:39
cosimo_ anyone in channel, I'm refactoring S16 tests. I created also "S16-unfiled". Is that ok for now? 23:41
pugs_svn r19781 | cosimo++ | [t] Moved slurp tests under t/spec/S16-unfiled 23:42
r19781 | cosimo++ | Added smartlink to S16/Unfiled/IO.slurp
r19782 | cosimo++ | [t] Refactored IO.getpeername tests under t/spec/S16-unfiled. 23:45
r19782 | cosimo++ | Added smartlink to S16
23:48 Psyche^ joined
cosimo_ ok... got it. :-) 23:48
23:55 cmarcelo left
pugs_svn r19783 | rhr++ | [Unicode.pm] more StrPos/StrLen arithmetic 23:56