General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Vitaly L
ThePrimeTime
comments
Comments by "Vitaly L" (@vitalyl1327) on "C Is Obsolete" video.
And there are things that C does better than C++. For example, restrict keyword - there is no portable C++ equivalent.
28
@Asto508 Yeah, sure, find me an equivalent of MISRA-C tooling first, then I'll switch.
20
@nobleradical2158 nope, C++ compiler does not know anything about any smart pointers (and it should not know). It can guarantee that it does not assume aliasing if two pointers point to two different data types though, which does not really help in most of the numeric applications. In plain C, `restrict` would be respected by the compiler and it will assume two pointers are not aliased and do not point to overlapping regions, allowing a lot more optimisations than if there was a possibility of aliasing.
1
It's a language with a GC, so it's in no way a rival to C, C++ or Rust. Go is a toy language for toy high-level applications.
1
@gilbmp there is a garbage collector which you cannot turn off (unlike even JRE - it's surprisingly flexible there). It means, Go cannot be used for anything even remotely real-time and mission-critical, leaving it as a toy language.
1
@DipsAndPushups now, compare Rust with all of its existing tooling to MISRA-C and the most powerful tooling available for it. The comparison won't even be fair, Rust is nothing but a funny toy and it will be decades before it'll be mature enough to get into the domains where MISRA-C is used.
1