pcvs2git.pike
by Henrik Grubbstr�m (Lysator) @ Pike (-) developers forum
14 Mar '10
14 Mar '10
I just tried converting Roxen 2.4:
Stage Memory use Commits
---------------------------------------
Import 339 MB ~17000
Raking 359 MB ~17000
Verify 361 MB ~17000
Merging 662 MB 11886
Graphing 803 MB 10897
Generate 803 MB 10897
I believe that the memory use can be reduced by using more custom
datatypes (currently there are a lot of mappings generated in the
merging and graphing stages). Another way to reduce the memory use
is to partition the graphs in the time axis.
Some time next week I'll upgrade eureka from Solaris Express snv_81 to
whatever the latest stable OpenSolaris release is. There is no
straight forward upgrade path from SXCE to OpenSolaris, so the machine
will be reinstalled and the data restored from backup.
That means there will be some substancial downtime for people using
services on eureka. More details later.
do_async_method_url overrides the content-type given in extra headers.
Its possible to work around it by using "Content-Type" instead of
"content-type". This is relevant at least in the XMLRPC module, not
sure if anybody noticed. here is a patch
arne
diff --git a/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike b/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike
index 5b82fc9..b7e2e74 100644
--- a/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike
+++ b/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike
@@ -874,8 +874,8 @@ Request async_do_method_url(string method,
if (method=="POST")
extra_headers=
- (extra_headers||([]))+
- (["content-type":"application/x-www-form-urlencoded"]);
+ (["content-type":"application/x-www-form-urlencoded"])+
+ (extra_headers||([]));
p->do_async(p->prepare_method(method,url,query_variables,
extra_headers,data));
2
8
replace
by Mirar @ Pike developers forum
28 Oct '09
28 Oct '09
why do
> replace(({1,2,3}),2,17);
(6) Result: ({ /* 3 elements */
1,
17,
3
})
work, while
> replace(({1,2,3}),({2}),({17}));
(5) Result: ({ /* 3 elements */
1,
2,
3
})
does nothing?
4
5
release
by Peter Bortas @ Pike developers forum
22 Oct '09
22 Oct '09
It's time to do a stable release again. If you have low risk but
potentially build breaking code in the pipe then check it in now. I'll
aim for a release next week.
1
0
pcvs2git.pike
by Henrik Grubbstr�m (Lysator) @ Pike (-) developers forum
19 Oct '09
19 Oct '09
The above file is now available via git://pike-git.lysator.liu.se/pcvs2git.git/
Note: Requires rcs (and git).
Note that the tool is by no means finished, but it seems to generate
an acceptable git archive from the repositories that I've tested with.
Caveat emptor: I've not tested with any repositories larger than the
Pike 0.5 repository yet (~7000 file revisions).
In the following case the optimizer seems to assume, that the array does
not change during the loop and optimizes away the sizeof check:
int main() {
array a = ({ 1, 2, 3, 4, 5 });
void magic(int k) {
a = a[0..k-1] + a[k+1..];
};
for (int i = 0; i < sizeof(a); i++) {
if (a[i] == 2) {
magic(i);
i--;
}
}
return 0;
}
I assume cases like this are hard to detect, especially because
this can me made even more complicated. I will put in some
if (0) { ret = ({});}
equivalent to trick the optimizer for now.
arne
Just thought I'd post a reminder that a number of Pike devotees will be in
Copenhagen for a few days this month (at least the 24th and 25th, I'll be
there a day before and after, as well). We'll probably having all kinds of
conversations, and it coincides with Open Source Days, so a few of us will
be manning a "booth" and doing presentations. We always have some good
conversations and cool things often sprout from them, and new faces (and
old friends, of course) are always welcome.
I'm told that Denmark is relatively close for folks in Scandanavia, so do
consider coming down for a visit if you're in the region!
For more details, drop myself or our man-on-the-ground, Matt Hardy
(matt(a)webhaven.eu) a line.
Best,
Bill
1
0
deprecated on operators
by Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
04 Oct '09
04 Oct '09
Given
RCS file: /pike/data/cvsroot/Pike/7.8/src/modules/files/file_functions.h,v
retrieving revision 1.47
diff -r1.47 file_functions.h
124c124
< FILE_FUNC("`<<",file_lsh, tFunc(tMixed,FILE_OBJ))
---
> FILE_FUNC("`<<",file_lsh, tAttr("deprecated", tFunc(tMixed,FILE_OBJ)))
I get
Pike v7.8 release 349 running Hilfe v3.5 (Incremental Pike Frontend)
> Stdio.File f = Stdio.File("zork","cwt");
> f<<"hej";
(1) Result: Fd(10)
> f->`<<("hopp");
Compiler Warning: 1: Calling a deprecated value.
Compiler Warning: 1: Using deprecated object(implements _static_modules.files()->Fd_ref) value.
(2) Result: Fd(10)
Would it be hard to improve?