Swift support for edge functions #33714
Replies: 4 comments
-
|
Hey @MadeByDouglas this is theoretically possible since edge functions can run wasm modules and we can use https://github.com/swiftwasm but not sure how hard would it be to achieve it, tagging @laktek for discussing this. |
Beta Was this translation helpful? Give feedback.
-
|
We have a guide on how to use WASM modules with Edge Functions https://supabase.com/docs/guides/functions/wasm. If you can compile your Swift code to wasm, you should be able to run it similarly. |
Beta Was this translation helpful? Give feedback.
-
|
that is great, and I will def check it out since swift does compile to wasm, but having native support would be better for performance. Also there is a magic to having "one click button" instead of a guide to follow to get these things working, like I'd love to just write swift, push to supabase, and not think about it. I think the swift and supabase community could really benefit from a deeper collaboration here. adding swift forum link to increase visibility between communities https://forums.swift.org/t/what-would-help-you-use-server-side-swift-with-aws/57969/55 |
Beta Was this translation helpful? Give feedback.
-
|
I would love to see this feature if possible, for performance reasons in our iOS app. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So it would be pretty great if a variant of edge functions were powered by AWS Lambda, enabling native swift on the server. In fact, collaborating with or leveraging the tools here would be really neat https://github.com/swift-cloud/swift-cloud
@grdsdev what do you think?
Beta Was this translation helpful? Give feedback.
All reactions