Re: Compiling C++ modules

linux-os (Dick Johnson)
2006-04-28T17:38:18Z

On Fri, 28 Apr 2006, Avi Kivity wrote:

> Jan Engelhardt wrote:
>>> The high level language allows you to concentrate on the algorithms which is
>>> where the performance comes from.
>>>
>> Do you consider e.g. Perl or Python highlevel?
>>
>
> I once wrote Perl. I deeply regret the experience. But yes, they are
> both high(er) level. There are even higher levels to aspire to.
>
>> If so: I doubt that's where performance can come from. Ever. (Unless you
>> cheat by using XS.)
>>
>
> Given infinite time, patience, and concentration, the C or C++ program
> will always win over Python; as assembly will win over C or C++.
>
> If your time is bounded, your Python code might be running while you're
> still typing in your C code, you're be profiling and making changes to
> the alghorithm in Python while hunting for that mysterious segmentation
> fault in C (thank goodness for valgrind), and adding multithreading to
> the third and final version of your Python code while debating whether
> to buy more memory or sit down and chase that memory leak.
>
> Developer performance equates to runtime performance.
>

Read what you wrote! It's absolutely, incredibly stupid!

The cost in developer time is borne once. The cost of performance
is borne every time you run the application.

> ps. Yes, that wouldn't work for a simple example like counting words in
> a file. Try something more complex, like an SCM system.
>
> --
> Do not meddle in the internals of kernels, for they are subtle and quick to panic.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

Cheers,
Dick Johnson
Penguin : Linux version 2.6.16.4 on an i686 machine (5592.89 BogoMips).
New book: http://www.lymanschool.com
_
\x1a\x04

****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.