All Questions
55 questions
1vote
3answers
296views
Are interchangeable types a security vulnerability? Are they good vectors for attack?
Suppose you are given a python API: def onArgumentReceived(x): doWhatever(x) # expects a unicode string I am not a security expert by any stretch of the imagination, however on the face of this, ...
0votes
1answer
520views
Should SSDP be considered as a go-to option for local network discovery in software development?
I am currently working on a Raspberry Pi based robotics project that I would like to connect to a realtime customized control panel/dashboard, mostly for debugging purposes. I created a test setup ...
0votes
0answers
218views
Deployment of two programs that communicate between them
On windows, I have done one client in c++ and one server in python. In order to make the program work, I need first to run the server (in one terminal), and then I can run the client. I am trying to ...
-1votes
1answer
765views
What is the use of Multiple Inheritance in languages like C++ and Python?
C++ and Python are the only two languages I know supporting multiple Inheritance. Other object oriented languages I have seen like Java and Ruby do not support multiple inheritance. Even the front-end ...
-3votes
1answer
66views
Is it possible to add a unique identifier to the shared Data via bittorrent (P2P)?
I know that P2P sharing is copying the exact content between the peers. Everyone has the same data. Let's assume the content is very important and I don't want anyone to distribute outside the group. ...
-1votes
1answer
197views
Conversion methods: from_xxx() or to_xxx(), is there a reason I shouldn't stick with to_xxx()?
I have a C++ library that I'm converting to Python. In the C++ library I have multiple constructors and many different types of conversion functions (think radians to degrees, and different types of ...
0votes
1answer
102views
Designing a library API to allow for interactivity
The application I'm currently working on is deeply coupled to the UI framework in use (Qt at the moment). I would like to separate the UI-specific code from the rest as much as possible, with the goal ...
2votes
1answer
774views
Easiest way to build and distribute Excel UDF add-in capable of Statistical Analysis
01 - BACKGROUND: I'm a typical non-programmer R user for 6+ years. Which means: i) I`m comfortable with the language most of the time and have written R packages for myself, but ii) writing C++ code (...
26votes
6answers
9kviews
What does it mean when you say C++ offers more control compared to languages like Python?
I am comparing C++ with Python. It is clear that C++ is much more efficient and that the C++ code compiles directly to machine code whereas in Python it is interpreted. I do understand that Python is ...
-4votes
1answer
233views
What things should you consider when porting software from python to c++?
Suppose you have written a prototype for an application in python, now you want to rewrite it in c++ for speed reasons and to make a real software out of it. What are things to consider before ...
0votes
1answer
590views
To structure big and expandable project(s)
TLDR with bold I want to create a library (I think this is the right term) for my own reinforcement learning environments (envs for short). Most of the envs would be based on self-implemented games ...
1vote
2answers
6kviews
Will compiled python code be as fast as compiled C++ code?
I know that Python is an interpreted language and that c++ is a compiled one, or at least I like to think that I've understood some of their differences. Although C++ is apparently faster than ...
-2votes
1answer
988views
How to make code runnable on open source code editors like Ace Editor?
For my computer science uni project I'm required to build a web application with an integrated code editor. I believe I can just integrate open source editors like Ace Editor. However, I feel ...
3votes
5answers
2kviews
Fastest way to find all numbers with digits
I have a huge set of over a million numbers of variable lengths. ['773', '2267', '8957251', '170597519', '373590109', '982451707', '999999937', ......] Now given a bunch of digits, say 3 and 7, I ...
-2votes
1answer
194views
How to determine the behavior of complicated source code quickly? [duplicate]
I am interested in zcash (https://github.com/zcash/zcash) and the theory behind it. Therefore, I download the source codes of zcash to trace it. The codes comprise C++,python and shell scripts. How ...