From: Joris Dobbelsteen <joris@familiedobbelsteen.nl>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Postgres General List <pgsql-general@postgresql.org>
Subject: Re: Oracle and Postgresql
Date: Sat, 20 Sep 2008 16:19:00 +0200
Message-ID: <48D50654.5030600@familiedobbelsteen.nl> (raw)
In-Reply-To: <b42b73150809151424u3b6f92fene1d61ae3fb2a760e@mail.gmail.com>
References: <41c1fa08-86a0-4023-acaa-d838d5b0abf8@i24g2000prf.googlegroups.com>
<48C5C394.1070602@gmail.com>
<819df3760809131924o4ec38ebetfde7cd890767b1a9@mail.gmail.com>
<1A6E6D554222284AB25ABE3229A9276201A1993B@nrtexcus702.int.asurion.com>
<20080915135847.GF3666@fetter.org>
<7be3f35d0809150731k575bf7aajc689a4278176b1a8@mail.gmail.com>
<000001c91748$af9288b0$0eb79a10$@com>
<dcc563d10809150848t4acd2e80q3d7556da960b384a@mail.gmail.com>
<20080915115444.65ab0c4d.wmoran@collaborativefusion.com>
<BLU142-W40C8F4565D53B742495EA5AE520@phx.gbl>
<b42b73150809151424u3b6f92fene1d61ae3fb2a760e@mail.gmail.com>
Merlin Moncure wrote:
> On Mon, Sep 15, 2008 at 1:10 PM, Martin Gainty <mgainty@hotmail.com> wrote:
>
>> accessing:
>> i *thought* the advantage of creating any SQL procedure/function was the
>> entity is stored in procedure cache
>> load time:
>> Java vs C++ compare here
>> http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
>>
>
> This is completely off topic as it is, but I can't help it: anyone who
> is arguing that Java is faster than C must be oblivious to the fact
> that Java internals are *written in C*. If Java was really faster
> than C, it would be self hosting, and we would be writing operating
> systems, databases, and various other systems level stuff in Java.
> (yes, there are a few well known projects, notably lucene, but that's
> the exception rather than the rule).
>
> Anybody making the case that Java is faster than C simply doesn't know
> how a computer works.
>
> merlin
>
According to your argument any hardware implementation is limited to
software performance, as it is compiled by a software compiler? In fact,
compiling assembly with a compiler written in C will destroy its
performance to be worse than C? Come on... This is utter bullshit. You
should rather reflect on your last line...
Its worst yet, there are actually situation where the Java optimizer
does a better job than many C compiler. The reverse is also true. If you
are a software guy you SHOULD know that code optimization and algorithm
design are NP problems and have no obvious optimal solutions. It seems
easier to optimize Java code than it is optimizing C code.
Better yet, you should actually read the article. It has the explanation
contained inside it. The domain of application Java has (eventually)
been developed for is just different.
Regards,
- Joris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: joris@familiedobbelsteen.nl, mmoncure@gmail.com
Subject: Re: Oracle and Postgresql
In-Reply-To: <48D50654.5030600@familiedobbelsteen.nl>
References: <41c1fa08-86a0-4023-acaa-d838d5b0abf8@i24g2000prf.googlegroups.com> <48C5C394.1070602@gmail.com> <819df3760809131924o4ec38ebetfde7cd890767b1a9@mail.gmail.com> <1A6E6D554222284AB25ABE3229A9276201A1993B@nrtexcus702.int.asurion.com> <20080915135847.GF3666@fetter.org> <7be3f35d0809150731k575bf7aajc689a4278176b1a8@mail.gmail.com> <000001c91748$af9288b0$0eb79a10$@com> <dcc563d10809150848t4acd2e80q3d7556da960b384a@mail.gmail.com> <20080915115444.65ab0c4d.wmoran@collaborativefusion.com> <BLU142-W40C8F4565D53B742495EA5AE520@phx.gbl> <b42b73150809151424u3b6f92fene1d61ae3fb2a760e@mail.gmail.com> <48D50654.5030600@familiedobbelsteen.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox