Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
It would be great if we could run commands in the terminal during simulation. Just like in JavaScript where you can enter commands and get output. Why is there no such functionality in programming for iOS?
Only interpreted languages can execute code at runtime. Compiled languages cannot. Since swift is a compiled language it cannot execute code at runtime.
Examples Of Interpreted Languages
Java
JavaScript
PHP
Perl
Python
Ruby
Examples Of Compiled Languages
C
C++
C#
Objective-C
Pascal
Scala
Swift
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have 100+ lines of code of swift programming. But I want to appropriate code in other language like objective -c .
Is there any way to convert this code to other language directly ?
There is no such tools for converting Swift code to Objective-C. There are some reasons. One is because Objective-C is a semantic subset of Swift, i. e. Objective-C doesn't have any equivalent of some fundamental features of Swift such as Generics, Algebraic data types, Pattern matching and other.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can someone explain what is Erlang run time environment and what dose it contain? Dose it contain erlang VM, what else ?
Regards
MM
The Erlang runtime environment in particular contains the Erlang virtual machine, the kernel and the standard libraries.
Erlang in general provides a lot more tools (compiler, debugger, monitoring tools etc.).
For details, please have a look at the documentation at: http://www1.erlang.org/documentation/doc-4.8.2/doc/system_architecture_intro/sys_arch_intro.html
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
so I have just bought the PIL 3 (programming in Lua 3rd Edition). and have begun reading the eBook. however I am abit confused on the whole interpreter idea. how do I install the editor? I am talking about what do I install and what do I do with them.
An interpreter is simple a program that runs the source code usually used to refer to the interactive version of this functionality. In this case the environment you get when you run lua from a command prompt.
As to editing lua code there is no dedicated editor, no built-in IDE, no default experience of that sort. You can, and people do, write your code in anything you want so long as it can save it to a file so that you can run it later.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I want to protect my Lua codes on my project, I'm using Corona SDK.
I saw some lua files being obfuscated like this one
https://github.com/ChartBoost/corona-sdk/blob/master/ChartboostSDK/chartboost.lua
Is there any application to protect my source code?
The file you mentioned is not encrypted: it's just precompiled bytecode for Lua 5.1. It can be read with luac -l -p (not in source form but in VM instructions, which are probably enough to reconstruct the source). If you want to reconstruct the source, try LuaDec for Lua 5.1.
You can precompile your code using luac or string.dump.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I was wondering if it is possible to interact with your computer through Lua (Through SciTE or Sublime Text, I suppose...)? For instance, can you play a .mp3, or open a file with Lua?
Yes, through the use of the operating system library os.
You can use os.execute([command]) to run any command from the host operating system's shell (think terminal or command prompt).
There's more information on using this library in the Lua online reference manual.