»ö« 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! Set by sorear on 4 February 2011. |
|||
00:02
Eth4n joined
00:03
Eth4n left
00:05
ethndbst left
00:14
fridim_ left
00:18
buubot_backup joined
00:20
ethndbst joined,
ethndbst left,
ethndbst joined
00:22
buubot_backup left
00:35
ethndbst left,
ethndbst joined
00:37
wolfman2000 joined
00:44
_jaldhar left
00:46
buubot_backup joined
00:47
localhost left
00:49
localhost joined
|
|||
sorear | What are the popular P5 XML libs? | 00:50 | |
colomon | o/, sorear | 00:51 | |
sorear | o/ colomon. | ||
colomon | how are things? | ||
00:53
Ingis left
|
|||
sorear | colomon: not bad | 00:53 | |
tkr | sorear: XML::LibXML | 00:54 | |
diakopter | sorear: I've used XML::Smart | ||
sorear is reading the XML::LibXML documentation | 01:02 | ||
tkr: new here? | |||
01:04
Transformer joined,
Transformer left,
aloha left
|
|||
tkr | sorear: Ive been here before. Why are you asking? | 01:08 | |
sorear | 'cause I need to weclome the new folks :) | 01:09 | |
tkr | Ah. | ||
Thanks. :) | 01:10 | ||
hugme: hug sorear | 01:11 | ||
hugme hugs sorear | |||
01:15
ethndbst left
01:22
buubot_backup left
01:23
am0c joined,
bluescreen10 left
01:27
bluescreen10 joined
01:33
bluescreen10 left
01:39
ab5tract left
01:43
buubot_backup joined
01:46
bluescreen10 joined
01:47
Ingis joined
01:51
aglenday joined
01:58
buubot_backup left
02:05
aglenday left
02:17
_jaldhar joined
02:21
darkstrik joined
02:23
darkstrik left
02:24
darkstrik joined
02:25
darkstrik left
02:26
darkstrik joined
02:27
molaf joined
02:34
darkstrik left
02:35
darkstrik joined
02:37
Guest25363 left
|
|||
sorear | aaa this DOM stuff confuses me | 02:42 | |
02:42
darkstrik left
02:48
am0c left
02:54
packetknife joined
03:00
drbean left
|
|||
sorear | :| | 03:00 | |
03:01
packetknife left
03:02
drbean joined
|
|||
sorear | tkr: I can't quite figur out how to do anything useful with XML::LibXML... nodePath is returning useless stuff like /*/*[1] instead of names | 03:02 | |
arnsholt | sorear: I find SAX parsing to be just as easy to deal with as DOM in some cases | 03:10 | |
Dunno if it fits your particular need, but it might | |||
03:13
drbean left
|
|||
sorear | I'm quite new to this XML processing stuff. | 03:14 | |
it seems... unnecessarily complicated | 03:15 | ||
03:15
drbean joined
|
|||
diakopter | :) | 03:16 | |
arnsholt | Yeah, XML can be a bit too much | 03:21 | |
flussence | one thing that makes LibXML more tolerable for me is going crazy with wrapper functions | 03:22 | |
diakopter | sorear: I think I've come up with a way to use lua(jit)'s registry as a store for automatic memory mgmt of Lua objects (including generic userdata buffers) from C | ||
arnsholt | But the advantage with SAX (XML::SAX on CPAN is what I use) is that it just calls a method on your object whenever it sees an opening tag for example | ||
Which lets you extract pretty much exactly what you want without too much digging about in the document structure | |||
flussence | e.g. "sub tags_only { grep { $_->nodeType == some_uppercase_thingy } @_ }" etc | ||
arnsholt | I usually do something along the lines of sub "start_element { given($_[1]->{LocalName}) { ... } }" | 03:24 | |
Add some state to your handler object, and I'm usually done | |||
flussence needs to look into the SAX parser some time, at $dayjob I've got an ugly mess of DOM calls that add up to 1 read pass of the input... | 03:27 | ||
arnsholt | Hehe | ||
SAX has the added benefit of using less memory for large documents as well, since you only have to represent whatever you care about ATM, rather than the whole mess of XML | 03:28 | ||
03:28
clairvy joined
|
|||
flussence | it was worse before I got it to that state; the guy who originally wrote it used getElementsByTagName and grep. :( | 03:29 | |
arnsholt | Tasty. Probably a quick way to get the code written, but probably not very fast either if the XML gets big | ||
sorear | arnsholt++ | 03:35 | |
flussence | (I get the fun of maintaining a codebase where large parts were written by an old-school C guy in the pre-5.8 era. Every so often I discover a surprise like that one, or something horrible involving bitmasks and syscalls...) | ||
sorear pines for .gist | 03:36 | ||
03:43
_jaldhar left
03:53
_jaldhar joined
04:00
ethndbst joined,
ethndbst left,
ethndbst joined
|
|||
sorear | yay! XML::SAX is working well arnsholt++ | 04:00 | |
04:20
packetknife joined
04:29
agentzh joined
04:30
drbean left
|
|||
dalek | ecs: d2a7270 | duff++ | S05-regex.pod: Minor typo |
04:34 | |
04:37
drbean joined
05:08
Chillance left
05:12
drbean left
05:16
orafu left
05:18
orafu joined,
drbean joined
05:26
mantovani left
05:27
mantovani joined
05:57
drbean left
06:02
drbean joined
06:11
packetknife left
|
|||
sorear | TimToady: found a nit(?) in S05's character class stuff | 06:27 | |
TimToady: at line 1645, it talks about arguments to pairs being used as smartmatchers. But there's no general ACCEPTSy way to implement Unicode's fuzzy property match rules ("ASCII" !~~ "ascii") | 06:28 | ||
TimToady: I'm going to interpret this as "Str is special-cased to use Unicode fuzzy matching, everything else gets ACCEPTs" | |||
TimToady: is this an intendable interpretation? | 06:29 | ||
06:31
woosley joined
|
|||
diakopter | sorear: did you see my msg about lua gc | 06:35 | |
06:42
mkramer joined
|
|||
sorear | diakopter: yes | 06:48 | |
diakopter: question? | 06:49 | ||
or, context? | |||
diakopter | I wanted to run the idea by you | ||
sanity check | |||
do you know about the registry? | |||
sorear | yes | ||
06:49
zby_home_ joined
|
|||
diakopter | sorry, thinking/typing | 06:51 | |
sorear | I think that's what the registry is _for_ | ||
diakopter | right.. | ||
sorear | www.lua.org/pil/27.3.html | ||
diakopter | right, I have pil 2nd ed | 06:52 | |
I want to reimplement all the "classes" I have in lua/runtime as userdata types | |||
then, to make the userdata refer to each other, but to work with the GC properly, | 06:53 | ||
06:54
clairvy left,
jimmy1980 joined
|
|||
diakopter | stash the other userdata' Registry int index in the userdata | 06:54 | |
06:54
clairvy joined
|
|||
diakopter | so that every userdata's methods can access its members via the Registry. Each userdata would need a __gc method that would also release those references | 06:55 | |
so, every slot in a userdata that refers to a lua object (userdata or not) would have an entry in the Registry | 06:56 | ||
sorear | 1. this will be very slow because the Lua C API has a *huge* impedance mismatch with the internal representations | 06:58 | |
06:58
clairvy left
|
|||
sorear | 2. this will leak memory with user-level circular references | 06:58 | |
3. __gc is a pessimized path in the lua runtime | 06:59 | ||
other than that it will work. | |||
diakopter | :P | ||
I understand 1,3 but 2 is escaping me | 07:00 | ||
sorear | it's basically the same issue as reference counting | 07:01 | |
imagine you have two objects A and B, A has a slot referring to B and vice versa | |||
when the GC runs, it sees that both A and B are referred to from the registry, so it can't free either one | 07:02 | ||
diakopter | I follow you, but how would those objects be left dangling like that | 07:04 | |
sorear | my $a = []; push $a, $a; | 07:05 | |
07:06
[Sec] left
|
|||
sorear | Perl 5 calls this DIHWIDT, but we need to do better in this century | 07:07 | |
diakopter | so, you're saying when $a goes out of scope, ... what | 07:08 | |
sorear | exactly | 07:09 | |
07:09
sayu joined
|
|||
diakopter | ..? | 07:09 | |
sorear | under your proposal, the memory for the array is retained forever. | 07:10 | |
07:10
clairvy joined
|
|||
diakopter | why wouldn't the reference be released when __gc is called on $a ? | 07:10 | |
sorear | because __gc won't be called on $a | 07:11 | |
diakopter | why not? | ||
sorear | __gc is only called after the last reference goes away | ||
there's a reference in the registry | |||
chicken and egg | |||
07:12
[Sec] joined
|
|||
diakopter | well hm, there would need to be a go-out-of-scope finalizer that did the same thing as the __gc hook | 07:13 | |
called from the runtime | |||
sorear | that would not help at all | 07:15 | |
{ my $a = []; push $a, $a; $a = Any; } # what does your finalizer get called on? | 07:16 | ||
diakopter | wouldn't it release all the direct references in $a ? | ||
diakopter looks | |||
sorear | my $foo = [1,2,3]; { my $b = $foo; } # $b goes out of scope, oops you just broke Perl6 | ||
07:20
drbean left
|
|||
diakopter | hrm | 07:24 | |
07:24
mkramer left
|
|||
diakopter | ok; thanks for the sanity check :) | 07:24 | |
07:24
mkramer joined
07:25
mkramer left
07:26
drbean joined
07:32
wk joined
07:41
thou left
07:42
molaf left
07:48
wk left
08:02
TiMBuS left
08:03
TiMBuS joined
08:16
TiMBuS left,
TiMBuS joined
08:18
drbean left
08:25
fridim_ joined,
drbean joined
08:27
wk joined
08:32
mishin_ joined,
mishin__ joined
08:36
woosley left
08:38
drbean left
08:43
drbean joined
08:49
wk left
08:50
Kivutarrr joined
08:56
mishin_ left,
mishin__ left
08:59
fridim_ left
09:11
clairvy left
09:16
pmurias joined
09:30
mkramer joined,
mkramer left
09:34
pmurias left
09:36
pmurias joined
09:37
wk joined
|
|||
moritz | \o | 09:41 | |
tadzik | \o | ||
09:43
jimmy1980 left
09:44
sayu left
09:48
pmurias left
09:49
jimmy1980 joined
09:52
pmurias joined
09:55
drbean left
10:00
drbean joined
10:05
pmurias left,
jimmy1980 left
10:06
pmurias joined
10:10
jimmy1980 joined
10:12
wk left
10:14
pmurias left
|
|||
Woodi | so what algorithm is used in Rakudo and Niecza for vars GC ? | 10:15 | |
10:16
pmurias joined
|
|||
moritz | rakudo uses parrot's GC, and niecza uses mono's GC | 10:17 | |
10:27
pmurias left
10:29
pmurias joined
10:33
MayDaniel joined
10:34
pmurias left
10:35
pmurias joined
10:42
carlin joined
10:45
pmurias left
10:47
pmurias joined
10:51
pmurias left
10:53
pmurias joined
10:58
mj41 joined
11:00
pmurias left
11:02
pmurias joined
11:04
mj41 left
11:05
drbean left
11:06
ksi joined
11:11
drbean joined
|
|||
pmurias | awwaiid: hi | 11:23 | |
11:29
pmurias left
11:32
pmurias joined
11:33
wk joined
11:37
pmurias left
11:38
pmurias joined
11:44
clairvy joined
11:51
pmurias left
11:52
pmurias joined
12:01
buubot_backup joined
12:11
pmurias left,
Psyche^ joined
12:12
Patterner left,
Psyche^ is now known as Patterner
12:13
bacek joined,
pmurias joined
12:16
Trashlord left
12:17
Trashlord joined
12:18
pmurias left
12:19
pmurias joined
|
|||
dalek | p/bigint: ae25d33 | moritz++ | / (3 files): add nqp::tonum_I opcode, tests |
12:26 | |
p/bigint: 59a8cfe | moritz++ | src/ops/nqp_bigint.ops: factor out mp_int -> FLOATVAL conversion into a static subroutine, reuse it in other ops |
|||
12:32
drbean left
12:39
drbean joined
12:48
clairvy left
12:49
clairvy joined,
pmurias left
|
|||
dalek | kudo/bigint: db5d137 | moritz++ | src/core/Rat.pm: save a call in Rat.new |
12:52 | |
kudo/bigint: 9342c1c | moritz++ | / (2 files): make use of the improve bigint -> float conversion |
|||
12:53
pmurias joined,
clairvy left
13:03
Kivutarrr left
13:08
pmurias left
13:11
pmurias joined
13:16
agentzh left
13:23
pmurias left
13:25
pmurias joined
13:30
pmurias left
13:31
pmurias joined,
mkramer joined,
mkramer left
13:35
pmurias left
13:37
pmurias joined
13:48
pmurias left
13:51
pmurias joined,
whiteknight joined
13:52
wubo joined,
whiteknight is now known as Guest23043
13:57
drbean left,
pmurias left
|
|||
awwaiid | hi | 13:58 | |
pmichaud, | |||
er | |||
hm | |||
13:59
pmurias joined
14:01
clairvy joined
14:03
drbean joined,
clairvy left
14:04
clairvy joined,
pmurias left
14:06
pmurias joined,
clairvy left
14:07
clairvy joined
14:10
sayu joined,
clairvy left
14:11
clairvy joined
14:18
clairvy left
14:19
clairvy joined
14:21
pmurias left,
clairvy left
14:22
clairvy joined
14:23
buubot_backup left
14:24
pmurias joined
14:26
lichtkind joined
14:28
clairvy left,
clairvy joined,
clairvy left
14:30
clairvy joined
14:31
pmurias left
14:32
clairvy left,
clairvy joined
14:33
pmurias joined,
clairvy left
14:34
clairvy joined
14:39
pmurias left,
clairvy left
14:40
clairvy joined
14:41
clairvy left,
pmurias joined,
clairvy joined
14:50
vmspb joined
14:53
wubo left,
clairvy left
|
|||
pmurias | awwaiid: Devel::ebug::HTTP seems to be a bit bitroten? | 14:53 | |
awwaiid: what should i do fork it on github and fix up? | |||
14:54
zby_home__ joined,
clairvy joined
14:55
zby_home_ left,
clairvy left,
clairvy joined
14:58
sftp_ left
15:00
tokuhirom joined
15:01
clairvy left,
sftp_ joined,
clairvy joined
15:02
pmurias left
15:04
sayu left
15:05
pmurias joined,
clairvy left,
sayu joined
15:06
clairvy joined
15:12
Guest23043 left,
clairvy left,
pmurias left,
clairvy joined
15:14
pmurias joined,
clairvy left
15:15
clairvy joined
15:18
buubot_backup joined
15:19
pmurias left,
clairvy left
15:20
clairvy joined
15:21
pmurias joined
15:22
buubot_backup left,
tokuhirom left
15:23
sayu left,
clairvy left
15:24
clairvy joined
15:27
sayu joined
|
|||
awwaiid | pmurias, Devel::ebug::HTTP is a separate distro that I haven't put on github | 15:27 | |
15:27
clairvy left
|
|||
awwaiid | so if you're wanting to fix it, you'll have to start with the .tar.gz from cpan. I haven't yet successfully built it myself. | 15:28 | |
15:28
clairvy joined
|
|||
awwaiid | I am working on Plack::Middleware::Scrutinize as my http GUI (I'll make a standalone version too), but haven't gotten very far yet | 15:28 | |
pmurias, I was just writing you an email | 15:30 | ||
15:30
clairvy left
15:31
clairvy joined
15:41
bluescreen10 left
15:42
jimmy1980 left,
clairvy left,
bluescreen10 joined
15:43
clairvy joined
15:49
jimmy1980 joined,
clairvy left
15:50
pmurias left,
clairvy joined
15:52
pmurias joined,
clairvy left,
clairvy joined
15:58
clairvy left
15:59
clairvy joined,
pmurias left
16:01
pmurias joined,
clairvy left
16:02
clairvy joined,
sayu left
16:03
clairvy left,
clairvy joined,
clairvy left
16:05
clairvy joined
16:07
clairvy left,
clairvy joined
16:15
Trashlord left
16:16
Trashlord joined,
clairvy left,
clairvy joined
16:21
jimmy1980 left
16:22
pmurias left
16:23
pmurias joined,
clairvy left
16:25
clairvy joined,
clairvy left,
clairvy joined
16:26
jimmy1980 joined,
drbean left,
donaldh joined
16:31
drbean joined
16:32
pmurias left,
clairvy left
16:33
clairvy joined
16:34
pmurias joined
16:39
pmurias left,
clairvy left
16:40
clairvy joined
16:41
pmurias joined,
clairvy left
16:42
clairvy joined
16:49
alvis left
16:51
alvis joined
16:54
pmurias left,
clairvy left
16:55
clairvy joined
16:57
vmspb left,
clairvy left,
clairvy joined,
clairvy left,
pmurias joined
16:58
clairvy joined,
clairvy left,
clairvy joined
17:00
molaf joined,
clairvy left
17:05
clairvy joined
17:06
clsn left
17:07
Sarten-X left,
clairvy left
17:09
alvis left
17:10
clsn joined,
clairvy joined
17:11
donaldh left,
whiteknight joined
17:12
whiteknight is now known as Guest20438
17:13
benabik joined,
clairvy left
17:15
Sarten-X joined
17:21
alvis joined
17:22
clairvy joined
|
|||
dalek | ast: 16bc94a | tadzik++ | S04-statements/for.t: Add passing test for RT #78232 |
17:31 | |
17:31
clairvy left
|
|||
tadzik | rt.perl.org/rt3/Ticket/Display.html?id=78232 closable | 17:32 | |
17:35
benabik left,
benabik joined,
clairvy joined
|
|||
tadzik | Warning: we regressed on rt.perl.org/rt3/Ticket/Display.html?id=69482 | 17:36 | |
17:36
clairvy left
17:37
kfo_ joined
17:39
wk left
17:41
pmurias left,
kfo left
|
|||
dalek | ast: 8e9b28a | tadzik++ | S03-operators/is-divisible-by.t: Test for RT #76170 |
17:42 | |
tadzik | rt.perl.org/rt3/Ticket/Display.html?id=76170 closable | ||
17:43
pmurias joined
|
|||
tadzik | rt.perl.org/rt3/Ticket/Display.html?id=76466 maybe-closable | 17:45 | |
17:46
clairvy joined,
clairvy left,
bluescreen10 left
|
|||
dalek | ast: 70c5eb7 | tadzik++ | S14-roles/mixin.t: Tests for RT #77184 |
17:49 | |
tadzik | rt.perl.org/rt3/Ticket/Display.html?id=77184 closable | ||
17:52
clairvy joined
|
|||
dalek | ast: 9219d0e | tadzik++ | S32-str/numeric.t: Test for RT #100778 |
17:54 | |
17:54
clairvy left
|
|||
tadzik | rt.perl.org/rt3/Ticket/Display.html?id=100778 closable | 17:54 | |
17:55
am0c joined
|
|||
dalek | ast: 516760b | tadzik++ | S12-construction/new.t: Tests for RT #100780 |
17:57 | |
tadzik | rt.perl.org/rt3/Ticket/Display.html?id=100780 claosable | ||
rt.perl.org/rt3/Ticket/Display.html?id=78208 closable | 18:02 | ||
dalek | ast: e25f148 | tadzik++ | S06-multi/lexical-multis.t: Test for RT #78208 |
||
18:02
clairvy joined
|
|||
dalek | ast: 2a83aa9 | tadzik++ | S02-types/native.t: Tests for #101450 |
18:06 | |
18:06
clairvy left
|
|||
tadzik | rt.perl.org/rt3/Ticket/Display.html?id=101450 closable | 18:07 | |
18:07
clairvy joined
18:09
clairvy left
18:10
clairvy joined,
clairvy left
18:11
clairvy joined
|
|||
tadzik | ok, enough of this killing spree. Anyone with RT privileges to close those? :) | 18:11 | |
we should be below 450 now | 18:12 | ||
18:12
clairvy left
18:13
clairvy joined
|
|||
sorear | good * #perl6 | 18:13 | |
18:14
clairvy left
18:16
clairvy joined
|
|||
tadzik | hello sorear | 18:18 | |
18:18
clairvy left
18:19
clairvy joined,
clairvy left
18:20
Sarten-X left,
clairvy joined
18:23
buubot_backup joined,
clairvy left,
pmurias left,
wk joined,
Mowah_ joined
18:24
clairvy joined
18:25
pmurias joined,
clairvy left
18:26
clairvy joined
18:27
Trashlord left,
Sarten-X joined,
clairvy left,
zby_home_ joined
18:28
zby_home__ left,
clairvy joined
18:31
wk left
18:45
clairvy left,
benabik left
18:46
pmurias left,
clairvy joined
18:48
pmurias joined,
bluescreen10 joined,
clairvy left
18:49
clairvy joined,
clairvy left
18:50
Trashlord joined,
clairvy joined
|
|||
moritz | tadzik: [Coke] and pmichaud can give you closing privs | 18:53 | |
18:54
wk joined,
clairvy left,
pmurias left
|
|||
moritz closes #101450 | 18:55 | ||
18:55
clairvy joined
|
|||
moritz | tadzik++ | 18:55 | |
18:55
vmspb joined,
clairvy left
18:56
pmurias joined,
clairvy joined
|
|||
tadzik | moritz: I think they already did, at least pmichaud stated so :) | 18:58 | |
moritz: mind closing the rest of them in some spare time? | |||
moritz backscrolls | 18:59 | ||
18:59
clairvy left
|
|||
moritz | #78208 closed | 19:00 | |
19:00
clairvy joined
|
|||
moritz | #100780 closed | 19:00 | |
19:00
clairvy left
|
|||
moritz | #76170 closed | 19:01 | |
19:01
clairvy joined,
clairvy left
|
|||
moritz | #78232 closed | 19:02 | |
19:02
pmurias left,
clairvy joined
|
|||
moritz | #76466 closed | 19:03 | |
did I miss anything? | |||
19:03
clairvy left,
pmurias joined
19:04
clairvy joined
19:09
pmurias left,
clairvy left
19:10
clairvy joined,
clairvy left,
clairvy joined,
clairvy left
19:11
pmurias joined,
clairvy joined
|
|||
vmspb | Hi! Need more bugs? :) | 19:15 | |
19:15
clairvy left
|
|||
diakopter | ok | 19:16 | |
vmspb | perl6: my $x=0; ($x+=1)+=10; say $x; | ||
p6eval | pugs b927740, rakudo ef4702, niecza v11-22-gbebf7a0: OUTPUT«11» | ||
vmspb | perl6: my $x=0; ($x++)+=10; say $x; | ||
p6eval | rakudo ef4702: OUTPUT«Cannot assign to a readonly variable or a value in block <anon> at /tmp/2AKR7XFnE2:1 in <anon> at /tmp/2AKR7XFnE2:1» | ||
..pugs b927740: OUTPUT«*** Can't modify constant item: VInt 0 at /tmp/oR8TI3NI0Y line 1, column 10-20» | |||
..niecza v11-22-gbebf7a0: OUTPUT«Unhandled exception: assigning to readonly value at /tmp/YtPCWUFQj2 line 0 (mainline @ 0)  at /home/p6eval/niecza/lib/CORE.setting line 2224 (ANON @ 2)  at /home/p6eval/niecza/lib/CORE.setting line 2225 (module-CORE @ 58)  at /home/p6eval/niecza/li… | |||
19:16
clairvy joined
|
|||
vmspb | perl6: my $x=0; (++$x)+=10; say $x; | 19:16 | |
19:16
clairvy left
|
|||
p6eval | pugs b927740: OUTPUT«*** Can't modify constant item: VInt 1 at /tmp/REzJ6KasoL line 1, column 10-20» | 19:16 | |
..niecza v11-22-gbebf7a0: OUTPUT«11» | |||
..rakudo ef4702: OUTPUT«Cannot assign to a readonly variable or a value in block <anon> at /tmp/jo0I70OfsN:1 in <anon> at /tmp/jo0I70OfsN:1» | |||
19:16
clairvy joined
19:17
pmurias left
19:19
pmurias joined
19:20
risou is now known as risou_awy,
risou_awy is now known as risou
19:24
pmurias left,
clairvy left
19:25
am0c left,
clairvy joined
19:26
pmurias joined
|
|||
moritz | vmspb: I believe the spec is silent on whether such modifiying operators should return lvalues or not | 19:29 | |
19:30
pmurias left,
clairvy left
19:31
clairvy joined,
clairvy left
19:32
pmurias joined
19:33
clairvy joined
19:34
clsn left,
clairvy left
19:35
clairvy joined
19:36
molaf left
19:38
pmurias left,
clairvy left
19:39
clairvy joined,
pmurias joined
19:43
PZt left
19:45
pmurias left,
clairvy left
|
|||
TimToady | p5 is a bit inconsistent on this subject: it can modify a $x += 1 but not a ++$x, which should be equivalent | 19:45 | |
19:46
clairvy joined
|
|||
TimToady | not that it's a style we encourage in any case... | 19:46 | |
19:46
clairvy left
|
|||
japhb | TimToady, out of curiosity, why *is* there a difference in Perl 5? | 19:46 | |
TimToady | beats me | ||
japhb | Forgotten in the mists of time? ;-) | 19:47 | |
moritz | hysterical raisons | ||
19:47
pmurias joined,
clairvy joined
|
|||
TimToady | possibly someone's optimizer wants ++$x to return an rvalue | 19:47 | |
19:51
pmurias left
19:53
pmurias joined
19:57
huf left
19:58
clairvy left
19:59
pmurias left,
clairvy joined
20:00
pmurias joined,
clairvy left,
simcop2387 left
20:01
clairvy joined
20:03
simcop2387 joined,
clairvy left
20:04
clairvy joined
|
|||
dalek | kudo/bigint: 1bef826 | moritz++ | src/Perl6/Actions.pm: simplify escale action method |
20:06 | |
tadzik | moritz: rt.perl.org/rt3/Ticket/Display.html?id=77184 rt.perl.org/rt3/Ticket/Display.html?id=100778 and we're done :) | 20:07 | |
moritz | done, tadzik++ | 20:08 | |
20:08
clairvy left
20:09
clairvy joined,
clairvy left
|
|||
cognominal_ wonder if I can define a lexical rule ws within another rule. Is this legal? Is this implemented? | 20:09 | ||
I would say yes and now. | |||
*no | |||
20:10
_jaldhar left
|
|||
cognominal_ | I would want it now as my lapsus keyboardy shows. | 20:10 | |
moritz | cognominal_: rule calls are method calls, unless explicitly done otherwise | ||
20:10
_jaldhar joined
|
|||
moritz | liek with <&foo> instead of <foo> or <.foo> | 20:10 | |
20:10
clairvy joined
|
|||
cognominal_ | that's not the first time I want it to be regular function. | 20:11 | |
20:11
clairvy left,
Tene left
|
|||
cognominal_ | but I suppose the cursor want a class. | 20:11 | |
20:11
clairvy joined
|
|||
cognominal_ | *wants | 20:11 | |
20:12
Tene joined,
Tene left,
Tene joined,
clairvy left
|
|||
tadzik | moritz++ | 20:12 | |
20:13
clairvy joined
|
|||
cognominal_ | but when I create a mere regex, (I alway forget the perl 6 syntax), I suppose the said class is instanciated. | 20:14 | |
20:14
clairvy left
|
|||
cognominal_ | rx // # that's should be easy. Probably the hard part is to forget about qr// | 20:15 | |
20:15
clairvy joined
20:16
pmurias left,
clairvy left
|
|||
cognominal_ | rakudo is fussy, it wants rx// without space. | 20:17 | |
20:17
clairvy joined
20:18
pmurias joined,
clairvy left
20:19
clairvy joined
|
|||
moritz | std: rx // | 20:19 | |
20:19
clairvy left
|
|||
p6eval | std be1f10e: OUTPUT«===SORRY!===Null pattern not allowed at /tmp/BVgWTpE0sA line 1:------> rx /⏏/Parse failedFAILED 00:01 118m» | 20:19 | |
moritz | std: rx /./ | ||
p6eval | std be1f10e: OUTPUT«ok 00:01 120m» | ||
moritz | cognominal_: probably easy to fix | 20:20 | |
cognominal_ | rakudo: grammar A { token TOP { :my &ws = rx/a/; :s b } }; A.parse("aba") | ||
p6eval | rakudo ef4702: ( no output ) | ||
cognominal_ | rakudo: grammar A { token TOP { :my &ws = rx/a/; :s b } }; say A.parse("aba") | ||
p6eval | rakudo ef4702: OUTPUT«#<failed match>» | ||
20:20
clairvy joined
|
|||
cognominal_ | rakudo: grammar A { token TOP { :my &ws = rx/a/; :s b } }; say A.parse(" b ") | 20:20 | |
p6eval | rakudo ef4702: OUTPUT«=> < b >» | ||
cognominal_ | moritz, what do you think? | 20:21 | |
20:21
clairvy left
20:22
clairvy joined,
pmurias left
|
|||
moritz | cognominal_: I don't know the regex stuff well enough to comment on the implications of such a change | 20:22 | |
I'm sure that the current spec doesn't say it picks up the lexical &ws | |||
20:22
clairvy left
20:23
clairvy joined
|
|||
cognominal_ | that would slow down thing | 20:24 | |
20:24
clairvy left,
pmurias joined
|
|||
cognominal_ | rakudo: grammar A { token TOP { :my const &ws = rx/a/; :s b } }; say A.parse(" b ") | 20:24 | |
p6eval | rakudo ef4702: OUTPUT«===SORRY!===Malformed my at line 1, near "const &ws "» | ||
cognominal_ | I could compromise with a const... | 20:25 | |
20:25
clairvy joined,
clairvy left
|
|||
cognominal_ | anyway, I will cheat my way around... | 20:25 | |
20:26
benabik joined
20:27
clairvy joined,
huf joined
|
|||
cognominal_ | that would get even weirder with &*ws :) | 20:28 | |
dalek | ast: fbeaaf0 | moritz++ | S04-statements/for.t: fix plan in for.t |
||
20:28
clairvy left
20:29
clairvy joined
20:32
pmurias left,
clairvy left,
clairvy joined
20:33
pmurias joined
20:41
clairvy left
20:42
clairvy joined
20:46
[particle]1 joined,
clairvy left,
Eth4n joined
20:47
clairvy joined,
clairvy left,
[particle] left
20:48
clairvy joined,
ethndbst left
20:51
clairvy left
20:52
clairvy joined
20:56
clairvy left
20:57
clairvy joined
|
|||
sorear | vmspb: ++$x in niecza returns an lvalue as a performance hack; it returns the existing scalar $x instead of having to create a new read-only scalar for the return value | 21:01 | |
vmspb: the hack doesn't work for $x++ because it has to return a different value | |||
21:07
clairvy left
|
|||
dalek | p/bigint: bd5e5b0 | moritz++ | src/ops/nqp_bigint.ops: fix the float case of pow_I |
21:07 | |
21:08
clairvy joined,
clairvy left
|
|||
moritz -> sleep | 21:09 | ||
tadzik | g'night | ||
21:09
clairvy joined
21:21
pmurias left,
clairvy left
21:22
clairvy joined,
pmurias joined,
clairvy left
21:23
clairvy joined
21:27
pmurias left,
clairvy left,
clairvy joined
21:29
pmurias joined
21:31
_jaldhar left
21:32
_jaldhar joined
21:34
zby_home_ left,
clairvy left
21:35
clairvy joined
21:40
mberends joined,
clairvy left
21:41
clairvy joined
21:43
jimmy1980 left,
clairvy left,
pmurias left
21:44
clairvy joined
21:45
pmurias joined,
clairvy left
21:46
clairvy joined
21:50
jimmy1980 joined,
clairvy left
21:51
clairvy joined
21:52
bluescreen10 left,
clairvy left,
tkr left
21:53
bluescreen10 joined,
clairvy joined
21:54
Eth4n left,
clairvy left,
ethndbst joined,
ethndbst left,
ethndbst joined
21:55
clairvy joined
21:56
jimmy1980 left,
clairvy left,
clairvy joined,
pmurias left
|
|||
lichtkind | good night | 21:57 | |
21:58
pmurias joined,
clairvy left
21:59
jimmy1980 joined,
Chillance joined
22:00
clairvy joined
22:02
vmspb left,
clairvy left
22:03
clairvy joined,
pmurias left
22:05
pmurias joined,
clairvy left,
clairvy joined
|
|||
dalek | odel: 14f2cda | diakopter++ | lua/runtime/ (4 files): 15% overall speedup |
22:06 | |
22:06
clairvy left
22:07
clairvy joined
|
|||
tadzik | how fast is that compared to nqp on parrot now? | 22:07 | |
22:08
clairvy left
22:09
clairvy joined,
pmurias left
22:11
pmurias joined,
clairvy left
|
|||
diakopter | tadzik: quite slow | 22:11 | |
22:12
clairvy joined
22:16
pmurias left
|
|||
diakopter | tadzik: actually, it's slow when comparing with parrot-nqp | 22:16 | |
22:16
clairvy left
|
|||
diakopter | I haven't measured it against the 6model-based nqp (which would be a much more fair comparison) | 22:17 | |
22:18
pmurias joined
|
|||
diakopter | parrot-nqp takes 2 seconds to decrement/compare a number 10,000,000 times; nqplua takes 312 seconds. (ick) | 22:22 | |
to decrement/compare a number 10,000 times takes 1,200,000 lua function calls | |||
22:27
pmurias left
22:28
clairvy joined,
pmurias joined,
clairvy left
22:33
clairvy joined
22:37
clairvy left
22:42
clairvy joined,
clairvy left
22:43
pmurias left
22:45
pmurias joined
|
|||
sorear | diakopter: wazzit like on lua.org's lua? :) | 22:46 | |
diakopter | good question | 22:48 | |
sorear: could I impose upon you a request for more debugging help? | 22:49 | ||
22:49
clairvy joined
22:50
clairvy left,
clairvy joined
|
|||
dalek | odel: 675122b | diakopter++ | lua/compiler/ (2 files): break the build; request sorear++ to help debug |
22:51 | |
22:51
clairvy left
|
|||
sorear | Perhaps. What's the problem? | 22:53 | |
ick, you're inlining the pcall stuff | 22:54 | ||
diakopter | ick indeed, but if it works it will get rid of two extra closure creations (and invocations) per routine call | ||
there is only one try/catch/finally per routine, luckily | 22:55 | ||
22:55
clairvy joined
|
|||
sorear | I don't understand the 15% changes | 22:56 | |
you're getting rid of the metatable setting, so how do method calls work anymore? | |||
22:56
pmurias left,
clairvy left
|
|||
diakopter | I took out all the method calls on List anyway | 22:56 | |
definite hotpaths | 22:57 | ||
the speedup there was mostly from the capture inlining | |||
22:58
alvis left,
pmurias joined
|
|||
sorear tries a build | 22:58 | ||
23:00
mberends left
|
|||
diakopter | ooo missed mberends | 23:00 | |
sorear | not really | 23:01 | |
diakopter | sorry; I meant list creation was a hotpath. | ||
23:01
clairvy joined
|
|||
sorear | diakopter: have you considered doing fetch-once for all the Ops methods that are used? local get_lex = Ops.get_lex | 23:02 | |
23:02
clairvy left
|
|||
diakopter | yeah; that should be done at some point | 23:02 | |
sorear looks at l[7945] = l[1452][1][2](l[1452][1], TC, l[1452], "add_attribute", -1); | 23:03 | ||
I give up. Right now. | |||
diakopter | :/ | ||
23:05
clairvy joined
|
|||
dalek | odel: 931a588 | diakopter++ | lua/compiler/PAST2LSTCompiler.pm: unbreak the build |
23:05 | |
23:05
clairvy left
|
|||
sorear | if we're going to have code like that in the .lua files we need _readable_ IR files | 23:06 | |
diakopter | unfortunately I don't have a good way of reversing the "optimizations" | 23:07 | |
tadzik | have you tried that on luajit? | ||
sorear | tadzik: the code only works on luajit | ||
tadzik | oh, ok | ||
sorear | maybe use the C pre-processor for this. #define GET_LEX(name) Ops[90](name) | 23:08 | |
diakopter | it doesn't have to; there are bitops libraries for lua too; I just set it to use 'bit' built into luajit since that's what I was using | ||
23:09
pmurias left
|
|||
diakopter | I dont' understand why the TryCatchFinally is doing anything different from the TryFinally nested inside the TryCatch | 23:10 | |
er, vice versa | |||
... from the TryCatch nested inside the TryFinally | |||
23:11
pmurias joined
|
|||
diakopter | pmurias' connection is flaky these days :) | 23:11 | |
sorear | lexical scope funny business maybe | ||
23:11
buubot_backup left,
clairvy joined,
clairvy left
23:13
clairvy joined
|
|||
diakopter | oh, found one bug | 23:14 | |
23:15
alvis joined,
clairvy left
|
|||
dalek | odel: be2ed88 | diakopter++ | lua/compiler/LST2Lua.pm: bug in TryCatchFinally |
23:15 | |
23:15
clairvy joined
|
|||
sorear | diakopter: pmurias gets a pass for being a regular. clairvy bugs me more | 23:15 | |
23:16
MayDaniel left,
clairvy left,
pmurias left
23:17
clairvy joined
23:18
pmurias joined
23:22
pmurias left,
clairvy left
23:24
pmurias joined
|
|||
japhb | Wheee, Str.Numeric() rewrite is now a strict superset of the original (and significantly so). Sadly, it is also 36% slower right now, and there is still lots left to do to be fully spec-compliant. | 23:26 | |
At least I can think again finally. I hate it when sickness knocks out my brane. | |||
sorear | \o/ japhb | 23:27 | |
23:27
clairvy joined
|
|||
sorear | I'd love to look at your complete impl sometime, steal some of it... ;) | 23:27 | |
23:29
pmurias left,
clairvy left,
buubot_backup joined,
clairvy joined,
pmurias joined
|
|||
japhb | sorear, hopefully soon it will be ready to merge. I'd like to get it more complete though -- I've got some large subspaces to handle still. | 23:29 | |
tadzik | hi japhb | 23:35 | |
japhb | o/ | ||
23:35
clairvy left,
cooper left,
pmurias left
23:36
clairvy joined
23:37
pmurias joined,
clairvy left,
pmurias left,
clairvy joined
23:42
clairvy left,
saaki left
23:43
clairvy joined
|
|||
[Coke] | \o | 23:52 | |
23:52
clairvy left
|
|||
sorear | o/ [Coke] | 23:53 | |
23:53
clairvy joined,
clairvy left
23:54
clairvy joined,
cooper joined
23:58
clairvy left
23:59
clairvy joined
|