Attention: The forums will be placed on read only mode this Saturday (Oct. 20, 2018)

During this outage (6:30 AM to 8 PM PDT) the forums will be placed on read only mode. We apologize for this inconvenience. Click here to read details

Windows 8 forum

Question

Compile

by lucas185 / April 30, 2014 7:21 AM PDT

how to compress a lua file into an exe?

Discussion is locked
You are posting a reply to: Compile
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Compile
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
Answer
Re: lua
by Kees_B Forum moderator / April 30, 2014 7:35 AM PDT
In reply to: Compile
http://www.lua.org/about.html makes me think it isn't currently possible. It's an interpreted language, so it needs a runtime (like Java or Javascript).
But since it's open source, there is nothing that would keep you from writing a compiler yourself.

Kees
Collapse -
You probably can
by Jimmy Greystone / April 30, 2014 11:23 AM PDT
In reply to: Re: lua

You probably can, but the usual method of "compiling" an interpreted language like Lua, Perl, Python, Ruby, whathaveyou, is to just tack on the entire runtime to the executable, so you don't gain any performance benefits at all... Probably the opposite. The one and only reason to do it would be if you don't want someone being able to easily get at your code, in which case you probably wouldn't be using a language like Lua.

Collapse -
Answer
Workaround. Command line skill. See search.
by R. Proffitt Forum moderator / April 30, 2014 7:48 AM PDT
In reply to: Compile
Collapse -
Answer
I'm not that familar with Lua but
by orlbuckeye / April 30, 2014 9:18 PM PDT
In reply to: Compile

the difference between an interpreted language and a compiled is the compiled language is compiled into a language the and processor understand (machine language). Interpreted language are used so you can write the same code on any OS and you need a run time engine that basically compiles the code into bytecode that for that particular OS. It does it on the fly whereas a compiled language when you compile it will generate a file with an exe extension. Most languages the higher level coding uses some type of editor to write the code.

Collapse -
Answer
When you compiling to an exe
by orlbuckeye / April 30, 2014 9:23 PM PDT
In reply to: Compile

your not really compressing your converting the human understood code into machine understood code. (bits and Bytes).

Popular Forums

icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

FALL TV PREMIERES

Your favorite shows are back!

Don’t miss your dramas, sitcoms and reality shows. Find out when and where they’re airing!