Skip to main content

9 docs tagged with "api"

View all tags

BFF

GraphQL and REST backends for frontends: shaping one API per client without leaking it into the domain.

Ecosystem: Third-Party Libraries

C 没有随语言附带的包管理器,选库等于同时选许可证、ABI 承诺、维护节奏与安全更新通道,本页用 OpenSSL、libuv、SQLite、zlib、curl、jansson 给出可验证的判据。

Error

error 接口、哨兵错误与自定义类型、%w 包装链、errors.Is/As/Join、panic 与 recover 的同 goroutine 边界、包设计与 internal/ 的导入约束、导入环、服务错误分类与对外错误码,以及导出标识符和弃用注释的兼容性规则、init 失败只能 panic 的处理。

Feature: Interop

Mixing Java, Kotlin and Scala in one build: the bytecode contract, the guarantees that vanish across the boundary, and how to choose.

Feature: Interop

The five unsafe abilities, the invariants they transfer to the developer, and the ABI contract at a foreign function boundary.

Interop: C ABI and Bindings

C++ 与外部世界的边界以 C ABI 为稳定层,pybind11、JNI 与 N-API 各自负责类型、所有权与异常的翻译,跨边界的字符串、容器与回调生命周期决定集成是否可靠。

Interop: C ABI and Foreign Calls

C ABI 是各语言共同的最低边界:C++ 的 C 链接声明、cgo、ctypes/cffi、JNI、N-API 与 dlopen 各自把同一份调用约定翻译成本语言的对象,本页给出结构布局、所有权、错误映射与回调生命周期的判据。

OOP

接口值为什么不是 nil、隐式满足与方法集规则、typed nil 陷阱、类型断言与类型 switch、消费方小接口,以及泛型的类型参数、comparable 与 ~ 近似项、联合约束、实例化与类型推断、接口与泛型的选型边界和装箱成本、约束接口不能作变量类型、类型参数的编译期检查。

OOP

Traits as contracts, generics that monomorphize, and Result-based errors that make every failure part of the signature.