Yes, allowing both would be better than excluding one.
And I still have faith in applets. ;D
Yes, allowing both would be better than excluding one.
And I still have faith in applets. ;D
Iām really surprised to hear that your applet is smaller. For an applet you have to give it a thread to run in and all that instead of using the constructor ???
Iām disappointed pack200 jars wonāt execute, is this a fact or conjecture?
What are the complications with jws? Iāve never worked with it so I donāt know.
Applets are the no brainer solution, but I think having an āapplet 4kā contest is much different than a ājava 4kā contest. For one youāre adding a restriction that is new and for another, like it or not, applets have a bad reputation. I for one like compileing without deprecation warningsā¦ Note, I think I had the only applet last time.
[quote]And Iām not going to enter if an executable jar file is required.
[/quote]
Cool, now thereās more room in the top ten!!!
;D
I prefer an executable jar myself, but wouldnāt preclude applets.
If pack200 only works with webstart, it would be difficult for entrants with only their ISP provided webspace, since these often donāt have the required mime types. In addition, unless signed, webstart entries cannot go full screen or set the ānodrawā property. Also when running (unsigned) in a window, the āJava Application Windowā banner grabs some of the bottom of the main window. Allowing pack200, would put executable jars and applets at a size disadvantage. Overall itās a mixed blessing. Iād prefer not to allow it really, although thats the Luddite in me talking.
Iām still tempted to code for java 1.4.2, although 1.5 should be allowed. There are probably still quite a few computers out there without 1.5.
Alan
This is my opinion, too. Aplets canāt be compared to webstart possibilities.
Why not just say use webstart and the JNLP is not included in the size?
One would then argue that you can pass entire data throught it as arguments, but just forbid argumentsā¦
This way, applets, applications, and any other thing that starts with app will work
DP
Just to be clear, Sun does say that you can use it as an archive format similar to ZIP. Itās only technically āsupportedā by webstart because webstart automatically unpacks it into its cache.
[quote]Iām still tempted to code for java 1.4.2, although 1.5 should be allowed.
[/quote]
Setting the rules at 1.5 shouldnāt preclude anyone from targetting 1.4. All it means is that your work will be judged under a 1.5 VM. Since Java is so good about backward compatibility, that shouldnāt be a problem for most.
Since pack200 gives such a tremendous compression advantage and can only be used for webstart it should be excluded from the competition entirely.
Orā¦
Allow it and for those who really care about the extra 500+ bytes and want to go thru the trouble of signing jars, setting up jnlp, and allowing only those with jdk 1.5 to play there game then they can.
What do you guys think?
Has anyone tried out pack200 on an existing 4k game? I found this quote:
Since there usually is only one class in a 4k program & little text, there may not be a big advantage in using pack200.
NB. IIRC, the main drawback of the zip format is that it compresses each class separately, which is not really an issue if you only have one class.
Alan
/Edit: Found this old post by Abuse on sun forums. Kinda bears out my suspicions. I am beginning to think that pack200 is a red herring.
pack200 works also for appletsā¦
Lilian
Nope, pack200 works super well, and it works for applets like C. said.
My test:
jar: 4.52kb
pack: 3.03kb
and it runs as an applet with an āarchiveā property in the applet tag. Thatās ALOT of uncompressed code!
Yes, Iām using applets from now on ;D .
Holy moly!
I might be wrong, but as far as I can recall, the rules last year allowed basically anything, as long as one could start it in one way or another. This seems like both a good and a bad idea.
Last year, for webstart files, you were allowed to exceed 4k with the signed JAR, right? And the JNLP was not included in file size. Thatās good, I think.
I canāt claim to know anything about Pack200, but if it gives that much of a size advantage, it really uppers the practical limit a lot, allowing for much bigger games. Being a 4k contest, I donāt really see the point, so I think this should be disallowed.
Iād personally prefer if you could use either self-excutable JARs or Applets. Furthermore, Iād allow webstart, excluding the signatureās extra size, and the JNLP file, by forcing anyone using webstart to create a self-executable JAR that does exactly the same thing (in other words, no specific rules for webstart - let anyone who wants webstart follow the normal rules, and then create another file for webstart).
If those were the rules, Iād surely post any entries as JARs and webstartable (JAR for the contest, webstart for opinions, accesibility, etc).
Nope, pack200 works super well, and it works for applets like C. said.
My test:
jar: 4.52kb
pack: 3.03kband it runs as an applet with an āarchiveā property in the applet tag. Thatās ALOT of uncompressed code!
Yes, Iām using applets from now on ;D .
Interesting. Was the starting jar already obfusticated & compressed with 7zip (compression=9) or kzip? Itās important for comparison, since I usually manage to shrink the stock jar by nearly 50% that way.
Alan
Incorrect. Many developers offered a Webstart version for convenience. However, most were actually judged on a downloadable JAR version of the game.
[quote]And the JNLP was not included in file size.
Correct.
[quote=āMorre,post:52,topic:25185ā]
I disagree strongly. The point of the competition is to try to squeeze as much as possible into 4k. Preventing means of doing so is counter-productive and silly.
If you donāt mind me doing a bit of slippery-sloping, if we ban pack200, we should also ban jars with non-zero compression.
I pack200ād my provisional entry:
frag4k.jar = 4094 bytes (obfusticated with proguard & zipped with 7zip at max compression)
frag4k.jar.pack.gz = 3262 bytes (now 3246 bytes with added secret sauce)
Ok, Iām convinced thereās a saving.
Alan.
We should start a new one.
Iāve been completed out of the loop. Iāll try to catch up on this thread, and contact Woogley.
Jbanes: I think you misunderstood me, thatās just what I meantā¦ about the webstart, I mean - the signed jars arenāt specifically allowed, but rather something you can do if you want to, IF you also have a normal jar thatās less than 4k.
Markus_Persson: I see your point - either packed, or not packed. If packed, pack it all the wayā¦ I guess youāre right, although it does alter the contest possibilities in a rather extreme way, doesnāt it?
Sorry mlk, Iām done now
To clarify:
You can pack200: applets and jnlp
You can pack200 an executable jar file but it has to be unpacked before it can be executed. Applets and jws do this for you.
Why not get something fun and and original working before worrying about the 4k limit, Not to say that anything Iāve ever produced is original but the shrinking things down after the fact reallt isnāt that difficult.
Kev