»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend! | Rakudo Star Released!
Set by diakopter on 6 September 2010.
sorear A language like C++, because of its weak metamodel, only allows a single class per method, and thus a method can appear at most once in a dispatch list and (__function__, typeid(*this)) uniquely identifies the "next" method 00:02
Perl 6 doesn't have that, so it seems like I'd have to allocate storage for the nextsame iterator on every method call
mfollett Not that it really matters, but out of curiosity why is '.?' and such an operator instead of '.' being an operator and '?' being a metaoperator that operates on '.'? 00:40
mfollett Has try.rakudo.org always had the chapters? 01:55
dukeleto mfollett: probably for performance reasons, concerning .? 02:11
sorear mfollett: because . isn't a binary operator
mfollett: a binary operator takes two arguments, both of which can logically stand on their own 02:12
in $foo.methodname, $foo can stand on its own, but methodname can't
mfollett sorear: I didn't know that a metaoperator could only operate on binary operators
sorear . is syntactically a postfix operator, because only the left side can stand on its own
mfollett sorear: hyperoperator is a meta operator and can operate on the method invocation operator 02:13
sorear so metaoperators always attach like $foo>>.method
never like $foo.>>method
mfollett sorear: oh, I see
sorear as for why $foo*.method isn't used, I can only ask - what would $foo*++ mean? 02:14
or any non-method operator
mfollett sorear: I guess it would depend on how many ways $foo could do postfix<++>($x) 02:16
sorear: I thought $foo++ was the same as $foo.++ 02:18
sorear: or, wait, I may have just confused mysel
f
dalek ecza/master: f65d43c | sorear++ | lib/Kernel.cs:
Keep the full dispatch list during method calls
05:02
ecza/master: c6bd89e | sorear++ | / (2 files):
Implement nextsame
sorear How does automatic generation of proto methods work? 05:36
mathw phenny: tell masak your presentation looks awesome, but what software did you use to actually present it? OS X's Preview? 06:54
phenny mathw: I'll pass that on when masak is around.
dalek ecza/master: 087263f | sorear++ | lib/Kernel.cs:
Some low-level multi support
07:20
ecza/master: 6393299 | sorear++ | / (3 files):
Implement slurpy hashes
sorear seen tylercurtis 08:44
aloha tylercurtis was last seen in #perl6 2 days 19 hours ago joining the channel.
dalek ecza/master: a668022 | sorear++ | / (3 files):
Start on the documentation rewrite
09:00
flussence whoa, who made my test run 30 minutes shorter today? 11:39
moritz_ flussence: I've removed one test in which a dies_ok only succeeded by running into the recursion limit
flussence oh, the arrays thing? 11:42
moritz_ typed arrays, yes
moritz_ Use of uninitialized value in numeric context in 'MapIter::reify' at line 1 11:55
from the spectest output
S03-metaops/hyper.rakudo
seems to point to a rakudobug, if you ask me
(even if the warning is genuine, it shouldn't come from line 1)
mathw whoa, haskell interpreter written in Javascript 11:56
masak \o/ 12:16
phenny masak: 06:54Z <mathw> tell masak your presentation looks awesome, but what software did you use to actually present it? OS X's Preview?
masak mathw: yes. with 'open *.pdf', Preview easily allows me to jump between individual slides without needing to merge them into one PDF. 12:18
and thanks. :) all the nice feed back on the presentation system makes me want to use it again, soon. 12:19
masak backlogs
masak rakudo: my @*a; subset A of Int where { @*a.push("A") }; subset B of A where { @*a.push("B") }; 42 ~~ B; say @*a # discovered and RT'd yesterday 12:42
p6eval rakudo 5bdbd4: OUTPUT«BB␤»
masak jnthn described it as "a place where some cheating catches up with us". 12:43
moritz_ well, I think the YOU_ARE_HERE thing in rakudo needs some work 12:44
masak: btw I'm nearly sure that the '&say not found in where-block' is a dupe
masak: there's alread a bug report for not being able to use scalar lexicals in where-blocks 12:45
masak moritz_: thanks. I'll have a look andthen merge. :) 12:46
masak indeed. this seems to be the new ticket's old twin: rt.perl.org/rt3/Ticket/Display.html?id=77356 12:50
masak merges
moritz_++ 12:51
moritz_ masak++ # finding the ticket
masak RT isn't so bad once one bends with it rather than against it. :) 12:52
moritz_ masak: re RT #78322, is the order actually specced? 12:53
masak moritz_: don't think so; but I convinced jnthn that only one order makes sense.
narrower subset types "presuppose" the constraints of wider ones.
very much like binary boolean ops && || allows one to "presuppose" their lhs (or their negation, as it were) 12:54
s/as it were/depending/ :) 12:55
moritz_ fwiw, Eiffel has two 'and' operators, one short circuiting, one where the order of execution is undefined
masak a bit like ?&, then :) 12:56
(no pun intended)
masak yesterday I told jnthn about my plans to put Yapsi on an STD.pm6 foundation, and how I still haven't solved the problem of getting the STD.pm6 output into Perl 6 rapidly and reliably. he suggested that I use Rakudo's Perl 6 grammar instead. now I can't remember what I thought the advantage of using STD.pm6 would be. :) 13:20
moritz_ better error messages 13:21
parsing more things than rakudo (like heredocs)
closer to the spec :-)
moritz_ rakudo: say Perl6::Grammar.parse('1').WHAT 13:22
p6eval rakudo 5bdbd4: OUTPUT«Regex::Match()␤»
mathw masak: What I really liked about your presentation system is that it has this wonderful aesthetic idea to it. I didn't have time to look at it properly though - what's the source file? Inkscape SVG marked up with metadata? 13:23
moritz_ I don't know how to get Match objects out of it, and dealing with Regex::Match is a pain
masak mathw: source file is in the github repo, named canvas.svg. almost all the "metadata" happens to be objects in the SVG. I only added a few .class attributes manually. 13:24
mathw nice
best to keep these things as simple as possible
masak moritz_: oh. there you go, then. thanks for reminding me. :)
mathw: I could make the whole presentation from within Inkscape. that felt liberating. 13:25
moritz_ masak: hasn't ingy written a yaml loader? I think STD exports YAML....
mathw and it looked gorgeous
so fluid
masak moritz_: he's started, but I haven't seen a finished product. 13:25
moritz_: do you think using Blizkost might work? 13:26
mathw although it's possible do that kind of thing in Powerpoint or Impress (although those transitions probably aren't possible), people tend to get stuck in the default slide layouts. Treating it all as one giant SVG breaks you away from that.
masak mathw: exactly.
masak mathw: I expect to learn to exploit the spatial aspect more as I make more presentations. 13:27
mathw I must see if I can learn some lessons from it for my next presentation - but since that's a work thing, it's going to be in Powerpoint again. Still, I can do something a bit more fun perhaps :)
masak best of luck.
mathw in the mean time... I have software to break
and a compiler to befuddle
masak rakudo: sub foo($x, $y) { 2 * $x + $y }; say foo(5, 32) 13:57
p6eval rakudo 5bdbd4: OUTPUT«42␤»
masak rakudo: sub infix:<o>(&f, &g) { -> $x { f g $x } }; my &foo = -> $x { -> $y { $x + $y } } o -> $z { 2 * $z }; say foo(5)(32)
p6eval rakudo 5bdbd4: OUTPUT«42␤»
masak inspired by blog.plover.com/prog/haskell/pointfree.html :)
masak time to go catch a plane. 14:08
moritz_ rakudo: die 'foo' 14:25
p6eval rakudo 5bdbd4: OUTPUT«foo␤ in main program body at line 22:/tmp/Y7b64i5XMs␤»
moritz_ rakudo: my $x; my $x
p6eval rakudo 5bdbd4: OUTPUT«===SORRY!===␤Redeclaration of symbol $x at line 22, near ""␤»
moritz_ missing filename
tadzik hello! 15:39
moritz_ hi tadzik 15:43
bbkr rakudo: say ("a".."f",0..9).pick(56, :replace) 16:19
p6eval rakudo 5bdbd4: OUTPUT«136bcda70258ef49␤»
bbkr hmm, bug? 56 chars are expected with "replace", right? 16:20
tadzik rakudo: say ("a".."f",0..9).roll(56) 16:22
p6eval rakudo 5bdbd4: OUTPUT«7eeee0ed00f7cc86c8f4a3c83b75ac1678da4163d4de690c82e2a781␤»
bbkr tadzik++
tadzik but it looks weird indeed. I mean, pick :replace
bbkr maybe pick with replace disappeared from spec when "roll" was implemented? checking... 16:23
tadzik looks like pick takes no :replace, but why doesn't it complain then?
rakudo: say ("a".."f",0..9).pick(56, :pbrrr)
p6eval rakudo 5bdbd4: OUTPUT«7def0a92bc518346␤»
tadzik neh
baest older versions of rakudo returns 56 chars with above pick
bbkr yep, spec change 16:24
"pick takes a list or array of values and returns a random selection of elements from the list (without replacement; see roll for dice roll aka replacement semantics)"
tadzik rakudo: sub foo() {}; foo(:asasasa); say 'alive'
p6eval rakudo 5bdbd4: OUTPUT«Unexpected named parameter 'asasasa' passed␤ in 'foo' at line 1:/tmp/OpiyRuTf2C␤ in main program body at line 22:/tmp/OpiyRuTf2C␤»
tadzik weird
bbkr clear now - spec has changed. thanks for help :) 16:25
tadzik bbkr++ # bugfinding 16:26
moritz_ not a bug 16:28
subs != methods
rakudo: say pick(<a b c>, 2, :foobar)
p6eval rakudo 5bdbd4: OUTPUT«Unexpected named parameter 'foobar' passed␤ in 'pick' at line 1764:CORE.setting␤ in main program body at line 22:/tmp/sBV37nhTMr␤»
tadzik why do methods always allow named params? 16:29
bbkr who maintains perl6advent.wordpress.com ? in perl6advent.wordpress.com/2009/12/1...your-game/ pick(Int, :replace) can be replaced by roll() to keep up with spec. Simple change that prevents confusion. 16:30
tadzik I can change that, just lemee get some pizza
bbkr awesome :) 16:31
moritz_ bbkr: I can also give you edit access, if you have (or get) a wordpress.com account and tell me your email address 16:32
bbkr moritz_: i don't have one, currently i'm too busy at work to spare some time for Rakudo :( 16:37
moritz_ that's OK too
bbkr how can I convert Str to printable hex values? I'm looking for something that will work as 'print unpack("H*", "abc")' P5 code or mysql HEX() function. 16:55
moritz_ rakudo: say 'abc'.comb».char».fmt('%x') 16:56
p6eval rakudo 5bdbd4: OUTPUT«Method 'char' not found for invocant of class 'Str'␤ in main program body at line 22:/tmp/BjKMUSaljI␤»
moritz_ rakudo: say 'abc'.comb».chr».fmt('%x')
p6eval rakudo 5bdbd4: OUTPUT«000␤» 16:57
moritz_ that was less than impressive :-)
rakudo: say 123.fmt('%x')
p6eval rakudo 5bdbd4: OUTPUT«7b␤»
moritz_ rakudo: say 123.fmt('%02x')
p6eval rakudo 5bdbd4: OUTPUT«7b␤»
moritz_ rakudo: say 'abc'.comb».ord».fmt('%02x') 16:58
p6eval rakudo 5bdbd4: OUTPUT«616263␤»
bbkr \o/
moritz++
diakopter rakudo: say 'abc'.ord».fmt('%02x') 16:59
p6eval rakudo 5bdbd4: OUTPUT«616263␤»
moritz_ diakopter++ 17:00
bbkr P6 is awesome for "helper oneliners" - code that does useful stuff but doesn't go to production machines itself. We use PERL in company for 10 years and I have to say that P6 can be considered as "reliable" for many side-tasks now. That's huge progress :) 17:09
szbalint Yes, I'm using P6 for production side tasks aswell (git hooks, reporting and monitoring scripts) 17:13
moritz_ \o/
PerlJam bbkr, szbalint: that sounds like a great topic for a short article or a whole series of blog posts. 17:26
isBEKaml hi,6folks! 17:26
dukeleto isBEKaml: good * 17:31
moritz_ o/
tadzik hi isBEKaml! 17:32
szbalint PerlJam: indeed.
moritz_ 'make spectest_smolder' fails at the submission step
curl: (26) failed creating formpost data
because rakudo_test_run.tar.gz is missing
bbkr PerlJam: we recently started work on publishing Dynamic Content grammar in Perl6 (that's our language that allows to personalize email correspondence - dev.getresponse.com/dc-doc/ ). Once it is finished I'll ask management if I can write real-life-perl6-usage-testimonial to publish on blog. 17:35
isBEKaml I was chomping on last night's chomp benchmarks, and I got a question. How does captures compare against substr especially when trying to get the last character out of any arbitrary length string?
PerlJam bbkr++ awesome!
isBEKaml (it sounds like a good benchmark exercise - but I'm looking around for ideas) 17:36
dukeleto: good *. :) is String.reverse making into parrot again anytime soon? 17:38
dalek kudo: e2740b8 | moritz++ | build/Makefile.in:
add smoke archive to list "clean" make target
17:39
dukeleto isBEKaml: i don't know about "again" because I don't know if it was ever there. But I will try to make String.reverse happen 17:46
moritz_ it was there. 17:47
isBEKaml dukeleto: iirc, it was there earlier and vanished . :/
dukeleto moritz_: really? I am baffled as to why it is no longer there. Was it removed as a deprecation? Or did it vanish?
moritz_: because if it vanished, that is a serious breach of our deprecation policy 17:48
moritz_: perhaps a svn merge ate it. But I don't see any docs for it either, which makes me think someone did it on purpose
moritz_ dukeleto: somebody pasted a link to an example or benchmark in PIR that commented that .reverse being gone, it had to iterate over the characters 17:50
dukeleto Author: darbelo <darbelo@d31e2699-5ff4-0310-a27c-f18f2fbe73fe>
Date: Tue May 4 15:17:00 2010
Obliterate the 'reverse' method on String PMC's.
that was Parrot r46290
isBEKaml dukeleto: there was an example PIR that clued me in on the reverse removed from the api - but I was confused when I saw that it's specced/defined in PDD28 17:52
dukeleto isBEKaml: i think it was removed because it modifies it's argument 17:54
moritz_ why not have it return a reversed copy? 17:56
dukeleto moritz_: that is what I would imagine it would be changed to. I don't see a deprecation notice, so I am thinking that perhaps it was removed incorrectly 17:57
isBEKaml I think what dukeleto was trying to say was - it was removed because it didn't conform to spec.
dukeleto isBEKaml: kind of.
isBEKaml: things that modify their arguments are hard to optimize, so parrot has been trying to minimize ops/vtables that modify their arguments 17:58
they are so-called "immutable strings" now. 17:59
I think we will add String.reverse back in, that does not modify it's argument. But I need to check with parrot-dev first
isBEKaml dukeleto: I see. Last night, I was benchmarking chomp against substr. One of the ways thrown around was using flip, which just performed horribly (pure agony) 18:00
if reverse made it to parrot, I'd happily take that around for flip. 18:01
moritz_ isBEKaml: flip is now implemented as split.reverse.join
and split('') iterates and uses substr
isBEKaml moritz_: I saw that too. Perhaps, that was why it performs poorly.
moritz_ s/Perhaps/Surely/ 18:02
isBEKaml 3 costly calls wrapped into a single method.
dukeleto Parrot has a StringIterator PMC that can be traversed in a "forward" or "reverse" directions. 18:03
But I still think String PMCs should have a reverse method.
isBEKaml dukeleto++ 18:06
dalek ast: fe777cc | moritz++ | S02-builtin_data_types/instants-and-durations.t:
[instants-and-durations.t] fix a test description
18:26
sorear good * #perl6 18:34
moritz_ good now, sorear 18:36
isBEKaml moritz_: perlcabal.org/syn/S02.html - why are the spectest examples pointing to azawawi's folder on the server(files which may not be there) ? Why not point to roast git repo? 18:45
moritz_ isBEKaml: hysterical reasons, they had markup... 18:47
isBEKaml: but probably not updated anymore... so patches for changing that are very welcome
dalek ecs: dffc82f | KodiB++ | S (2 files):
Specified a little more support for the local time zone, so you don't have to say 'DateTime.now.timezone'.
18:48
dukeleto moritz_, isBEKaml: i sent an email to parrot-dev about String.reverse, if y'all have further comments, please add them to that thread 18:54
dalek ast: 866d5ab | KodiB++ | S32-temporal/ (2 files):
Added tests for the local time zone.
18:57
isBEKaml moritz_: if the script that generates html versions of the spec is on feather, can I have a look at it? 19:03
moritz_: it should be on pugs repo, but I don't find it. 19:04
dukeleto: thanks!
moritz_ isBEKaml: it's in the mu repo, in util/smartlinks/ 19:18
erm, smartlinks.pl
and util/Text-SmartLinks/*
isBEKaml right, tracked down an older svn co'd pugs repo on my machine and went through it. Don't find anything odd at first glance, will look at the newer files. 19:22
moritz_ isBEKaml: it's in until/Text-SmartLinks/lib/Text/SmartLinks.pm 19:30
isBEKaml moritz_: I was just thinking if it'd be a simple fix as removing the prefixed ~/azawawi when you pinged in. :)
moritz_ isBEKaml: I tried something... let's see if it works out 19:35
isBEKaml moritz_: I'm tesitng it out now... :) 19:36
moritz_ uhm, seems I removed too much :( 19:37
dalek : 7249b4b | moritz++ | util/Text-SmartLinks/lib/Text/SmartLinks.pm:
[smartlinks] remove broken HTML links
19:39
: 2da197f | moritz++ | util/Text-SmartLinks/lib/Text/SmartLinks.pm:
Revert "[smartlinks] remove broken HTML links"

This reverts commit 7249b4b522142ceb4273a7b66a07a906b80381ea.
It removed too much... let's try again later
isBEKaml moritz_: there's a way to test it. It's outlined in Text-SmartLinks/script/smartlinks.pl 19:41
moritz_: damn, I'd now have to resolve external deps that I don't have currently... 19:42
moritz_ isBEKaml: there's a way to test it... push the commits, and see what perlcabal.org/syn/ makes of it :-)
isBEKaml moritz_: ah, that reminds me. I don't have commit bit since git migration. :( 19:43
moritz_ isBEKaml: what's your github ID?
isBEKaml svatsan
moritz_ isBEKaml: fixed. Welcome back to mu, roast, specs and all the rest. 19:44
dalek : 40d2add | moritz++ | util/Text-SmartLinks/lib/Text/SmartLinks.pm:
[smartlinks] another attempt to remove outdated links; also try to fix the link text
isBEKaml moritz_: you're committing them in and firing the gen script? 19:45
moritz_ isBEKaml: yes
isBEKaml I was thinking it could be something so simple as removing the prefixed ~/azawawi/html/ from the two link locations pointed in there. 19:46
line 663
after all, looking at the error page I see, that's what it seems to be. 19:47
moritz_ isBEKaml: it could be as simple now, but since azawawi doesn't seem to maintain the whole stuff, I'd rather delete the links
isBEKaml let's just remove the prefix and see what happens. 19:48
moritz_ is ~/azawawi/html/ up-to-date?
dalek : 5e58136 | moritz++ | util/Text-SmartLinks/lib/Text/SmartLinks.pm:
[smartlinks] another attempt to fix path
19:49
isBEKaml it doesn't seem to hold anything of what we are looking at, it seems. click on summary or full test link
git still barfs at github.com clones.. should that happen? 19:51
I've switched to git://github.com clones.. 19:52
moritz_ no, but git:// clones usually work for me
dukeleto isBEKaml: are you appending .git to the http:// clone urls ? 19:53
isBEKaml yes.
dukeleto isBEKaml: what error do you get? 19:53
isBEKaml dukeleto: zsh: segmentation fault git clone github.com/perl6/specs.git 19:54
. It goes some way getting parent nodes and the like before hitting this.
dalek : 2966fd7 | moritz++ | util/Text-SmartLinks/lib/Text/SmartLinks.pm:
[smartlinks] put back a line which I accidentally deleted
moritz_ now much happier with the result 19:55
isBEKaml no images, mucho bettero.
moritz_ one more idea 19:56
currently the spectests are inlined
which is a lot of data
dukeleto isBEKaml: wow, fun. What version of git? You are actually getting a coredump in Git? You must be lucky.
moritz_ and makes the .html files slow to load
and means that if you use the search feature of your browser, it'll take a minute before telling you that a substring was not found
what do you think about just linking to line numbers on github instead? 19:57
isBEKaml dukeleto: no, I don't see any coredump file. I'm equally baffled at this behaviour. btw, git version is v1.6.4 19:58
dukeleto isBEKaml: ulimit -c is probably set to 0 19:59
isBEKaml moritz_: yeah, I was wondering about that too. I've seen dialog boxes asking me whether to stop script from loading or continue on my FF window.
dukeleto isBEKaml: which prevents coredumps from being created
isBEKaml dukeleto: right.
dukeleto isBEKaml: http clone urls are very inefficient, so it is best not to use them unless you are firewalled. But that is still a strange error. 20:00
isBEKaml dukeleto: I have done this quite a lot of times before (my git fu isn't that strong or as sufficiently competent as my svn fu). and never faced this. Let me thinko about raising an issue with git folks. 20:03
moritz_ \o/ success
much faster now to search the specs 20:05
dalek : 9a57c5b | moritz++ | util/Text-SmartLinks/lib/Text/SmartLinks.pm:
[smartlinks] try to reduce page load times by non-inlining test scripts; link to them instead
isBEKaml dukeleto: I just noticed another weird thing. http clone works fine on another account here that uses bash shell. Could it be related to the $SHELL ? 20:06
my guess is, there's some env variable that's misbehaving - leading to coredump. 20:07
dukeleto isBEKaml: yeah, if you are using git completion or a git-ified PS1, that could be possible 20:08
isBEKaml moritz_: awesome. Today I learned that github highlight works by including the line numbers in the url...
dukeleto isBEKaml: yes, i love that feature
isBEKaml dukeleto: none of that.
dalek : b3c0507 | moritz++ | util/Text-SmartLinks/lib/Text/SmartLinks.pm:
[smartlinks] code cleanup
20:10
dukeleto isBEKaml: interesting. Perhaps zsh is having a bad day. You can always backtrace the coredump if you are really interested in it .... 20:11
isBEKaml moritz_: I'm happy running yak shaving sessions with rakudo folks! :D
dukeleto makes a large wig from freshly shorn yak hair 20:12
isBEKaml watches in _no_ wonder as it falls off with a huge THUD 20:13
dukeleto: some other day. It's 2 am here and I'm in no mood to see another segfault. :) 20:15
sorear has started porting STD.pm6 in earnest
jnthn made it home from trip to .nl and OSDC.fr :-) 20:27
phenny jnthn: 10 Oct 16:57Z <sorear> ask jnthn Where in S14 does it talk about body run time of parametric roles?
jnthn sorear: Hmm. Well, wherever I decide to put it when I patch it, I guess. :-) 20:28
jnthn thought it was already in there
Will look tomorrow or so. Mostly interested in being unconcious at the moment. ;-)
diakopter jnthn: g'nite 20:35
sorear: porting STD.pm6 ...? 20:36
to niecza's subset of p6?
sorear diakopter: I prefer to think of it as porting STD.pm6 to Perl 6.0 20:45
viv has a very idiosyncratic feature set
diakopter ahh... good point. 20:46
sorear also I'm collecting a list of small things Niecza needs 20:54
like &substr
(I already have the method form, so the sub is really quite easy)
PhatEddy phenny: tell moritz_ his missing rakudo_test_run.tar.gz file could be caused by not having TAP::Harness::Archive installed. Without the module installed the tests are still run but you get the LTA error message. 20:55
phenny PhatEddy: I'll pass that on when moritz_ is around.
sorear TimToady: ping 21:11
masak jnthn: seems you beat me to the front door :) 21:11
sorear o/ masak
masak sorear: \o
dalek kudo: db221e3 | KodiB++ | src/c (2 files):
Implemented $*TZ.
21:18
kudo: 3494676 | KodiB++ | src/core/Temporal.pm:
[Temporal] Ensured .new(Str) works correctly in derived classes.
kudo: a1cd99b | KodiB++ | src/ops/perl6.ops:
[ops] Added encodelocaltime.
kudo: 5d23e30 | KodiB++ | t/spectest.data:
Run S32-temporal/local.t.
kudo: 8711e05 | KodiB++ | docs/ChangeLog:
Updated ChangeLog.
kudo: e6aa633 | KodiB++ | src/core/Temporal.pm:
[Temporal] Don't clone the formatter, so .perl can always recognize the default.
masak Kodi++
masak wow. lots of sensible discussion about the actual matter at hand here: www.reddit.com/r/programming/commen..._by_regex/ 21:22
reddit does surprise sometimes.
colomon err... they do recognize that 1.5 seconds was in Rakudo, right? 21:25
masak no idea :) 21:26
colomon they don't seem to. 21:27
I don't think I can comment there...
masak glances longingly at the bed 21:28
masak bed: oh, ok. you've convinced me. :) 21:28
#perl6: good night. see you tomorrow.
colomon (some of the people do realize it is, later on.) 21:30
thundergnat rakudo: say 8.sqrt; 23:12
p6eval rakudo 5d23e3: OUTPUT«2.82842712474619␤»
thundergnat rakudo: say (-8).sqrt
p6eval rakudo 5d23e3: OUTPUT«NaN␤»
thundergnat phooey
rakudo: say (-8).Complex.sqrt
p6eval rakudo 5d23e3: OUTPUT«0 + 2.82842712474619i␤»
thundergnat Just an observation, but it seems to me that taking a square root of a negative number should automatically coerce to a Complex. 23:13
Added a new perl6 implementation to rosettacode: rosettacode.org/wiki/Roots_of_a_qua...tion#Perl6 23:24
masonkramer thundergnat: I don't necessarily agree with that - it could hide a flaw in the program 23:53
diakopter I think it should depend on whether that "negative number" was a Complex 23:55
masonkramer rakudo: say 5.Complex.sqrt 23:56
p6eval rakudo 5d23e3: OUTPUT«2.23606797749979 + 0i␤»
masonkramer ahh, right, that's what he's got
yeah, that's what's happening now