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

melodic-kilobyte-42348

01/30/2024, 7:53 PM
Is there any data showing what's the most popular language is for pulumi? I'm looking for go or python cuz I dont want to learn ts.. Is there additional benefits using certain language?
s

salmon-account-74572

01/30/2024, 8:26 PM
Python is our second most-used language. (TypeScript is first.) Feature support across all the languages is pretty even, so it really comes down to choosing whatever language/toolset works best for you.
When it comes to policy as code (our CrossGuard feature), we’re limited to only Python and TypeScript, BTW.
Does that help?
m

melodic-kilobyte-42348

01/30/2024, 8:39 PM
thanks. it helps, but I do see the confusing part when I use the pulumi AI to generate the same code for go like
pulumi.String
or those
if err
. is it because go is not object oriented languages?
s

salmon-account-74572

01/30/2024, 8:42 PM
Go is strongly typed, so you’ll see use of things like
pulumi.String
to convert things into the right type. It does make Pulumi programs written in Go a tad more verbose than some of the other languages (I prefer to write all my Pulumi programs in Go). The
if err
pattern is typical error-checking with Go programs.
m

melodic-kilobyte-42348

01/30/2024, 9:01 PM
got it. just
if err
reminds me it's Procedural programming and I dont see the try except with ts or python
r

rapid-ghost-46787

01/31/2024, 1:20 PM
Feature support across all the languages is pretty even
Including testing for Java?
I think I spotted mocks for Python and Go but not for Java.
s

salmon-account-74572

01/31/2024, 2:22 PM
There may be a few gaps here and there---I don't work with Java much and it's the newest language to be added, so it's possible that we missed some testing support. Mind opening an issue in https://github.com/pulumi/pulumi-java ?
r

rapid-ghost-46787

01/31/2024, 5:02 PM
Hey @salmon-account-74572 I don't mind at all.
Looks like there is something similar-ish https://github.com/pulumi/pulumi-java/issues/979
raised https://github.com/pulumi/pulumi-java/issues/1315 , let me know if you want me to expand on the description
s

salmon-account-74572

01/31/2024, 5:51 PM
Thank you for opening the issue! I think the description is fine for now; I modified the title slightly.
r

rapid-ghost-46787

01/31/2024, 5:57 PM
ofc, thanks!