Is C++ still used anywhere other than GUI/Game development?
Thalidomide Vintage Ad Shirt $22.14 |
Thalidomide Vintage Ad Shirt $22.14 |
Is C++ still used anywhere other than GUI/Game development?
Thalidomide Vintage Ad Shirt $22.14 |
Thalidomide Vintage Ad Shirt $22.14 |
https://stackoverflow.com/questions/2560310/heavy-usage-of-python-at-google/
>Python where we can, C++ where we must
booba
(otherwise, thread ignored)
my company is writing a softwares to monitor usage of the loo in c++
yes, i would have sex with a real mare, why do you ask?
Productivity apps like adobe suite and office suite
That falls under GUI.
armpit sex
Almost all scientific number crunching libs are written in C++.
Anything that demands maximum possible performance is written in C++ and if it's not, it's probably C or assembly in some special cases, everything else is a meme.
It's a good language, I like it, I'm convinced that the dogmatic c++ haters around here are just brainlets that got filtered.
More money for me at the end of the day.
"Buh.. buhhh, what's a bointer?"
the issue with c++ was always the enourmous bloat and complexity. don't believe me. try to write a parser for the most recent one. I will give you a billion $ if you can do it under 30k.
that's why you write c++ like it's c with classes, nothing more
I only use. struct, union. no classes. no virtual. inheritance only when I want to put something at offset 0. very light template stuff. it kills compile times. and you can accumulate insane complexity real quick. but that is not c++ anymore. its c with personal gnu extensions.
yeah, the only good thing c++ did is templates, but then again they are badly implemented, and sometimes you are better off writing your own macro and just reusing.
Sure, it's got a lot of features but you can use as many or as few as you like, I don't see a problem with that.
I like having tons of tools, I like it a lot more than needing a tool and not having it.
The language is complex, and I don't like that aspect. But it's also necessary to be that much complex. You're thinking of simplicity from the perspective of a code monkey. So you hate it. Complexity and more advanced features are good for creating complex libraries and language features that you might not want to develop yourself. Look at the AMGX library by NVIDIA. Really cool use of c++ templates, and it's very well developed. Similarly look at Boost library. Look at the code of boost and then tell me that the complexity of c++ didn't help develop the library.
>look at Boost library. Look at the code of boost and then tell me that the complexity of c++ didn't help develop the library.
Boost is a terrible library
Boost is a terrible library and cancer, but also has been very useful for many devs who didn't have better any other option. The many complex things boost could do, has been possible due to the complexity of c++.
Most of the things Boost does wouldn't be necessary if C++ were a good language.
>But it's also necessary to be that much complex.
No. There is no excuse for the exceptional complexity of C++. Stroustrup himself admitted that, within C++, there is a "much smaller and cleaner language trying to get out".
>Anything that demands maximum possible performance is written in C++ and if it's not, it's probably C or assembly in some special cases
Max performance typically involves Assembly, C and/or Fortran. There are exceptions in other languages where some libraries best at delegating their domain problems to specialist hardware; you don't beat that, but it isn't really the power of any language but rather the power of that library and that hardware.
>dogmatic c++ haters around here are just brainlets that got filtered
It's a language that's too complicated for its own good. Far too many ways for it to do something surprising, and different groups use different subsets of C++. That's not the mark of something where your skills at using the language are highly transferable.
Languages shouldn't sabotage their users.
Nope, almost every highly performant library out there is written in C++.
Torch, tensorflow, numpy, cupy, opencv, etc.
Basically any 3d game engine.
I've never seen fortan, C very rarely and assembly is only used to hand craft very small chunks of code, if at all.
Nobody is writing assembly at scale.
Speaking of hardware delegation, all of the cuda I've ever seen was written in C++ with nvcc.
I mean just look around at any major project, what are we even arguing here...
As for your second point, what surprising is, is subjective, the language is complicated for sure, but you get a lot of power with that complexity, I like that, you may not, that's okay.
Just because it's popular doesn't mean it's good Black person, C---- is popular but shit, Twilight is also a popular, many people make fanfiction of it.
It's popular, but it's also pretty good.
If you don't like it, that sounds like a you problem.
You are referring to Twilight, yes?
I don't know anything about it.
You brought that up.
>numpy
>C++
lmao Black person
>I've never seen Fortran
What do you know of HPC exactly? It seems all you've ever seen is machine learning libs.
I will use your butt cheeks to coom
robotics and embedded systems are another two areas it has been used in
Maybe, but do your part to ensure it's used less and less.
I do the opposite.
C++ will be behind every "C++ killer" until someone decides to rewrite LLVM in Rust.
You mentioned GUI and game development. Game development is self explanatory, but a whole load of programs use GUIs, most graphical system utilities (e.g. config panels, file managers etc.) that I know of are written in C++, C++ is also used for writing databases (MongoDB and MySQL are both written in it). C++ is used for robotics, embedded software, compilers, package managers and so on. Most programs you use are probably written in C++.
it's practically everywhere, but the average dev doesn't touch where it lives
think most synths and audio plugin software is written in c++
Embedded development
Also in areas with computationally intensive demands. eg machine learning, computer vision, big data, medical/scientific
Not sure why you listed GUI development as a C++ field, sure some GUI stuff is C++ but its mostly HTML/Javascript
>Embedded
Isn't that more of C's area?
with the advancement of cpu we can now use c++ abstractions on embedded devices
but yeah 2 decades ago embedded was mostly c
Wherever you can use C++, you can also use C, and it's probably going to be a better choice: faster development cycle, better tooling support and much easier debugging.
Some people use C++ in those scenarios for some reason, but don't listen to them.
Everywhere where performance matters.
Where do you use C then?
I don't understand: C++ is easier to write than python and a magnitude faster, why would you program in anything else?
>C++ is easier to write than python
???
>C++ is easier to write than python
Split a string in both languages.
"foobar".split("b")
"foobar"|split('b')
Also, splitting iterables other than string sucks in Python.
Now do it with a string delimiter.
"foobar".split("ooba")
"foobar"|split("ooba"s)
Vector delimiter works too.
in use? depends on what you mean, c/c++ is the backbone of most things, but the amount of people who work with it is slim compared to how many people work with other things
I'm going to frick that horse.
Space, AI, automotive, HPC to name a few. Many of not most current deep tech projects use C++ with Python on Linux.
>AI
Instead of python or LISP?
Users of AI libraries/frameworks usually use Python, but on the development side it's C++ with Python interfaces. and glue code
So it's not STILL used in AI. Python and others have replaced C++.
TensorFlow: C++, CUDA, Python
PyTorch: C++, CUDA, Python
Torch: C, C++, CUDA, Lua
Microsoft Cognitive Toolkit: C++
OpenCog: C++, Scheme, Python
Are you a library dev?
Partially. Anyway, OP asked whether C++ is still used and the answer is a massive yes.
Cute hose!
c++ is comfy once you figured it out
at parties I tell girls I can code in c++ and they're are like is your peepee also ++ and giggle and I tell them to behave and go home
OK, but where do you use it?
HPC, i.e. whatever runs on supercomputers.
I use it at work.
What do you do?
Game dev.
arduino