Ultraken (ultraken) wrote,

Executable versus Script

I recently found that the compiled C++ version of my Snake game is significantly smaller than the Lua script version that runs in ConsoleLua. The executable is around 5KB while the script is around 8KB, and ConsoleLua is over 100KB (80% of which is Lua itself). That's... somewhat disheartening.

To add insult to injury, the Snake executable is statically linked to a compact version of the C runtime (called wcrt) so it doesn't even need the Visual C++ 2013 redistributable package.

Tags: programming

  • Console Lua

    I made a thing. ConsoleLua is a simple game engine for making character-mode games reminiscent of the kinds of things one would write in QBasic…

  • Fixing LCD Image Persistence

    I noticed that my primary monitor at work had developed a bad case of image persistence, so I wrote a simple utility in Processing to fix it. It…

  • Spectrum Analyzer

    I found out earlier this week that I was doing the spectrum analyzer wrong. I had noticed from the beginning that I got broad "cusp" shapes with…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded