Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hello world contest

 
Alok Pota
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or those of you who were at the meeting, you heard me announce the
"Hello World Contest". I am outlining the contest rules and prize
below. This contest is open to anyone and everyone.
Objective: Write the traditional "Hello World!" program using the least
number of bytecodes possible. (We will look a the size of your .class
file). The minimum size is at least 392 bytes.
Rules:
1. After invoking your application, the text "Hello World!" should be
generated on the console by the application. No other text, either
preceding or succeeding the text should be generated.
2. The application should not generate an Error or Exception or any
subclass instance of either type.
3. The application must run on the jre 1.3.x
4. No changes can be made to the JVM, the bytecode verifier, class
loader, or associated runtime environment
5. Any additional files that are required to run the application
(outside of those available in the JRE) will be considered part of the
byte count.
6. Do the work yourself - no copying any portion of anyone else's
program or best practice, asking anyone for help, etc.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> or those of you who were at the meeting
What meeting?
And what's this about a "prize below"? It looks suspiciously like you're copying this from somewhere else, but if someone provides a clever answer here, they don't have the necessary info to claim the prize - only you can do that. Which doesn't seem exactly fair...
> The minimum size is at least 392 bytes
??? So what, if someone manages to make a smaller class file than that, it's disqualified?
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We will be better-off if we get rid of this garbage.
 
Alok Pota
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

For those of you who were at the meeting, you heard me announce the
"Hello World Contest". I am outlining the contest rules and prize
below. This contest is open to anyone and everyone.
Objective: Write the traditional "Hello World!" program using the least
number of bytecodes possible. (We will look a the size of your .class
file). The minimum size is at least 392 bytes.
Rules:
1. After invoking your application, the text "Hello World!" should be
generated on the console by the application. No other text, either
preceding or succeeding the text should be generated.
2. The application should not generate an Error or Exception or any
subclass instance of either type.
3. The application must run on the jre 1.3.x
4. No changes can be made to the JVM, the bytecode verifier, class
loader, or associated runtime environment
5. Any additional files that are required to run the application
(outside of those available in the JRE) will be considered part of the
byte count.
6. Do the work yourself - no copying any portion of anyone else's
program or best practice, asking anyone for help, etc.
Entries:
1. All entries must be submitted to me (croach@middleware-company.com)
before the December Social. I will need the '.class' and '.java' file.
Judging:
Judging will be done by Clay, and the rest of the Austin JUG board. Any
ties will be decided by a trivia question.
Grand Prize:
1 entry to the Lone Star Software Symposium (a $595 value) http://www.completeprogrammer.net/lsss/index.htm

Good Luck!
Clay Roach
croach@middleware-company.com
The Middleware Company www.middleware-company.com
We built TheServerSide.com
 
Alok Pota
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is an AUSTIN-JUG announcement. The aim of the contest is to create the least possible byte code. I don't see how that is garbage?. This is a legit contest.
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Alok Pota:
1. All entries must be submitted to me (croach@middleware-company.com)before the December Social. I will need the '.class' and '.java' file.

Umm, ahh, when is the December social?

------------------
Dave
Sun Certified Programmer for the Java� 2 Platform
 
Aj Manch
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still how did they come up with 392 bytes as the minimum?
 
dan moore
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for anyone attempting the challenge, check out http://www.helper.demon.co.uk/rheolism/ for some tips and methodology.
cheers, dan.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic