Earlier quoted context omitted.
I understand what you said. I did not expect full node runtime workers with all the other benefits that you listed that current workers have (global distribution, no cold starts, cost..). But it would be great to have a choice. I feel it would benefit both users and Cloudflare to support both (with different tradeoffs). For example, selecting "I want node runtime for this app workers," I would need to select the regi…
Yeah, in theory we could build a parallel service that's more Lambda-like and hosts apps in a more centralized way. It's certainly something we've thought about. The challenge is, can we actually build that in a way that is significantly better than the existing competition? It's a crowded space. If we just build the same thing everyone else is doing, will it attract enough use to be worth the investment? It sounds l…
Python Cloudflare Workers
81–90 of 101 posts
Re: Python Cloudflare Workers
#82More development and users for Pyodide is great news. Especially that better serverless story for Python server frameworks. I wonder if Jupyter can work in this stack? It is essentially JavaScript, but built for browser environment. Just the Python kernel might be worker compatible. It essentially has to do code evaluation which might a limitation as well. Should it work you could offload compute from browser or othe…
Python notebooks can definitely work in WASM: - https://jupyterlite.readthedocs.io/en/stable/ - https://docs.marimo.io/guides/wasm.html Running just the kernel in a Cloudflare Worker is an interesting idea ...
https://github.com/jupyterlite/jupyterlite?tab=readme-ov-fil... <- Currently kernel supports at least web workers.
Re: Python Cloudflare Workers
#83I with they added Azure Functions style workers using C# too, or AWS style lambdas using NativeAOT. Way lower runtime overhead and time to first response latency. But C# is an underdog language in those lands, so it's understandable.
At the moment, it seems like they're concentrating on using V8 isolates. In the article, there's a good diagram of why: an isolate is able to share so much between different applications. Even with NativeAOT, you're still launching an entire program that has to load everything into memory and execute. In some ways, they're using V8 isolates the way that mod_php was used back in the day. One reason PHP became so domin…
But just to clarify, mod_php isn't thread safe so parallel requests do not share memory, they each have their own process (prefork mpm). And for untrusted tenants you also need to combine with mod_setuid or mod_suexec for proper isolation, as PHP doesn't do any isolation of its own (they tried for a while but gave up, remember open_basedir?).
In other words a server with 16GB of RAM could handle maybe 250-350 simultaneous PHP requests using mod_php, whereas I'm sure they can fit thousands of isolates in that footprint.
Re: Python Cloudflare Workers
#84Clouflare has a lot of great stuff for hosting and databases but I think they haven't done a great job marketing themselves as developer platform which has lead to platforms like Vercel, Netlify taking significant mindshare. Tangential: does Cloudflare provide container hosting service agnostic of language -- something like Google Cloud Run?
Bandwidth costs are 40x-50x more expensive on Vercel and Netlify that the vast majority of cloud providers. Cloudflare bandwidth is barely a cost.
Edge function calls are 6x more expensive on Vercel and Netlify than Cloudflare. Not including compute time costs which is free on Cloudflare.
I think the only reason Vercel is even popular is because it's by far the best place to host NextJS and that might be why they make it hard to deploy NextJS else where.
Re: Python Cloudflare Workers
#85"This is about more than just making bindings to resources on Cloudflare more Pythonic though — it’s about compatibility with the ecosystem." Someone might be getting editorial help from GPT-4. // Or a human might be getting fine-tuned interacting with LLMs, which I've noticed happening to me.
Re: Python Cloudflare Workers
#86Re: Python Cloudflare Workers
#87With Pyodide getting some serious backing, is there a glimmer of hope that we could end up with Python as a real alternative to JavaScript in the frontend?
Re: Python Cloudflare Workers
#88Earlier quoted context omitted.
The unique architecture of our runtime is what enables most of our competitive advantages. It's what lets us run your application in hundreds of locations around the world while also charging less than competing serverless platforms. If we used a full Node runtime, we would need to charge a lot more money, or only run your app in a couple central locations, or both. So, no, we can't just offer full Node. However, we…
Your comment would have been great without: > So, no, we can't just offer full Node. (Sounds a bit snotty)
"Thus, no, we can't just offer full Node."
Is it the use of "so" that is off limits?
Or is simply providing a concise conclusion inappropriate?
I don't see what part of that quote is "snotty".
Re: Python Cloudflare Workers
#89"This is about more than just making bindings to resources on Cloudflare more Pythonic though — it’s about compatibility with the ecosystem." Someone might be getting editorial help from GPT-4. // Or a human might be getting fine-tuned interacting with LLMs, which I've noticed happening to me.
GPT-4 has a variety of tells. One of them is:
"This is not just about good thing, it's about another good thing." That "it's not just A, it's also B", or "it's more than A, it's B too" show up most any time you ask it for "persuasive" copy, like marketing, sales, or a rewrite of anything to make the reader a buyer.
It's disproportionately common in GPT-4 copywriting or copy-editing, relative to human copy.
Similar to seeing the word "Overall, ..." for a concluding paragraph, another tell.
Re: Python Cloudflare Workers
#90"This is about more than just making bindings to resources on Cloudflare more Pythonic though — it’s about compatibility with the ecosystem." Someone might be getting editorial help from GPT-4. // Or a human might be getting fine-tuned interacting with LLMs, which I've noticed happening to me.
To the dead comment beside me, asking why... GPT-4 has a variety of tells. One of them is: "This is not just about good thing, it's about another good thing." That "it's not just A, it's also B", or "it's more than A, it's B too" show up most any time you ask it for "persuasive" copy, like marketing, sales, or a rewrite of anything to make the reader a buyer. It's disproportionately common in GPT-4 copywriting or cop…