4 ms·
The decorator syntax is neat but confusing to me - I would need to understand exactly what it's doing in order to trust it. I'd find this a lot easier to trust
by simonw 9mo ago
The decorator syntax is neat but confusing to me - I would need to understand exactly what it's doing in order to trust it.
I'd find this a lot easier to trust it if had the Python code that runs in WASM as an entirely separate Python file, then it would be very clear to me which bits of code run in WASM.
- mavdol04 9mo agoThanks for the feedback! What do you think about running the separate file directly from the decorator?
- simonw 9mo agoI'd love that. I want to be able to look at the system and 100% understand which code is running directly and which code is running inside the sandbox.
- smithclay 9mo agoPersonally: love the decorator pattern after I got used to it :) Posted this yesterday as well, but seems like a really nice emerging pythonic way to call out to remote infrastructure (see: Modal[1]). [1]: https://modal.com/docs/examples/hackernews_alerts#defining-the-function-and-importing-the-secret https://modal.com/docs/examples/hackernews_alerts#defining-t...