I'm curious as to whether using python with SST is...
# sst
e
I'm curious as to whether using python with SST is a second class citizen compared to JS ? I've always used JS so far with SST but I have en engineer who'd love to use Python. Any one with experience / feedback on the matter ?
t
I would say yes. We properly support it as best we can but there's just some limitations with python
We can't efficiently bundle it + deps so it starts as fast as possible in prod
k
@thdxr I have a friend considering using SST with their project but they use Python also, I was recommending SST to them and I was wondering what the main drawbacks are?
t
I don't think there's any SST specific drawbacks
It's more that python + lambda isn't going to be as fast as other options
k
Ah so it is more the speed aspect…
In that case they would see the same issues with other tooling I assume
t
yeah
To me it's less about drawbacks and more about getting the full benefits of SST. Writing backend, infra + frontend in TS is really advantageous + all the optimizations we do to bundle for production. It's likely worth giving up wanting to use python
k
Yeah I 100% agree, for me that is why I use TS all around… I think there are use cases where certain libraries in python are not easily replaced with node libraries, e.x pandas/numpy stuff like that..
t
I'm waiting for the day pandas dies and is properly replaced
k
😂
r
Not that familiar with pandas but this is getting some buzz recently: https://www.npmjs.com/package/nodejs-polars
k
This looks very good Ross, thanks for sharing 🤩
z
Could you guys go a bit deeper into python being slower? I’ve always been under the impression that it was a bit faster than node for backend tasks as per this blog but I’m more data engineering than backend engineering so may have missed some caveat 🙂 Agreed on pandas being… very meh, I’ve also been looking at Rust bindings in python to cut pandas out haha
k
@Ross Coundon I am looking at
nodejs-polars
for a feature and I was wondering how you specify which version of the runtime to include in your lambda? Node installs the default one based on the env the build happens, but for my case I develop on Mac, build on SEED (Linux) and deploy on Lambda with
arm_64
arch.
Ohh it also looks like it needs node 16 > so it looks like it will be a no go ..
r
node 16 is in the process of being released so you might not have to wait long. I haven’t any experience of the library, I’m afraid, I just noticed a lot of people talking it about right around the time this question came up so mentioned it
k
Ah ok… looking at Danfo.js now seems good also