Carbon Programming Language - A C++ Successor?

preview_player
Показать описание
Carbon is a recently announced new programming language by Google (and others) that aims to be a C++ successor. The primary way it intends to accomplish this is by offering a modern language/syntax while also offering bi-directional C++ interop, enabling C++ code to call Carbon and Carbon to call C++ seamlessly. Note Carbon is EXTREMELY early and not even close to being ready for production use.

Link:
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Google in a nutshell: release multiple stuff (apps, services, etc) that are the same thing, later shut down/consolidate and release another one

Blood-PawWerewolf
Автор

Never bet your career on Google products, most of them get shafted and buried after a short while.

AscendantStoic
Автор

I'll consider it a toy language until they start rewriting Chrome in carbon

pokefreak
Автор

A fucking butterfly probably lives longer than "a new and modern langauge to replace C++/Java"
lmao

oguzhantopaloglu
Автор

Every time a title has a question mark the answer is always "No!" :D

fredbluntstoned
Автор

Literally, over 90 percent of google projects are abandoned. Don't waste your time learning this unless it really takes off and gets adopted by some large projects.

TheUltimateCow
Автор

Well as a C++ Programmer i would highly appreciate Carbon as a successor for C++ like i did with Java to Kotlin.
Ive started as Android Developer using Java than Kotlin got announced and 6 months later after they integrated Kotlin into Android Studio i learned it pretty quick and now i realy like this language ! Its clean, save and simple ❤

If they can achive that with Carbon for C++ i will give it a try and hopefully like it 🙏

baphomet
Автор

What's up with all these new tech names that make it so hard to find related information in web searches?

MaharbaRacsoChannel
Автор

If you can't decide whether to use it or not, are you... Carbon-neutral?

ChrisCohen
Автор

A sane (and ideally statically linked) standard runtime library and a decent package manager would be the clinchers for me.

merseyviking
Автор

The syntax looks awful to me, no thanks.
While C++ is the most complex language out there, their design philosophy of not paying for what you don't use is the reason it's still fast.
I'm working in C# and TypeScript on most days, but I will take C++ over Carbon any day.

MaxIzrin
Автор

Great quick overview!
I'm glad to hear you mention Beef there at the end. It's such a pleasant language to use!

ISKLEMMI
Автор

Hey Google, how about just making a search engine that doesn't bury the most relevant results under pages of ads and propaganda? While you're at it, how about reverting your app icons back to the good ones that were more distinguishable from one another?

GrieverIIDX
Автор

Why did they make the logo C. It's not C xD

DevDunkStudio
Автор

You know, I have liked Go and it had some good brains behind it. Never saw it as a successor of C/C++, but it was just a way of quickly getting something out there, but if I later needed C/C++, I could go to it. I don't see the benefit of this at this time. I'll check back in about 2-3 yrs and see and maybe there would be something that. I'm tired of the notion of needing to "kill" something off or go to something else, just because it's x yrs old (especially considering I'm older than C++). I have actually grown to like C++. Now don't get me wrong, I'll use GDScript in a heart beat as well, but most of my tools are C++. I don't necessarily see it dying anytime soon. I don't see Rust as a successor and all this talk of safety. C++ can be just as safe as Rust or the rest of the lot. It just needs more knowledge from the person using it.

WildWestDesigns
Автор

Perhaps I would be more open to the idea of a C++ replacement if Anders Hejlsberg was on the project, since he's the creator of Delphi, C# and TypeScript. But from Google? No one asked...

That said C++ could use a lot of incremental improvements for sure. It would be nice if the standard stopped caring so much about ABI or about supporting ancient C++ code for that one general who has a nuke launcher that runs on MS-DOS with 1992 pre-standard C++

benoitrousseau
Автор

I genuinely don't understand the syntax choice here. Instead of "i32 Main()" you have "fn Main() -> i32". Instead of "f32 area" you have "var area: f32". Why?
Why all these redundant letters and symbols? I could understand the use if you didn't have to specify types. But this... is just specifying types with more steps.

Clawthorne
Автор

I would prefer if they had simply improved the C++ compiler to do things like allowing file-reading at compile-time (constexpr). Or at least made a better IDE that can give you lots of hints about how to write better code (a Grammarly for C++, like ReSharper but much better and AI-driven).

RA-NAF
Автор

Nope, any chance of Google possibly taking control is too much for me.

joecooper
Автор

There is a good reason for Carbon to exist and its also the one reason you might want to use it: as mentioned in the video, you need direct C++ interoperability. That is, you have a C++ codebase and you want to use it directly, templates and all: then Carbon will work great for you. If you don't need to interoperate with C++ templates, then you should probably consider one of the others instead (Rust, D, Zig, Go, whatever)

guywithknife