Calling C++ Functions from Carbon Using the Bridge Mechanism
Learn how to call C++ functions directly from Carbon using its built‑in bridge, with a concrete example, build steps, and a list of current limitations.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to call C++ functions directly from Carbon using its built‑in bridge, with a concrete example, build steps, and a list of current limitations.
A diagnostic guide to Carbon Event Manager event-loop failures in legacy macOS apps: match freeze and dropped-event symptoms to mask, dispatch, and handler-registration causes, then verify with timed Apple-event delivery.
Explains how Carbon’s checked pointers add runtime bounds and null safety to raw pointers from C++, with a worked example, trade‑offs, and steps to try the feature.
Carbon introduces checked pointers as a language-level mechanism to prevent null dereference at compile time, offering a safer alternative to raw C++ pointers while maintaining interoperability.
Carbon replaces C++ templates with checked generics verified at the definition site against explicit interfaces — enabling separate compilation, cleaner errors, and an explicit static-vs-dynamic dispatch choice.
Carbon's bidirectional C++ interoperability via extern "C++" linkage enables incremental migration without wrappers. This architecture note covers the minimal design, trust boundaries, CI verification steps, failure modes, and conditions that would force a redesign.
Learn why mutable Carbon objects cause subtle bugs, how month overflow works, and how to adopt CarbonImmutable and addMonthNoOverflow for predictable billing and scheduling logic.
Guide to calling a C++ function from Carbon and exposing Carbon types to C++ using the Carbon toolchain and Bazel.
An architecture note outlining the requirements, minimal design, trust boundaries, operational checks, failure modes, and evolution triggers for Carbon’s checked pointer feature.