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:22 szbalint left 00:30 Schwern joined 00:53 |Jedai| left 00:56 DarkWolf84 left, DarkWolf84 joined 01:11 Limbic_Region left 01:24 SubStack left 01:26 DarkWolf84 left 01:27 DarkWolf84 joined
pugs_svnbot r17110 | Darren_Duncan++ | ext/Muldis-DB/ : updated Literal.pm and PhysType.pm to rename collection-type classes from Sel|NQ|AQ suffixes 01:31
diff: dev.pugscode.org/changeset/17110
01:32 DarkWolf84 left 01:33 DarkWolf84 joined 01:57 stevan_ joined 02:01 qmole left 02:02 qmole joined 02:07 qmole left, qmole joined 02:12 stevan__ left 02:14 qmole left 02:24 kanru joined 02:26 qmole joined 02:31 SubStack joined 02:32 thorat left 02:49 bonesss left 02:56 ofer left 03:04 perlMa joined, buetow left 03:05 perlMa left 03:06 f0rth joined 03:07 drbean joined
TimToady bloonix: currently works as follows: 03:10
?eval my %a = a => 1; my %b = b => 2; sub foo (*%hash) { say %hash.keys }; foo(|%a,|%b)
evalbot_r17041 OUTPUT[ab␤] Bool::True
03:11 ofer joined
TimToady thud & 03:12
03:33 mako132_ left 03:41 JarJarBi1ks joined
pugs_svnbot r17111 | Darren_Duncan++ | ext/Muldis-DB/ : this is the Perl 6 equivalent of what will end up on CPAN as Muldis::DB version 0.2.0 for Perl 5 03:47
diff: dev.pugscode.org/changeset/17111
03:52 JarJarBinks left 03:58 xinming left, xinming joined 04:31 Entonian joined 04:41 bonesss joined 04:42 bonesss left 04:45 jedai joined 05:09 amnesiac joined 05:10 weinig left 05:11 justatheory left 05:18 Schwern left 05:28 jisom joined 05:39 weinig joined 05:42 weinig left, weinig joined 06:26 JarJarBinks joined 06:37 JarJarBi1ks left 06:40 funktio joined, funktio left 06:41 Aankh|Clone is now known as Aankhen`` 06:48 daxim left, daxim joined 07:19 Entonian left 07:27 weinig left 07:28 wilx joined 07:32 [particle1 joined 07:40 masak joined 07:49 iblechbot joined 07:50 [particle] left 08:02 |Jedai| joined, xinming left 08:06 scw left, scw joined 08:12 daxim_ joined 08:15 xinming joined 08:16 jrockway left, daxim left 08:17 jrockway joined
meppl good morning 08:19
08:20 Azure-BOT left, jedai left
masak meppl: morning 08:20
08:22 Schwern joined
meppl good morning masak 08:24
08:25 Patterner left
masak meppl: are you in Germany? 08:28
(as opposed to Asia or the US, as some of this channel's residents) 08:29
meppl yes yes
masak that would be why our mornings occur at the same time :)
meppl ;)
08:30 Psyche^ joined, Psyche^ is now known as Patterner 08:48 iblechbot left 08:52 xerox joined
xerox Is it here where a bot yells on svn commits? 08:52
How is it called/where can I get it/how do I configure it? :-D
integral points at pugs_svnbot 08:57
it's in the pugs source tree somewhere
xerox it runs on pugs?
integral I believe so
bloonix morning
masak bloonix: morning 09:00
bloonix a really nice day to sit on the balcony and do a bit p6 :) 09:02
xerox ok thanks integral
09:05 masak left
xerox integral: do you know if the bot must reside on the same server as the repo is? 09:07
09:08 kane__ joined, kane_ left
integral I'm pretty sure not. 09:09
xerox cool
what's the pipeline of commands to get pugs nowadays? 09:10
09:10 masak joined
_moritz_ wolverian: it's not yet automatically updated 09:13
xerox: do you want to build it, or just use it? 09:14
xerox I want to use it for the pubs_svnbot thing
(on FreeBSD) 09:15
09:16 DarkWolf84 left 09:17 drupek12 left
xerox _moritz_: any idea? (: 09:17
09:18 turrepurre left 09:21 unobe_away is now known as unobe 09:22 unobe is now known as unobe_away
xerox _moritz_: I think you were going on to suggest something... ? (: 09:23
09:23 drupek12 joined
_moritz_ xerox: sorry, was afk... 09:24
xerox no problem
09:24 unobe_away is now known as unobe
_moritz_ I don't think there are binaries for freebsd, you have to get the repository and follow INSTALL 09:24
xerox okay 09:25
09:28 Aankhen`` left
xerox thanks _moritz_ 09:31
masak this morning's discussion question: what, in your view, makes sigils worth their weight 09:34
python and ruby has dropped them 09:35
and php uses it without understanding why
perl uses it to distinguish scalars, arrays, hashes
and also to make interpolation of vars possible
(with no extra syntax) 09:36
09:36 unobe is now known as unobe_away 09:37 szbalint joined
xerox integral: find . -iname ".*bot.*" doesn't find anything, where is the svn_pugsbot' 09:49
?
pugs_svnbot either
_moritz_ in examples/network/ iirc 09:50
xerox yes! svnbot.pl okay
how do you turn on the debug messages? 09:54
_moritz_ I don't know... it's turned on for me by default 09:56
xerox maybe you know how to install Net/IRC.pm on freebsd? 09:57
09:58 unobe_away is now known as unobe 10:06 unobe is now known as unobe_away 10:07 dduncan left 10:14 buetow joined 10:19 amnesiac left
_moritz_ if you type "make" on the top level directory, it is built into blib6/ somewhere 10:19
10:23 masak left 10:25 chris2 joined
_moritz_ and then you can run it with pugs -I$path_to_lib 10:25
10:36 Southen joined
bloonix *** Must only use named arguments to new() constructor 10:40
dont understand it
submethod BUILD (*$var) {
...
Test.new('foo');
10:49 xerox left 10:54 masak joined 10:55 riffraff joined 10:57 masak left
pasteling "bloonix" at 87.79.229.74 pasted "#!/usr/bin/pugs module Foo; su" (16 lines, 250B) at sial.org/pbot/26430 10:57
TimToady bloonix: positional args aren't composable. BUILD is required to be named, and the default new can only understand named, but you are free to write your own new in any order you like. 11:14
bloonix TimToady: I dont understand what "named" means :/ 11:15
TimToady well, first, you can't put a submethod into a module, because it needs a class instead, presumably with some attributes 11:16
it's the names of the attributes that you use
class Point { has $.x; has $.y; }; Point.new(x => 1, y => 2) 11:17
bloonix svn.pugscode.org/pugs/ext/File-Find...le/Find.pm 11:18
I look into this mod for example and though its possible 11:19
11:19 perlMa joined
TimToady fixed 11:21
bloonix++
pugs_svnbot r17112 | lwall++ | s/module/class/ in File::Find
diff: dev.pugscode.org/changeset/17112
bloonix I have to read S12 again do understand the difference between modules | classes ! 11:23
or maybe another synopsis is better? 11:24
TimToady @tell masak two other reasons for sigils: to distinguish nouns from verbs (the absence of the sigil indicating either a verb or a type) and finally sigils open up an extensible namespace for twigils, in case you want to add more weirdly scoped variables 11:25
lambdabot Consider it noted.
TimToady bloonix: yes, the synopses tend to be long on what and short on why
biab 11:26
bloonix synopsis => what, apocalype => why ?
what and why 11:27
where can I look for a description "why" class and "why" module ?
11:30 iblechbot joined
pasteling "bloonix" at 87.79.229.74 pasted "#!/usr/bin/pugs module Test; h" (27 lines, 362B) at sial.org/pbot/26431 11:32
TimToady a module is really just a package with a different name so that we can 1) distinguish p5 from p6 and 2) have a different export mechanism
bloonix why is that possible?
it shouldn't, or? 11:33
TimToady shouldn't I think
sec, have to check if taxi is here for airport 11:34
bloonix :)
11:35 kane__ left
TimToady no, not yet 11:36
11:36 kane_ joined 11:37 kane_ left 11:38 kane_ joined 11:39 kane_ left, kane_ joined
TimToady basically, p5 didn't distinguish packages from classes, and it turned out to be very confusing, along with not distinguishing subs from methods. 11:39
arguably, since a class can also be used as a module, modules are redundant 11:40
and since we fixed sub vs method, less confusing
but I think it's useful to be able to group non-OO subs in a place that explicitly indicates no constructors need be autogenerated 11:41
package is the same as module, but doesn't support "is export"
taxi here &
bloonix have a good fly 11:42
11:55 theorbtwo left 11:57 theorbtwo joined 12:00 Belaf joined 12:12 icy-lisper joined 12:19 perlMa left 12:24 elmex joined 12:35 pmurias joined 12:36 hcchien left 12:42 hcchien joined 12:47 theorbtwo left, hcchien left 12:48 hcchien joined, icy-lisper left 12:54 hcchien left, hcchien joined 13:10 hcchien left, hcchien joined
pmurias hi, 13:30
what is the syntax for changing the metaclass for a class? 13:31
i meant specifing 13:32
13:40 theorbtwo joined 13:44 Limbic_Region joined
pmurias not nessesarly one which works in pugs, as i mean to implement it in kp6 13:45
13:48 jisom left, jisom joined 13:51 kanru left 13:55 kane__ joined 14:09 Belaf_ joined 14:12 kanru joined 14:13 kane_ left 14:15 kane_ joined 14:20 kane__ left 14:22 xinming left 14:25 Belaf left
pugs_svnbot r17113 | pmurias++ | kp6: 14:29
r17113 | pmurias++ | fixed test plans
r17113 | pmurias++ | one can now specify the metaclass with the nonstandard
r17113 | pmurias++ | class Foo meta Bar {...} syntax
diff: dev.pugscode.org/changeset/17113
14:34 xinming joined 14:44 kane__ joined 14:52 Belaf__ joined 14:56 justatheory joined 14:59 kane_ left 15:00 Belaf_ left
bloonix Bool will be 1 or 0 ? or any char as well? 15:01
?eval my Bool $bool; say $bool.WHAT 15:03
evalbot_r17041 OUTPUT[Bool␤] Bool::True
bloonix ?eval my Bool $bool; $bool = 1; say $bool.WHAT
evalbot_r17041 OUTPUT[Int␤] Bool::True
bloonix when is $bool Bool? 15:05
15:06 kane_ joined
pmurias bloonix: hi 15:12
Bool is a false or true value
bloonix that means that Bool is all about 0 and undef? 15:13
no
pmurias Bool can be either Bool::True or Bool::False
0 and undef get convered to Bool::False 15:14
1 and 'a' and [1,2,3] get converted to Bool::True 15:15
clear?
;)
bloonix yes
?eval my $bool = 1; $bool ~~ /[01]/; 15:16
evalbot_r17041 Match.new(␤ ok => Bool::False, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
bloonix whats wrong here?
wolverian [] doesn't do what you think it does 15:17
see S05 :)
bloonix wtf :) 15:18
15:19 justatheory left
bloonix ?eval my $bool = 1; $bool ~~ /<[01]>/; 15:20
evalbot_r17041 Match.new(␤ ok => Bool::True, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤) 15:21
pmurias RTFM ;), seriously the regex are totaly changed
wolverian isn't it reat :)
pmurias perlcabal.org/syn/S05.html
lambdabot Title: S05
wolverian +g
pmurias i was too slow :(
wolverian: reat means? 15:22
wolverian see the +g :)
15:23 kane__ left
bloonix pmurias: until now I though p5 regexes are compliant with p6 regexes. 15:23
?eval my $bool = 1; $bool ~~ /^<[01]>\z/;
evalbot_r17041 Match.new(␤ ok => Bool::False, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
pmurias ?eval my $bool = 1; $bool ~~ /^<[01]>\z/;
evalbot_r17041 Match.new(␤ ok => Bool::False, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
bloonix lol 15:24
pmurias ?eval my $bool = 1; $bool ~~ :p5/01/
bloonix ?eval my $bool = 1; $bool ~~ /^<[01]>/;
evalbot_r17041 Match.new(␤ ok => Bool::True, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
bloonix ?eval my $bool = 1; $bool ~~ /^<[01]>$/;
evalbot_r17041 Match.new(␤ ok => Bool::False, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
bloonix # no more \A or \z 15:25
pmurias ?eval my $bool = 1; $bool ~~ m:p5/01/
?eval my $bool = 1; $bool ~~ m:p5/[01]/
wolverian uh..
try without the space
pmurias ?eval my $bool = 1; $bool ~~ m:p5/[01]/
evalbot_r17041 *** Cannot parse regex: [01]␤*** Error: Error: Error in rule: unknown parameter 'p5' at /home/audreyt/pugs/perl5/Pugs-Compiler-Rule/lib/Pugs/Runtime/Match/HsBridge.pm line 37␤␤Match.new(␤ ok => Bool::False, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
wolverian I think it's :perl5
pmurias ?eval my $bool = 1; $bool ~~ m:perl5/[01]/
evalbot_r17041 Match.new(␤ ok => Bool::True, ␤ from => 0, ␤ to => 1, ␤ str => "1", ␤ sub_pos => (), ␤ sub_named => {}␤) 15:26
15:26 jisom left
pmurias ?eval my $bool = 1; $bool ~~ m:Perl5/[01]/ 15:26
evalbot_r17041 Match.new(␤ ok => Bool::True, ␤ from => 0, ␤ to => 1, ␤ str => "1", ␤ sub_pos => (), ␤ sub_named => {}␤)
bloonix ?eval my $bool = 1; $bool ~~ /^<[01]>?$/;
evalbot_r17041 Match.new(␤ ok => Bool::False, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
pmurias the synopsis mentions :Perl5/:P5
bloonix ?eval my $bool = 1; $bool ~~ /^1?$/;
evalbot_r17041 Match.new(␤ ok => Bool::True, ␤ from => 0, ␤ to => 1, ␤ str => "1", ␤ sub_pos => (), ␤ sub_named => {}␤)
bloonix ?eval my $bool = 1; $bool ~~ /^1$/; 15:27
evalbot_r17041 Match.new(␤ ok => Bool::True, ␤ from => 0, ␤ to => 1, ␤ str => "1", ␤ sub_pos => (), ␤ sub_named => {}␤)
bloonix ?eval my $bool = 1; $bool ~~ /^<[01]>?$/;
evalbot_r17041 Match.new(␤ ok => Bool::False, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
bloonix dont understand that
?eval my $bool = 1; $bool ~~ /^<[01]>$/; 15:28
evalbot_r17041 Match.new(␤ ok => Bool::False, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
bloonix ?eval my $bool = 1; $bool ~~ /^ <[01]> $/;
evalbot_r17041 Match.new(␤ ok => Bool::False, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
bloonix I hate try and error :)
?eval my $bool = 1; $bool ~~ /^ <[0-1]> $/;
evalbot_r17041 Match.new(␤ ok => Bool::False, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
15:32 amnesiac joined
bloonix ?eval my $bool = 1; $bool ~~ /^ \d $/; 15:34
evalbot_r17041 Match.new(␤ ok => Bool::False, ␤ from => 0, ␤ to => 0, ␤ str => "", ␤ sub_pos => (), ␤ sub_named => {}␤)
15:36 riffraff left
bloonix ?eval my $bool = 1; say "ok" if $bool ~~ /^<[01]>$/; 15:41
evalbot_r17041 undef
bloonix thats confusing. in my script it prints ok 15:42
15:45 marmic left
rhr I've heard it said that character classes are broken in evalbot for some reason... 15:46
I like the "Error: Error: Error" message though :) 15:48
15:50 marmic joined
bloonix 'Cos Perl patterns induce complete brain overload 15:53
(Bob Dylan)++
:)
?eval my $s = 'bar'; say 'ok' if $s ~~ /^[foo|bar|baz]$/; 16:12
evalbot_r17041 OUTPUT[ok␤] Bool::True
16:17 xinming left
pmurias @seen fglock 16:33
lambdabot Last time I saw fglock was when I left #perl6 22d 22h 4m 40s ago, and .
16:34 franck___ joined
pmurias has a couple of things to discuss with fglock 16:37
16:39 Limbic_Region left 16:43 rho joined 17:05 franck___ left 17:27 lvh joined 17:28 DarkWolf84 joined 17:29 lvh is now known as lvh|garden 17:35 masak joined 17:38 crem_ left 17:39 crem_ joined 17:42 crem_ left
pugs_svnbot r17114 | pmurias++ | kp6: $::Foo = Class->new(); in emitted code 17:51
diff: dev.pugscode.org/changeset/17114
17:51 rho left 17:52 rho joined 17:54 justatheory joined 17:57 Psyche^ joined 17:58 xinming joined 18:06 justatheory left 18:07 theorbtwo left 18:08 justatheory joined 18:10 theorbtwo joined 18:14 Patterner left, Psyche^ is now known as Patterner 18:28 rho left 18:49 chris2 left 18:52 Belaf_ joined, Belaf__ left 19:08 jisom joined
pmurias _moritz_: ruby uses sigils a bit 19:23
although their meaning is different 19:24
masak pmurias: that's true. ruby uses the sigils for OO purposes 19:25
lambdabot masak: You have 1 new message. '/msg lambdabot @messages' to read it.
masak @messages
lambdabot TimToady said 8h 53s ago: two other reasons for sigils: to distinguish nouns from verbs (the absence of the sigil indicating either a verb or a type) and finally sigils open up an extensible
namespace for twigils, in case you want to add more weirdly scoped variables
masak good reasons. 19:26
pmurias i was blinded a bit by the lack of sigils when i looked the first few times at ruby code 19:29
masak :)
habit is an important part of language comprehension. that's why it's difficult for me nowadays to remember how little Esperanto people can understand before they've learned it 19:30
19:30 offby1 left 19:31 mugwump_pdx joined 19:38 mugwump_pdx left 19:41 rindolf joined 19:45 dduncan joined 19:49 jisom_ joined 19:57 thorat joined 19:58 unobe_away is now known as unobe 20:05 masak left 20:06 jisom left, unobe is now known as unobe_away 20:07 Blwood joined 20:14 unobe_away is now known as unobe, unobe is now known as unobe_away 20:16 Jmax left 20:18 lvh|garden left 20:27 amnesiac left 20:43 Belaf_ left 20:46 DarkWolf84 left, DarkWolf84 joined 20:52 DarkWolf84 left 20:55 iblechbot left 21:09 pugs_svnbot left 21:10 wolverian left 21:11 pmurias left 21:12 wolverian joined 21:17 pugs_svnbot joined 21:28 DarkWolf84 joined 21:29 evalbot_r17041 joined 21:32 crashmatrix left 21:54 dmq joined 22:00 rindolf left 22:05 demq left
meppl good night 22:16
22:46 Blwood left 22:55 bonesss joined
pugs_svnbot r17115 | Darren_Duncan++ | ext/Muldis-DB/ : fixed a few documentation bugs 23:21
diff: dev.pugscode.org/changeset/17115
23:21 |Jedai| is now known as jedai 23:23 Aankhen`` joined 23:38 fglock joined
fglock hi 23:39
lambdabot fglock: You have 1 new message. '/msg lambdabot @messages' to read it.
fglock @tell moritz re unsafe operations in kp6, not yet i think 23:41
lambdabot Consider it noted.
23:54 revdiablo left 23:57 revdiablo joined