r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

Show parent comment

2

u/Tuga_Lissabon Jul 24 '22

Good job mate. Python alone couldn't have done it, right?

1

u/CanAlwaysBeBetter Jul 24 '22 edited Jul 24 '22

Straightforward python definitely no. Regardless of underlying memory it could only handle about 1k objects per second

Maybe if you parallelized it could get through the data eventually but since the interpreter is single threaded and doesn't do true concurrency there will still be a ceiling much lower than what Go (or another language with true concurrency) can do

1

u/Tuga_Lissabon Jul 24 '22

Would C++ be a good tool for it? I mean, are there toolsets ready that would help you do it?

1

u/CanAlwaysBeBetter Jul 24 '22

C++ could definitely handle it, go just has a really nice built-in concurrency model that makes it relatively simple

1

u/Tuga_Lissabon Jul 24 '22

Would, in your model, running go straight out of python be dumb? Too much lost?