https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • h

    Hamzyy

    01/11/2021, 6:07 AM
    l'
  • w

    wilbo007

    01/11/2021, 6:38 AM
    I wonder where Durable Objects data will be stored, they said it’s “dynamic” I think but left it quite vague
  • m

    mrparker

    01/11/2021, 6:39 AM
    i'd imagine it'll still be K/V
  • b

    BobTheShoplifter

    01/11/2021, 7:11 AM
    What is Cloudflare workers
  • a

    advaith

    01/11/2021, 7:51 AM
    https://workers.dev
  • a

    advaith

    01/11/2021, 7:51 AM
    I'll never understand why people keep going to servers and then asking what the topic means
  • j

    justin

    01/11/2021, 8:01 AM
    @User what does the topic mean.
  • j

    justin

    01/11/2021, 8:02 AM
  • c

    CMoe

    01/11/2021, 8:03 AM
    has anyone used python in workers yet?
  • a

    ai

    01/11/2021, 8:10 AM
    There's a template for python on workers
  • a

    ai

    01/11/2021, 8:11 AM
    Idk how many have used it
  • c

    CMoe

    01/11/2021, 8:16 AM
    yeah saw that one
  • c

    CMoe

    01/11/2021, 8:16 AM
    wonder if anyone has used it cause not sure how to install new packages (requirements.txt) with it haha
  • a

    ai

    01/11/2021, 8:18 AM
    You want to save new packages to requirements.txt or install existing ones from requirements.txt?
  • a

    ai

    01/11/2021, 8:20 AM
    Actually doesn't matter because it seems the docs have the answer for both: https://pip.pypa.io/en/latest/user_guide/#requirements-files
  • c

    CMoe

    01/11/2021, 8:26 AM
    as in installing python packages
  • c

    CMoe

    01/11/2021, 8:26 AM
    to the workers
  • c

    CMoe

    01/11/2021, 8:26 AM
    e.g. installing tensorflow on the workers to run machine learning models
  • w

    wilbo007

    01/11/2021, 8:45 AM
    I dont think you’ll get far with that, its a struggle to do even basic things since its just a hacky transpilation to javascript :(
  • c

    CMoe

    01/11/2021, 8:56 AM
    i see thats fair enough
  • a

    advaith

    01/11/2021, 9:47 AM
    it's the server for https://workers.dev
  • m

    macedonian

    01/11/2021, 11:11 AM
    I’m trying to build a worker that uses WebAssembly, but I don’t see the resources tab to upload the WASM module.
  • m

    macedonian

    01/11/2021, 11:12 AM
    The docs send me to this blog article: https://blog.cloudflare.com/webassembly-on-cloudflare-workers/
  • m

    macedonian

    01/11/2021, 11:13 AM
    “WASM used in a Worker must be deployed together with the Worker. When editing a script in the online Workers editor, click on the "Resources" tab. Here, you can add a WebAssembly module.”
  • m

    macedonian

    01/11/2021, 11:14 AM
    But the resources tab doesn’t seem to be available anymore. Is there any updated documentation available on how to use WASM modules?
  • w

    wilbo007

    01/11/2021, 11:34 AM
    I thought the only way to use WASM was through wrangler
  • g

    Greg Brimble | Cloudflare Pages

    01/11/2021, 11:39 AM
    You can make an API call directly.
  • g

    Greg Brimble | Cloudflare Pages

    01/11/2021, 11:43 AM
    So, the UI has changed a bit since that blog post. The "Resources" tab has been replaced, but you can still see any attached WASMs on the Workers page, before going into Quick Edit.
  • g

    Greg Brimble | Cloudflare Pages

    01/11/2021, 11:49 AM
    And to attach a new one, you need to reference it in metadata as a
    wasm_module
    .
  • m

    macedonian

    01/11/2021, 11:49 AM
    I’ve checked the API but I don’t see any mentions of uploading WASM modules or any other kind of resources. I’m looking at the PUT accounts/:account_identifier/workers/scripts/:script_name API function. Do you know which API function I should be using?
1...394041...2509Latest