←back to thread

153 points michaelanckaert | 1 comments | | HN request time: 0s | source
Show context
ianamartin ◴[] No.23485568[source]
Well, that's too bad. I always thought this was a cool project. But if you can't dev your way into decent performance for a small alpha project using python/flask/sql, I don't think your tools are the problem. And I guarantee that a graphql isn't the solution.

So, I mean, good luck.

replies(5): >>23485616 #>>23485627 #>>23485632 #>>23487973 #>>23489310 #
searchableguy ◴[] No.23485627[source]
I didn't read the post that way. I feel scaling is a small issue more so organization. Graphql does make sense for something like source hunt.

Why not use type hints in python? Isn't that a good enough substitute?

I wonder why go instead of rust if he wanted static typing, long term ease of maintanence and performance. Go's type system is not great especially for something like graphql. Gqlgen relies heavily on code generation. Last time I used it, I ran into so many issues. I ditched go together after several painful clashes with it that community always responded with: oh you don't need this.

(yeah except they implemented all those parts in arguably worse ways and ditched community solutions in the next few years)

One major benefit the GP fails to mention is that with graphql, it is easy to generate types for frontend. This makes your frontend far more sane. It's also way easier to test graphql since there are tools to automatically generate queries for performance testing unlike rest.

There is no need to add something for docs or interactivity like swagger.

replies(3): >>23485642 #>>23485652 #>>23485686 #
erk__ ◴[] No.23485686[source]
As for the reason to use Go instead of Rust it is probably just down to the creator of Sourcehut he has multiple times expressed that he dislikes rust quite a bit.

He has written a blog post about how he chooses programming languages as well https://drewdevault.com/2019/09/08/Enough-to-decide.html

replies(1): >>23486796 #
Kuinox ◴[] No.23486796[source]
It's the first time I hear that haskell has awful package management...
replies(2): >>23487508 #>>23490584 #
Scarbutt ◴[] No.23490584{3}[source]
I hear the opposite, it's so awful they have to use Nix to keep it sane.
replies(1): >>23497028 #
1. tome ◴[] No.23497028{4}[source]
Interesting. Where did you hear that?