News for hackers. Stuff that matters.
Re:Show HN: Python framework is faster than Golang Fiber by okaleniuk on Tuesday January 10, 2023 @09:44AM (#34325565)
I literally posted the links to the AOT Python compiler and to the C++ interpreter.
Re:Show HN: Python framework is faster than Golang Fiber by ddalex on Tuesday January 10, 2023 @09:59AM (#34325798)
A theoretical difference without practical impact; nobody uses these - sure you can implement a C++ interpreter in hardware if one so wishes, but if the industry doesn't use it, what's the good of it ?
Re:Show HN: Python framework is faster than Golang Fiber by messe on Tuesday January 10, 2023 @10:00AM (#34325807)
The commenter above you said:

> general real world implementation

By this they mean the real-world-implementation that is in general use, which in this case is interpreted.

Yes, Python can be compiled and C++ can be interpreted. 99% of the time, they're not though.

When somebody says X language is interpreted, they mean that the most common and widely implementation is an interpreter. That's a useful bit of information to know about a language. "Correcting" them and saying that all languages can be interpreted OR compiled, doesn't really add anything of value to the discussion, other than to label yourself as a pedant.

Re:Show HN: Python framework is faster than Golang Fiber by okaleniuk on Thursday January 19, 2023 @10:54AM (#34441638)
Counterexample. Numba is a Python compiler for heterogeneous computing. We adopted it last year and stopped rewriting code in C++ to run it on GPGPU.

On one hand, the conception from the 90s based on the most common Python implementation, on the other - a compiler that saves us tons of money. Which one adds value again?

Re:Show HN: Python framework is faster than Golang Fiber by mindcrime on Tuesday January 10, 2023 @10:59AM (#34326829)
I literally posted the links to the AOT Python compiler and to the C++ interpreter.

That would be important in high-school debate club. In the real world, most people don't care about obscure edge cases and pedantry. In the industry vernacular, Python is an "interpreted language" and C++ is a "compiled language". Arguing against that in anything other than a highly (highly!) specialized context is just lighting candles in the wind.