Originally posted by discordian
View Post
Announcement
Collapse
No announcement yet.
Google Engineers Lift The Lid On Carbon - A Hopeful Successor To C++
Collapse
X
-
- Likes 4
-
Originally posted by binarybanana View PostSo this is more like a fresh (go-like?) syntax for C++ rather than a completely new language? It certainly looks boring (which might or might not be a gt thing). But I guess if you're stuck with C++ it could be nice, like for writing UIs using Qt. Maybe even as bridge to write bindings for other languages. Maybe?
- Likes 1
Comment
-
Originally posted by Ironmask View PostHERE WE GO AGAIN!
I think we need to start addressing the concept of cognitive pollution, that you can make too many ideas and technologies that, because of their abundance, actually stifle the industry rather than propel it. And Google pollutes in this sense like China pollute in the traditional one.
- Likes 1
Comment
-
Originally posted by cl333r View Post
Nah, this is a good one, we need a real modern alternative to C++ and Rust ain't it, Carbon seems like Rust but without its borrow checker - exactly what we need.
Seems like a great effort of duplicated technology to make a whole new language because you can't find the off switch.
- Likes 19
Comment
-
Originally posted by Developer12 View Post
They explicitly say "don't use this, use rust instead if you can." It's for people who apparently have massive C++ codebases they can't get away from but would still like to feel safe(ish) writing new code. That said, it doesn't support borrow checking (or even can) so I'm really skeptical that this brings any meaningful improvment.
Developers that can use one of these existing languages should. Unfortunately, the designs of these languages present significant barriers to adoption and migration from C++. These barriers range from changes in the idiomatic design of software to performance overhead.
- Likes 5
Comment
-
-
Originally posted by cl333r View Post
Not really:
They're saying if you already migrated away from C++ and liking it stay where you are, the rest who can't migrate because of this and that here's a new modern language. This is exactly what I've been asking for - a modern replacement for C++.
"if you can use rust, ignore carbon"
If you're using carbon because you can't migrate away from C++, you're by definition not using a "replacement." You're explicitly using carbon because C++ can't be replaced.
The modern *replacement* is Rust.
- Likes 19
Comment
-
Originally posted by cl333r View PostHow do you disable the borrow checker while not becoming a black swan (can use all the crates and whatnot)?
The borrow checker is compile time, not run time. And you disable it locally, by making Rust "forget" who owns a particular variable.
The borrow checker is not forced on you, it's a sane default. It's more sane to have the language track and monitor what memory belongs to what blocks of code, than to default to the world of null and dangling pointers. Rust has those, but you have to go out of your way to use them, instead of them being how the language implicitly works.
- Likes 14
Comment
-
Originally posted by Ironmask View Post
What do you mean? Are you assuming libraries break if you disable the borrow checker?
The borrow checker is compile time, not run time. And you disable it locally, by making Rust "forget" who owns a particular variable.
The borrow checker is not forced on you, it's a sane default. It's more sane to have the language track and monitor what memory belongs to what blocks of code, than to default to the world of null and dangling pointers. Rust has those, but you have to go out of your way to use them, instead of them being how the language implicitly works.
- Likes 3
Comment
Comment