Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Joshua Cranmer Newsgroups: comp.lang.java.programmer Subject: Re: The greeting code in Java Date: Sun, 19 Jun 2011 17:22:35 -0400 Organization: A noiseless patient Spider Lines: 26 Message-ID: References: <3d6aab49-9a4a-4614-af12-bb1c95bebbe7@w4g2000yqm.googlegroups.com> <4dfdf77e$0$4132$426a74cc@news.free.fr> <06cf6f85-5473-47da-b599-de2e7f81976d@d1g2000yqm.googlegroups.com> <125bbd94-dca2-4692-8c18-3c80d8717048@c41g2000yqm.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 19 Jun 2011 21:22:35 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="bAymlyY9SkaJNa8Tz2rerw"; logging-data="29218"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187wnUKV1PS5K89fu65COLC/Se2O5mF8bo=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16pre) Gecko/20110305 Lightning/1.0b3pre Thunderbird/3.1.10pre In-Reply-To: Cancel-Lock: sha1:a8cta1lyriw7GrGpmNuVjOJlcOY= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5408 On 06/19/2011 04:53 PM, Stefan Ram wrote: > The new C++ standard has more than 1300 pages, but this is > base on the C standard with more than 500 pages. These are > nearly 1900 pages of a text in a condensed technical > language, yet the language does not allow to access a > directory of the filesystem or a socket of the network. In all fairness, the first 200 pages or so of the C standard are language semantics, which C++ redefines for itself anyways. It's the library and a few of the annexes that are important for C++ (so about 300 pages, give or take). Of course, you might want to add for some more information specs like IEEE 754 (~70 pages) if you want to know more information about floating points. The JLS itself is 684 pages, compared to the ~450 pages that C++ takes to explain its language. The C++0x library takes around 800 pages to explain the rough equivalent to large hunks of java.lang and java.util. On the other hand, the JLS is a lot more explicit and burns through space with examples, so it is relatively low in information density for a specification. The standard Java API is also probably the best example of API documentation in widespread usage. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth