News for hackers. Stuff that matters.
Re:Flask 1.0 Released by wybiral on Thursday April 26, 2018 @05:48PM (#16936175)
I've never seen Falcon, thanks.

Flask is still one of the most approachable frameworks I've used. It's great for getting something hacked out really quickly, but for asynchronous requests Tornado is where it's at.

That being said, when I really want performance I usually reach for Golang.

Re:Flask 1.0 Released by discordance on Thursday April 26, 2018 @08:44PM (#16937478)
Check out Sanic if you want an async python framework with a similar API to flask
Re:Flask 1.0 Released by SmirkingRevenge on Friday April 27, 2018 @12:29AM (#16938447)
Its pretty hard to beat Tornado's api, IMHO. Its a really rich api for how simple and quick it is to learn. Flask is a definite downgrade to me, when it comes to the api.

But Flask wins hands down on the richness of its ecosystem.

Re:Flask 1.0 Released by BerislavLopac on Friday April 27, 2018 @02:51AM (#16938890)
Most of the "Flask ecosystem" are wrappers for some generic Python libraries which can easily be introduced to any other framework: SQLAlchemy for RDBMS abstraction and ORM, Jinja2 for templating, and so on.
Re:Flask 1.0 Released by malloryerik on Thursday April 26, 2018 @10:41PM (#16938082)
Do you find Golang to be that much harder to develop in, or is it that Python has libraries whose equivalents are missing in Golang? When would you actually choose one over the other?
Re:Flask 1.0 Released by wybiral on Thursday April 26, 2018 @10:53PM (#16938132)
Python is generally less to type. Go isn't hard, per se, but it is statically typed and tends to be a bit more verbose.

For me: Python if there's a specific library I want to use, I'm just hacking out a proof of concept, or I'm working with text.

Golang for higher performance, concurrency, stream processing, and cryptography (it has good libraries for that kind of stuff).