Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's how it always been. The whole aspiration to have code Pythonic is to make it look like business logic, and you can't do this without abstracting things. This is how for example uvloop adds performance when using it with over asyncio.

I was able to do network streaming (including live encoding) of audio and video in Python. Do you think that would be possible if it was native python code? Of course not, I used GStreamer which did that in C. My objective was not to write an encoder but stream the video, so as far as I am concerned my code was in Python.

One of big strengths of Python is that when you need to improve its performance you just need to locate bottlenecks and rewrite them in a faster language. This is especially great when you want to do it in code that is not your primary objective, like in this project, you as a developer care what your code returns on specific requests you don't really care about how service handles each request etc. This is what a high level programing language is about.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: