Thread: The future of C++ and C programming languages.

  1. #1
    Registered User
    Join Date
    Aug 2019
    Posts
    9

    Post The future of C++ and C programming languages.

    Hello all,
    I don't know it is a right question for here or not and please accept my apology for it.
    I guess, most of C\C++ programmers heard the name of Rust-Lang. Is it true that this language is a replacement for C\C++ languages?
    If yes, does it mean that C\C++ will die in the future and system applications rewrite in Rust-Lang?
    I'm thankful if anyone answer to my questions clearly.

    Thank you.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by hack3rcon
    Is it true that this language is a replacement for C\C++ languages?
    That is a question that is best posed to the Rust language developers, as in the team responsible for the development and maintenance of Rust, since only they can authoritatively say whether they have any specific intent for Rust to be a replacement for C and C++. My guess is yes, but more on that later.

    Quote Originally Posted by hack3rcon
    If yes, does it mean that C\C++ will die in the future and system applications rewrite in Rust-Lang?
    Yes, that is quite possible. It is also possible that Rust may never ever gain the kind of traction that C and C++ has, and will eventually die and be outlived by both of them. In other words, this is a question that is best posed to a seer with a crystal ball

    What I can say is that they do have a great deal of overlapping use cases, which makes all three of them mutual competitors in the many of the same spaces in software development. But as you can see, despite C++ being explicitly designed to be a "better C" and hence a replacement for C, C is still very much alive and kicking.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Till Rust has a stable ABI there will be no way it can replace C !

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #5
    Registered User
    Join Date
    Aug 2019
    Posts
    9
    Quote Originally Posted by stahta01 View Post
    till rust has a stable abi there will be no way it can replace c !

    Tim s.
    abi ?

  6. #6
    Registered User
    Join Date
    Aug 2019
    Posts
    9
    Linux kernel wants to using Rust.

  7. #7
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by hack3rcon
    abi ?
    Application Binary Interface

    Quote Originally Posted by hack3rcon
    Linux kernel wants to using Rust.
    The Linux kernel is not sentient (or at least I hope it isn't), hence it cannot want anything. Rather, there are core developers involved in Linux kernel development who are open to the idea of using Rust for some parts of the development associated with the kernel. If you want to go from there to "C and C++ will die in the future and system applications will be rewritten in Rust", you are free to go ahead and speculate. You could be right, you could be wrong; we'll find out eventually, if we live long enough.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > Linux kernel wants to using Rust.
    References!
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  9. #9
    Registered User
    Join Date
    May 2012
    Posts
    505
    Quote Originally Posted by hack3rcon View Post
    Hello all,
    I don't know it is a right question for here or not and please accept my apology for it.
    I guess, most of C\C++ programmers heard the name of Rust-Lang. Is it true that this language is a replacement for C\C++ languages?
    If yes, does it mean that C\C++ will die in the future and system applications rewrite in Rust-Lang?
    I'm thankful if anyone answer to my questions clearly.

    Thank you.
    C swept the board in the 1980s as the default low level general purpose programming language. Since then, there have been innumerable attempts to produce a "better C". The most successful has been C++. However C++ hasn't displaced C in all environments.

    It remains to be seen how well Rust will do. It has reached the first hurdle, and is no longer an academic micro-project. However there isn't anything like as much Rust code as C or C++ code in existence, and most new projects do not use Rust.
    I'm the author of MiniBasic: How to write a script interpreter and Basic Algorithms
    Visit my website for lots of associated C programming resources.
    https://github.com/MalcolmMcLean


  10. #10
    Registered User
    Join Date
    Sep 2020
    Posts
    425
    The future of C++ and C programming languages.-both-jpg

  11. #11

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No Future in Programming?
    By p_m63 in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 07-11-2006, 05:52 PM
  2. 14 - Is Programming a future?
    By Ric_god in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 04-12-2005, 10:32 AM
  3. Future of C programming
    By barim in forum C Programming
    Replies: 6
    Last Post: 06-22-2004, 05:25 AM
  4. Total newb to programming here... Question about the many programming languages. Ty!
    By tsubotakid1 in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 10-05-2003, 10:32 AM

Tags for this Thread