News for hackers. Stuff that matters.
Re:Keep Pydantic out of your Domain Layer by slt2021 on Saturday July 26, 2025 @11:59AM (#44695054)
>you're using Python. You don't give a shit about performance.

Maybe it is true if you artificially limit yourself to a single instance single thread model, due to GIL.

But because nowadays apps can easily be scaled up in many instances, this argument is irrelevant.

one may say that Python has large overhead when using a lot of objects, or that it has GIL, but people learned how to serve millions of users with python easily.

Re:Keep Pydantic out of your Domain Layer by dontlaugh on Saturday July 26, 2025 @12:34PM (#44695284)
Any Python code will be dozens to hundreds of times slower than Go or Java, but it may still be fast enough to stay within human reaction latencies.

And you make be able to scale to many users, worst case with more machines. But it’ll still costs you a lot more than a faster language. That is extremely relevant, even today.