skysight-inc/HackerNews huggingface dataset:
Python is pretty slow. If you can rewrite your stuff in Java or Go or something else that runs faster you can save half your servers at least. At a certain size that's a lot of money.
Poetry: Dependency Management for Python
In my opinion, the biggest problem facing Python is still concurrency. The mitigation efforts still look to me like Perl's 'bolted on' implementation of object orientation. Python should have gotten rid of the GIL during the 2 to 3 transition. It may have also been an opportune moment to introduce optional typing and maybe even optional manual memory management, making it useful to develop almost all kinds of software. Write a WASM backend and it could have even been used for front end development.
how about don’t. take my money and give me freedom for MY devices
> Dependency hell is everywhere.

Excuse me, but as a long time Python user I have to disagree. I started using Rust two years ago and Rust’s dependency managment is easily the best thing I ever saw (keep in mind that I didn’t see everything, so there is a chance there are better things out there).

The project-/dependency-manager Cargo¹ is more “pythonic” than anything Python ever came up with and where others mumbled ”dependency hell is everywhere” the Rust people seem to have thought something like: ”there must be a way to do this properly”.

The whole thing gives me hope for Python, but angers me everytime I start a new python project. Poetry is good, but there should be an official way to do this.

It saddens me to see, that some people seem to just have given up on dependency managment alltogether and declared it unsolvable (which it is not, and probably never has been).

¹: https://doc.rust-lang.org/cargo/index.html
http://archive.is/gDR0J
I disagree. Reflective is more about querying runtime properties (like data types, structure of data structures, etc.) at runtime.
A cheap android phone is unlikely to break spokes while going down a bumpy road and killing me. The cheap bikes tested by the German Stiftung Warentest did that.
I write python professionally and honestly, who cares about the 80 character limit? Just ignore it! :)
Your last paragraph implies that if there were fewer H1B visas given out to Indian software engineers then your brilliant musician friend would have a chance. Though this kind of zero-sum fallacy is commonplace, that's not how immigration politics works. For the most part, if a particular USA federal administration is anti-immigrant, then they will hurt all or most immigration applicants, and vice versa, meaning that fewer software H1Bs do not result in better outcomes for your friend, quite the opposite.
> Now, I’m not sure that Apple has thus far triggered that kill switch. But they can do so at any time.

This is just scaremongering. Apple has not, in fact, triggered a "kill switch" or "locked" anyone out of using a 3rd party battery.

All it does is display a message that it's not a genuine Apple part. Deep in the battery settings. That's it.

Remember that old iPhones are frequently resold. You're going to want to know if it has OEM parts.
My understanding the same as that of my two sibling comments. You just need to demonstrate excellence in your field in order to get an O-1. For example in Computer Science, that might be X citations in published work, Y reviews you've written as reviewer (counts as service), and letters of support from experts in the subfield of Computer Science. If your pianist friend has won international competitions, CD recordings and performed with orchestras around the world, that surely counts as excellence in her field. She should consult an immigration attorney ASAP. Even if initial consultation costs money (and it often doesn't), it sounds like a worthwhile path forward if she wants to stay. O-1 is not as prestigious or rare as you make it seem.
It's not true, we have a plenty of constraints: memory, cpu, battery consumption, latency, etc. We also have complexity constraints, i.e. how qualified our teams, which technologies, they know, etc.

IMO, many combinations are just impossible, just like in mechanical engineering, and even worse, complexity is often much higher.
Solution ?

Use Nix.

> nix-shell -p python3Packages.numpy python3Packages.my_important_package

It solves every problem you quoted before.
Trustless/trust-lite blockchains are a strong fit for many applications, but far from proportionate to the number of applications being attempted.

Take, for example, property titles on the blockchain. Sounds promising. But property rights are ultimately enforced by governments (namely, the government that projects control over the area on which the property sits) through their legal systems.

In this case, for the majority of reasonable threat models, blockchains add complexity without adding value. Say that your wallet is holding a title token. I hack your computer and use your private key to transfer the token to my wallet. According to the blockchain, I am now the rightful of the property. However, it's very unlikely that your government would recognize me as the owner. The government wouldn't let me move all my stuff over and start living there just because the property token is in my wallet. The blockchain state and de facto/de jure state have diverged.

Similarly, say the government becomes tyrannical and begins seizing property. The property token in your wallet will, once again, not save you. You will be jailed. The "code is law" of blockchains becomes redundant to the "law is law" of governments.
I wouldn't call the skill to ride a bike "knowledge" even though English does conflate that which you know with that which you can do.

The reason I want to make the distinction explicit is that the conflation makes it easier for people to be confused about what they know; after all, they would "know" how to ride a bike, right? Yet, most people would probably be stumped (at least for a while) if you asked them what it actually takes to ride a bike.

You can be very skilled at something without having all that much knowledge about what you're doing.
If you like, you can work out the maximum number of degrees of freedom that could theoretically be involved in something you could call a fair coin toss.

Hint: it’s a free body under rotation on a parabolic trajectory. You won’t end up needing Tony Stark hardware for this one.

Bonus factoid before bed: coins flipped by humans empirically have a small (~51%) bias toward heads. Supposedly folks tend to start with heads up more often, and the coin tends to flip over 0 times more often than you’d think, and that adds up to a bias you can measure in an afternoon.
I've never worked at a place where the prevailing python culture wasn't to set the linter on kill and just let go wild.
They can track Mirimir all they like. Not that it'll do them much good. Because Mirimir only does stuff that I'm OK with everyone knowing about Mirimir. And none of it is connected to my meatspace identity, or to other personas.

Unless you're really paranoid, all you need is a VM, which hits the Internet through a VPN service. You use the host machine for meatspace stuff, and the VM for private stuff.
If you believe that intelligence is at all heritable, then it would be an astonishing fact if low-income individuals had the same genetic distribution as high-income individuals.

If you don't believe that intelligence is at all heritable, then I'm not sure how you would explain why it is that people with genetic defects like Down's syndrome have below average IQs.
Content design: How to write any error message
Is this a gui install? Last time I tried Manjaro it had me set up disk partitions manually. That was annoying.
The amiunique.org one was very enlightening - along with my user agent, my content language header was giving away a huge amount of information around me. Long ago I selected German (second language) as a secondary language, and that combination is the rarest thing I have going for me.
http://archive.is/djuW9
>You're going to want to know if it has OEM parts.

But the message is triggered even if you insert an Apple part. So you would want to know if the phone was blessed by an apple genius when you buy/sell ? It's surprising the lengths people go through to defend these asinine decisions. I don't even care about Apple, but the problem is that everyone will follow suit since the rest of the industry lacks any sort of vision/spine.
i fully agree with you. it has a stubbornness about it and not in a good way like the stubbornness you might find in lisp, scheme, and sml derivatives. i have had to write python on only a few side projects, but it was miserable, as you say. not only is the language all over the place and embarrassingly slow, the ecosystem is as well. i tried getting an application someone left when they left running on windows 10, and it was basically a null effort without a complete rewrite, upgrade to 3.x, and upgrading/replacing GUI libraries.

if i had to write python as a day job, i would quit. i have said it before, but python is the new c++, helping people everywhere write brittle, unmaintainable code.
Many modular synth systems also do this without screens e.g. by indicating the state of the system with a row of colored LEDs and then colorcoding the labels on the controls. This certainly offloads the cognitive load to the user, but it also works.

The modular scene generally frowns upon systems that need deep menu diving, which is most of the time an indicator that your interface design is lacking.
This argument sounds like "I don't care about cancer research because I don't get sick". It should matter to you for many reasons that have nothing to do with whether you're affected or not. I don't want to see the hostility towards customers you see e.g. from tractor companies creep into my computing devices.
The best always did.

Many of the rest did, but not high quality scripts, and only in shell; not perl or python or tcl or ...

The lower rungs of sysadmin were happy to point and click on guis and lug and plug hardware.
Gadgets can be hacked to produce 'dangerous' sounds, says researcher
Also Versace, see who's next to feel the wrath.
Finally, someone typed what I was thinking.
It seems to value my time quite highly, as I can achieve most things more quickly and easily in Python than any other language I know.

Can you be more specific about how it increases your burnout? Is it the language, or someone forcing you to use that linter and settings?
By all means you're right and I would agree. It's just that, if we are going to go with the diversity thing, we should uphold it equally and fairly. There is no avoiding natural majorities where we can't help it. But in the realm of green cards and work visas where they are limited and we CAN help it, I think avoiding incentivizing or allowing for majorities to form that will become problematic(and then too big to be helped later on) is a good thing.
What is that impact, quantitatively?
They do price themselves higher and praise their design though. I'm all for exposing every device/company doing anti-repair stuff. But I'm also happy to start with those having most expensive devices. (if a $1200 professional laptop is not repairable, we have a problem)
And if it is not, it should be.

DOZENS.
Label Smoothing
Yeah.. not sure why the love for Ruby faded in startup-world
```--max-line-length=120``` passed to flake8 will switch it to 120. Use another number for a different length.

Things like max line length should be something your org or your fellow contributors decide on, not something dictated to you no matter what the language.
It seems dogmatic to rule out genetics as one possible factor among many that determines life outcomes.

I get that a bunch of other people in Silicon Valley will pat you on the back, but that doesn't amount to a winning argument.
This was actually the last-good-keyboard model. :-(
Every moment working with python (and that infernal pep-8 linter insisting 80 characters is a sensible standard in 2019)

It's a very sensible standard. There's a reason most books are taller than they are wide. The fact that we have bigger screens now doesn't change it.
Discussed at the time: https://news.ycombinator.com/item?id=7091495

Thread from 2017: https://news.ycombinator.com/item?id=13855185
Yes I meant you need 35 square meters producing peak power 24/7 for a whole year to power one average German's life.

The numbers I've seen suggest that in the case of Germany, wind power can get you most of the way to a carbon free economy, but you still need to cover 1-2% of the land with solar panels (i.e. all roofs and a bit of land). Under the assumption that we also improve energy efficiency by insulating homes, switching to heat pumps, and switching to electric cars. Without those efficiency improvements it was unlikely that we'd have enough space. Under this scheme we'd need a little battery storage (for a day of consumption or so), and power-to-gas for longer periods of low generation.

I'm not sure whether he has talks in English, but Prof. Quaschning has some nice resources in German about this topic.
As I've said elsewhere, the python culture I encounter is extremely serious about maintaining it. It's just not worth fighting over.
I do. This is 2019, and I like being able to see at least three files side-by-side without squinting my eyes, thank you very much.

Yes, I know I'm in the minority these days. :/
> Remember that old iPhones are frequently resold. You're going to want to know if it has OEM parts.

I think this is lost on the HN audience. There's a lot of people out there being scammed by counterfeit parts, recycled parts, shoddy repair jobs, and straight up cobbled together FrankenPhones. Not to mention the danger in using lithium batteries from unknown provenance.
> NixOS can be helpful here, by making all of the non-user-specific stuff completely reproducible

How is this different from say Debian's "apt" package manager?

You can specifically reproduce the system by downloading all versions of the packages you have, right?
It's not flexible as PHP does, but I guess it's faster than PHP.
http://archive.is/BRM0t
Suggested title replacement: "Moving vouchers as an effective tool against poverty". Really interesting article and topic, but title is clickbaity.
For the software I use, my approach is portable applications, i.e. applications that require no installation and save their settings in the folder they run from. To move to another computer you simply copy the application folder. Makes it really simple to backup too!
Tell that to accounting that is paying for AWS instance usage.

Facebook has an interesting talk about how much electricity 1% performance improvement saves.
I have a matebook X pro running Linux (with its own limitations under Linux) for a year now and without any issue. Battery is excellent, keyboard and screen are fantastic as well.
Tinnitus 911 Review
While there is no known foolproof cure for the problem there are several remedies that could help to alleviate it. One of the best ways to deal with it is to take a proactive approach and don't put yourself in a position that could lead to getting tinnitus in the first place.

The key to prevention is to try and stay away from constant loud noises and to protect your ears at all times if it's impossible to avoid them. For example, if you work at a loud factory or the airport, be sure to protect your hearing. The same could be said for musicians and other noisy occupations. You should also take care of your hearing at home by not having the volume on the television and stereo up too high, especially if you're wearing earphones.

https://thedietsquare.com/exploring-hearing-problems-like-tinnitus-and-reduced-sound-tolerance/
It is intended for people with special skills and high degree of education - PhD. It is not for people who can't submit a code to a code repository, without breaking multi-million project.
Darpa's $10M voting machine couldn't be hacked at Defcon
Nyquist-Shannon only deals with measurements of power spectral densities in sampled systems, not measurements in general. The resolution of measuring for instance the location of a particle in QM has nothing to do with Nyquist-Shannon and does not depend on any sampling frequency.
I'm sympathetic that Python is relatively not a great language, but IMHO an 80-character line limit is quite reasonable. It's easier to read on smaller screens, easier to view side-by-side diffs, and tends to force you to break up your code more.

That said, this shouldn't be a lint, it should just be enforced by a formatting tool as a format-on-save setting. It just destroys all the wasted arguments about formatting and the wasted time trying to manually line up code.
There's a pattern to this. The later the dependency manager was created, the better it is. This is a hard problem space where each new language got to use the lessons learned on the earlier ones.

Cargo, though, has a silver bullet. If it can't find a solution to determine a single version for a package, it simply includes more than one version in the object code. That would take a lot of work to duplicate in Python.
YouTube Radicalized Brazil
Actually no, given that PHP uses a JIT nowadays, and PyPy is still barely used on the Python world.
Re. linting, I'd highly recommend Black with whatever line length you want - it'll reliably reformat your code, and once you lose the urge to reformat while typing it's fantastic. It's like deleting a bunch of useless mental code. And the code reviews are even better: include a linting step (ideally with isort) in CI and you can avoid 95% of formatting comments.
you mean semi-colon? check your linter!
-It doesn't solve the problem (which is why I am considering splitting them now that I have added a ~1A consumer to the mix), but it does postpone the problem for long enough to (in most cases) ensure that you will realise your mistake before it causes you not to be able to start your car.

Leaving the headlights on (~10A) as you leave the car in the evening will still let you start it in the morning, for example.
Kloud Konsole
Hi, we have just launched a new product KloudKonsole Webmail, which provides a webmail client to AWS SES users to read their incoming mails. https://kloudkonsole.com

This is a free product please give it a try
"Inexcusable". You know this started in 1989 and its major competition was Perl and TCL, right?

The same issues exist in C, C++, Java and nobody seems to be complaining about those at the same volume.
You can apply and get a TN-1 without doing so crossing a border [1]. If you have a straightforward application though there's no reason to which is why so many people just apply on their way though.

[1] https://help.cbp.gov/app/answers/detail/a_id/978/~/how-to-ob...
Obvious, but no one else seems to be talking about the fact the 'media' is quoting a short seller.

On a later tweet about the incident from tweeter-

cc @SEC_Enforcement @SF_SEC @Boston_SEC @NewYork_SEC @FortWorth_SEC @Atlanta_SEC @LosAngeles_SEC @SEC_News @NTSB @NHTSAgov @FTC $TSLA $TSLAQ
Python is not eating the world so much as becoming the new Excel. It has a pretty easy learning curve for people who are not programmers. It has pretty good built in tooling. A domain expert, who is not a programmer, can put together pretty impressive models and visualizations relatively quickly.

However, like with Excel, there are serious issues regarding reproducibility, performance, and long term maintenance.
>> RFE

I didn't know what RFE is, posting it for other readers as well.

USCIS makes an inquiry called a request for evidence, or RFE, when they require additional evidence to make a decision on a H1B case. ... An RFE can be for information about either the beneficiary or the petitioner, or both. After receiving an RFE, you have up to 90 days to submit documents proving your case.
Adam Smith was trying to answer the question, "Why is everyone suddenly becoming richer?" and the result of that was the beginning of the field of economics. He made many observations, models, and predictions, but I don't recall smaller firm sizes being one of them. That prediction would certainly go against the evidence around him at the time. He published The Wealth of Nations when the British East India Company was at its peak and commanded an army of a quarter million people.

> The bargaining power of the individual is negligible in such a circumstance, and alternative work is hard to come by, or is impoverishing. While third world countries are in truly terrible plights due to this kind of situation, large portions of the United States are subject to the same forces.

Your point about terrible plights simply isn't true. Wages in the developing world have increased greatly. Since I've been born, over a billion people have been lifted out of extreme poverty. Those living on <$1/day are now less than 10% of the world population.[1] And in the US, non-managerial wages have stayed the same or increased since 1960.[2] (These statements are accounting for inflation, of course.)

US suicide rates have increased, yes, but they're still lower than they were in the 1950s and they're below countries such as Switzerland. Last I checked, Switzerland wasn't exactly a land of despair. Something is causing more people to commit suicide, but it's probably not the economy.

1. https://ourworldindata.org/extreme-history-methods

2. https://www.pewresearch.org/fact-tank/2018/08/07/for-most-us...
And I agree. Touch screens can be beneficial under certain circumstances — but they are not amazing for anything that has to be reliable and must be operated under stressful conditions.

This is how for example the interface of the 50k$ Arri Alexa looks like (the de facto standard in cinema cameras):
http://nofilmschool.com/sites/default/files/styles/article_w...

There were lower priced cameras like the Black Magic Production Camera which use only a toucscreen.

And you can guess why that Black Magic model is discontinued..
Your challenge isn't possible because the code snippet isn't complete. It doesn't include the definition of 'make_tree', 'Node', or the broader context.

That being said, I have no doubt that C++ with Boost would look quite similar to that. The boost libraries have very powerful numeric constructs and can easily handle matrices, uniform random distributions, dot products, and trees.
It sounds like the right answer the next time VCs complain about startup salaries is to ask how much the partners at their lawyers' firms take home. Total compensation in the millions per year is pretty nuts, even if it does take ten years to get there.

Mind you, I think some of the salaries software developers get paid are nuts too. I don't feel like I'm worth $300k/year, but I hear plenty of stories of people getting more than that...
There might be new competition now at a certain level, but there's also the oversupply of lawyers and the continual closing of law firms all across america. Those are kind of competing stories about what is happening.
It isn't part of the Python executable, but it is part of the standard distribution.
It's making the market more liquid. That's usually good.
> Is it the language, or someone forcing you to use that linter and settings?

It's definitely both.

Preface in true internet style: these are just opinions and you may not share them. That's fine.

I really don't like Python as a language. I don't like its total lack of composability. I don't like its over-reliance on a very dated vision of OO. I don't like how its list comprehensions aren't generic. I don't like how it farms all its data structures out to C. I don't like how it uses cruddy one line lambdas and forces me to name things that are already named by the things I'm passing it to.

And also the linter just exacerbates these things, because the linter is just a crystallized slice of a kind of software engineering culture I really don't like.
Show HN: Any Nurses Out There?
You're assuming that Apple themselves does all of these as repairs. I'd wager that many times they would just replace it and then send the returned one off for refurbishment (which is exactly what they've done when I've had issues with my phone under AppleCare).