https://pulumi.com logo
#general
Title
# general
a

ambitious-computer-3093

07/20/2023, 5:05 AM
hey all another question that was raised. when writing your code (Python, Go etc) for Pulumi infra apps. Are there any benefits of using say Go over say Python? they are all run as interpreted languages anyway. Unless i am missing something??
l

little-cartoon-10569

07/20/2023, 5:20 AM
Go isn't interpreted.
a

ambitious-computer-3093

07/20/2023, 5:21 AM
yes i know but when you run pulumi up does it first compile the Go or C# code then run it. I am trying to work out the optimal performance outcome
l

little-cartoon-10569

07/20/2023, 5:21 AM
But there isn't any particular benefit. Typescript seems to have the biggest uptake. There was a benefit in using Typescript once upon a time, but not much different any more.
a

ambitious-computer-3093

07/20/2023, 5:21 AM
ok personally i prefer Python
l

little-cartoon-10569

07/20/2023, 5:22 AM
Yes, it compiles them first, but it's all hidden by the Pulumi app, afaik.
a

ambitious-computer-3093

07/20/2023, 5:22 AM
ok thanks
🙂
l

little-cartoon-10569

07/20/2023, 5:22 AM
The language doesn't affect performance significantly. Most of the time is spent actually deploying stuff, waiting for responses from providers..
a

ambitious-computer-3093

07/20/2023, 5:22 AM
that was my thought too
waiting for the resource providers APIs etc
thanks
g

great-sunset-355

07/20/2023, 8:26 AM
From experience, I'd recommend TypeScript before pulumi implements the TypedDict type for python.
s

salmon-gold-74709

07/22/2023, 1:01 PM
Go type checking is pretty nice too, and IDE support, but the Pulumi SDK doesn’t yet support Go generics so it’s not verbose than Python or TypeScript
3 Views