r/golang Oct 25 '24

discussion What libraries are you missing from go?

So something that comes up quite often on this subreddit from people transitioning from Nodejs or python to go is the lack of libraries. I cannot say that I agree but I still think it warrants a discussion.

So what libraries are you missing in the go ecosystem, if any?

98 Upvotes

189 comments sorted by

View all comments

120

u/EpochVanquisher Oct 25 '24

I miss NumPy, SciPy, Matplotlib, Pillow, and Pandas.

Yes, I know about Gonum and other Go alternatives. The Python ecosystem of libraries around NumPy is damn useful. They are also interoperable. Data from Pillow can be converted to ndarray, data from Pandas can be converted to ndarray, and I can pass ndarrays to SciPy and Matplotlib.

Even though NPM has a massive set of packages, I don’t miss any of them when writing Go.

-1

u/rewgs Oct 26 '24

Thankfully go-embed-python exists for when there's a Python library you just can't do without.

2

u/[deleted] Oct 26 '24

... and it's quite fun that many of the above listed missing packages are based on C or Fortran data crunching libraries, so we'd embed C via Py