FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » query: how many use PHP for linux scripts
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: query: how many use PHP for linux scripts [message #185975 is a reply to message #185967] Fri, 16 May 2014 07:17 Go to previous messageGo to previous message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma:
Senior Member
On 05/15/2014 10:37 AM, The Natural Philosopher wrote:
> On 15/05/14 17:07, crankypuss wrote:
>> On 05/15/2014 06:34 AM, Jasen Betts wrote:
>>> On 2014-05-14, Ben Bacarisse <ben(dot)usenet(at)bsb(dot)me(dot)uk> wrote:
>>>> The Natural Philosopher <tnp(at)invalid(dot)invalid> writes:
>>>>
>>>> > On 13/05/14 21:35, Tim Streater wrote:
>>>> <snip>
>>>> >> I can't be arsed to fiddle around with C these days. Too much faffing
>>>> >> around with declarations - and no string handling to speak of either.
>>>> >>
>>>> >> Non-issues in PHP.
>>>> >>
>>>> > string handling is the chief reason I prefer C..
>>>>
>>>> That seems odd since PHP has almost every single low-level C string
>>>> function available to it. You can strspn and strncmp to your heart's
>>>> content in PHP. Pretty much the only ones missing are strcat and
>>>> strcpy
>>>> but, surely, they can't be why you prefer C.
>>>>
>>>> A PHP translation of C string handling would inevitably be simpler
>>>> since
>>>> there would be no need manage the storage. That's the biggest
>>>> advantage
>>>> in my opinion, even if never used any of PHP's more complex string
>>>> manipulation.
>>>
>>> white program the reads a text file and swaps every pair of lines and
>>> writes
>>> a new file.
>>>
>>> so
>>>
>>> one
>>> two
>>> three
>>> four
>>>
>>>
>>> becomes
>>>
>>>
>>> two
>>> one
>>> four
>>> three
>>>
>>>
>>>
>>>
>>>
>>> design it to work on any text file.
>>>
>>>
>>>
>>>
>>> including files with lines larger than RAM + swap.
>>>
>>>
>>>
>>>
>>> if it must work, it's easier in C.
>>>
>>>
>>
>> Read 2 lines, swap, write 2 lines to output file, rinse & repeat, what's
>> the big deal? (Maybe I'm not getting it, I *am* feeling kind of stupid
>> this morning.)
>
> its where you put the lines that wont fit in even virtual memory..
>
>
> And I think he is making a point.
>
> When the standard tools and assumptions of the language let you down, C
> will get you the solution where PHP will not.

I think he's taken you in with a red herring, but I can't see where it
matters one way or another.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to get the POST name of a field in a form that uses a counter
Next Topic: PHP-SOAP/5.4.21 SoapClient terminating POST without waiting for reply, but still complaining "error fetching http headers".
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 08:35:26 GMT 2024

Total time taken to generate the page: 0.04277 seconds