8 个仓库
Mechanisms for enabling interoperability between different programming languages, such as C++ and Rust.
Distinct from Rust Libraries: Candidates focus on specific Rust libraries or Git integrations rather than the FFI bridge mechanism itself.
Explore 8 awesome GitHub repositories matching programming languages & runtimes · Foreign Function Interfaces. Refine with filters or upvote what's useful.
Skia is a high-performance 2D graphics rendering library used for drawing text, geometries, and images on digital surfaces. It functions as a hardware-accelerated graphics engine that offloads drawing operations to the GPU, a vector graphics processor for SVG and complex paths, and a typography engine for shaping and drawing characters with Unicode support. The project provides a cross-platform image codec for encoding and decoding standard image formats into raw pixel data across multiple operating systems. It also enables the development of user interfaces that maintain visual consistency a
Integrates external logic through a foreign function interface specifically for Rust library integration.
PureScript is a statically typed, purely functional programming language that compiles to JavaScript. It is designed as a cross-platform frontend language for building safe web applications, utilizing a static type system and a JavaScript compiler to ensure program correctness across browser and server environments. The language is distinguished by its emphasis on mathematical purity, featuring a robust type system with first-class support for monads. It provides a sophisticated toolset for static verification, including algebraic data types, type classes, and automatic type inference to reje
Maps internal type declarations to external JavaScript values and functions for cross-environment interoperability.
Lean 4 is a functional programming language and interactive proof assistant used to formalize mathematics and verify software correctness. It functions as a dependent type theorem prover and a formal verification tool that allows users to construct mathematical proofs and ensure program correctness. Additionally, it serves as a logic-based source for generating verified datasets used to train and benchmark artificial intelligence reasoning systems. The system distinguishes itself through a small-kernel verification model, where all proofs are verified by a trusted core of basic logical rules.
Enables low-level data exchange and function calls between the functional environment and languages like C or Rust.
This project is a comprehensive technical guide and diagnostic manual for analyzing memory, performance, and asynchronous behavior within Node.js applications. It provides detailed methods for asynchronous tracing, memory diagnostics, and performance analysis to resolve runtime errors and execution bottlenecks. The resource distinguishes itself by covering advanced diagnostic workflows, including the use of flame graphs for CPU profiling, the capture and comparison of heap snapshots for memory leak detection, and the mapping of asynchronous call stacks. It also provides technical guidance on
Enables invoking functions from dynamic link libraries to execute native code without full module wrappers.
Gumbo-parser 是一个用纯 C99 编写的高性能 HTML5 解析库。它通过实现 HTML5 规范中定义的正式状态机词法分析和错误恢复规则,将原始标记转换为结构化的文档树。 该项目作为一个 HTML 源码映射工具,将解析后的节点链接回输入缓冲区中的原始字节偏移量和指针。这允许在生成的解析树中精确追踪元素的源码位置。 除了完整的文档处理外,该库还处理孤立的 HTML 片段,并提供基于 C 的外部函数接口,以实现与其他环境的集成和语言绑定。
Provides a stable C API to allow higher-level languages like Python to utilize the core parsing logic.
HelloSilicon 是一个编程指南和教程,用于编写和调试专门针对 Apple Silicon 处理器的底层 64 位汇编代码。它作为架构参考,用于通过系统调用和硬件寄存器与 macOS 和 iOS 内核服务进行交互。 该项目提供了关于外部函数接口(FFI)的专门指导,以桥接汇编与 C 或 Python 等高级语言。它还包括一个用于配置 Mach-O 二进制文件以及编译通用二进制文件和动态库以实现跨硬件兼容性的工具包。 该材料涵盖了底层系统编程,包括内存寻址、调用约定以及使用调试器检查寄存器和内存。
Bridges low-level assembly functions with high-level languages like C or Python using platform-specific calling conventions.
Imageflow 是一个高性能图像操作库和合成引擎,可作为 C 兼容库、命令行图像处理器和动态图像处理服务器使用。它通过编程接口、JSON 作业文件或即时 URL 查询字符串,提供了解码、编码和对图像应用复杂视觉变换的方法。 该系统通过基于图的处理流水线脱颖而出,允许单次多格式编码,从单次解码中生成多种图像尺寸和格式,从而减少开销。它还具有资源受限的解码引擎,强制执行严格的内存和尺寸限制,以防止资源耗尽和拒绝服务攻击。 该项目涵盖了广泛的操作能力,包括尺寸调整、裁剪、旋转和颜色过滤。它支持高级合成任务,如水印、空白画布生成和几何形状渲染,以及使用直方图分析的自动色彩校正和白平衡调整。 核心逻辑通过外部函数接口绑定暴露,以实现跨语言集成。
Exposes core manipulation logic via foreign function interfaces for integration into multiple programming languages.
GodotSteam is a game engine plugin and API wrapper that integrates the Steamworks SDK into the Godot engine. It serves as a bridge between the engine's scripting layer and platform services, allowing applications to access social features and platform-specific connectivity. The project utilizes a C++ wrapper and a C-compatible foreign function interface to bind the Steamworks SDK. It includes a session manager that handles application ID initialization and enforces that the application is launched through the Steam client to validate ownership and session integrity. The integration covers se
Utilizes a C-compatible foreign function interface to bridge the Godot engine with the Steamworks SDK.