Ибраги́м
/report
It's OK.
psy4
Anonymous
As if everyone speak french
psy4
IKR 😁
psy4
I know a lil French
Shivam
Pi🅱️🅱️a
вадим
I am a french person. Admin I can translate her request
вадим
Let me pm her
Ибраги́м
I am a french person. Admin I can translate her request
OK, pm her and tell her she's welcome to use English
Ибраги́м
Or use Google Translate
Ибраги́м
Or Yandex Translate
Ибраги́м
Or any other translate
вадим
OK, pm her and tell her she's welcome to use English
I just talked with her . She has an exam which topic is on class in C++.
Ибраги́м
вадим
I said her to get by doing the exercise herself if she is stuck then she can buzz group
Ибраги́м
Or convert French via translate service ?
вадим
Futorio
Maybe french telegram group?
Ибраги́м
She can't speak well
Well, she can sum her questions in single post and translate them.
Ибраги́м
It will be way easier that way
Ибраги́м
And tell her it's totally uncool to be French to an English fight unless your name is @QNeko
Futorio
Brilliant, we will wait her request impatiently
MᏫᎻᎯᎷᎷᎬᎠ
.
Dima
Le C++
Anonymous
Why use it as wrapper? Why don't you use something decent like C# for warpper?
The thing is I have to call api which is only python supoorted for now and I need to do some mathematical calculations with loops so that's why i am stuck with python. any recommendations?
Anonymous
Anonymous
Pure graph theory
Anonymous
Need data from different
Anonymous
Points and calculate best path to move.
Mihail
If the calculation is quick just Python might be faster
Mihail
Like <500ms just stick with Python
Mihail
If it's anything longer going to a cpp program will be worth it
Anonymous
Thanks Mihail.
Anonymous
I am pretty sure it's going to surpass that limit.
Anonymous
wrapping is generally advantageous or not?
Anonymous
Like <500ms just stick with Python
I will surely look into iy.
Anonymous
*it
Mihail
wrapping is generally advantageous or not?
Well you'll have all the advantages of cpp, not only the speed
Mihail
Also by wrapping what exactly are you planning to do? Run a cpp executable from your Python code?
Anonymous
Yep
Anonymous
Let me give you a overview.
Anonymous
I have a list of things to buy from market.
Anonymous
Shop A has x cheaper than everyone
Anonymous
Shop B has y cheaper than anyone
Anonymous
I have a list of price of all the shops
Anonymous
I need to calculate what to buy from where within a given timeframe(which is quite short)
Anonymous
Will cpp do?
Luis José
Le C++
Hahahaha
Mihail
But starting the cpp executable from Python might take a bit of time
Mihail
After you have done that cpp will hugely outperform Python
Anonymous
Yeah i had rough idea of 2.5x times
Anonymous
Will it do even better?
Mihail
2.5x?
Mihail
If you mean 2.5sec then most definitely yes
Mihail
That's quite a lot of time
Anonymous
Mihail can you suggest me something that can even jump over the wrapper thing
Anonymous
Is there another way to call a cpp program from python
Mihail
Not sure tbh
Parra
https://github.com/metacall/core
Parra
with this you can call between languages easily
Luis José
Parra
other options are exec, and similar, but if you want to call inside same process then use that
Parra
I don't understand it
what you don't understand?
Parra
he wants to call c++ from python
Parra
you can program your own extension
Parra
or with MetaCall
Luis José
he wants to call c++ from python
Well I'm never done such a thing so I don't know how it works in general bro
Parra
asd.cpp: void some_function() { ... } abc.py metacall_load_from_file("cpp", [ "asd.cpp" ]) metacall("some_function")
Parra
Well I'm never done such a thing so I don't know how it works in general bro
okay so.. with high level languages it's normal to implement parts in c++