public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew John Hughes <gnu_andrew@member.fsf.org>
To: Andrew Haley <aph@redhat.com>
Cc: java@gcc.gnu.org
Subject: Re: libgcj 3.4.6 vs 4.x.x
Date: Wed, 06 Jan 2010 13:58:00 -0000	[thread overview]
Message-ID: <17c6771e1001060557m4422dbf2j296aedffd6e6d7b0@mail.gmail.com> (raw)
In-Reply-To: <4B448A9B.2060306@redhat.com>

2010/1/6 Andrew Haley <aph@redhat.com>:
> On 01/06/2010 12:59 PM, Andrew John Hughes wrote:
>> 2010/1/6 Andrew Haley <aph@redhat.com>:
>>> On 01/06/2010 11:37 AM, abhishek desai wrote:
>>>> Is there any documentation about the enhancements in gcj/libgcj
>>>> between versions 3.4.6 and gcc version 4.x.x ? I tried to compare the
>>>> changelog but it did not help much as the changelogs are of two
>>>> different versions.
>>>
>>> It's mostly just better and better coverage of the language.
>>>
>>> The key difference was gcj 4.3, which bumped the spec to 1.5, bringing
>>> annotations and templates.
>>
>> Templates? What are templates?
>
> No smiley?

Yeah, sorry, forgot the smiley... :-) there we go

>
> OK, generics then.  Same thing.  More or less...  :-)

The main difference is that Java generics are type-checked (though not
at runtime because there's no reification), while I believe C++
compilers generate the required type-specific code from the template.
I know it can lead to confusing compiler error messages in C++ code
when there is a problem in code that was generated from the template
by the compiler.

I was corrected for making the same comparison a long time back when I
first started working on Classpath (though not by you).  So couldn't
resist the temptation of pointing out they aren't the same ;-)

gcj 4.3 also adds enumerations from the 1.5 language specification,
and, most notably, moved away from its own compiler to using ecj to
compile all this 1.5 stuff.  You need 4.3 as a minimum to bootstrap
OpenJDK via IcedTea.

>
> Andrew,
> who has perhaps been writing C++ too much.
>
-- 
Andrew :-)
who tries to avoid writing C++ whenever possible

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8

  reply	other threads:[~2010-01-06 13:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-06 11:37 abhishek desai
2010-01-06 12:03 ` Andrew Haley
2010-01-06 12:59   ` Andrew John Hughes
2010-01-06 13:05     ` Andrew Haley
2010-01-06 13:58       ` Andrew John Hughes [this message]
2010-01-06 15:01         ` Andrew Haley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17c6771e1001060557m4422dbf2j296aedffd6e6d7b0@mail.gmail.com \
    --to=gnu_andrew@member.fsf.org \
    --cc=aph@redhat.com \
    --cc=java@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).