>>58752818

What are you trying to say here? They teach Python, but it sucks cause it's slower than Go or what?

Other urls found in this thread:

github.com/squeaky-pl/japronto
youtube.com/watch?v=Iw9-GckD-gQ
twitter.com/SFWRedditImages

It has a shallow learning curve dickwheat.
Example:
github.com/squeaky-pl/japronto

>mfw I decide to run python benchmarks with pypy3 and it ends up being faster than go

I used the same command they used for building the go program.

Python is now more than 30% faster, and that includes jit spinup time.

It's not just slow, it's 50 times slower than Go. It's a joke.

>github.com/squeaky-pl/japronto

> To be fair all the contestants (including Go) were running single worker process.
Are you retarded?

>The server is written in hand tweaked C trying to take advantage of modern CPUs.
You're not retarded, you're completely broken.

>It's not just slow, it's 50 times slower than Go. It's a joke.
Get rekt faggot

...

if you're using python for its performance you're using it wrong, that's why different languages exist

Exactly. Different languages are best suited for different tasks. There is no one "best language" for every task. OP either knows this and is trolling, or OP is ignorant.

If you're writing a game engine where performance is absolutely critical, use a low level language like C++.

If you're writing a URL checker, use a high level language like Python. The latter can be written in like 7 lines of code, it's incredibly easy.

Why can't they make some simple, high-level scripting language like python, but which is actually compiled into machine code instead of running in an interpreter? Surely you would have the conciseness of python and the speed (almost) of other languages?

>high-level scripting language like python
Because a high level scripting language like python lets you do all kinds of weird magic shit that would be just as slow when compiled.
Python with pypy is reasonably fast.

what about cython?

python is used in cases where performance wasn't a priority to begin with.

python is compiled dickweed

underage gtfo

It does the bytecode pyc business, but it's not "compiled" in the traditional sense like other compiled languages. Python is an interpreted language.

Python is fine for a lot of use cases from a performance standpoint. And if you need to write Python but have it perform fast, you just have to write fast Python and execute it fast.

youtube.com/watch?v=Iw9-GckD-gQ

To be fair, the Python interpreter/jit is pretty shitty.

Does pypy even implement the latest spec?

>3 hours of legacy python 2 code

ew, no thanks.

>interpreted languages are slower than compiled languages
wow!!1

Despite the fact that OP probably doesn't know a thing about python or performance, the performance issues with CPython (especially python3) are real.

Pypy and all the other implementations can only get you so far because as soon as you start losing important libraries using python becomes pretty much meaningless.

Because such languages are usually safer and require more runtime components to function.

Ahead of time compiling adds less value over a just in time compiler other than reducing initial start up. So compiling to raw platform specific machine instruction is pointless.

>I can't believe they're not teaching kids in CS-101 and 102 to write FizzBuzz and Hello World in a language that can compile it .00006 seconds faster and use 14 bits of memory less

autism

>pypy
>losing important libraries
Unless you need to use numpy and its derivatives you'll rarely run into problems.

>Python with pypy is reasonably fast.
"about 7 times faster than CPython on average" isn't reasonable fast

To produce fast code, you have to break with Python semantics. Might as well use Nim.

THIS

WTF

WHY ARE THEY NOT USING PURE ASSEMBLY

ITS LIKE THEY WANT SLOW PROGRAMS

is wrong. In fact, such languages exist. Such as golang, Crystal, Swift, C#(if you compile it to binaries)...
>inb4 they are less simple
At this point, they aren't. You might not know, but Python is a feature-laden monster.

people are shitty at writing ASM with good perf tho

the C compiler is better than most humans at writing ASM

CUDA is literally twice as fast as C

Why do retards still use C?

numpy is a crucial library for scientific computing which is a main area python is used in. without it in many cases python is simply not usable, for example, tensorflow.

A more general issue is just the way extensions are handled, which means for any libraries that depend on it they need to be ported with significant costs which simply haven't happened yet. It's not a fault of the implementation per se but it does significantly limit its adoption.

This poster is severly autistic, as evidenced by his lack of understanding why schools choose python.

>golang
>high-level scripting language
Golang is an abomination that is trying to be a retard friendly C and is completely void of any high-level constructs.

>"about 7 times faster than CPython on average" isn't reasonable fast
If you actually try using pypy you'll notice that it's actually not that much slower compared to C# or Java.

If numpy and tensorflow are your main use case then python speed isn't that much of an issue because both of those libraries are implemented in C.
With that said, numpy already works in pypy to some degree and there's also an issue open for tensorflow which has some progress.

LISP is the best language to teach kids

Python is easy to learn and has a lot of databases and resources so it's very practical to teach it as a first/primary language.

It's kind of like learning martial arts in the military, as opposed to joining a MMA gym.