3 dépôts
Mechanisms for intercepting and translating exceptions between different execution environments, such as WebAssembly and JavaScript.
Distinct from Process Exception Interception: Focuses on translating exceptions across a language boundary rather than just capturing process-level crashes within one runtime
Explore 3 awesome GitHub repositories matching software engineering & architecture · Cross-Runtime Exception Translation. Refine with filters or upvote what's useful.
wasm-bindgen is a glue code generator and interoperability tool that facilitates high-level communication and data exchange between compiled Rust modules and JavaScript environments. It functions as a memory bridge and type definition generator, allowing the exchange of complex data types and the calling of functions across execution boundaries. The project distinguishes itself by automating the conversion of data types and function signatures using attribute-based bindings. It generates the necessary JavaScript and WebAssembly wrappers to manage linear memory mapping and creates automatic Ty
Intercepts native Wasm traps and JavaScript errors to translate them into language-specific error types across the boundary.
Ce projet est un pont d'exécution polyglotte et un framework d'interopérabilité conçu pour exécuter du code .NET et Node.js au sein d'un processus système unique. Il fonctionne comme un moteur d'exécution multi-runtime et un hôte de script in-process, permettant une communication bidirectionnelle et un échange de données entre le Common Language Runtime et les environnements JavaScript pour éliminer la surcharge de communication inter-processus. Le framework se distingue en fournissant un système pour les callbacks asynchrones bidirectionnels et le marshalling automatique de données de buffers binaires et de valeurs sérialisables entre différents types d'objets gérés. Il permet la compilation et l'exécution de fichiers sources ou de scripts en ligne à partir de plusieurs langages au sein d'une application en cours d'exécution en tirant parti d'un modèle de compilateur commun. Le projet couvre un large éventail de capacités incluant le déchargement de tâches asynchrones vers des threads d'arrière-plan, l'intégration de logique externe en tant que middleware de framework web, et l'exécution SQL asynchrone. Il fournit également des outils d'observabilité pour le mapping d'exceptions multi-runtime et supporte le débogage de processus gérés et natifs.
Translates native exceptions into standard error objects to maintain consistent error handling across execution environments.
The Cloudflare Workers Rust SDK is a toolchain and framework for building high-performance serverless functions using Rust. It compiles code into WebAssembly modules that execute within a sandboxed host environment at the edge. The project provides a typed remote procedure call system for invoking functions across different worker instances and utilizes procedural macros for mapping these distributed interfaces. It uses trait-based bindings and standardized wrappers to provide type-safe access to platform services and web-standard request and response objects. The SDK covers a broad range of
Intercepts low-level system panics and translates them into catchable exceptions to prevent worker crashes.