So I have this Python application I made. The source files take up about 32kB. I was looking into making this a standard Win32 executable, using py2exe. It works, but the whole package totals up to 14MB. That's a bit big, methinks. I'm using wxPython and some XML parsing doohickeys, but is there anyway I could optimise the file size?
Name:
Anonymous2007-03-13 10:00 ID:uldPw1vR
try using c and win32 api
Name:
Anonymous2007-03-13 10:11 ID:AX5MGTjd
>>2
Try making the world a favor and becoming an hero.
>>1
Why making it an EXE? Keep it as it is. People install Python and wxPython, both of which come in comfortable next next next imamoron next installers, then copy your files and run them. It can't get better.
Don't complicate it, don't make an installer that will hinder development as people won't be able to easily modify the source; don't be a GNAA fag and make a distinction of "sources" and "binaries" when the language is interpreted; don't use GNAA tools; just copy file run file happy happy go go.
PS. It IS possible to about halve the file size with UPX, but a ~7MB executable is not at all better for a 32kB program. If you want tiny standalone programs, Python is not the language you are looking for.
Name:
Anonymous2007-03-13 13:45 ID:H9GDLO+C
Haskell creates TINY programs! module Main where
import System.IO
import Control.Monad.State
import Network.CGI
cgiMain = lift get >>= liftIO . hGetContents >>= output
main :: IO ()
main = openFile "test.txt" ReadMode >>=
(\ f -> do (evalStateT (runCGI cgiMain) f)
(hClose f))
% ghc --make State.hs
% stat -c %s State
987402
Name:
Anonymous2007-03-13 15:18 ID:Twd0PfSI
>>5 >>6
True, Python and wxPython is easy to install, but I'm not sure my target audience are very interested in installing either of them. I do however think they might be interested in downloading a couple of megs of data for the luxury of doubleclicking an exe-file though.
And I will of course offer the source as an alternative for the people who are more tech-savvy.
As for >>2, I would, but it takes too much time. I can do major changes in short time in Python. Also Python happens to run on quite a few platforms, something that cannot be said about win32. Now if only Windows would come with Python preinstalled...
>>9
Oh wow, that's the most intellectual comment I've seen all day! How does it feel to be such a pillar of greatness in this vast land of people obviously far stupider then you are? Oh, yeah, the sarcasm ends here.
Name:
Anonymous2007-03-13 16:40 ID:H9GDLO+C
>>10
One word. The semantical significance of layout. Thread over.
>>11
That's nice and all, but if you could point me to some examples where Haskell has actually been used to make GUI programs for general use, I might just make the switch.
>>8 True, Python and wxPython is easy to install, but I'm not sure my target audience are very interested in installing either of them.
They are not worthy of your utility if they cannot click through two damned wizards.
I do however think they might be interested in downloading a couple of megs of data for the luxury of doubleclicking an exe-file though.
See if the Python and wxPython installers support some kind of automatic mode. Then you create an EXE with anything that will expand both, run both, then copy your file. But you shouldn't be doing this.
>>15
No no no, you won't get away that easy. What you linked to was a code dump for Haskell programs. That hardly qualifies as "GUI programs for general use".
Failure, please try again.
Name:
Anonymous2007-03-13 18:13 ID:H9GDLO+C
>>17 No no no, you won't get away that easy. What you linked to was a code dump for Haskell programs. That hardly qualifies as "GUI programs for general use".
Yes, it does. HTML is a GUI of prime importance. Tell me how it differs from, say GTK, and I'll try to find another Haskell application among the hordes of libraries that are attempting to install themselves through my backdoor.
No whining about how they only do one thing -- that is the Haskell way -- do one thing, and do it good! Like how I can write a factorial function in infinitely many ways!
Ok, you guys seem to be trailing off, this thread is about the awesomeness of Haskell, not some crappy GUI libraries (who uses GUIs anyway? I've embraced my REPL interpreter long ago.) -- what this thread needs to resurrect are some controversial opinions!
Only retards (not retarded scientists though, they use Haskell) use C. Haskell is the true language for real men.
Now excuse me while I go have a latte while reading JoelOnSoftware and rotating my Beryl desktop which is running on a MacBook. I do not expect to be able to read anything, due to all the blurring and cool shit, but I can tell people that I am sophisticated because I read some cool blog [insert anime smiley, I can't remember how to do them --ed].
Name:
Anonymous2007-03-16 9:30 ID:syWMwlBB
>>28
Nice try, but this thread is about Python executables. Well actually it's about trolling /prog/, but let's not read through any lines here.
Also, did you mean ^^? Because it's the FAGGIEST SMILEY OF ALL TIMES!
Name:
Anonymous2007-03-16 9:50 ID:IZKOsIRv
HELLO I AM STEPHEN HAWKING, FOUNDER AND CHEO OF MODERN SCIENCE PERIOD I AM HERE TO SAY LIKING JAPAN DOES NOT CONTRADICT ANY LAW OF PHYSICS CIRCUMFLEX CIRCUMFLEX PERIOD I GUARANTEE IT PERIOD
Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy