3 ms·
I'm kinda surprised given the huge amount of effort the person put into this study that the seemed to overlook the key point of async/await patterns: latency.
by SavantIdiot 5y ago
I'm kinda surprised given the huge amount of effort the person put into this study that the seemed to overlook the key point of async/await patterns: latency.
Also: how did we come to Python as a web server when there are languages and applications better suited? Do we really want one language to be everything to everyone?
- jjice 5y agoBecause people like Python and it does a decent job at it. Might not be your cup of tea for a variety of reasons, but a lot of people think it works well on the server. Is speed the concern? Spinning up a new server is pretty easy nowadays. Is it the lack of static typing? Aside from type hint support over the last few versions, I'd claim based on experience that PHP feels more loose with its types than Python is (mixed return results feel more common in PHP). Python does a lot well for a lot of people. All that said, I think a lot of languages can do a lot of things well without serious performance impact. If you need the performance, choose the language based on that criteria.
- SavantIdiot 5y ago> Python does a lot well for a lot of people. That's why I use PERL for my web server. ;) I'm not denying Python is an amazing language. I have to use it for machine learning, and I've grown to really like it since the first time I used it in the 90's. Just seems odd. Like, if you had a catering business and you drove a Ford Escort, and decided to add a bunch of trailers to it because it had too little capacity in the back seat. And then tried to optimizes those trailers because it was too inefficient, rather than just buying a delivery truck suited for delivering food. OK, that was an awkward analogy.
- markoman 5y agoI'm a Perl guy too. May I ask what Perl technology you're using? Dancer perhaps?
- SavantIdiot 5y agoI'm not, I was being lighthearted. Sorry, bad joke I guess. But to the other poster's point, some people use what is natural: PERL is so absolutely burned into my brain after 10 years writing CAD flows with it, that when I need to munge a file I've already written the code in my head before I've even opened my text editor.