Re: Good Linux to start with
- From: Mark <i@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 08 Jul 2011 08:58:30 +0100
On Thu, 7 Jul 2011 23:04:01 +0200, "Peter J. Holzer"
<hjp-usenet2@xxxxxx> wrote:
The Natural Philosopher <tnp@xxxxxxxxxxxxxxx> schrieb:
Mark wrote:[...]
On Thu, 07 Jul 2011 13:49:05 +0100, The Natural PhilosopherPrecisely. Whereas if you take care at the coding stage to exactly
<tnp@xxxxxxxxxxxxxxx> wrote:
My biggest problem with interpreted higher level languages is the way
most of them use some form of automagic not under program control memory
allocation, and that means garbage collection at some stage.
This is supposed to me an advantage (in that you don't need to
explictly "free" memory). However you do have to rely on GC which
doesn't always free things up quickly enough.
specify local storage in a strongly typed language, garbage collection
is simply a matter of resetting the stack pointer (or a separate heap
pointer, if the CPU architecture makes that sane)
Its a one machine cycle 'free()'
The penalty being that you or the compiler have to get that right at
compile time.
That's a big penalty. While you can usually rely on the compiler to get
it right, relying on the programmer for stuff that can easily be
automated is a bad idea. Humans are sloppy. And for most applications
that kind of micro-optimization doesn't help performance: If the program
is waiting for the user or some I/O most of the time, reducing CPU usage
doesn't help, and if the CPU is the bottleneck, the programmer can
probably gain a more by improving the algorithm than by
micro-optimizing.
Genally true. But in pretty much all languages there will be multiple
ways of achieving the same thing. Therefore it could be possible to
micro-optimize with great success. I've done this with Java on
several occasions.
There are situations where C has its place and there are programmers who
can use C well, but for the average program the average programmer is
better off with a different language.
I must not be an "average" programmer then ;-) I generally prefer C
over other languages as it not too high level and you can easily see
what is actually going on. But then it's the language I have most
experience in using.
--
(\__/) M.
(='.'=) Due to the amount of spam posted via googlegroups and
(")_(") their inaction to the problem. I am blocking some articles
posted from there. If you wish your postings to be seen by
everyone you will need use a different method of posting.
.
- Follow-Ups:
- Re: Good Linux to start with
- From: Peter J. Holzer
- Re: Good Linux to start with
- References:
- Re: Good Linux to start with
- From: Anton Meyninger
- Re: Good Linux to start with
- From: Aragorn
- Re: Good Linux to start with
- From: The Natural Philosopher
- Re: Good Linux to start with
- From: Aragorn
- Re: Good Linux to start with
- From: The Natural Philosopher
- Re: Good Linux to start with
- From: Aragorn
- Re: Good Linux to start with
- From: Richard Kettlewell
- Re: Good Linux to start with
- From: Mark
- Re: Good Linux to start with
- From: Richard Kettlewell
- Re: Good Linux to start with
- From: The Natural Philosopher
- Re: Good Linux to start with
- From: Mark
- Re: Good Linux to start with
- From: The Natural Philosopher
- Re: Good Linux to start with
- From: Peter J. Holzer
- Re: Good Linux to start with
- Prev by Date: Re: Good Linux to start with
- Next by Date: Re: calling script function on output of find
- Previous by thread: Re: Good Linux to start with
- Next by thread: Re: Good Linux to start with
- Index(es):
Relevant Pages
|