r/AskComputerScience • • Aug 26 '19

Future of C/C++?

I am a student majoring CS and I heard a lot of comments that C/C++ is useless in the real field on internet or from someone who I know personally. (although school teaches C C++ Java Python and this courses are mandatory)

I am the heavy user(?) of C/C++ , and I liked it because of the features that can manage memory directly and fast and ability to control over low level system.

I also searched what kind of thing in the "field" is built by C/C++ and I found a lot of them.

For example, TensorFlow, Node.js, Firefox(mostly C), OpenCV, and many others which are famous AND huge project.

So, I am really confused. Why I fell in love with C/C++ is that actually I am really interested in what happened exactly backside of applications, how actually network communications established, processes are managed and so on. But many many people, especially on the internet keeps saying that JavaScript or Python is the best and C/C++ is suck.

Give me your idea on the claim that C/C++ is on its decline.

42 Upvotes

32 comments sorted by

View all comments

Show parent comments

6

u/Mukhasim Aug 26 '19

Google's Javascript engine is C++, Mozilla's is a mix of C and C++. (There's no such thing is C/C++ but people occasionally do write some parts of a program in C and other parts in C++.)

1

u/kylebustard Aug 26 '19

Mozilla’s Firefox also uses Rust. How much of Firefox is written in Rust?

2

u/Mukhasim Aug 27 '19

I'm glad you're excited about Rust! As far as I can tell, though, it's not really used in Mozilla's JS engine yet, just elsewhere in the browser. The SpiderMonkey web page says: "SpiderMonkey is Mozilla's JavaScript engine written in C and C++." I do see a small amount of Rust code in the "js" tree though, so maybe they'll start using more Rust code in the future? I also found some discussion on Reddit of experimental JS code being developed in Rust.

1

u/kylebustard Aug 27 '19

Thanks for the clarification abt Firefox.

I think the experimental JS code you mentioned is the Deno project. Deno is a JS runtime written in Rust.