Home / Companies / Cloudflare / Blog / Post Details
Content Deep Dive

Workers RPC now works across Python and JavaScript

Blog post from Cloudflare

Post Details
Company
Date Published
Author
-
Word Count
1,704
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

Cloudflare has expanded its Workers RPC system, initially built on Cap'n Proto RPC, to enable seamless cross-language communication between JavaScript and Python Workers without requiring developers to define schemas or add dependencies. This system, which began as JavaScript-native RPC, allows for cross-language method calls, object sharing, and function returns, bridging the distinct type systems of JavaScript and Python through Pyodide's Foreign Function Interface (FFI). The integration ensures that developers can work as if they are using a single-language application, with Pyodide handling type translation and the workers-runtime-sdk ensuring native object handling across both environments. This advancement allows for the integration of Python packages in JavaScript applications, exemplified by using the Python package Pygments for syntax highlighting in a JavaScript Worker, showcasing the potential for building complex multi-language systems with minimal performance overhead.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.