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 7 years ago.
Improve this question
Real time system requires a fast & efficient platform. I wonder which combination is suitable for real time image processing: OpenCV-Python, OpenCV-MVStudio (C++), OpenCV-Matlab or OpenCV-Java? I had read about CUDA, but if I don't want to use CUDA for my project, is there any way to develop a fast system?
I can comment on MATLAB, Python and C++, but not Java:
To run OpenCV in MATLAB you will need something along the lines of mexopencv (http://kyamagu.github.io/mexopencv/). This compiles many of the OpenCV functions (not all functions are included) into mex files which MATLAB can read and use. It works but is probably not the fastest solution for real time applications. But it is useful for prototyping.
Running OpenCV in Python is easier and runs more efficiently, though it is still "indirect" as it requires a Python wrapper (as OpenCV is written in optimized C/C++).
The most efficient solution for real-time algorithms would be to use the native language of OpenCV, i.e. C++, avoiding the translation step between languages.
CUDA, or parallel processing in general, is an option for all these platforms. However whether it will benefit the speed of your code depends largely on the project itself. Often parallelising something can make it run slower instead of faster. Have a look at https://en.wikipedia.org/wiki/Parallel_slowdown for info.
Hope this helps!
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 3 years ago.
Improve this question
I want to make a OS that could be gaming-friendly (like Windows) yet easy to use. I can already use Python perfectly fine, and I'm looking to see if I could make an OS with it. Is it possible? If not, what are some Python-like coding languages that I could use?
I've looked in to Buildroot but it uses the Makefile language which I am extremely confused about, it's just non-logical (at least to me).
I expect it to be possible because C# is quite the complex language and it works fine.
#Neutrino You in theory can, it's not an easy task you would first have to make the python bytecode interpreter sit directly on bare metal this still involves quite a bit of C. At that point you would have a micro-kernel with the rest of the operating system written in Python. People have prototyped this in years past. I believe project cleese is the closest you will get to something that you're looking for.
Project Cleese
https://github.com/jtauber/cleese
Never use python to build any sort of OS, especially if you want it to be gaming-friendly. Python is a very slow language.
To build an OS, you should use a language from the C family
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 6 years ago.
Improve this question
I was googling for some demo Python code I found few sample codes which say they use IronPython, CPython and PyPy so I then searched for what they actually are and found that these are already written code arenas from where we can pick functions and use them. But I am not actually sure on how to use them in my code.
And also can I use all of them at once in my single code.
CPython is the original implementation of the Pythn language (written in C). IronPython is an implementation of the Python language that runs on the .NET framework and PyPy is another implementation of Python using Just-In-Time compilation for faster execution speeds.
They are all Python interpreters, and for learning the language it does not matter much which one you use. I prefer using CPython, since it's pre-installed on many systems, but if you need access to .NET libraries from Python or need faster code, I guess IronPython or PyPy would make sense to use.
Yes, you could use both and PyPy is interpreter and just-in-time compiler focused on speed, efficiency, and compatibility with CPython.
good luck
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 7 years ago.
Improve this question
I'm a bit unsure on wherever this is possible or not, but is it possibe to make a 3d graphics and animation program in Visual basic (Using Visual Studio 2013), and if so, what modules do I need?
I've looked into modules already, but the only one I found was way over my budget.
I've also heard that it's possible in Python 3 and I may have to use this language, instead.
Cheers!
No, you don't have to use python it's possible you can use DirectX SDK for C# and VB.net but almost all tutorials in C#. Download SDK From Here:-
http://www.microsoft.com/en-us/download/details.aspx?id=11471
acutally you should be able to use any .Net Library with VB.NET. i never tried it because i just use C#, thats the major Language for .Net, and my suggestion for using .Net as well. Most examples you find are in C#.
You may want to take a look at MonoGame
you could also start working directly with OpenGL or DirectX, but MonoGame has a stronger abstraction, what makes it a lot easier for you.
Actually you should be able to develop 3D graphics/Animation in every major objecr orientated programming Language.
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 9 years ago.
Improve this question
I want to know if there are ways to compile C, C++ and Python code in order to not be able to reverse engineering it over Linux or not?
I have heard there are some ways over Windows to do it, but I am working on Linux.
I want to compile my code securely, as released or final version.
UPDATE
At least I want to make it hard for usual users to disassemble,
I am using GCC for C and GPP for C++, also I would be thankful if you introduce me best compiler for Python.
I want to know if there are ways to compile c, c++ and python code in order to not be able to reverse engineering it over Linux or not?
You could always obfuscate the code, but know this: A dedicated reverse engineer can not be stopped. As someone else once said on this site: You can't protect your code technologically, only legally.
I want to compile my c, c++ and python code securely... as released or final version...
Well, as far as python is concerned, you could always ship the software as an executable created by an exe packager such as py2exe or freeze. Refer to this question.
also I would be thankful if you introduce me best compiler for Python
In the Python world, you aren't talking about a compiler, rather, about a specific implementation. Most people use the reference cpython implementation. There are also alternatives such as pypy or jython,
but they are not dedicated compilers, rather, full blown virtual machines.
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 9 years ago.
Improve this question
I want to learn python so I downloaded it from the python site and I saw 4 other kinds of pythons appear:
Python (normal)
IronPython
Jython
PyPy
Stackless Python
I can really find what the differents are between these.
Also which one is the best to start with.
Updated to include corrections from kind people in the comments section:
Of the python implementations you mention, the original and most commonly used is CPython (python on your list - which is an interpreter for python implemented in C and running as a native application) and is available for pretty much every platform under the sun. The other variants are:
IronPython: runs on the .Net common runtime (interfaces more cleanly with other .Net apps)
Jython: runs on the JVM (interfaces more cleanly with Java and other JVM apps)
PyPy: A Python interpreter which includes a just-in-time compiler which can significantly increase program execution performance. The interpreter and JIT are implemented in RPython (rather than C), a restricted subset of Python which is amenable to static analysis and type inference.
Stackless Python: An implementation of a python interpreter which doesn't rely on recursion on the native C runtime stack, and therefore allows a load of other interesting programming constructs and techniques (including lightweight threads) not available in CPython.
There are a large variety of libraries for Python (one of the major advantages of the language), the majority developed for CPython. For a number of compatibility reasons, none of the variants above currently support as many as the main implementation. So for this reason, CPython is the best place to start, and then if your future requirements fit one of the other platforms - you'll be in a good place to learn the variations from a solid grounding in the basics.
Python. All the documentation you'll find for learning the language assumes this. Then if you find a need for one of the other implementations the documentation will assume you know Python and explain the differences.
Start with Python.
The alternatives are for special use cases that apply mostly when you are integrating Python with other languages, which is a very advanced usage of the language.