Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2007-05-12

Perl 6 | Reference Documentation | Rakudo

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

All times shown according to UTC.

Time Nick Message
00:01 araujo joined #perl6
00:09 Juerd obra: Yes.
00:10 Juerd obra: qpsmtpd and XML::SAX things broke
00:10 Juerd Of course, both Perl related. For some reason, on feather, Perl things tend to break during upgrades. I wonder why :)
00:10 moritz because a lot of perl stuff is installed
00:11 moritz very much more than on my maschine I suppose
00:11 Khisanth what is the size of your autobundle file? :)
00:11 moritz dpkg -l 'lib*-perl'|grep ^ii|wc -l
00:11 moritz 250
00:11 Juerd moritz: Yeah, everything Debian had, minus everything that broke during upgrades :)
00:11 moritz Khisanth: I pack (nearly) everything in debian packes that I install
00:12 Juerd dpkg -l 'lib*-perl'|grep ^ii|wc -l
00:12 Juerd hm
00:12 Juerd 1;0 root@feather:~#  dpkg -l 'lib*-perl'|grep ^ii|wc -l
00:12 Juerd 829
00:13 moritz if you'd install 800 graphic packages, some would break as well ;)
00:14 Khisanth I seem to approximately 1/3 of what is on CPAN installed
00:14 Khisanth to have
00:14 moritz and do you use it?
00:16 Khisanth only some :)
00:17 Khisanth SVK, Catalyst and Jifty are probably responsible for dragging in half of those!
00:17 moritz yes, they have huge dependencies
00:17 moritz I only use catalyst of these three, but it's bad enough ;)
00:18 Khisanth it doesn't really matter, I have the space :)
00:19 Khisanth I tend to install things that looks interesting to play around with them anyway
00:20 moritz and I tend to run debfoster now and then ;)
00:20 Khisanth oh this is all in a copy of perl installed in ~ so it can't really break anything
00:21 Juerd It can at least break itself.
00:21 wolverian modern apt-get can do what debfoster does
00:21 Juerd What is debfoster?
00:21 wolverian maintains a list of apps vs automatically installed deps
00:22 moritz interactively, if you want it
00:22 Juerd Oh, that.
00:22 Juerd On feather, I explicitly apt-get installed all perl modules I could find
00:22 wolverian heh.
00:22 Juerd Then tried again, after removing some clashing modules
00:22 Juerd And bit by bit I'm removing modules from feather because they don't upgrade cleanly
00:22 Juerd Like XML::SAX now.
00:23 Khisanth joined #perl6
00:24 wolverian it's probably a bit sad that I'm laughing at ack --thpppppt
00:26 qmole heh
00:28 * jjore-w just found ack -thppppt today.
00:29 jjore-w oh wait, no, I found that before too. Slipped my mind ocmpletely.
00:35 Khisanth joined #perl6
00:37 polettix joined #perl6
01:15 polettix ?eval my $a = 'a'; $a.perl
01:15 evalbot_r16241 "\\\"a\""
01:15 * polettix wonders why the three backslashes
01:16 polettix ?eval my $a = 'a'; [$a].perl
01:16 evalbot_r16241 "[\"a\",]"
01:18 Tene ?eval my $a = 'a'; $a.perl.say
01:19 evalbot_r16241 OUTPUT[\"a"␤] Bool::True
01:19 Tene that's why.
01:19 polettix my perl6-fu is too weak to understand :/
01:20 Juerd polettix: The output is already a Perlish string
01:20 Juerd polettix: \\\" is the result of double-quotemeta'ing a single ".
01:21 polettix Juerd: ok, so we're dealing with \"a", but why the backslash in front of the string?
01:22 Tene polettix: because the output needs to contain \ and "
01:22 Tene so the actual string has "\\" for the \ and '\"' for the "
01:22 Juerd 03:20 < Juerd> polettix: \\\" is the result of double-quotemeta'ing a single ".
01:22 Juerd While true, that was irrelevant here :)
01:23 * Juerd now also wonders: why a capture?
01:23 polettix Tene: what I don't get is why that \ has to be there.
01:23 polettix (probably the same question as Juerd?)
01:24 Tene ?eval "a".perl
01:24 evalbot_r16241 "\"a\""
01:24 Tene ?eval \"a".perl
01:24 evalbot_r16241 \"\"a\""
01:25 polettix ?eval (\"a").perl
01:25 evalbot_r16241 "\\\"a\""
01:25 Tene ?eval \\"a".perl.say
01:25 evalbot_r16241 Error: ␤Unexpected "\\\\\""␤expecting program
01:26 jikuty joined #perl6
01:26 polettix so, it seems that saying  $a = "a" actually means $a = \"a"
01:27 polettix ?eval my $a = \"a"
01:27 evalbot_r16241 \"a"
01:27 polettix uhm, maybe I have to upgrade my pugs
01:27 polettix ?eval my $a = \"a"; $a.perl
01:27 evalbot_r16241 "\\\"a\""
01:27 Juerd Yes, but I wonder why the \ is relevant in the output
01:28 weinig joined #perl6
01:28 polettix I actually wonder why $a = "a" actually means $a = \"a"
01:28 polettix (if this is true)
01:29 Tene ?eval $a := "a"; $a.perl
01:29 evalbot_r16241 Error: Bind to undeclared variable: $a
01:29 Tene ?eval my $a := "a"; $a.perl
01:29 evalbot_r16241 "\\\"a\""
01:29 mako132_ joined #perl6
01:29 theorbtwo joined #perl6
01:33 polettix well, time for bed for me, thank you all :)
01:33 Tene seeya
02:04 ggoebel joined #perl6
02:30 weinig|food changed the nick to weinig
02:33 Aankhen`` joined #perl6
02:34 Aankhen`` @seen agentzh
02:34 lambdabot I saw agentzh leaving #perl6 1d 41m 49s ago, and .
02:35 Tene @seen Tene
02:35 lambdabot You are in #perl6. I last heard you speak just now.
02:35 Tene lambdabot: thanks
02:36 * Aankhen`` snickers.
02:36 Tene @botsnack
02:36 lambdabot :)
03:06 Aankhen`` joined #perl6
03:25 Khisanth joined #perl6
03:50 gugod joined #perl6
03:56 DarkWolf84 joined #perl6
04:07 agentzh joined #perl6
04:07 agentzh fglock: thanks for the ans :)
04:07 * Tene read that as "ants" at first.
04:07 agentzh Tene: ;)
04:08 agentzh Aankhen``: util/t/01-smartlink.t is failing on your machine?
04:09 agentzh Aankhen``: i'm just wondering why you wanted to upload things to ~agentzh/public_html :)
04:10 agentzh Aankhen``: i think it's easy if you have a feather account.
04:11 agentzh it's already 777 :)
04:12 agentzh lunch &
04:12 agentzh left #perl6
04:13 tewk_ joined #perl6
04:59 amnesiac joined #perl6
05:09 BooK_ joined #perl6
05:26 Aankhen`` Argh, agentzh ran off again. :-(
05:28 Aankhen`` @tell agentzh I made some changes to smartlinks.pl (they don't break the generated HTML, don't worry) and I wanted to upload the new .tar.gz.  I don't have a feather account, unfortunately.
05:28 lambdabot Consider it noted.
05:36 Aankhen`` Hmm, could anyone tell me whether t/02-timeout.t passes for them?
05:37 Aankhen`` That's util/t/02-timeout.t
05:37 Aankhen`` It doesn't pass for me, but AFAICT from test.sh, that's not because of any of my changes.
05:39 pasteling "Aankhen" at 24.80.73.85 pasted "util/t/02-timeout.t" (18 lines, 700B) at http://sial.org/pbot/24841
05:42 tewk joined #perl6
05:48 REPLeffect joined #perl6
05:52 agentzh joined #perl6
05:52 agentzh 02-timeout.t should have been removed :)
05:52 lambdabot agentzh: You have 1 new message. '/msg lambdabot @messages' to read it.
05:54 agentzh Aankhen``: send Juerd a mail and ask for an account?
05:57 svnbot6 r16242 | agentz++ | removed util/t/02-timeout.t and some related files
05:59 agentzh Juerd: can i create new accounts on feather?
06:03 svnbot6 r16243 | agentz++ | removed util/timeout.pl since we already have ulimit++
06:06 Aankhen`` agentzh: Yeah, maybe.
06:12 svnbot6 r16244 | agentz++ | smartlinks.pl - running util/t/*-smartlinks.t is sufficient.
06:14 agentzh storing regression data on feather makes updating a bit inconvenience but it does save a lot of room in the pugs tree :)
06:15 agentzh *inconvenient
06:19 Aankhen`` Oh, definitely.
06:33 agentzh Aankhen``: you've added support for line-based anchors?
06:34 agentzh (just guessing)
06:36 Aankhen`` Nah.
06:36 Aankhen`` I cleaned up the JavaScript portion.
06:37 agentzh cool
06:37 Aankhen`` Yeh, it's the coolest thing ever. ;-)
06:37 agentzh the old js snippets were stolen from the google's pages. ;)
06:37 Aankhen`` I figured as much when I saw the "is_ie" and "agt" and all that, LOL.
06:38 agentzh *blush*
06:38 Aankhen`` No sweat.
06:38 Aankhen`` smartlinks.pl is très cool.
06:38 agentzh thanks! although it's a bit hacky ;)
06:38 agentzh i'd modulize it at some point.
06:39 Aankhen`` Well, perhaps, but hey, it's better than nothing.
06:39 agentzh to tell the truth, i didn't expect the source to be that huge but it has been bloating very quickly :)
06:39 Aankhen`` It happens. ^_^
06:40 agentzh people are requesting features and i'm adding them without much planning :)
06:41 Aankhen`` I'm all in favour of organic growth.
06:41 Aankhen`` With regular refactoring, of course. =)
06:41 agentzh *nod* regular refactoring is a very good thing.
06:41 Aankhen`` As long as you have the time for it.
06:42 agentzh time is always a problem. ;)
06:42 Aankhen`` Yup.
06:47 agentzh now that we have a good test suite for smartlinks.pl, it's now quite easy to do any kind of refactoring. :)
06:59 buu Aankhen``: !
06:59 buu Aankhen``: Where is my jseval!
07:05 agentzh Aankhen``: also, do s/Show the snippet from/Show/g for smartlinks.pl before you build the new tarball.
07:05 agentzh such modifications change the resulting HTML as well. sigh.
07:07 * agentzh wants the links to be less verbose.
07:14 Aankhen`` buu: I already told you, I don't know how to write it.
07:14 Aankhen`` agentzh: Ah, well, I'll leave the tarballs till I've checked in all the changes and discussed them with you.
07:15 agentzh Aankhen``: okay :)
07:17 Aankhen`` Ugh, Trac was disabled.
07:17 agentzh *nod*
07:17 Aankhen`` I need a diff between r16243 and r16244.
07:17 Aankhen`` Don't want to clobber your changes.
07:17 agentzh well, i just modified a comment
07:18 Aankhen`` Oh, okay.
07:18 Aankhen`` So it doesn't matter if it's clobbered by mistake? :-)
07:18 agentzh go for it!
07:18 Aankhen`` Okey dokey.
07:20 agentzh merging would work here.
07:21 Aankhen`` Argh.
07:21 Aankhen`` I can't remember my password.
07:22 franck__ joined #perl6
07:22 Aankhen`` Gimme a sec.
07:22 * agentzh dodges.
07:22 buu Aankhen``: Just use JS::Sm, create a context, eval some code, return the results. Steal the code from bb1's jseval
07:22 Aankhen`` $#!(*$#()!$*()#!&%*!&#$*(@!&#)*!@(#)*@!*&#@
07:23 Aankhen`` I have my password saved here, but I'm trying to commit from another instance, and I can't figure out what name I saved the password under in my password manager.
07:23 Aankhen`` One would think that I'd just say "Pugs SVN".
07:24 Aankhen`` buu: Sorry, just trying to get something sorted out.  Give me a few minutes and then I'll discuss it with you.
07:24 Aankhen`` Man, I hate having to catch up on my daily reading at night.
07:27 Aankhen`` Aww come on.
07:28 Aankhen`` Ahh.
07:28 Aankhen`` I win.
07:29 Aankhen`` Okay, I think it's been committed.
07:29 svnbot6 r16245 | Aankhen++ | util/smartlinks.pl:
07:29 svnbot6 r16245 | Aankhen++ | * overhauled JavaScript completely to reduce markup cruft and enable use of code without JavaScript enabled.
07:29 svnbot6 r16245 | Aankhen++ | * removed inline CSS and JS from all generated snippets.
07:29 agentzh Aankhen``++
07:30 Aankhen`` Oh, poop.  I think I lost the "X correct, Y failed" in the snippet line.
07:30 agentzh ah, it's not covered by the test suite. alas
07:30 Aankhen`` Anyway, I'll just fix it, give me a few minutes.
07:31 agentzh Aankhen``: feel free to fix the test suite too if you have the tuits :)
07:32 * agentzh needs a trac.
07:32 Aankhen`` I shall, but in the mean time, do you have the tuits to just give it a once over and see if everything else looks okay to you?
07:32 Aankhen`` A second pair of eyes and all that.
07:32 * agentzh is looking.
07:34 buu Aankhen``: Dude, my daemons are working.
07:35 buu !
07:36 Aankhen`` buu: Awesome!
07:37 buu And I really need ops on #perl
07:38 * Aankhen`` sighs.
07:38 Aankhen`` Syncing development between Windows and Debian-under-VMWare is a pain in the neck.
07:40 * agentzh knows the feeling.
07:41 agentzh ubuntu and winXP-in-virtualbox in my case ;)
07:41 Aankhen`` Hehe.
07:41 Aankhen`` At least Ubuntu is dominant there.
07:41 agentzh indeed
07:41 * Aankhen`` adds "Make smartlinks.pl work on Windows" to his TODO list.
07:44 agentzh it doesn't right now?
07:44 elmex joined #perl6
07:44 Aankhen`` Well, it didn't, when I tried yesterday.
07:44 Aankhen`` I don't quite remember what the problem was.
07:44 Aankhen`` Let me finish syncing up the two and I'll try it again.
07:45 agentzh IE issues?
07:45 agentzh or you mean .pl itself?
07:45 Aankhen`` The .pl itself.
07:45 Aankhen`` What I'm really itching to do is refactor all the POD to HTML translators out there, but I figure I'll just write a Perl6::Perldoc::To::Html instead. ^_^
07:46 agentzh .pl runs fine on my winXP.
07:46 Aankhen`` Hmm, okay, I'll take a look at it again.
07:46 Tene Aankhen``: explain "refactor all the translators out there"?
07:46 Aankhen`` Tene: Basically, make them generate better HTML.
07:46 Aankhen`` ...yes, I realize how vague that is.
07:47 Aankhen`` Let me see if I can find an example for you.
07:48 * agentzh thinks smartlinks.pl uses Pod::Simple::Html to do the translation except for S26.
07:48 Aankhen`` agentzh: It does, I checked. :-P
07:48 agentzh k
07:49 agentzh Aankhen``: the generated HTML looks terrible in IE.
07:50 Aankhen`` Well, I look at the output from pod2html, and the things that come to mind immediately are: drop all the `name` attributes in favour of IDs, make it HTML 4.01 Strict instead of XHTML 1.0 Strict.
07:51 Aankhen`` agentzh: Yeh, doesn't look all that great in Firefox either, really.
07:52 agentzh Firefox doesn't work either :-/
07:53 agentzh Aankhen``: please revert the commits until you find a real solution or http://perlcabal.org/syn will break.
07:53 lambdabot Title: Official Perl 6 Documentation
07:53 Aankhen`` agentzh: Solution for what?
07:53 Aankhen`` Oh, wha?  One sec.
07:53 Aankhen`` I thought you were talking about pod2html.
07:54 agentzh no, i'm talking about smartlinks.pl
07:54 Aankhen`` That's weird, it looked fine for me.
07:54 Aankhen`` I'll check again.
07:54 agentzh or maybe it's a problem on my side.
07:54 iblechbot joined #perl6
07:54 agentzh i'm on winXP now.
07:57 Aankhen`` Are you looking at the stuff under got/?
07:57 Aankhen`` The normal stuff seems to be okay...
07:57 agentzh yes, i am looking there.
07:57 Aankhen`` Ah, that might be why.
07:58 agentzh why the difference?
07:58 Aankhen`` It's not breaking lines under got/, no idea why.
07:58 Aankhen`` If you use smartlinks.pl to generate the HTML and look at it yourself, though, it seems to be okay.
07:58 agentzh weird.
07:58 Aankhen`` Doesn't make any sense.
07:58 Aankhen`` How often does perlcabal.org/syn update?
07:59 agentzh once an hour.
07:59 Aankhen`` Hmm.
07:59 Aankhen`` Well, I'll revert the commits for now since I have to re-add the "X tests failed, Y tests passed" thing anyway.
08:00 agentzh k
08:00 Aankhen`` It's `svn merge -rHEAD:PREV smartlinks.pl`, right?
08:00 agentzh maybe
08:00 Aankhen`` I'll check.
08:01 Aankhen`` Yeah, the book says it is.
08:01 agentzh lol
08:01 * agentzh normally uses svk or TortoiseSVN to revert stuff.
08:01 Aankhen`` Heh.
08:02 Aankhen`` Done.
08:02 svnbot6 r16246 | Aankhen++ | * reverted r16245 for now.
08:05 Aankhen`` Okay, I give up.  Where did that tally of failed and passed tests come from?
08:06 agentzh Aakhen: http://perlcabal.org/smoke.yml
08:06 agentzh *Aankhen``
08:07 Aankhen`` Oh, $stat.
08:07 Aankhen`` Heh, I meant within smartlinks.pl
08:07 Aankhen`` But I found it.
08:07 agentzh nice
08:07 Aankhen`` Stupid word wrap.
08:08 agentzh change it if you have a better name.
08:08 Aankhen`` No sweat.
08:08 Aankhen`` I just didn't see it because my brain didn't realize it had been wrapped.
08:08 Aankhen`` Stupid brain.
08:08 agentzh gotcha
08:09 jisom joined #perl6
08:10 Aankhen`` smartlinks.pl has to be one of the coolest things related to Pugs. =)
08:10 agentzh wow
08:10 agentzh many thanks!
08:11 Aankhen`` On a more pertinent note, I don't understand why my script loses the pass/fail marks in front of the tests. O_O
08:13 Aankhen`` Ah.
08:13 Aankhen`` Perhaps I found out.
08:14 Aankhen`` Theeeen again, perhaps not.
08:18 Aankhen`` Oh, duh.
08:18 Aankhen`` I don't have any smoke data here. :-P
08:19 agentzh Aankhen``: download one from http://perlcabal.org/smoke.yml
08:20 agentzh Aankhen``: 1:20 AM on your side?
08:25 Aankhen`` Aye.
08:25 Aankhen`` I've had a long day.  Didn't get enough sleep to function normally all of yesterday, and increased the deficit today.
08:25 Aankhen`` But I'll have a chance to catch up tonight.
08:26 agentzh take care of yourself :)
08:26 Aankhen`` Yeah, it's just a couple of days of not sleeping enough, that's all.
08:26 Aankhen`` I do it a lot, since I have trouble sleeping.
08:27 * agentzh too.
08:27 Aankhen`` :-D
08:27 Aankhen`` Though I don't know why sleeping troubles should be anything to be happy about, but oh well.
08:27 agentzh lol
08:29 Aankhen`` Where are you from?
08:30 agentzh .cn
08:30 Aankhen`` Kewl.
08:30 Aankhen`` I'm Indian, though in Canada for college.
08:33 agentzh so we're neighbors.
08:33 agentzh :)
08:47 Aankhen`` Indeedy do.
08:58 Aankhen`` Okay, this is pretty awesome, even if I do say so myself. ^_^
08:58 Aankhen`` (From a code point of view.)
08:58 Aankhen`` agentzh: Should I check in my version of smartlinks.pl as smartlinks.new.pl so you can test it out for yourself?
08:58 agentzh okay!
08:59 moritz good morning!
08:59 Aankhen`` agentzh: Done.
08:59 Aankhen`` moritz: Good morning indeed. ^_^
08:59 Aankhen`` (2:00 AM is morning, right?)
08:59 agentzh moritz: good afternoon
08:59 svnbot6 r16247 | Aankhen++ | * added smartlinks.pl:r16245 as smartlinks.new.pl, now with proper smoke results handling!
09:00 moritz Aankhen``++
09:00 moritz well, we are not exactly in the same time zone ;)
09:00 Aankhen`` Thanks, but before you ask, that isn't the line anchor thing.
09:00 Aankhen`` That would require slightly more coherence from me.
09:01 Aankhen`` agentzh: Remember to test the actual output, not the stuff under got/.
09:01 agentzh Aankhen``: sure
09:01 Aankhen`` Which I'm still wondering about... hmm.
09:02 Aankhen`` s/\s+$//gms;
09:02 Aankhen`` That would be the problem.
09:02 agentzh *nod*
09:02 Aankhen`` (From 01-smartlinks.t:111)
09:02 agentzh i gathered so.
09:02 Aankhen`` Sorry, I'm a little slower!
09:02 agentzh :)
09:08 Aankhen`` Does everything look alright?
09:08 agentzh still looking
09:08 Aankhen`` Ah.
09:09 agentzh Aankhen``: have you tested the HTML output with IE?
09:09 Aankhen`` Aye.
09:10 agentzh k
09:10 * agentzh is on a slow machine.
09:12 Aankhen`` Oh, hang on, just found something else on IE.  Need to investigate.
09:12 agentzh Aankhen``: when there's no smoke results given, smartlinks.pl should not complain "No test results for ..."
09:12 Aankhen`` Oh, that's just the active content blocking thing.
09:12 Aankhen`` Nevermind.
09:12 Aankhen`` agentzh: Alright.
09:12 Aankhen`` Ugh, that nice radical sign looks really ugly in IE. :-\
09:13 polettix joined #perl6
09:13 Aankhen`` I think I've got my font size set too low.
09:14 svnbot6 r16248 | Aankhen++ | util/smartlinks.new.pl:
09:14 svnbot6 r16248 | Aankhen++ | * removed "No test results for?\226?\128?\166" warning.
09:15 agentzh it looks good in firefox.
09:15 Aankhen`` :-D
09:15 Aankhen`` D'oh.  The ending " -" pushed itself after the colon.
09:15 Aankhen`` Easily fixed though.
09:15 agentzh so is in IE.
09:17 Aankhen`` Yay.
09:17 Aankhen`` There isn't all that much difference (as far as I can tell), since most of the work was under the hood.
09:17 polettix eval? "Val = { $a.ord.fmt('%x') }\n"
09:17 agentzh cool, r16248 looks nice.
09:17 Aankhen`` Of course, if you have JS disabled, then you see a rather large difference. :-)
09:18 agentzh with JS disabled, all snippets expand by deault.
09:19 Aankhen`` Yup.
09:20 Aankhen`` In smartlinks.pl, all snippets are hidden by default, so if you have JS disabled, the links don't work and you can never see them.
09:20 tewk_ joined #perl6
09:21 agentzh *nod* but it was also intentional.
09:21 agentzh because snippets are normally "big"
09:21 Aankhen`` But then you can't see them at all. :-S
09:21 agentzh right
09:21 svnbot6 r16249 | Aankhen++ | util/smartlinks.new.pl:
09:21 svnbot6 r16249 | Aankhen++ | * fixed " -" being placed after ":".
09:22 Aankhen`` What I could do, if the intent was to skip those blocks, is to add skip links.
09:22 agentzh well, it's just a personal taste. feel free to do it the way you like ;)
09:22 agentzh it doesn't matter at all :)
09:22 Aankhen`` Ah, I'm just trying not to step on anybody's toes, and living in fear of breaking perlcabal.org. ;-)
09:23 agentzh Aankhen``: breaking it temporarily is acceptable :)
09:23 agentzh (for development reasons)
09:24 agentzh since it's easier to test and easier to get feedback.
09:24 Aankhen`` True.
09:24 agentzh no fear please
09:24 Aankhen`` Alright.
09:25 agentzh it's fine to "mv smartlinks.new.pl smartlinks.pl" now :)
09:25 Aankhen`` Kewl.
09:25 agentzh if there's a problem, i'll receive something from feather's cron and cry out. :)
09:26 * agentzh won't be too conservative.
09:27 agentzh Aankhen``: sorry if i have give you such an impression :)
09:27 agentzh *given
09:27 Aankhen`` Well, it was basically the notice at the top of smartlinks.pl, and it seemed reasonable to me.
09:27 agentzh :)
09:27 svnbot6 r16250 | Aankhen++ | * moved util/smartlinks.new.pl over util/smartlinks.pl
09:28 Aankhen`` But it's good to know that temporary breakage won't get me yelled at. =)
09:29 agentzh heh
09:29 polettix what's the name of the script to send results to the smoke server?
09:29 agentzh polettix: under util/
09:30 polettix agentzh: yes, but I don't remember the name, probably util/smokeserv/smokeserv-client.pl
09:30 svnbot6 r16251 | Aankhen++ | util/smartlinks.pl:
09:30 svnbot6 r16251 | Aankhen++ | * small style tweak to retain snazzy look from before.
09:30 agentzh util/smokeserv/smokeserv-client.pl
09:30 agentzh that's it.
09:30 polettix perfect, thanks :)
09:31 agentzh it's normally called from util/run-smoke.pl
09:31 agentzh np :)
09:31 bernhard joined #perl6
09:31 polettix yes, but I moved my laptop in the other room because I was annoyed by the fan, and my Internet connection was out :)
09:33 * agentzh has to find something to eat for supper &
09:35 tewk joined #perl6
09:37 polettix there is a bug in the interaction of fmt() with interpolation in double-quotish environments. Should the test be added to t/builtins/fmt.t or to t/syntax/interpolation/strings.t, or on a test file by its own?
09:37 Aankhen`` t/syntax/interpolation/fmt.t?
09:37 Aankhen`` (Just a suggestion.)
09:37 polettix option 3 seems reasonable :)
09:43 tewk_ joined #perl6
09:44 larsen_ joined #perl6
09:46 moritz I don't think an own test file is a good idea, because it fragments the test suite
09:48 the_dormant joined #perl6
09:48 polettix moritz: it exercises a but that's specific to fmt and interpolation. What comes first (ideally), syntax or builtins? If we don't want an ad-hoc test, it should probably go to the one that "comes last"
09:48 polettix s/but/bug/
09:49 moritz then I'd vote for the builtin
09:49 polettix ok, I'll add the tests there, as long as I manage to make them work (it seems that it dies or something like this...)
09:50 moritz even with eval()?
09:50 polettix yes, as long as I used it correctly
09:50 polettix ?eval my $x = 'A'; $x.say
09:50 evalbot_r16247 changed the nick to evalbot_r16241
09:50 evalbot_r16247 OUTPUT[A␤] Bool::True
09:50 polettix ?eval my $x = 'A'; "$x".say
09:51 evalbot_r16247 OUTPUT[A␤] Bool::True
09:51 polettix ?eval my $x = 'A'; "$x.ord.fmt('%x')".say;
09:51 evalbot_r16247 "41"
09:51 polettix ?eval my $x = 'A'; "this is $x.ord.fmt('%x')".say;
09:51 evalbot_r16247 "41"
09:52 agentzh polettix: it seems okay
09:52 polettix it lacks "this is"
09:52 agentzh polettix: oh?
09:52 polettix ?eval my $x = 'A'; ("this is " ~ "$x.ord.fmt('%x')").say;
09:52 evalbot_r16247 "41"
09:52 agentzh okay, got the point
09:53 IllvilJa joined #perl6
09:54 agentzh polettix: i'd vote for interpolation/*.t
09:55 tewk joined #perl6
09:56 polettix should this trap errors?   my $y = eval( "something $x.ord.fmt('%x')" );
09:56 agentzh why not eval_ok?
09:56 * agentzh prefers eval_ok since it provides better diagnostics.
09:58 agentzh eval_ok is good for "testing the tests".
09:58 polettix no way, it exits and does not continue with other tests. OTOH, it prints the   # Looks like you planned 6 tests, but ran 2   line
09:58 polettix eval_ok( "something $x.ord.fmt('%x')", 'interpolation and fmt live' );
09:59 polettix am I missing something obvious in eval_ok() syntax?
09:59 agentzh polettix: you've made a mistake there.
09:59 polettix d'oh
09:59 polettix maybe I should add curlies?
09:59 agentzh you can only eval p6 code.
10:00 agentzh is "something ..." just a place-holder?
10:01 polettix it's just some text inside the string to exercise the test, but I should probably embed the string inside something else
10:02 agentzh eval_ok(q{"something $x.ord.fmt('%x')".say});
10:04 tewk_ joined #perl6
10:04 Belaf joined #perl6
10:04 polettix do I have to 'use' something more than Test?
10:04 agentzh no, you shouldn't.
10:04 agentzh eval_ok is no longer available?
10:05 * agentzh has not written any p6 tests since last summer.
10:05 polettix it does not complain not finding it, so it should be there
10:06 agentzh or try { is "something $x.ord.fmt('%x')", "something 41"; }
10:06 chris2 joined #perl6
10:07 agentzh not sure if the try block works for you.
10:07 polettix try works, at least it makes the test go on
10:07 agentzh cool
10:08 polettix is there something like lives_ok in Test::Exception?
10:10 agentzh eval_ok *should* behave like lives_ok, i _think_
10:10 tewk joined #perl6
10:10 polettix there's a thing I don't understand... I'm invoking my test file with  ./pugs t/.../fmt.t
10:11 agentzh polettix: use util/prove6 instead of ./pugs
10:11 polettix but I see that the imported Test.pm comes from my perl 5 library. Is this correct?
10:11 moritz I dont't think so
10:12 moritz what's the value of your PERL6LIB env variable?
10:12 polettix ah, prove6 is the answer!
10:12 polettix sorry for your wasted time
10:12 agentzh actually prove6 set the env for you.
10:12 agentzh *sets
10:12 BooK joined #perl6
10:12 moritz ok
10:13 polettix but now it *does* complain about a missing eval_ok sub ;)
10:13 * polettix goes looking at the code
10:14 polettix # eval_ok eval_is - removed
10:15 agentzh sigh.
10:15 agentzh they were my favorites.
10:15 polettix there is lives_ok anyway
10:15 agentzh cool
10:17 polettix anyway, I don't seem to need them any more, now that I use prove6 :D
10:17 svnbot6 r16252 | Darren_Duncan++ | ext/QDRDBMS/ : added several pod sections about data types to Language.pod
10:17 tewk_ joined #perl6
10:18 agentzh prove6++
10:18 agentzh @karma prove6
10:18 lambdabot prove6 has a karma of 1
10:18 moritz lambdabot++ # karma and URLs ;)
10:19 polettix let me steal you just the last few seconds... I'm adding tests for both the "$x" and the "{$x}" interpolation forms, how could I call them in the descriptions?
10:20 moritz "direct string interpolation" and "string interpolation via braces"?
10:20 polettix ok, sorry. I didn't know if there were "technical definitions" for the two
10:20 moritz btw is "{$x}" automatically "{~$x}" ?
10:20 svnbot6 r16253 | agentz++ | 01-smartlinks.t - fixed the newline problem (Aankhen++)
10:20 moritz polettix: I was just guessing
10:21 moritz polettix: I don't know the jargon well enough ;)
10:21 polettix moritz: it seems reasonable anyway, if any guru in this field finds these description horrible... s?he will change it :D
10:21 moritz right ;)
10:21 agentzh scalar interpolation and code interpolation?
10:21 moritz sounds even better ;)
10:21 moritz guru-agentzh ;)
10:22 agentzh :)
10:24 polettix this *is* weird. lives_ok says that the interpolation lives, but when I call it "directly" it makes the test bail out.
10:24 moritz quoting problem?
10:24 dduncan left #perl6
10:26 ggoebel joined #perl6
10:28 pasteling "polettix" at 213.203.159.164 pasted "test bails out with no indication" (68 lines, 2.2K) at http://sial.org/pbot/24844
10:30 tewk joined #perl6
10:30 moritz does lives_ok expect a code ref?
10:30 polettix sub lives_ok (Code &code, Str $desc?, :$todo, :$depends) returns Bool is export
10:31 moritz ok
10:31 svnbot6 r16254 | agentz++ | t/README - added note for testing the tests by running it with util/prove6
10:31 polettix I don't know p6 at all, I'm only hoping p5 knowledge works :)
10:31 moritz have you tried it with sub { $string }?
10:32 moritz I don't think it should make a difference, but it's worth trying
10:32 polettix same result, it says that it lives
10:32 * agentzh does not like the signature of lives_ok.
10:33 agentzh a string arg is more useful since there maybe a syntax error in the code which can't even be parsed.
10:35 agentzh polettix: use "ok eval('...')" for now :)
10:35 agentzh ...or something like that
10:36 * agentzh blames the person who removes eval_ok.
10:38 agentzh supper (for real this time ;)) &
10:38 agentzh left #perl6
10:39 tewk_ joined #perl6
10:42 moritz what about is(eval($template), $expected)?
10:43 polettix moritz: how can I understand if eval() worked fine?
10:44 polettix I mean, is there something like $@/$EVAL_ERROR?
10:44 moritz if it fails, $! or $@ is set I think
10:45 polettix no, it seems that $@ is gone
10:46 moritz try { eval(); # this is only reached if eval succedes }
10:47 polettix I had a workaround in eval itself
10:47 polettix my $z; eval('...; $z = 1'); # then check if $z is set or not :)
10:47 moritz ok
10:49 moritz I _hate_ C
10:49 iblechbot joined #perl6
10:50 moritz why on earth do I get undeclared identifiers for macro names?
10:51 moritz the explanation is simple: because I'm stupid
10:51 moritz but the error message is more than weird...
11:05 polettix ach, my username in my laptop is poletti, and I keep being asked for poletti's password instead of polettix's
11:06 pmurias joined #perl6
11:07 pmurias mortiz: when do you get such errors?
11:08 moritz pmurias: when I do stupid programming errors and don't read the messages carefull enough ;)
11:09 moritz pmurias: it turned out to be my fault entirely ;)
11:09 Belaf_ joined #perl6
11:09 svnbot6 r16255 | polettix++ | Excercise bugged interaction between fmt and double-quotish interpolation
11:09 svnbot6 r16255 | polettix++ | as of r16241. There is also a weird behaviour in eval that should be
11:09 svnbot6 r16255 | polettix++ | digged further.
11:11 pmurias mortiz: c++ template errors are quite nasty
11:12 moritz pmurias: it's plain C
11:12 moritz I'm trying to write a program that recognizes eyes in images of human faces
11:12 moritz quite a nasty topic ;)
11:14 tewk joined #perl6
11:26 mjk joined #perl6
11:27 _newbie_ joined #perl6
11:29 ludan joined #perl6
11:29 Belaf changed the nick to Belaf_
11:29 ludan hola
11:29 moritz ih
11:30 moritz erm, hi
11:30 Tene ludan: Hi!
11:32 mako132_ joined #perl6
11:47 ludan joined #perl6
11:52 polettix ciao ludan
11:53 ludan ciao
11:53 ludan i'm playing with beryl and special effects ;)
11:53 polettix tunnuz said that beryl bores you quite fast
11:56 ludanolo joined #perl6
11:57 polettix connection problems?
11:59 tewk_ joined #perl6
11:59 ludan joined #perl6
11:59 cernd joined #perl6
12:03 svnbot6 r16256 | polettix++ | Corrected a bug in t/syntax/interpolation/fmt.t
12:05 tewk joined #perl6
12:07 polettix there's a bug in eval() that's triggered by another bug, how should I add an effective test case for this? I think that if the triggering cause is solved, the bug in eval remains hidden
12:08 moritz do you now what the other bug is?
12:08 polettix yes, it's that in t/syntax/interpolation/fmt.t. In this test, there's also a test that's actually an eval() test.
12:10 riffraff joined #perl6
12:13 tewk_ joined #perl6
12:20 vel joined #perl6
12:23 tewk joined #perl6
12:24 hcchien joined #perl6
12:29 tewk_ joined #perl6
12:36 tewk joined #perl6
12:52 stef_ joined #perl6
12:54 cognominal joined #perl6
13:00 tewk_ joined #perl6
13:13 deq` joined #perl6
13:25 buetow joined #perl6
13:29 wolverian joined #perl6
13:36 ludan joined #perl6
13:57 turrepurre joined #perl6
14:04 tewk joined #perl6
14:08 explorer joined #perl6
14:22 idiotmax joined #perl6
14:27 tewk_ joined #perl6
14:28 rashakil joined #perl6
14:32 the_dormant joined #perl6
14:46 tewk joined #perl6
14:48 Limbic_Region joined #perl6
14:58 drupek12 joined #perl6
15:14 tewk_ joined #perl6
15:25 the_dormant joined #perl6
15:44 tewk joined #perl6
15:58 pdcawley joined #perl6
16:04 svnbot6 r16257 | agentz++ | smartlinks.pl - fixed a bug in the new JS logic from Aankhen++. the trailing ':' text was not the content of link.lastChild when no smoke data is given.
16:09 pbuetow joined #perl6
16:15 tewk_ joined #perl6
16:25 tewk joined #perl6
16:35 tewk_ joined #perl6
16:37 svnbot6 r16258 | agentz++ | smartlinks.pl - did s/(Show|Hide) snippet from/$1/g in order to make the link labels less verbose.
16:41 moritz commitbit is slow again ;(
16:41 svnbot6 r16259 | agentz++ | docs/feather/script/update-syn - uses perl.css on feather instead of that of dev.perl.org so as to reduce the page loading time.
16:43 tewk joined #perl6
16:48 iblechbot joined #perl6
16:53 tewk_ joined #perl6
16:56 xinming_ joined #perl6
16:59 wolverian hm. feather's load is still a bit high. :)
17:16 Juerd wolverian: Yes, and I'm desparate
17:16 Juerd I'm thinking of getting feather out of the datacentre early
17:16 Juerd It's going to be moved within a month anyway
17:16 Juerd But this way the entire machine is fairly useless
17:21 tewk joined #perl6
17:24 franck__ joined #perl6
17:26 Belaf_ joined #perl6
17:26 TimToady Juerd: how much bandwidth do you lose moving out of the datacenter?
17:28 TimToady in particular, will it slow remote svn downloads for new folks?
17:31 Juerd TimToady: None
17:31 Juerd TimToady: We've got 100 Mb/s fiber at the office now, so we're moving almost everything away from the datacentre
17:31 amnesiac joined #perl6
17:31 Juerd There's a 5 millesecond ping round trip time increase :)
17:31 Juerd And one router hop
17:32 Juerd That's all.
17:32 Juerd We've connect it to our existing network
17:32 Juerd connected
17:32 Juerd Oh, and the IP address will change
17:32 Juerd But that's an inconvenience that would be needed soon anyway
17:33 moritz and that's what DNS is usefull for ;)
17:33 Juerd Yes, but that takes some time to settle
17:33 Juerd And not all DNS is maintained by me
17:36 tewk_ joined #perl6
17:41 rindolf joined #perl6
17:45 lumi joined #perl6
17:47 tewk joined #perl6
17:54 Psyche^ joined #perl6
17:55 tewk_ joined #perl6
18:03 tewk joined #perl6
18:11 Patterner changed the nick to Psyche^
18:12 ggoebel joined #perl6
18:13 tewk_ joined #perl6
18:18 lisppaste3 joined #perl6
18:20 ludan joined #perl6
18:23 justatheory joined #perl6
18:24 tewk joined #perl6
18:33 franck__ joined #perl6
18:37 kappa joined #perl6
18:37 iblechbot joined #perl6
18:41 ozo joined #perl6
18:42 weinig|food joined #perl6
18:43 quappa changed the nick to kappa
18:43 weinig changed the nick to weinig|food
18:54 b_jonas joined #perl6
19:04 Entonian joined #perl6
19:09 the_dormant joined #perl6
19:43 edenc joined #perl6
19:49 andara joined #perl6
19:53 rindolf joined #perl6
20:04 ingy joined #perl6
20:21 b_jonas joined #perl6
20:22 Aankhen`` joined #perl6
20:34 dduncan joined #perl6
20:35 dduncan left #perl6
20:36 dduncan joined #perl6
20:57 jisom joined #perl6
21:23 Khisanth joined #perl6
21:24 vel joined #perl6
21:53 smokemachine joined #perl6
21:54 smokemachine left #perl6
21:54 smokemachine joined #perl6
22:00 justatheory joined #perl6
22:13 [particle] joined #perl6
23:44 trippeh joined #perl6
23:53 svnbot6 r16260 | Darren_Duncan++ | ext/QDRDBMS/ : added pod about finite|infinite types to Language.pod

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

Perl 6 | Reference Documentation | Rakudo