This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ElvishJerricco's profile picture

Zip Library

Started by ElvishJerricco, 24 June 2014 - 08:18 PM
ElvishJerricco #1
Posted 24 June 2014 - 10:18 PM
Unarchiving zip files is not something that is easily done. Zip supports a wide variety of algorithms and it's pretty complicated. Plus if users implemented it themselves in lua, it'd be very slow. I think we need a zip library that's based on Java's zip library for things that can't be so easily done through complex pastebin downloads. For example, JVML-JIT will need to distribute .class files, which can't be uploaded to pastebin. It'd be best if we could just upload a jar file to github releases and use a zip library to use jars in the classpath.
Slash0mega #2
Posted 24 June 2014 - 11:33 PM
you don't have to use pastebin you know, i use my dropbox for programming in notepad++
Bomb Bloke #3
Posted 25 June 2014 - 02:43 AM
DropBox and the like wouldn't be any good for ZIP. Files downloaded via the http API get mangled if they use any non-basic-ASCII characters.

You'd want to set up a PHP server which can translate files in base64 or something. And if you're going to do that, why not have the PHP server handle decompression while it's at it?
Edited on 25 June 2014 - 12:44 AM