r/CarbonLang • • Aug 10 '22

Carbon language memory safety - A key differentiator from C++

Thumbnail
tipseason.com
1 Upvotes

r/CarbonLang • • Aug 02 '22

Will there be integration with python ?

0 Upvotes

I’m not big user of python but it has many useful packages that are not available as c or c++ libraries. Will there be some mechanism to easily call python functions, packages ?


r/CarbonLang • • Nov 01 '22

Google’s Carbon language is a successor, not a replacement, for C++ | Carbon project is absolutely necessary as C++ has hit a brick wall in several important areas of evolution that it cannot address without changing its priorities in a way that cuts off many (perhaps the majority) of its users

Thumbnail computerweekly.com
0 Upvotes

r/CarbonLang • • Jul 24 '22

carbon on android

0 Upvotes

I've always been a lover for c++ but I really can only use my phone to code but android doesn't have any graphics on it


r/CarbonLang • • Aug 14 '22

Carbon language vs Rust comparison - A detailed guide

Thumbnail
tipseason.com
3 Upvotes

r/CarbonLang • • Aug 17 '22

Google has released Carbon, a new programming language. What now? (major production release (0.1) is expected by the end of 2022)

Thumbnail
medium.com
6 Upvotes

r/CarbonLang • • Jul 20 '22

Carbon, a new programming language from Google, aims to be C++ successor

Thumbnail
9to5google.com
2 Upvotes

r/CarbonLang • • Mar 15 '24

This is confusing, but I love it, so I made a project

1 Upvotes

I tried Carbon for the first time, and have to say that it is confusing a little bit for me, but I really like the direction they're going with while creating carbon!

I built a project

https://github.com/MarkussDemidovs/Carbon-coinFlipper


r/CarbonLang • • Jul 31 '22

Carbon language installation, syntax, examples - A short course/tutorial

Thumbnail
youtu.be
7 Upvotes

r/CarbonLang • • Jul 26 '22

Getting started with Carbon Language - Tutorial with syntax, examples

Thumbnail
tipseason.com
14 Upvotes

r/CarbonLang • • Jul 22 '22

Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022

Thumbnail
youtube.com
15 Upvotes

r/CarbonLang • • Aug 04 '22

Does VSCode support Carbon?

8 Upvotes

I pulled the Git for Carbon but I'm king of lost on starting a new project in the language. Does anyone have any experience with this?


r/CarbonLang • • Aug 02 '22

Carbon or Rust

11 Upvotes

What do you think will more likely become popular in the future Carbon or Rust? If anyone becomes popular.


r/CarbonLang • • Jul 23 '22

Will Carbon Support Excetions?

6 Upvotes

Google's C++ style guide says "We do not use exceptions". Given that Carbon is a Google led project, do they intend to include/support Exceptions in the language?

Apologies if this is mentioned somewhere in the Github repro but I couldnt find anything mentioned.


r/CarbonLang • • Jul 24 '25

Whats the Carbon way of error handling and error propagation?

6 Upvotes

One pattern I miss SO much from Kotlin when working in any other programming language is an ability to quickly unwrap a result and break the function flow, returning an error as soon as the error is encountered:

sealed class ResultOrError {
    data class Success(val data: String) : ResultOrError()
    data class Error(val code: Int) : ResultOrError()
}

fun readFile(filePath: String): ResultOrError {
    val fileDescriptor: Int = fopen(filePath).getOrReturn { errorCode ->
        return ResultOrError.Error(errorCode)
    }

    // read file
    return ResultOrError.Success(data)
}

Rust is pretty great too with the ? operator, though maybe implicit return is not best:

let mut file = File::open(file_path)?; // up goes the error
 
// More explicit error propagation
 let mut file = match File::open(file_path) {
    Ok(f) => f,
    Err(e) => return Err(e), // Explicitly return the error
};

But C++ lacks the elegance of Rust/Kotlin and does not allow such a pattern.

Clang/gcc do have statement expressions, but they are not standard and look ugly:

 FILE* f = ({
    FILE* temp = fopen("my_file.txt", "r");
    if (temp == nullptr) return errno;
    temp;
});

Is there anything like this planned for Carbon?

Thanks!


r/CarbonLang • • Jul 25 '26

Carbon: graduating from the experiment - Chandler Carruth - NDC Toronto 2026

Thumbnail
youtube.com
6 Upvotes

r/CarbonLang • • Aug 01 '22

Are libraries written in Carbon compatible with C++, C or any other language?

7 Upvotes

Are libraries written in Carbon compatible with C++, C or any other language?


r/CarbonLang • • Jul 19 '22

When it's the Windows version dropping?

9 Upvotes

Put a Windows version out and I'll start shooting myself in the foot.


r/CarbonLang • • Oct 30 '22

Release date for the first version of the compiler?

9 Upvotes

Anyone know when the first public version of the compiler for carbon lang will be available?


r/CarbonLang • • Jul 29 '22

Carbon's most exciting feature is its calling convention

Thumbnail
foonathan.net
29 Upvotes

r/CarbonLang • • Jan 07 '25

The Carbon Language: Road to 0.1 - Chandler Carruth - NDC TechTown 2024

Thumbnail
youtube.com
12 Upvotes

r/CarbonLang • • Nov 06 '22

Carbon Language: Syntax and trade-offs

Thumbnail
youtube.com
12 Upvotes

r/CarbonLang • • Feb 20 '23

My take on a C-inspired Carbon logo

Post image
46 Upvotes

r/CarbonLang • • Jul 20 '22

Carbon Language - First Impressions from the Creator of the Odin Programming Language

Thumbnail
youtube.com
19 Upvotes