logoalt Hacker News

simonwyesterday at 4:32 PM2 repliesview on HN

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.


Replies

smithclayyesterday at 5:05 PM

Personally: 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-t...

mavdol04yesterday at 4:50 PM

Thanks for the feedback! What do you think about running the separate file directly from the decorator?

show 1 reply