Whack: Compile and run path-independent Linux programs
github.com
github.com
Suggestions for alternatives are extremely welcome!
* Movable
* Location-Independent
* Path-Independent
* Path NeutralI suggest you reconsider. :)
I've been waiting to see a .dmg equivalent for Linux.
In a very literal technical sense I have no idea what this means. Linux can mount a file as if it is a disk with -o loop. I suspect you're really talking about something else. App bundles perhaps?
The thing about that is various *nix machines do not have a standardized user interface. Every Mac has Finder for example, so if Finder wants to call into various components (eg. to mount a .dmg on a double click) or create a metaphor layered on top of the directory concept (app bundle), there are a number of places to put that. A Linux system has no similar "one place" to make that consistent where it will be seen by everyone.
Personally I consider that a feature rather than a bug. One person's idea of a better way of working could break another person's perfectly good workflow. If you want a Mac, get a Mac, and leave the rest of us alone. :-)
Having said that, it would be great to have an implementation that didn't require setuid/root.
Otherwise, if it's really relocating binaries, then it's awesomse, BUT I definately want to know MORE about the 'caching' part. That comes short in the docs.
Which bit of the caching isn't clear? If you're happy that whack creates relocatable versions, then the caching works just by copying the output directory into ~/.cache, and then copying that directory to the target on subsequent installations. The exact details of how programs are made relocatable are under "How does Whack work?" in the README.
Oh, no I hoped that something performance related is happening when you said cache, like tuning the binary, predictive read-ahead streaming of the binary to memory, or something like that. I didn't know that it's a copy operation.
https://github.com/mwilliamson/whack-run
Whack itself is run with normal privileges.