Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

☆(´∀`)★Python exe★(,,゚Д゚)☆

Name: Anonymous 2007-03-13 9:12 ID:Twd0PfSI

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: Anonymous 2007-03-13 10:00 ID:uldPw1vR

try using c and win32 api

Name: Anonymous 2007-03-13 10:11 ID:AX5MGTjd

>>2
Try making the world a favor and becoming an hero.

Name: Anonymous 2007-03-13 10:12 ID:uldPw1vR

>>3
i failed

Name: Anonymous 2007-03-13 10:30 ID:2F1lmSA1

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

Name: Anonymous 2007-03-13 13:37 ID:56lLxQ/q

>>5
This man is telling the truth. Thread over.

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: Anonymous 2007-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: Anonymous 2007-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...

Name: Anonymous 2007-03-13 15:32 ID:Heaven

>>8
I'm a retard.
fixed

Name: Anonymous 2007-03-13 16:27 ID:Twd0PfSI

>>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: Anonymous 2007-03-13 16:40 ID:H9GDLO+C

>>10
One word.  The semantical significance of layout.  Thread over.

http://hackage.haskell.org/trac/haskell-prime/wiki/DoAndIfThenElse#BriefExplanation

Name: Anonymous 2007-03-13 16:43 ID:Twd0PfSI

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

Name: Anonymous 2007-03-13 16:45 ID:Heaven

Name: Anonymous 2007-03-13 16:58 ID:Heaven

>>13
Quoted from OmgeaGB readme:
What all this means is that OmegaGB is capable of showing the title screens of a few games, but not much more.

Failure, please try again.

Name: Anonymous 2007-03-13 17:15 ID:Heaven

Name: Anonymous 2007-03-13 17:16 ID:wyMAmZOn

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

Name: Anonymous 2007-03-13 17:28 ID:Heaven

>>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: Anonymous 2007-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.

Name: Anonymous 2007-03-13 19:10 ID:wyMAmZOn

>>15
You can do that with PHP too

Name: Anonymous 2007-03-14 3:36 ID:C6m4383f

>>19
Yes, and PHP has bindings to GTK, your point is?

Name: Anonymous 2007-03-14 4:25 ID:Heaven

>>19
A-ha!  I have located a massive trove of Haskell applications!!

http://wxhaskell.sourceforge.net/applications.html

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!

Name: Anonymous 2007-03-14 5:52 ID:POkiw87j

>>21
Congratulations, I stand corrected!

Name: Anonymous 2007-03-14 8:33 ID:cw/nLVR1

>>20
Trolling the Haskell guy

Though he did wih with >>21.

Name: Anonymous 2007-03-16 5:09 ID:XSD6ozUi

wxHaskell <3. In fact, wxEverything <3

Name: Anonymous 2007-03-16 6:01 ID:PnQlon9g

wxPenis

Name: Anonymous 2007-03-16 7:00 ID:HJQCXYKm

wxSage

Name: Anonymous 2007-03-16 7:23 ID:Heaven

>>26
wxFAIL

Name: Anonymous 2007-03-16 7:53 ID:jnXZZVHa

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: Anonymous 2007-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: Anonymous 2007-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

Name: Anonymous 2007-03-17 15:57 ID:X3zXed8J

Stephen Hawking uses Python. True story

Name: Anonymous 2007-03-28 5:19 ID:v2ELgOCa

bumping to piss people off

Name: Anonymous 2007-03-29 9:51 ID:rSfaXgAO

>>31
True story? Sauce or it didn't happen.

Name: Anonymous 2007-03-29 11:06 ID:ulYyIjre

He uses Python CRIPPLE EDITION

Name: Anonymous 2007-03-29 11:51 ID:er5/C6Ir

>>34
What is that? Is that like Movable Python (http://www.voidspace.org.uk/python/movpy/), only completely different?

Name: Anonymous 2008-10-26 19:41

x >> arn

Name: Anonymous 2008-10-26 19:41

x \n>> arn

Name: Anonymous 2008-10-26 19:42

x
>> arn

Name: Anonymous 2008-10-26 19:42

x > arn

Name: Anonymous 2009-01-14 14:07

Sepples

Name: Sgt.Kabu㤺kiman熐闛 2012-05-28 23:16

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

Don't change these.
Name: Email:
Entire Thread Thread List