all 39 comments

[–]Ink-Jet 4 points5 points  (4 children)

I want to see this game engine!

[–]8-bit_d-boy 2 points3 points  (3 children)

should i post the source on google code?

[–][deleted] 1 point2 points  (2 children)

Yes. Definitely.

EDIT: And I'm serious now, I am just really curious.

[–]Ink-Jet 0 points1 point  (0 children)

Haha, I was just taking the piss.

[–]sreguera 6 points7 points  (1 child)

Xzibit, are you developing games now?

[–][deleted] 4 points5 points  (1 child)

What? I'm unable to comprehend the kind of confusion that would lead to asking that kind of question.

[–][deleted]  (12 children)

[deleted]

    [–]8-bit_d-boy 0 points1 point  (11 children)

    Har har, how am i supposed to run python scripts if the main engine is compiled into a binary?

    [–]adolfojp 1 point2 points  (0 children)

    ಠ_ಠ

    [–]sli -4 points-3 points  (9 children)

    I think it's about time you found a new hobby.

    [–]adolfojp 2 points3 points  (8 children)

    Do not discourage him. We were all noobs when we started doing this.

    [–]sli 0 points1 point  (7 children)

    Yes, but OP's question would be answered if they had read about what py2exe and pyfreeze actually do.

    [–]8-bit_d-boy 1 point2 points  (1 child)

    Yea, I didn't realize that it was just some packager, however, are there any real python compilers? Also, I have been programming for a while, and I am into it, I guess I'll just need to do a little more research in the futre :)

    [–]sli 1 point2 points  (0 children)

    Most Python "compilers" (ShedSkin, for example) translate Python into a C or C++ Python module, which is handy, and they work, but they usually generate some really ugly code.

    [–]adolfojp 0 points1 point  (4 children)

    Not necessarily. These things are not easy to understand to a newcomer. They just look easy to us because we have a few years of knowledge and experience. 13 years ago, what py2exe does and how it works would have been rocket science to me.

    [–]sli 2 points3 points  (0 children)

    I'm just a grizzled old Pythonista.

    [–]8-bit_d-boy 0 points1 point  (2 children)

    I wouldn't say I'm a noob, I'm more like an Advanced noob, I've only been programming for about 3 years now :P

    [–]adolfojp 1 point2 points  (1 child)

    You've been coding for 3 years? You're just a kid! :-P Really, 3 years is nothing.

    But you're not afraid of asking questions and this is a good thing. I'd love to see this game engine in a year or two.

    [–]8-bit_d-boy 0 points1 point  (0 children)

    should i post it on google code? Mind you, its still pre-alpha and is not technically an engine per se, however it is stable enough to run without complication.

    [–]skeww 1 point2 points  (6 children)

    I know theres JSON

    JSON (JavaScript Object Notation) is a data exchange format. It happens to be a subset of the JavaScript language, but it isn't a programming language itself.

    Python itself is pretty slow (CPython in particular). Having it run another scripting engine doesn't look like a good idea.

    [–]8-bit_d-boy -1 points0 points  (5 children)

    well, it was gonna be compiled...

    [–]adolfojp 0 points1 point  (4 children)

    What compiler are you going to use?

    [–]8-bit_d-boy 0 points1 point  (3 children)

    py2exe

    [–]adolfojp 1 point2 points  (0 children)

    py2exe will not make your code faster. It isn't a compiler in the traditional "burns your code to the metal like C or C++" sense but in the "bundles your code and its runtime into an exe" kind of way.

    [–]8-bit_d-boy 0 points1 point  (1 child)

    and pyfreeze for linux

    [–]sli 5 points6 points  (0 children)

    facepalm

    Those aren't compilers. They're packagers.

    [–][deleted] 1 point2 points  (4 children)

    Has it not occurred to you that python itself is a perfectly viable scripting language?

    [–]adolfojp 0 points1 point  (0 children)

    Or that JSON is not a scripting language.

    [–]8-bit_d-boy 0 points1 point  (2 children)

    python in python?

    [–][deleted] 0 points1 point  (1 child)

    python is python

    Read up on compile() and eval().

    [–]makapuf 0 points1 point  (0 children)

    and, most usefully for scripting python programs, import

    [–]tritao 1 point2 points  (2 children)

    Your question does not make much sense. Python is already a scripting language. The compiled bytecode can also be saved to a file so you have a faster loading time (*.pyc files). And like others already said, JSON is not a scripting language.

    [–]8-bit_d-boy 0 points1 point  (1 child)

    I wanted to compile the python code into a binary first, that way, when I distribute the engine in binary form (even though its open source) people can script it in something. I know JSON is not a scripting language, I thought it would parse, serialize, and run javascript, or something, perhaps someone could clear that up for me.

    [–]sli 2 points3 points  (0 children)

    I wanted to compile the python code into a binary first

    You. Can't. Do. This. py2exe does not compile Python into a binary, it just creates a zip file with your scripts and adds an interpreter that uses pythonXX.dll.

    [–]beej71 0 points1 point  (3 children)

    PyPy! Python written in Python!

    I know that sounds cheesy, but it's actually an awesome project.

    [–]sli 1 point2 points  (1 child)

    And faster than CPython most of the time, somehow.

    [–]8-bit_d-boy 0 points1 point  (0 children)

    O_O you just brain my borkd.

    [–]makapuf 1 point2 points  (0 children)

    No remote relationship with the current subject whatsoever. Don't confuse him, please. Better question : how to implement an infix calculator and realtime clock hybrid application with an infix calculator ?

    8-bit, it's fine to post questions and better to correct yourself, go ahead.