IO is blocking within that request. There's no way around that. The difference between sync and async is that with the latter, the event loop from the blocking request is freed up to handle other requests, which is where the performance gain is. If there's only a single request, then sync and async are going to look largely the same from the outside. However if there's thousands of requests, async is going to do much better.
HN user
peller
I had the same pain points with Flask, so I built Flask Unchained to integrate many of the best extensions (IMO) to all work together out of the box in a reusable way:
SEEKING WORK | REMOTE/Denver | FULL-STACK | 20-30 hrs/week
My name is Brian, I'm a full-stack web engineer with 8+ years of experience. I specialize in backend architecture but I do it all, frontend and Linux DevOps.
Technologies:
- Python, Flask, Django, GraphQL, REST, Pandas/NumPy
- JavaScript/TypeScript, React, CSS
- PostgreSQL, MySQL, Ansible, Docker, AWS
Email: briancappello AT gmail DOT com
GitHub: github.com/briancappello
Location: Denver (front range metro)
Remote: Yes
Willing to relocate: Possibly
Technologies: Python, Go, SQL, React, JavaScript/TypeScript, CSS, Linux DevOps
Resume: Upon request
Email: briancappello@gmail.com
GitHub: github.com/briancappello
I'm a full-stack software engineer with 8+ years experience, strongest at backend but I do it all.Yea, I definitely need to put more effort into promotion and getting more active users.
I'm not familiar with padrino, but at least for Flask Unchained, it's literally Flask under the hood - so my project is less a new framework but more of an improved way to use a highly popular existing framework. I'm hopeful this distinction can help with adoption.
https://github.com/briancappello/flask-unchained
I wanted something better than Django. So I built this. IMO it's already there from a technical perspective but the documentation needs some more work. Would greatly appreciate any feedback!
I've had this experience out west too. But anecdotally at least, these spots can be harder to find on the east coast.
Sounds like it's more so water pollution where tires are bad:
Driving is not just an air pollution and climate change problem — turns out, it just might be the largest contributor of microplastics in California coastal waters. [...] Rainfall washes more than 7 trillion pieces of microplastics, much of it tire particles left behind on streets, into San Francisco Bay each year — an amount 300 times greater than what comes from microfibers washing off polyester clothes, microbeads from beauty products and the many other plastics washing down our sinks and sewers.
https://www.latimes.com/environment/story/2019-10-02/califor...
I don't think it's fair to say the tax _created_ the illegal market. Perhaps the taxes are too high to eliminate it, but the black market was always there, and it never had any real assurances of safety. Now, you have a safe(r) option, even if it may be more expensive than some people are willing to pay for.
That's pretty normal for black-market prices. But at least in Colorado, you can get an ounce of top shelf for $120-$140 after taxes (which are 25%). Eighths go for $20-$30. Street prices are even cheaper, but unless you know the grower personally, you obviously don't really know what you're getting.
There are early efforts under way to do just that: https://www.youtube.com/watch?v=RjD1aLm4Thg
Yea, something seems fishy. My E485 (one 3-cell battery) gets 3-4 hours on Arch
It sounds like they're using aeroponics where possible. Of course that still requires energy, but much less so than growing in soil. There's also much less overall water use, because it's essentially a closed loop system with minimal evaporation.
I'm a big fan of David Beazley for getting into advanced features of Python. He's sometimes a little bit, shall we say, oriented towards the experimental as opposed to "use this in production", but regardless he's a great speaker and a very smart dude. In particular I liked this tutorial on Python 3 Metaprogramming: https://www.dabeaz.com/py3meta/index.html
Heh me too :/
Yea, that's definitely possible. I'm running the latest BIOS (at least last I checked, maybe a month ago). The HDMI port basically didn't work until I upgraded to a 5.0 kernel, so they're definitely still working out the kinks. (On 4.x it only worked after a fresh boot; any hotplugging or suspending/waking completely froze the machine)
WiFi is a Realtek 8822BE chip. That was the only option available when I purchased the machine, but yes it is user-replaceable (the machine is quite serviceable, if a bit tricky to open the first time around). Definitely considering getting an Intel or Qualcomm chip - the Realtek mostly works, but I have noticed a few coffee shops around town where it drops the 5GHz connection after a few minutes. Works with my router at home though, so I'm not really sure what's going on there.
I've read better things about Linux on the A485 variant, but I've no first-hand experience with one (high level at least, it looks to be an E485 with two batteries and a $200ish higher price tag).
I got one recently. Linux support is pretty so-so. It requires custom kernel parameters to boot, and suspend to ram hasn't been very reliable. Sometimes it refuses to wake up, others it wakes up but WiFi and USB become unstable, and maybe half the time it works as it should. (Running a 5.0 kernel; 4.18 was worse and 4.19 didn't work at all)
Battery life is also pretty weak; it's just over 3 hours under semi-heavy load, altho you can push it to around 5 with low brightness and RyzenAdj to downclock the processor
Yes. I would also include reading other more-experienced developers' code in bullet point #3. Pick a well-respected project from a language you're looking to get better at, and dive in.
Agreed, and that's kind of the point - this shouldn't be a problem to begin with, aside from the fact that "everybody" prefers to write their own shit from scratch :)
The design constraints of the "input devices" are invariably different. The keyboard and mouse are "precise", while fingers are not. This manifests itself exactly like you see it :(
Exactly what you're describing already happened when the netbook fad took hold some years ago. It's crazy obvious on Gnome but KDE apps suffered too, and the defaults to this day are still shit (optimized for form factors 2% of people use).
I feel like the solution is not necessarily to make one app do it all, but to embrace something more akin to a client-server architecture - one "app" with multiple UIs talking over the same API to the same backend logic.
Having followed a similar path myself, I'm not sure I'd call it entirely nonsense.
These days it's quite rare I need to dip into that toolbox, but I'm regardless quite glad I learned everything Gentoo taught me. It's often made the difference between "oh that's unfortunate, let me fix it" and "shit, I need to re-install".
Hmm my eyes must suck haha (I'm also not sure where "HiDPI" starts - 1920x1080/14" and 4K/43" keeps me happy enough)
Glad to hear support is getting better! I guess I'd be most worried about non-GTK/QT apps
Aye that sucks. Regressions are the worst, knowing it used to work. I had to look up that platform, knew it was getting old... and primarily for netbooks... I don't think I'd hold my breath for it getting fixed by AMD at least :(
I like your expansion upon it :)
I definitely do agree that "onboarding" could be improved. How I dunno. To me at least, it seems like I hear a lot of success stories from the tails of the spectrum - power users and developers on one side / the complete opposite on the other. And then for everybody in the middle, there's no other way to put it than it's almost a shit show:
On the software side there a million and a half different ways to do everything, and often an insane amount of "noise"/outdated info that needs filtering through to find what's relevant to your specific needs. Even at the lowest levels of the stack there is no "the one way", and I think all that uncertainty (especially from the beginner perspective) can make it feel like climbing a mountain.
Hardware, as you mention, is tricky if you don't know what to look for (and why would most people). At least from a longtime Linux user's perspective, it's incredible how much better things have gotten (since the 2.2 days in my case). But there's a ways yet to go, and it's by far the roughest where it's the most visible (ie the trendy bleeding edge). Part of that is just the nature of "lag" in open source development between code getting written, released, and finally showing up in your distro. That cycle can sometimes take 6 or 8 months, especially for hardware :(
Not that this helps users with existing hardware, but
* definitely always google before you buy (model name + "linux" and read the first page or two of results)
* stick with a non-high-DPI resolution screen
* WiFi, I've had the best luck with Qualcomm/Atheros, Intel, and Realtek (in that order)
* Graphics, get AMD. NVidia cards can work well enough with their proprietary driver, but the out-of-the-box experience is crap. Intel works great too, as long as you don't need it for anything heavy.
* Audio, for me the last time I had trouble was with one of the earlier Sound Blaster Audigy cards. Have stuck with onboard codecs since and honestly never had a problem.
Not the person you're replying to, but I fall in the same boat as them as far as Linux experience goes.
And for me, I find I have way more trouble doing things on Windows/Mac than Linux. I think it's really more a way of thinking about how a "desktop OS" is supposed to work. People coming from Windows expect things to work the same, and that's just not the case.
Likewise, when I unluckily find myself on some closed-source box, _very little works how I expect_. And man is troubleshooting harder, because there are so many "surprises."
My point is, I think blaming the operating system is not the answer - users need to adjust their expectations and open their mind a little.
This is a somewhat poor analogy, but it's sort of like a Chinese citizen (closed-source user) becoming a citizen of a democracy (open-source user). The government is going to work differently, and you can't claim democracy is broken just because it's so different from authoritarianism.
This has been my experience as well. I've been working on a solution[1] in the form of an optional-batteries-included framework built on top of Flask and SQLAlchemy (inspired by Symfony). After about a year of work, it's currently around MVP status and (biased I) thinks it's turning out pretty awesome - the docs are the biggest thing still needing improvement (working on it!).
If you or anybody else is interested, I'd love any feedback! (good or bad :)
It's a funny state :) The greater Burlington area is generally very liberal/progressive, and where most of the "action" happens. The majority of the rest of the state is very rural (with all of the typical stereotypes - it might be north, but VT is still the whitest state in the nation). Sometimes that's not a bad thing - VT is huge on local/organic food, for example.
Personally, I only ever lived in Burlington. There's a lot of "artsy" stuff, as well as a great outdoor scene. A tech scene exists too, but it's pretty small. I guess let me put it this way - for a young person, it's comparatively expensive, the schools are OK at best, and there's not a lot of opportunity. I'd retire there in a heartbeat though.
Rent an AirBnB for a month or two before you decide if it's for you. In the summer, Burlington is one of the nicer places you can find yourself - great weather, you're right there on Lake Champlain, and most of the college kids are gone. That said, the winters are long, dark, and cold...
It's more than just the taxes though, because not only are they high, but the salaries are significantly lower than just about every other major metropolitan area in the country, with a relatively similar cost of living to those places (at least comparing Chittenden County/the greater Burlington area).
Yea. I finally moved out of Vermont after 10 years of it hindering my career opportunities. Saw this and thought about moving back for a second, except now I'm a small business instead of an employee, so no dice :(
Related, Trading and Exchanges: Market Microstructure for Practitioners by Larry Harris is also excellent.
https://www.amazon.com/Trading-Exchanges-Market-Microstructu...
These aren't really textbooks, but regardless, the Market Wizards series by Jack Schwagger is highly recommended:
https://www.amazon.com/Market-Wizards-Updated-Interviews-Tra...
https://www.amazon.com/New-Market-Wizards-Conversations-Amer...
https://www.amazon.com/Hedge-Fund-Market-Wizards-Winning/dp/...