Cross platform: How they do it?

Rick Sivernell res005ru
Mon May 17 12:01:27 PDT 2004


On Sat, 17 Apr 2004 09:13:17 -0400
Kurt Wall <kwall at kurtwerks.com> wrote:

> In a 1.3K blaze of typing glory, Andrew L. Gould wrote:
> 
> [deletia]
> 
> > I have a question for the programmers on the list:  It's my understanding that 
> > Perl, Python and Java (and Ruby?) manage memory allocation for the 
> > programmer.  Does this impact the programmers' ability to control the 
> > efficiency of the application?
> 
> Not necessarily. Garbage collected languages appeal because they handle
> memory management behind the scenes, but, IMHO, their overall "efficiency," 
> which is a rather a crude metric, is affected by other considerations. 
> I think the efficiency of the underlying algorithms (as measured and
> expressed using so-called "big O" notation), has a greater impact on
> an application's overall efficiency. For example, a bubble sort is
> easier to write than a Shell sort, but a Shell sort is much faster
> because it uses fewer operations than a bubble sort to sort the same
> set of data.
> 
> That said, if a language has a porrly written memory manager, this *will*
> affect the "efficiency." 
> 
> But, people build entire academic careers studying memory management
> in programming languages.
> 
> Kurt
> -- 
> The light at the end of the tunnel is the headlight of an approaching
> train.
> _______________________________________________
> Linux-users mailing list
> Linux-users at smtp.linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users

Kurt

   This is absoluting true statement,  garbage collection can be a boon or a expensive
overhead, it just depends on how it is done. In c++, some do it to aid the
unexperinced and many developer teams in design of their systems. Timming using the
big O to measure the speed of the algorithm and effeicncy. If you have three for loop
or while loops as such:
    for( int i = 0; i < 10; i++)
       for( int x = 0; x < 10; x++)
          for( int y = 0; y < 10; y++)
             do something
    this is a thousand iterations or big O(n to the power of 3)

  chgeers

-- 
Rick Sivernell
Dallas, Texas  75287
972 306-2296
res005ru at gte.net
Gentoo Linux
Registered Linux User #193859

   .~.
  / v \
 /( _ )\
   ^ ^
In Linux we trust!



More information about the Linux-users mailing list