← Home ← Back to /g/

Thread 106186110

31 posts 8 images /g/
Anonymous No.106186110 [Report] >>106186885 >>106188974 >>106189963 >>106190003 >>106190033 >>106190090 >>106190700 >>106190774
Python laid waste to my C++!
"But C++ is faster than Python!"

Why didn't anyone tell me how much more productive you could be with Python? I fell for the Python sucks meme. Anyone else discovered how advanced Python is compared to C++ yet? What else is cool that /g/ likes to talk shit about to dissuade people from trying?
Anonymous No.106186209 [Report] >>106186220
one can build operating systems and software for embedded systems, the other cannot. also many of heavy lifting python libraries are written in c or c++.
Anonymous No.106186220 [Report] >>106190422
>>106186209
Python is written in C
Anonymous No.106186436 [Report] >>106186597
I just farted
Anonymous No.106186597 [Report]
>>106186436
Quite pungent my dear
Anonymous No.106186885 [Report] >>106186915
>>106186110 (OP)
But Python's type system is shit. The sweetspot between C++ and Python is C#.
Anonymous No.106186911 [Report]
>Why didn't anyone tell me how much more productive you could be with Python?
It's common knowledge, Anon. C++ excels in execution speed. Python exceeds in speed of development.
Anonymous No.106186915 [Report] >>106187607
>>106186885
pythons type system is basically lisp + objects, but looses all elegance due to the language being imperative.
Anonymous No.106187607 [Report]
>>106186915
Lisp has objects, and even without CLOS let and lambda constructions trivially allow for objects and classes
Anonymous No.106188974 [Report]
>>106186110 (OP)

>Why didn't anyone tell me how much more productive you could be with Python?
Sorry we thought you weren’t a dumbass
Anonymous No.106189963 [Report]
>>106186110 (OP)
>Anyone else discovered how advanced Python is compared to C++ yet?
I did about 6 years ago
>t former C++ lover and Python hater
Anonymous No.106190003 [Report] >>106190018
>>106186110 (OP)
isn't this a thumbnail for a video that proves brainlets with c++ can't into newlines and just use endl like a noob?
Anonymous No.106190018 [Report]
>>106190003
yes and c++ was 300% faster
Anonymous No.106190033 [Report] >>106190053
>>106186110 (OP)
c mogs both of them
paiton is written in c, too
Anonymous No.106190053 [Report] >>106190324
>>106190033
yes but writing a large project in C is unwieldy which is why metaprogramming and oopin c++ is the most efficient at scaling. python turns into a dep nightmare when scaled. seriously, every lang has a use case and the pythonjeets can only write single use case scripts or the worst applications imaginable
Anonymous No.106190090 [Report]
>>106186110 (OP)
This channel is so insufferably unfunny
>haha look at me im a quirky funny math major
piss off
as a math major im sick of people like this
Anonymous No.106190120 [Report] >>106190155
John Carmack is a Python programmer now
Mike Acton is a C# programmer now

It's so over.
Anonymous No.106190126 [Report]
C++ lets you design systems. Python lets you prototype an algorithm or write scripts.
You can start with Python and it is useful in academia, but for anything commercial C/C++ is better.
Anonymous No.106190155 [Report] >>106190298
>>106190120
>John Carmack is a Python programmer now
he just makes little experiments with ml models. nothing fancy. nothing scaled. good use case

>Mike Acton is a C# programmer now
ok? good for him. maube he wants to focus on web oriented design more. at least it isn't jeetscript
Anonymous No.106190298 [Report]
>>106190155
It's never been more over than it is right now.
Anonymous No.106190324 [Report] >>106190367
>>106190053
>yes but writing a large project in C is unwieldy
its a matter of interfaces
the correct assessment would be
"it is difficult to write a large project in c if one doesnt have good notions of ergonomics because they will have to design the interfaces themselves"
but c can be pretty clean.
my previous picrel is a demonstration of why i dont need generics/templates
this picrel is a bucketsort.
its all a matter of dividing to conquer- using functions and force inlines to contain the spaghetti

its not an example of a fully developed project, its still a wip
but you can extrapolate from these examples
Anonymous No.106190367 [Report] >>106190489
>>106190324
that's why I use C++ for interfaces and main while C makes up the libs. I ain't knocking C, it's necessary for the wombo combo good development depended on for decades. C is the bricks, C++ is the mortar that binds them
Anonymous No.106190422 [Report] >>106190457
>>106186220
Python is a language. It isn't written in anything. You can interpret Python by hand with pen and paper.
Anonymous No.106190457 [Report]
>>106190422
you can do the same with fortran and you don't even need a pen
Anonymous No.106190489 [Report] >>106190539
>>106190367
afaik thats the "correct" approach to dealing with c in big projects
the reason i dont do that i because i never bothered to properly learn sepples
and with ~300klocs of c under my belt, i dont have much incentive in learning sepples now

i probably will at a certain point though. pure c is not industry-standard and i will have to work with other people in the future
Anonymous No.106190539 [Report] >>106190581
>>106190489
gimp is the only app that comes to mind that is pure C nowadays. you do write C well and it is a boon for making readable metaprogramming in the future. I really don't like projects that have extremely obfuscated macros and template hell. we need guys like you, keep up the good work. either that or stick to making useful libs and you won;t have to deal with it at all
Anonymous No.106190581 [Report]
>>106190539
>we need guys like you, keep up the good work.
thanks anon. you motivated me.
i will do my best.
Anonymous No.106190700 [Report] >>106190726
>>106186110 (OP)
>Why didn't anyone tell me how much more productive you could be with Python?
we did
> fell for the Python sucks meme.
your own fault.

Welcome to the club
Anonymous No.106190726 [Report] >>106191826
>>106190700
we found the root of it anon, python doesn't suck for it's intended use-case. (You) suck for using it for every use-case
Anonymous No.106190774 [Report]
>>106186110 (OP)
>somebody already wrote this program and turned it into a python package that needs 10 lines of boilerplate
sneed
Anonymous No.106191826 [Report]
>>106190726
you are just assuming, I don't think anyone wants to fit python into system development. We're not trannies.