Better HN
topnewbestaskshowjobs
Log inSign up

nuclear_eclipse

4,295 karma · joined Jul 9, 2008 (18y ago) · 1,224 submissions

http://jreese.sh john @ noswap.com @n7cmdr

[ my public key: https://keybase.io/jreese; my proof: https://keybase.io/jreese/sigs/qujHA7y5lUpbN55xciTStoHk4kl_CvpCQ2xPpRL3tho ]

Submissions

comment 6y ago · link · parent

Nit: the standard library includes a module to fetch and install pip. It doesn't include pip itself.

comment 6y ago · link · parent

Or trailing commas in lists/objects. That is 90% of what burns me every time I write JSON by hand.

comment 6y ago · link · parent

I think the general feeling in the community is that the standard library is where packages go to die. Once something is in the standard library, it can't get meaningful features/updates outside of the yearly release cycle. pip and setuptools are already vendoring a TOML implementation, and once you have pip, you can pick from multiple great toml implementations that are all under active development. Maybe once the packages/standards for TOML are finalized and the only thing left to do is fix bugs, maybe then we'll see a TOML implementation in the standard library, but in the modern age where you can fetch dependencies at any time, there's honestly not that much incentive for CPython developers to take on more burden of maintenance and development for the already-massive standard library.

comment 6y ago · link · parent

They did settle on something: TOML, in PEP 517/518. There are a ton of in-progress PEPs building on top of PEP 518 to make pyproject.toml the place to put package metadata in a way that will actually be standardized and usable by multiple different packaging tools. setup.cfg is just a crappy form of ini file, with no standards for what it contains other than "what do common tools do". It's a mess, and it's going to get better, but it takes time because consensus is hard and we're all doing this for free.

comment 6y ago · link · parent

If you want it in your debugger (or ipython, etc), add an import to your `.pythonrc` or equivalent. Then it's ready and waiting for you without influencing your production environment or other engineer's testing environments.

If you want to use it in all your modules, create a template/snippet so that it's imported at the top ofevery new file you create. Then it's obvious to every new engineer you hire as to what's going on, rather than having non-standard behavior everywhere without any obvious indications.

comment 6y ago · link · parent

Even beyond that, if you've imported `from foo import bar` and then `from something import *`, it might work just fine. Then you upgrade the `something` module, and it happens to now include an item named `bar`, and you're suddenly breaking your existing usage without ever having changed your code.

Star imports are convenient, but dangerous in so many subtle ways. There's a very good reason that every major Python linter will call this out as bad behavior.

comment 6y ago · link · parent

Python has never used semantic versioning. There is a long history of small, breaking changes between "minor" releases of Python. Eg, Python 3.7 made `async` and `await` global keywords, breaking any case where old code used `async` as a variable name.

comment 6y ago · link · parent

As "satisfaction" is such a subjective measure, I'm not sure there's any good public data, but at least a strong majority of folks fill out internal surveys indicating that they are happy in their current roles.

We all find satisfaction in different ways though. Some get it from the products they work on, even if their individual work isn't exciting. Some get it from the actual challenges they're solving and code they're writing. Some get it from the flexibility and engineering-driven work environment and the opportunity to choose which problems they tackle each half. Some get it from the freedom to work 9-5 and have a strong separation of work and home life (barring periodic oncall or the current bizarro pandemic world). Some simply get satisfaction from knowing that the benefits and compensation they receive are helping to protect themselves, their family, and their loved ones, and ensure they have a comfortable life outside of their job.

Many find satisfaction in FAANG roles simply because they have access to one or more or all of those at the same time.

comment 6y ago · link · parent

Yes, unions and coordinated negotiation are the correct answer, but that's very difficult to pull off in companies this large with employees compensated so far above the cost of living.

comment 6y ago · link · parent

If they're willing to do the integration and support work on their own, then it shouldn't be a roadblock, and they should be able to prove the impact that it offers to other engineers and be rewarded if they did all of the work.

comment 6y ago · link · parent

It can vary highly from one half to the next, and changes with your teams, projects, etc. It can be extraordinarily rewarding to work on products that everyone you know uses every day. It can also be very frustrating and demoralizing to work on important components of the stack that noone inside or outside the company ever notices unless it breaks. The golden handcuffs are real, but most of FAANG gives you ample opportunity to switch teams and projects to find something to work on something that interests you, fulfills you, or lets you learn something that traditional companies would never let you work on unless you already had "industry experience". If you are proactive–and are "meeting expectations" in your current position–you almost certainly have the freedom to find something new whenever you start to get bored.

comment 6y ago · link · parent

It can simultaneously be true that 1) FAANG employees (including myself) are compensated and rewarded well above the national average, and potentially better than any other stable option available, and 2) FAANG employees are not adequately compensated for the value and revenue they generate for the company.

Amazon does not get the richest CEO in the world by truly compensating employees what they are worth to the company. Facebook literally tells employees that they target 90-95% of "market rate" for engineering salaries, based on location of the office they work in, and they refuse to negotiate with competing offers, resulting in massive compensation disparities between London and Seattle/Menlo Park.

I'm 35 and compensated far and above what I ever could have dreamed of making as a teenager, but when I look at the tens of millions of dollars I've personally saved the company through my actions and work, I don't consider my compensation "fair". A pat on the back, an "exceeds" rating, and a 15% increase in my bonus for that half is peanuts by comparison.

comment 6y ago · link · parent

The most recent general election was Dem vs Dem (due to the unique way that CA primaries work). Feinstein still won a strong majority of the statewide vote. :|

comment 6y ago · link · parent

Before COVID, I regularly paid double that just in California.

comment 6y ago · link · parent

Microsoft has been successfully charging subscriptions to millions of players every year without needing to run games in the cloud. Cloud gaming is a play at capturing revenue from people who aren't willing to shell out $300+ for hardware and $60 for every AAA title they want to play.

comment 6y ago · link · parent

On Colemak, the T is on the left hand, so the right hand would be moving to the right to press shift, then moving to the left to press the H, the moving right again for E.

comment 6y ago · link · parent

After switching to Dvorak many years ago, I picked up the habits for a lot of shell commands to shift my right over two keys, so that my ring finger could hit the hyphen. `ls -l` is much more comfortable to type with middle-ring-middle than pinky-ring-pinky. I'm sure I've picked up other subtle shifts like that as well, and switching to a split layout keyboard also showed me just how much my hands crossed over for F, Y, and X.

comment 6y ago · link · parent

If you read down far enough, the site covers that!

comment 6y ago · link · parent

We switched a service from 2.7 to 3.5 and saw an immediate 45% reduction in memory usage and 20% reduction in runtime. That's massive IMO. We saw further (but smaller) performances benefits upgrading to 3.6, again when upgrading to 3.7, and expect to see even more with 3.8.

https://youtu.be/0kXaLh8Fz3k?t=322

comment 6y ago · link · parent

Because no one could ever be justified in moving to Python 3 for AsyncIO, f-strings, ordered dictionaries, assignment expressions, pathlib, new features in shutil/tempfile/subprocess/etc, along with massive improvements to memory consumption, runtime performance, and overall stablility?

comment 6y ago · link · parent

They definitely use them, but less often on the i9 series since there isn't a lot of options in that range.

Compare 10th gen i9 to i7:

https://ark.intel.com/content/www/us/en/ark/products/series/...

https://ark.intel.com/content/www/us/en/ark/products/series/...

comment 6y ago · link · parent

By all accounts I've heard, the organizers have wanted to cancel the event for a while now, but for liability and financial reasons, couldn't afford to until they were "forced" to. Eg, venue contracts, sponsorship agreements, etc, generally stipulate that if the conference cancels without good reason, they owe large fees or penalties to the venue, sponsors, etc. The PSF does not have the operational budget to absorb these penalties while also refunding the money for everyone who was planning to attend.

So they had to act as if everything was going ahead as normal while also hoping and planning for any contingency that would allow them to cancel the event without suffering financial ruin.

comment 6y ago · link · parent

It can manifest differently in anyone. My father, my sister, and myself were all diagnosed with ADHD around the same time. My father has taken medication regularly for years without issue, and my sister used it "tactically" for the purposes of doing schoolwork and testing, and would be focused but really drowsy.

I, on the opposite end of the spectrum, would get strong symptoms of depression, and a constant feeling of nausea and lack of appetite to the point of being suspected of anorexia/bulimia by my physician. I tried a wide variety of medications throughout grade school and high school, and eventually gave up because they all gave me negative side effects of some kind.

comment 6y ago · link · parent

"Elite" schools literally have classes devoted entirely to teaching students how to pass FAANG level interviews.

comment 7y ago · link · parent

From what I've used internally, the remote development bits are already better than they were under Nuclide. Adding and managing multiple remote repos/working copies is a breeze.

comment 7y ago · link · parent

They did that, and it wasn't successful.

comment 7y ago · link · parent

The point of the article isn't about how expensive gas is, but how much the price of gas varies between different states in the US. It would be like paying $1.46/l in Sydney, while the folks in Adelaide are only paying $0.70/l.

comment 7y ago · link · parent

You do realize that VW has been shipping and selling the e-Golf EV for many years now, and in good quantities? They're all over the bay area, and seem almost as popular as the Leaf.

comment 7y ago · link · parent

If it's entirely CPU bound, you can use multiprocessing to negate most of the GIL issues, and transparently send inputs/outputs between the parent and child processes. If it's I/O bound, then AsyncIO is a great way to express asynchronous workflows. If it's a combination of both I/O and CPU bound workloads, there are ways to mix multiprocessing and AsyncIO to better saturate your cores without losing the simplicity or readability of Python: https://github.com/jreese/aiomultiprocess

comment 7y ago · link · parent

Most likely because a) it happened well before current administration and AG, and b) because Apple didn't saying anything until after it had already been done, rather than declaring intentions and giving the AG plenty of time to draft ridiculous letters.
12345
41