Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It’s a JavaScript/node-like environment only right now no? I love it for my svelte site but it’s a massive limitation to be locked in based on language and request-response based constraints right now.

You need at the very least containers and persistent volumes to be interesting to me at least.



JS, TS, Python, and Rust are first class options, plus generic wasm:

https://developers.cloudflare.com/workers/languages/


Interesting choice to support Rust over Go if you ask me. Don't have numbers but I don't really peg Rust as a popular language for serverless web apps, certainly not to the extent of Go


Non-JS workers run via WASM, and Rust had WASM support before Go.


I think GCd languages are not a great fit for WASM right now (though that is quickly changing).


We ran our whole platform, written in Rust, in the Cloudflare Workers. It was not a great experience. You need to use their SDK, with really interesting bugs that never got fixed (we always forked a version). It was pretty hard to test anything locally, you just had to deploy your code to their platform, which took time and made the feedback loop to take so much time it blocked us from delivering features fast enough.

And yes, you can test your local Rust code. It works nicely on your machine, but breaks with a really nasty error on their platform.

The target is `wasm32-unknown-unknown`, which allows you to use `fetch` as your only source of IO. Ok, their workers has a hacky socket implementation nowadays. Non-standard of course. And most of the ecosystem won't work really without forking everything and fixing the bugs by yourself.

We pivoted to a native Rust project. We still have one worker running in Cloudflare. We isolated that code from the workspace so that renovate updates will not touch it. You know, a random version upgrade might break the service...


> and Rust are first class options, plus generic wasm

Rust is still a wasm target. Not everything easily works. It doesn’t have all the Cloudflare sdk features js/ts has either.


All of the JS features are available in Rust, but some don’t have a first-class SDK API yet and you must use wasm-bindgen.


I'm just using Cloudflare's own words.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: