New j4k contest anytime soon?

Yes, allowing both would be better than excluding one. :slight_smile:

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. :slight_smile:
[/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 :slight_smile:

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. :slight_smile:

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ā€¦ :wink:

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).

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

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 :slight_smile:

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