pugscode.org/ | nopaste: sial.org/pbot/perl6 | ?eval [~] <m oo se> | We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/
Set by diakopter on 11 July 2007.
00:05 polettix joined, theorbtwo joined 00:08 devogon left 00:09 Lunchy joined 00:18 theorb left 00:35 Blwood left
TimToady ryporter++ 00:40
00:57 justatheory joined 01:05 weinig left 01:19 justatheory left 01:46 justatheory joined 01:47 justatheory left, justatheory joined 01:50 zamolxes left 01:51 justatheory left, justatheory joined 01:52 [particle] joined 01:54 daxim_ left, daxim_ joined 01:56 lascasas joined 01:59 [particle1 left 02:05 Schwern joined 02:07 [particle] left, [particle] joined 02:15 ryporter left 02:24 justatheory left 02:27 jisom left 02:49 rutlov joined 02:52 weinig joined 02:58 rutlov left 03:14 jisom joined 03:23 lascasas left 03:26 jjore-w left 03:27 jjore-w joined 04:13 c9s joined 04:24 jisom left 05:46 Schwern left 05:47 devogon joined 05:51 araujo left 06:07 c9s left
pugs_svnbot r17866 | Darren_Duncan++ | ext/Muldis-DB/ : half rewrote desc of DB.pm, added small desc to Interface.pm, Example.pm 06:09
diff: dev.pugscode.org/changeset/17866
lambdabot Title: Changeset 17866 - Pugs - Trac
06:12 Schwern joined
Schwern Where is the definition of a "depotpath" and "depot" documented? 06:13
dduncan if you're talking about the SVK docs, I saw it mentioned in the basic docs or the tutorial 06:18
I think
on elixus.org
Schwern So not in the shipped docs? 06:19
dduncan maybe svk.elixus.org/view/SVKUsage is helpful 06:20
lambdabot Title: SVKUsage - SVK Wiki
dduncan if you mean the manpage, then I don't recall
Schwern I just added svk.bestpractical.com/view/depotpath
lambdabot Title: depotpath - SVK Wiki
Schwern It's something I recall never quite understanding for a long time.
I'm writing up an article on SVK and I'm finding myself having to write an explaination for the depotpath and depots.
dduncan I know what those, particularly "depot", mean anyway
the depot is the place that holds all the revisions for a project, and a depot path is the name of the depot 06:21
both on the local machine
Schwern I know this. 06:22
dduncan well good luck with your article
Schwern I'm wondering if I have to write all this up myself or if there's a good place I can point them.
dduncan try the elixus.org wiki, anyway
better than nothing 06:23
another url that might be useful is: utsl.gen.nz/talks/git-svn/intro.html
lambdabot Title: An introduction to git-svn for Subversion/SVK users and deserters
dduncan mugwump wrote that, quite detailed
while it advocates Git, it may have some good info about Svn for your questions 06:24
Schwern, that's the best I can suggest for the moment 06:25
Schwern I just wrote up depot, depotpath and depotmap on the wiki that should cover things. 06:33
Thanks for the suggestions 06:41
07:14 elmex joined 07:18 Schwern left 07:27 elmex left 07:35 dduncan left 07:36 elmex joined 07:37 iblechbot joined 07:47 Aankhen`` joined
moritz_ good localtime() everybody ;) 07:55
07:58 diotalevi left 08:00 hkb_zz is now known as hakobe 08:02 nipotan is now known as nipotaway 08:10 kane_ joined, kane_ left, kane_ joined 08:30 barney joined 09:04 riffraff joined 09:06 drrho joined 09:08 chris2 joined 09:13 chris2 left
DarkWolf84 :) 09:39
nice greeting moritz_ 09:40
09:46 mjk joined 09:51 mjk left 10:03 Blwood joined 10:08 barney left 11:04 c9s joined 11:08 barney joined 11:42 zomgb00bie joined 11:57 cognominal_ left, ryporter joined 12:04 zomgb00bie left
moritz_ if you look at t/builtins/lists/first.t - the last test is a 'dies_ok' for a .first that fails to match any elements 12:04
but why? shouldN#t it just return undef;
12:06 cognominal_ joined
moritz_ pugs: my @l=1..10; if @l.first: { ($_ == 8) } { say "found" } 12:09
exp_evalbot OUTPUT[*** No such method in class Array: "&first"␤ at /tmp/YTH8W0DqFL line 1, column 17-41␤]
moritz_ ah, exp_evalbot uses an older revision 12:10
12:12 kanru joined
moritz_ pugs: say (1..10 ~~ sub { $_ == 4 }) 12:13
exp_evalbot OUTPUT[pugs: user error (*** *** Can't modify constant item: VUndef␤ at <prelude> line 803, column 9-46␤ <prelude> line 803, column 9-46␤ at)␤␤]
moritz_ pugs: say ?(1..10 ~~ sub { $_ == 4 })
exp_evalbot OUTPUT[pugs: user error (*** *** Can't modify constant item: VUndef␤ at <prelude> line 803, column 9-46␤ <prelude> line 803, column 9-46␤ at)␤␤]
moritz_ pugs: say ?(1..10 ~~ sub { $_[0] == 4 }) 12:15
exp_evalbot OUTPUT[pugs: user error (*** *** Can't modify constant item: VUndef␤ at <prelude> line 803, column 9-46␤ <prelude> line 803, column 9-46␤ at)␤␤]
moritz_ pugs: my $matcher = sub { $_[0] == 4 }; say 1..0 ~~ $matcher
exp_evalbot OUTPUT[pugs: user error (*** *** Can't modify constant item: VUndef␤ at <prelude> line 803, column 9-46␤ <prelude> line 803, column 9-46␤ at)␤␤]
moritz_ pugs: my $matcher = sub { $_[0] == 4 }; say 1..10 ~~ $matcher 12:16
exp_evalbot OUTPUT[pugs: user error (*** *** Can't modify constant item: VUndef␤ at <prelude> line 803, column 9-46␤ <prelude> line 803, column 9-46␤ at)␤␤]
12:16 barney left
moritz_ is kinda confused 12:18
on my local pugs I get Bool::True
and empty output
pugs: print (1..10).first( { ($_ == 2) }) 12:24
exp_evalbot OUTPUT[2]
moritz_ ryporter++
ryporter hi moritz_ 12:25
I can see your point about calling first on an empty list 12:26
I figured it was like trying to access the first element of an empty array 12:27
moritz_ I'd expect .first to just return undef if no match was found 12:28
now it fails
is that in the spec?
ryporter the section on first didn't specify 12:29
moritz_ so where did you get it from? 12:33
ryporter a false analogy to other languages 12:34
sorry
it was a mistake
moritz_ ok ;) 12:35
ryporter should I change the test to return undef, or leave it unspecified since it's not in the spec?
moritz_ I think the analogy to grep is suficcient to assume undef is ok 12:36
pugs_svnbot r17867 | moritz++ | t/builtins/list/first.t: non-successfull match should return undef
diff: dev.pugscode.org/changeset/17867
lambdabot Title: Changeset 17867 - Pugs - Trac
moritz_ I changed the test ;)
ryporter okay, I'll fix the code 12:37
moritz_ thanks 12:38
I'm not that good with haskell ;)
12:41 riffraff left
moritz_ hey, I think I found a fix 12:45
pugs_svnbot r17868 | moritz++ | List.hs: .first returns undef if no match was found 12:48
r17868 | moritz++ | A haskell guru should look at that code to check it ;)
diff: dev.pugscode.org/changeset/17868
lambdabot Title: Changeset 17868 - Pugs - Trac
12:52 ruz left
ryporter I'm not one, but that looks good to me 12:54
pugs_svnbot r17869 | moritz++ | t/builtins/list/first.t: count executions of matcher closure (fails)
diff: dev.pugscode.org/changeset/17869
lambdabot Title: Changeset 17869 - Pugs - Trac
12:59 c9s left
pugs_svnbot r17870 | ryporter++ | Fix how the range operator handles rationals 13:06
diff: dev.pugscode.org/changeset/17870
lambdabot Title: Changeset 17870 - Pugs - Trac
13:15 kane_ left
pugs_svnbot r17871 | ryporter++ | replace improper use of length() in my previous check-in, because it prevents laziness 13:15
diff: dev.pugscode.org/changeset/17871
lambdabot Title: Changeset 17871 - Pugs - Trac
13:42 pmurias joined
pmurias hi 13:42
what's the point of a first function? 13:43
if we have [0]
?
sorry
ryporter I suppose it's there to make the code (somewhat) simpler 13:48
pmurias i didn't see it takes a clousure at first 13:49
s/it//
* that it
ryporter but I think you have a point, in that you can always use grep followed by [0] 13:52
pmurias (grep {$_>2} @list)[0] is less readable than first {$_>2} @list 13:56
add it's easy to figure out what first without checking it up 13:57
* first does
allbery_b first might be easier to optimize by stopping the search when the first one is found?
ryporter I believe that laziness should make them equivalent 13:59
14:00 penk joined
allbery_b hm, is grep explicitly lazy? been a while but I recall explicit "lazy"s being needed 14:00
ryporter interesting... I don't know 14:01
the spec says that it should return a lazily evaluated list 14:02
but the test that moritz just added suggests that it's not being lazy
allbery_b ok, guess that answers that question
14:10 zamolxes joined
moritz_ perhaps my test was wrong 14:12
wait, it isn't... since I test the return value of first() I force the execution of the closre 14:13
ryporter when I run '(1..100000).grep( { $_ > 7 } )[0]', grep is clearly not being lazy 14:14
since it takes several seconds to execute
moritz_ pmurias: btw @list.grep(..)[0] will fail if grep returns an empty list 14:15
allbery_b wouldn't be the first time pugs didn't confirm to spec
conbform
argh!
moritz_ conform?
allbery_b shoots finfers
moritz_ ryporter: lazyness isn't really supported with the plain haskell backend
only partly
pugs: my @a=0..*; 14:16
exp_evalbot OUTPUT[pugs: out of memory (requested 1048576 bytes)␤]
moritz_ pugs: my @a := 0..*;
exp_evalbot OUTPUT[pugs: out of memory (requested 1048576 bytes)␤]
moritz_ pugs: my @a := 0..*; say @a[3];
exp_evalbot OUTPUT[3␤]
ryporter hm. I thought that was a key benefit of implementing it in Haskell
moritz_ ryporter: no, the key benefit was that audreyt really groks haskell, and it's a neat language ;) 14:17
ryporter fair enough :)
allbery_b laziness is Hard :)
moritz_ so is implementing perl 6 ;) 14:18
14:31 zomgb00bie joined 14:40 rindolf joined 14:53 daxim_ left 15:03 cognominal__ joined 15:04 cognominal__ left, cognominal_ left 15:05 cognominal_ joined 15:16 toshinori left 15:18 c9s joined 15:21 hakobe is now known as hkb_zz 15:55 DarkWolf84 left 15:56 polettix left 16:02 polettix joined 16:19 snearch joined 16:38 snearch left 16:42 cognominal_ left 16:45 c9s left 16:50 cognominal_ joined, cognominal__ joined 16:52 cognominal_ left 17:08 Psyche^ joined 17:20 Patterner left, Psyche^ is now known as Patterner 17:25 cognominal__ left 17:29 amnesiac joined 17:34 cognominal_ joined 17:51 barney joined 18:12 snearch joined 18:26 riffraff joined
riffraff hi 18:29
18:37 Caelum joined 18:39 drrho left 18:59 barney left 19:07 justatheory joined 19:16 ahmadz joined
ahmadz hi 19:17
19:17 snearch left 19:26 Caelum is now known as HLAGH 19:27 HLAGH is now known as Caelum 19:49 rindolf left
pugs_svnbot r17872 | azawawi++ | [runpugs] Terminal now ignores modifier keys CTRL|SHIFT|ALT 19:56
r17872 | azawawi++ | [runpugs] HOME/END/RIGHT/LEFT/DEL/BACKSPACE keys work now as expected
r17872 | azawawi++ | [runpugs] Event Handlers are now called after the document is ready
r17872 | azawawi++ | [runpugs] html is now xhtml and now validates with less errors
r17872 | azawawi++ | [runpugs] added more documentation to JS code
diff: dev.pugscode.org/changeset/17872
lambdabot Title: Changeset 17872 - Pugs - Trac
20:15 willo left 20:20 cognominal_ left 20:21 cognominal_ joined 20:27 jisom joined 20:31 weinig left 20:34 pelagic joined 20:38 Blwood left 20:46 jisom_ joined 20:56 pelagic left 20:58 willo joined 21:03 jisom left 21:05 Blwood joined 21:11 [particle1 joined 21:16 pmurias left 21:23 [particle] left 21:26 Aankhen`` left 21:33 Blwood left
pugs_svnbot r17873 | ryporter++ | Stricter pattern matching before calling mungeChainSub(). Prevents "Irrefutable pattern failed" errors that were showing up in unit tests in value-equivalence.t. 21:35
diff: dev.pugscode.org/changeset/17873
lambdabot Title: Changeset 17873 - Pugs - Trac
21:42 weinig joined 21:46 iblechbot left 21:50 [particle] joined 22:02 [particle1 left 22:13 Blwood joined, [particle1 joined 22:29 ahmadz left 22:30 [particle] left 22:34 justatheory left 22:35 justatheory joined 22:37 justatheory left 22:47 Limbic_Region joined 22:51 ahmadz joined
ahmadz hi * 22:51
22:56 penk left 23:04 ahmadz left 23:05 penk joined 23:09 BinGOs left 23:12 devogon left 23:21 weinig left 23:22 riffraff left 23:25 hkb_zz is now known as hakobe 23:30 weinig joined 23:37 bsb joined 23:44 rhr joined 23:48 polettix is now known as poletti 23:51 poletti is now known as polettix, polettix left 23:52 Blwood left 23:59 Limbic_Region left