Re: [PHP-DEV] Re: Supporting Binary Notation for Integers

2010-11-12 Thread Stan Vass
Just one little note: If I'm not mistaken this would introduce a subtle BC break when doing the comparison "0b1" == 1 which is false > > now but would return true afterwards, right? Likewise is_numeric("0b1") would suddenly return true. Is it worth the (possible) WTF for something hardly ever

Re: [PHP-DEV] [PHP] multiple sapi (multiple bug reports)

2010-11-12 Thread Jérôme Loyet
2010/11/12 Jani Taskinen : > > And here's the patch: > >  http://pecl.php.net/~jani/patches/multi-sapi.patch > > Note: It's not quite finished, the 'make install' might not work.. ;) After a very quick try, there is a missing case: if not SAPI and no binaries have been selected, we should trigger

Re: [PHP-DEV] Re: Supporting Binary Notation for Integers

2010-11-12 Thread Christian Schneider
Am 12.11.2010 um 09:22 schrieb Stan Vass: > With regards to parsing numeric strings, only decimal is supported, and in > some cases (unfortunately) hexadecimal, like your comparing example. But > octal is not supported in strings, and neither should binary. > > 0xF == 15 // true > '0xF' == 15 //

[PHP-DEV] GPU Acceleration

2010-11-12 Thread Kenan Sulayman
Hello out there! I just asked myself, just like that: Why shouldn't it be possible to create a php-work flow which allows the immediate parallelization over GPU to make, for instance, the execution a hundredth times higher? I mean, well - yes it sounds like a stupid idea, we've got 6 GPU-Horses (

Re: [PHP-DEV] GPU Acceleration

2010-11-12 Thread Scott MacVicar
Do you have a patch for this? The only thing stopping it is no one had written it. - Scott On Nov 12, 2010, at 3:23 PM, Kenan Sulayman wrote: > Hello out there! > > I just asked myself, just like that: Why shouldn't it be possible to create > a php-work flow which allows the immediate parallel

Re: [PHP-DEV] GPU Acceleration

2010-11-12 Thread Stefan Marr
Hi: On 12 Nov 2010, at 16:35, Scott MacVicar wrote: > Do you have a patch for this? The only thing stopping it is no one had > written it. >> So, I'd thank you for *constructive* answers. *sigh* He was asking for constructive answers. Kenan, I guess the most viable approach to go in such a dir

Re: [PHP-DEV] GPU Acceleration

2010-11-12 Thread Scott MacVicar
On Nov 12, 2010, at 4:09 PM, Stefan Marr wrote: > Hi: > > On 12 Nov 2010, at 16:35, Scott MacVicar wrote: > >> Do you have a patch for this? The only thing stopping it is no one had >> written it. >>> So, I'd thank you for *constructive* answers. > > *sigh* He was asking for constructive answe

Re: [PHP-DEV] Re: Supporting Binary Notation for Integers

2010-11-12 Thread Jonah H. Harris
On Fri, Nov 12, 2010 at 5:49 AM, Christian Schneider wrote: > > It should be a important consideration that numeric string parsing isn't > affected by this patch, and things will be fine. > > If neither '0b1' == 1 nor is_numeric('0b1') is true after this patch then I > see no problem. > This is c

Re: [PHP-DEV] Supporting Binary Notation for Integers

2010-11-12 Thread Jonah H. Harris
On Thu, Nov 11, 2010 at 11:07 PM, Thomas Hruska wrote: > What languages are supporting this? (Besides PHP.) I'm not adverse to >> the feature but if you say other languages are doing this on the RFC >> page, please provide links to the relevant documentation of those >> languages. >> > > Ah. Fina

Re: [PHP-DEV] GPU Acceleration

2010-11-12 Thread Kenan Sulayman
Okay, I got it :) I know Hip-Hop, but I mean in general; Most of the stuff here is done the CLI-way.. and okay, I accept Scott's answer ;) Thanks, -- (c) *Kenan Sulayman* *Freelance Designer and Programmer* *Life's Live Poetry* On 12 November 2010 17:21, Scott MacVicar wrote: > On Nov 12, 20

Re: [PHP-DEV] [PHP] multiple sapi (multiple bug reports)

2010-11-12 Thread Jani Taskinen
I updated the patch: http://pecl.php.net/~jani/patches/multi-sapi.patch Now it will fail if no sapi/binary is selected. And "make install" will now also install them all. :) The question remains: into what branches can I commit it? Some might think it's not a bug fix.. ;) --Jani 12.11.20

Re: [PHP-DEV] [PHP] multiple sapi (multiple bug reports)

2010-11-12 Thread James Butler
Just an uninformed thought, trunk? This isn't a problem in the runtime, just an installation annoyance for those who compile from source. Leave the patch for people who want/need it for current versions. I imagine if this has been a major problem for people (and I don't) they will have been comp

RE: [PHP-DEV] GPU Acceleration

2010-11-12 Thread Andi Gutmans
> -Original Message- > From: Scott MacVicar [mailto:sc...@macvicar.net] > Sent: Friday, November 12, 2010 8:22 AM > To: Stefan Marr > Cc: Kenan Sulayman; PHP internals > Subject: Re: [PHP-DEV] GPU Acceleration > > What's not constructive about it? Seems pretty constructive to me. The >

Re: [PHP-DEV] GPU Acceleration

2010-11-12 Thread James Butler
As a slight side note, GPUs have been (and mostly still are) used for high performance workloads where squeezing as much useful 'work' per cycle is the order of the day. CUDA et al still hasn't hit the mainstream fully and is pretty niche. Unfortunately PHP being an interpreted language isn't go