News for hackers. Stuff that matters.
Re:Show HN: Python framework is faster than Golang Fiber by melenaboija on Tuesday January 10, 2023 @08:46AM (#34324761)
It does not say that Python is faster than Go it clearly says "Python framework".

> It only proves that wrapping C code in Python is fast.

Yes, it proves that for this specific use case Python is faster.

Re:Show HN: Python framework is faster than Golang Fiber by meling on Tuesday January 10, 2023 @08:59AM (#34324888)
Technically, it is C that’s faster.
Re:Show HN: Python framework is faster than Golang Fiber by melenaboija on Tuesday January 10, 2023 @09:04AM (#34324990)
Technically (not sure what you mean with this but with the context I will use it too as it seems to match with what I want to say) you could never talk about Python (the most common and original implementation) without making reference to C then.

And if you are not making reference to a specific implementation then the comparison does not make any sense.

Re:Show HN: Python framework is faster than Golang Fiber by palata on Tuesday January 10, 2023 @09:42AM (#34325529)
Isn't there a difference between interpreting Python code with CPython (which I would call "Python") and running compiled C from Python (which I would call "C")?

Then it kind of make sense to talk about " pure Python" (the interpreted one) and "wrapped C", doesn't it?

Re:Show HN: Python framework is faster than Golang Fiber by dgb23 on Tuesday January 10, 2023 @10:10AM (#34325972)
> you could never talk about Python (the most common and original implementation) without making reference to C then.

Good. Because otherwise people would be mislead to think that Python itself is fast. The Python plus C combo has opposite tradeoffs in many dimensions.

Re:Show HN: Python framework is faster than Golang Fiber by cirospaciari on Tuesday January 10, 2023 @09:01AM (#34324917)
Python (CPython) is written in C so always will be C, PyPy i think is C too? not sure.
Re:Show HN: Python framework is faster than Golang Fiber by o_1 on Tuesday January 10, 2023 @09:15AM (#34325107)
Claiming python has blazing speed while literally being CPython is insanity. This is like saying "Im a natural body builder who only uses Test, HGH, and Dianabol". Great drop the natural part, similarily just advertise speed as CPython.
Re:Show HN: Python framework is faster than Golang Fiber by kaba0 on Tuesday January 10, 2023 @09:22AM (#34325219)
> Claiming python has blazing speed while literally being CPython is insanity

And it is not claimed anywhere. Besides, cpython is not really know to be fast, as it is an interpreter? Why would its implementation language matter much?

Re:Show HN: Python framework is faster than Golang Fiber by xwowsersx on Tuesday January 10, 2023 @09:24AM (#34325244)
By bodybuilder standards, using just Test, HGH, and Dianabol is practically natty!
Re:Show HN: Python framework is faster than Golang Fiber by warinukraine on Tuesday January 10, 2023 @10:15AM (#34326038)
Technically, python is written in C. What's your point?
Re:Show HN: Python framework is faster than Golang Fiber by nmz on Tuesday January 10, 2023 @10:33AM (#34326347)
Technically, golang was written in C. Why so combative?
Re:Show HN: Python framework is faster than Golang Fiber by warinukraine on Tuesday January 10, 2023 @10:36AM (#34326375)
I was just highlighting how saying "technically it's C that's faster" is a stupid think to say. Thanks for helping me make my point :D
Re:Show HN: Python framework is faster than Golang Fiber by jacobr1 on Tuesday January 10, 2023 @10:30AM (#34326281)
But that isn't the question. The question is what tool delivers the best performance. If I want to build some end-use-case software, should I adopt "Python Framework X" or "Golang Framework Y" to build this system? One consideration amongst many is performance. If you assume that the overall system with Go will be faster than the overall system with Python (and c modules) then you'd be wrong in this case. Other factors would inform your overall decision, but having more knowlege about tradeoffs enables one to make better engineering decisions.