3 ms·
The officially supported languages are: * JavaScript (and TypeScript) * C and C++ * Rust Other languages may work, and we we won't stop you from using them,
by steveklabnik 7y ago
The officially supported languages are:
* JavaScript (and TypeScript)
* C and C++
* Rust
Other languages may work, and we we won't stop you from using them, but you may run into problems. The main issue with getting most languages to work is that we support JavaScript and WebAssembly, which means any other language needs support for compiling to wasm before it's even possible. Once it is, we have a one megabyte limit for the size of a worker, and so many other languages won't work because their minimal wasm output is too large.
We'd like to support more in the future. It takes a lot of work.
- ignoramous 7y agoThanks. Official languages aside, are there plans to support protocols other than HTTP? Say, WebRTC? Or, even raw TCP/UDP sockets. From what I know, Spectrum lets one deal with L4 and MagicTransit with L3 (provided BYOAnycastIP), but will there be a way for Workers to be an origin to those?
- steveklabnik 7y agoWe would like to do this as well, yes, but I can't make any commitments regarding it.