Andrei Alexandrescu wrote:
> On 06/08/2010 01:27 PM, "Jérôme M. Berger" wrote:
>> Andrei Alexandrescu wrote:
>>> On 06/07/2010 04:35 PM, "Jérôme M. Berger" wrote:
>>>> Andrei Alexandrescu wrote:
>>>>> On 06/07/2010 12:57 PM, "Jérôme M. Berger" wrote:
>>>>>>> Do this in any dynamic language ->    FAIL because looping is so
>>>>>>> slow that you might
>>>>>>> die of old age before it executes.  Besides, who wants to do
>>>>>>> computationally
>>>>>>> intensive, multithreaded work in a dynamic language?
>>>>>>
>>>>>>       In python: max (map (max, args)) should have reasonable
>>>>>> performances and is *much* more elegant...
>>>>>
>>>>> I very much doubt that.
>>>>>
>>>>      What do you doubt? That it has reasonable performance or that
>>>> it is
>>>> more elegant?
>>>
>>> That it has reasonable performance. Then, there are a number of things
>>> that can't be compared such as figuring out the tightest static types,
>>> something that Python doesn't worry about (at the expense of precision
>>> and performance).
>>>
>>     Please define "reasonable performance"...
> 
> Within 15% of hand-optimized code specialized for the types at hand.
> 
        Then almost nothing has "reasonable performance"...

                Jerome

PS: I should maybe point out that I also do quite a lot of Verilog
development. Therefore I can hand optimize specialized code a lot
better than anything you can do on a standard CPU...
-- 
mailto:jeber...@free.fr
http://jeberger.free.fr
Jabber: jeber...@jabber.fr

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to