[Tfug] Cheap Memory = Lardy Men.
Jeffry Johnston
tfug at kidsquid.com
Tue Dec 18 09:37:21 MST 2007
Somewhat off topic, but I've noticed that gcc -O3 sometimes results in
smaller executables than gcc -Os
:) Now that's a good tradeoff!
Jeff
On Dec 18, 2007 7:21 AM, Robert Hunter <hunter at tfug.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Mon, Dec 17, 2007 at 08:28:41PM -0700, Bowie J. Poag wrote:
> >
> > Good news is, if Moore's Law begins to break down, more people will
> > realize they're cutting holes in fat men's houses. The solution isn't to
> > cut holes in the sides of buildings, or build a bigger houses for fatter
> > and fatter men. The solution is to keep the fried chicken away from the
> > fat man in the first place.
>
> Hehe. So, what is the final message here, Bowie? We should all run
> Pentium 75s with 16MiB of RAM? Write software in assembly with line
> editors? Debuggers -- bah! Those are for pussies! ;-)
>
> OK, you do have one point, which might be phrased as "necessity is
> the mother of invention." So, sometimes when people are faced with a
> constraint, they will come up with an ingenious solution.
>
> On the other hand, you are assuming optimization criteria which might
> not always apply, such as "you must complete this task in the least
> possible amount of memory." Also, you seem to imply that an algorithm
> which is optimized for memory use, will also have optimal time
> complexity. This is often not the case. Ever hear of time-space
> trade-offs?
>
> Optimization criteria might also include labor and training costs.
> For instance, would you write a data-mining tool in C, or assembly?
> Probably not. You might instead use a slow, memory-hogging, scripting
> language which is very good at text processing (e.g., Perl).
>
> Moral of the story? Use the right tool for the job. It helps to keep
> an open mind. ;-)
>
> - --
> Rob
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFHZ9dpJ1pz6tWxufARAjzEAJ0SAMkkxDvqnnmwd8aTh42d6m7jhwCcDTcj
> /VOWpbr8nTYEyp8IOnfVcnA=
> =h8q2
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
More information about the tfug
mailing list