send(to, from, count) register short *to, *from; register count; { register n=(count+7)/8; switch(count%8){ case 0: do{ *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; }while(--n>0); } }
--
You received this message because you are subscribed to the Google Groups "The Java Posse" group.
To post to this group, send email to java...@googlegroups.com.
To unsubscribe from this group, send email to javaposse+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
From many years ago when I was first getting into Java, I recall this
infinite Java loop pointed out by the Sumatra project
(http://www.cs.arizona.edu/projects/sumatra/hallofshame/):
while (true) {
try {
return;
} finally {
continue;
}
}
-Joe
(2 passes)
public class StrangeLoop {
public static void main(String[] args) {
http://www.thestrangeloop.com
do {
System.out.println("Strange Loop");
continue http;
} while (false);
}
}
Puzzler, infinite loop or normal termination?
Regards,
Kirk
--
You received this message because you are subscribed to the Google Groups "The Java Posse" group.
To post to this group, send email to java...@googlegroups.com.
To unsubscribe from this group, send email to javaposse+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
On 8/4/10 11:01 , Kevin Wright wrote:
>
> For anyone still labouring under the delusion that Java is a
> simple language, it's a heavyweight document; running to 650 pages
> in almost 8MB but you only really need chapter 14 for this question
> :)
>
Absolute figures are mostly worthless... comparisons help. How long
are the specs of Scala? Of course, I presume it might also depend on
the writing style.
- --
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
Fabrizio...@tidalwave.it
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxZZdYACgkQeDweFqgUGxcviQCbBSreTUXxWeVBlLjqqLfJSSWM
VY0AnjlJLJZt25fUTVnGVZIAyB+AsTAx
=j+FW
-----END PGP SIGNATURE-----
I really like how folks keep making the argument that java sucks
because it is well documented.
To unsubscribe from this group, send email to javaposse+...@googlegroups.com.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/4/10 11:01 , Kevin Wright wrote:
>
> For anyone still labouring under the delusion that Java is a
> simple language, it's a heavyweight document; running to 650 pages8
> in almost 8MB but you only really need chapter 14 for this question
> :)
>
Absolute figures are mostly worthless... comparisons help. How long
are the specs of Scala? Of course, I presume it might also depend on
the writing style.
- --
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
Fabrizio...@tidalwave.it
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxZZdYACgkQeDweFqgUGxcviQCbBSreTUXxWeVBlLjqqLfJSSWM
VY0AnjlJLJZt25fUTVnGVZIAyB+AsTAx
=j+FW
-----END PGP SIGNATURE-----
On 8/4/10 17:09 , Kevin Wright wrote:
> I actually got the numbers wrong here. although the final page has
> 649 printed on it, acrobat informs me that the document is in fact
> 684 pages long,
>
> Java (3rd Edition): 684 pages, 7932 KB Scala (current in trunk):
> 191 pages, 1312 KB
>
> Why would this be so? I can think of a few reasons:
>
> * Java has had longer to discover and document ambiguities * The
> Java spec contains more "boilerplate": copyright, legal notices,
> padding, whitespace, etc. * Much of what Java considers to be part
> of the Language in Java is library in Scala (and so out of scope
> for the spec) e.g. enums, while loops, break/continue * Java has
> *lots* of special cases that Scala does away with e.g. autoboxing,
> + operator on strings, etc.
>
> Truth be told, it's probably all of the above...
Also, I'd say that Sun intention was to allow others to independently
implement the compiler (as IBM did), and in this case I presume you
have to be pretty picky. I think there's only a single Scala compiler
around, right?
- --
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
Fabrizio...@tidalwave.it
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxZoFEACgkQeDweFqgUGxd1kACeMa5OLnib0s4JR48+XU2IiB2W
orgAn16IQ4IDXwLe3t7ESlWKSjBBYEcg
=WwvA
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "The Java Posse" group.
To post to this group, send email to java...@googlegroups.com.
To unsubscribe from this group, send email to javaposse+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
The deadline for the contest will be Aug. 31st! Give us your loops!
char i,x[99];for(x[98]=i=1;x[98];i++)i*=!++x[i]
> -----Oorspronkelijk bericht-----
> Van: kyler...@gmail.com [mailto:java...@googlegroups.com]
> Namens Kyle Renfro
> Verzonden: 04 August 2010 21:43
> Aan: The Java Posse
> Onderwerp: [The Java Posse] Re: Post your strangest loop and
> win (up to) 4 free passes to Strange Loop!