News for hackers. Stuff that matters.
Re:Web Framework Benchmarks by onion2k on Thursday June 07, 2018 @09:06AM (#17255383)
These are fun benchmarks, but every single framework in the top 250 or so is more than fast enough for most apps. Even the slowest in the list manages 366/requests per second, which is probably enough to prove an idea before optimizing for speed.

We're approaching the point where speed is essentially a solved problem unless you're at Google-scale.

Re:Web Framework Benchmarks by l1ambda on Thursday June 07, 2018 @10:59AM (#17256318)
It's not so much about immediate performance, but about headroom.

The blog post https://www.techempower.com/blog/ puts it better than I:

> I argue that if you raise the framework's performance ceiling, application developers get the headroom—which is a type of luxury—to develop their application more freely (rapidly, brute-force, carefully, carelessly, or somewhere in between). In large part, they can defer the mental burden of worrying about performance, and in some cases can defer that concern forever. Developers on slower platforms often have so thoroughly internalized the limitations of their platform that they don't even recognize the resulting pathologies: Slow platforms yield premature architectural complexity as the weapons of “high-scale” such as message queues, caches, job queues, worker clusters, and beyond are introduced at load levels that simply should not warrant the complexity.

Re:Web Framework Benchmarks by smoe on Thursday June 07, 2018 @09:49AM (#17255708)
I agree with the overall sentiment. Plus almost all cases I run into performance issues with e.g. Python in general web development, that main problems were how the code was written, not what it was written in and being bottle-necked by the database.

That said I disagree a bit with saying it is a a solved problem unless you are Google-scale. In developing countries if you are in a small company without big investors, you need to do quite a bit more juggling with infrastructure budgets once you are past MVP compared to for example where I'm from Switzerland.

Re:Web Framework Benchmarks by mkirklions on Thursday June 07, 2018 @10:34AM (#17256067)
Im somewhat traditional with my web, javascript and php.

But are people really doing python and web development?

I love python for my web crawlers, photoshop automation, and table formatting automation- But I never considered it a web contender.

Any major sites running python? Whats the popular way people are doing it?

Re:Web Framework Benchmarks by tomchristie on Thursday June 07, 2018 @10:52AM (#17256237)
Hell yes - it's an incredibly productive language, and the Web frameworks for it (Flask & Django in particular) are really nicely mature.

For fast Web App development it's a superb language choice.

Not so good if you wanted to write a super-high-throughput proxy service, but asyncio & ASGI is starting to change things there too.

> Any major sites running python?

Instagram is probably the biggest headliner these days, but there's stacks of others.

Re:Web Framework Benchmarks by chipotle_coyote on Thursday June 07, 2018 @10:58AM (#17256298)
In addition to some other sites I've seen mentioned in respnose Reddit seems pretty major, and AFAIK it's still largely in Python. (They wrote their own Python framework, although they've been moving to Pyramid.) Yelp is also a Python shop, as is Disqus (which is built on Django).
Re:Web Framework Benchmarks by jdietrich on Thursday June 07, 2018 @11:01AM (#17256343)
In the dim and distant days of 2010ish, Python was quite widely used for back-end development, typically using Django or Flask. Instagram, Disqus and Pinterest were all originally built on Django, IIRC.
Re:Web Framework Benchmarks by trymas on Thursday June 07, 2018 @11:19AM (#17256558)
Also reddit, which is , afaik, currently the biggest site made with python.
Re:Web Framework Benchmarks by smoe on Thursday June 07, 2018 @11:56AM (#17257000)
I think it is not as popular as it used to be for web development, but when I started using it around 2005 it was one of the few choices that were somewhere in between writing php/perl scripts and the very heavy weight Java, ASP,and ColdFusion solutions.

That's in my opinion the main reason why Python and Ruby on Rails got massively popular for web dev in the 2010s. Since then new and existing languages have started breaching into that spot.

What still makes Python stand out is its flexibility and the sheer amount of resources available(libraries, frameworks, books, etc.) across numerous domains. It is a good enough choice for a lot of things, although its not necessarily the best choice for anything.

Re:Web Framework Benchmarks by onion2k on Thursday June 07, 2018 @10:46AM (#17256186)
Any major sites running python?

YouTube is quite a popular one.

Re:Web Framework Benchmarks by ksec on Thursday June 07, 2018 @12:00PM (#17257048)
Instagram. Dropbox.
Re:Web Framework Benchmarks by conradfr on Thursday June 07, 2018 @10:47AM (#17256197)
Isn't Django huge? And there's Flask as well.
Re:Web Framework Benchmarks by detaro on Thursday June 07, 2018 @10:49AM (#17256206)
Instagram uses Python/Django a lot
Re:Web Framework Benchmarks by ekr on Thursday June 07, 2018 @10:44AM (#17256161)
Until your app gets on HN/Slashdot/Reddit etc and experiences the hug of death.

Jokes aside, I do agree that from a developer's standpoint, the optimal way to act (optimising for business success) is as you say, ignore performance at first. But from an engineering/craftsmanship standpoint, it should really bother you to have an inefficient system.

Just think of all that extra CPU load, and all the CO2, all the coal burnt to sustain it ...

Re:Web Framework Benchmarks by lllr_finger on Thursday June 07, 2018 @09:41AM (#17255650)
Is it? Concurrent connection handling at scale is a major problem, and plenty of Fortune 1000 companies would jump at the chance to have even 5% fewer instances deployed.

366 rps in a test scenario doesn't scratch the surface of what I need, and I'm not doing anything I'd consider crazy scale. When you need to support hundreds of thousands of rps, small improvements can be very noticeable.

Re:Web Framework Benchmarks by bpicolo on Thursday June 07, 2018 @09:49AM (#17255707)
> plenty of Fortune 1000 companies would jump at the chance to have even 5% fewer instances deployed.

Becoming a Fortune 1000 company isn't "most apps"

Re:Web Framework Benchmarks by mkirklions on Thursday June 07, 2018 @10:35AM (#17256081)
I'll tell you what.

When I'm a fortune 10,000 company, we can afford to rewrite the web app.

Re:Web Framework Benchmarks by ddorian43 on Thursday June 07, 2018 @10:47AM (#17256194)
But do they rewrite ? Twitter did. Facebook didn't.
Re:Web Framework Benchmarks by tomnipotent on Thursday June 07, 2018 @06:48PM (#17261048)
> Facebook didn't.

You have no idea what you're talking about. Not only did they produce TWO different implementations of PHP (HHVM and Hack), a vast majority of their infrastructure is NOT in PHP (which is mostly reserved for the front-end/web tier).

Re:Web Framework Benchmarks by ddorian43 on Thursday June 07, 2018 @07:50PM (#17261390)
I know. Still, cheaper than rewrite.
Re:Web Framework Benchmarks by chipotle_coyote on Thursday June 07, 2018 @11:00AM (#17256326)
Facebook wrote a new PHP VM and forked the language, so while it may not technically be rewriting...
Re:Web Framework Benchmarks by pier25 on Thursday June 07, 2018 @11:12AM (#17256470)
I agree with your general point, but there are many more companies and products that do require high performance beyond Google.