T
T
Tyoma Makeev2016-01-14 08:27:57
Python
Tyoma Makeev, 2016-01-14 08:27:57

Desktop applications in interpreted languages. How it works?

Question. I started learning all sorts of programming little by little, and it became interesting. As far as I understand, when you make an application in some compiled language, you compile the source code, get a binary, and if it was built for the correct architecture, it will most likely run. Well, that's if you really simplify everything. But I heard that people make desktop applications in all sorts of pythons and other interpreted languages. Is it possible to do this, and if so, how to make an application in such a language that will not require the end user to install an interpreter with all the modules and the rest of the environment? I'm talking about python because I started to slowly learn it. But the question itself is interesting to me as a whole, without reference to a specific language.
I wrote "desktop" in the title, because the rest usually assume either the presence of an environment, or assume that a person is able to install it. So - not necessarily exactly desktop.
UPD : This is not necessarily about Linux, it's clear in Linux, there will be dependencies. I accidentally tagged this. It's about OS X and possibly Windows
UPD 2 : Thank you all! Now it seems to be clearer. As I understand it, if the user does not have an environment and you cannot install dependencies, then you need to pack this environment for the user into the application itself.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nazar Mokrinsky, 2016-01-14
@murmuringvoices

The application can be completed with the necessary version of the interpreter and dependencies in which case.
But if we talk about Linux, then most likely the dependency in the package from the interpreter will simply be indicated.

V
Vasily, 2016-01-14
@Applez

Is it possible to do this, and if so, how to make an application in such a language that will not require the end user to install an interpreter with all the modules and the rest of the environment?

If the language is interpreted, then this is not possible. It's like giving you a flash drive with a file and not giving you a computer to view it on. At best, you can write various scripts that will check for the presence of the necessary components in the system before launching and notify you of the need to install them. (or just not run your application. or maybe even prepare the environment for the user yourself)

O
Oleg Tsilyurik, 2016-01-14
@Olej

Is it possible to do this, and if so, how to make an application in such a language that will not require the end user to install an interpreter with all the modules and the rest of the environment?

Not allowed. ;-)
Comparative review of programming languages
​​Of all the programming languages ​​in use (several dozen) compilers, there are actually only 3 left today ... even, more precisely, 2.5: C / C ++ and Go.
They're dying like mammoths ;-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question