I went to an interesting presentation at Barcamp Auckland last year talking about compilation and the maths around memory allocation optimization, with relation to some newer work coming out of Auckland Uni.They've come across some ways to make significant reductions in the memory allocation algorythms.
The implication was that goto blocks are particularly inimical, as they undermine the compilers ability to compartmentalize each functional unit. Of course, this is academic at the moment, but I imagine that in the interests of future-proofing your code, it would be a good thing to keep in mind. As an aside, isn't PHP getting a little fruity? I'm almost sad the smiley face didn't get a look-in: if(foo:)bar:)foo::bar($foo)) goto foo; I'd feel sorry for whoever had to write that comiler :D On Apr 25, 1:13 am, Keith Allpress <[email protected]> wrote: > No because it there is no compile as such normally > > Keith Allpress wrote: > > But in the meantime there is a good chance that "goto" will screw with the > > php optimiser? > > K > > > Keith Allpress wrote: > > >> There is a new respectability for the humble GOTO > >> C Strachey and C P Wadsworth. Continuations: A mathematical semantics > >> for handling full jumps. Technical > >> Monography PRG-11, Oxford University, Computing Laboratory, Oxford > >> University, England, 1974. > >> formalised the GOTO statement into the theory of "continuations". > >> Continuation points are highly useful after arbitrarily complex code has > >> inserted itself into the flow (inversion of control etc). > >> Processes can usefully have savepoints etc. It all leads to things like > >> "Delimited continuation theory" that gives more autonomy to > >> individual processes to negotiate amongst themselves, which in turn > >> leads to a radical new kind of web server with vastly more > >> comprehensible code. > >> (in the meantime just remember that the url you are sending that form to > >> is a glorified goto label. Chuckles.) > > >> Keith > > >> Alexei Tenitski wrote: > > >>>http://nz.php.net/goto > > >>> On 22/04/2009 21:48, lenz wrote: > > >>>> is that a hoax? > > >>>> On Wed, Apr 22, 2009 at 9:42 PM, Alexei Tenitski <[email protected] > >>>> <mailto:[email protected]>> wrote: > > >>>> It does not really exist yet. > >>>> Unfortunately, it is a NEW feature of upcoming PHP 5.3. > > >>>> "Herr schmeiss Hirn vom Himmel" to continue with the german quote from > >>>> above ... > > >>>> lenz > > >>>> -- > >>>> iWantMyName.com > >>>> painless domain registration (finally) --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
