[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ossig] gtk applications ?




> m0n0wall uses PHP for it's bootup rc scripts, as well as the webGUI. 
> i'm now porting[2] over a 6,200+ line perl program[1] to PHP just so i 
> don't have to chuck in a perl interpreter into m0n0wall. i think 
> somehow the use of preg_match() and preg_replace() to replace perl's 
> =~ regex is going to cost me, performance wise.


preg_match() and preg_replace() are much faster than the equivalent ereg 
calls. I'm not sure performance wise how it compares to perl's regex 
operators but considering that preg_* calls use the pcre libraries, I 
wouldn't assume a substantial performance difference.

> [1] doesn't help that the original author of the perl program has 
> named all his variables in portugese and not english.


A marvelous way to learn portugese! I remember hacking on java based 
code and it was written by a polish frood so I ended up learning Polish 
in the way :-)

> [2] dude, you were supposed to get back to me, re either a perl 
> compiler or  a perl->PHP converter.


Ah yes. Will email you later tonight.

Ditesh


---------------------------------------------------------
To unsubscribe: send mail to ossig-request@mncc.com.my
with "unsubscribe ossig" in the body of the message