skysight-inc/HackerNews huggingface dataset:
> The GIL also means that whilst CPython can be multi-threaded, only 1 thread can be executing at any given time.

How does this make sense? What's the point of having multiple threads then?
If you ask any competent engineer outside the US to work with imperial units, they will go whaaat.
https://reason.com/2019/05/10/broader-implications-of-my-bod...

The list is pretty extensive. Women aren't exactly being singled out for special treatment overall, though they certainly are in multiple specifics.
That's always possible.
Professor Preobrazhensky[1] said once "whatever you do, don't read the Soviet newspapers before dinner".

[1] https://en.wikipedia.org/wiki/Heart_of_a_Dog
There I disagree. When they write on things I know about - like science and tech - they do a far better job of being accurate than most others. They are one of a very few that I don't start by presuming they misunderstand the science, statistics or facts of the matter.

On conclusions, or political consequence, or what should be done there we can agree or disagree. On opinion we can disagree stridently - their stance is not of the right, or simple "capitalist cheerleading", nor of the left, so even there we can agree or disagree surprisingly sometimes.

I know their stance and view - they make it very plain, have run several features explaining it, and even discuss it on their About page. So even when we do disagree on conclusion I find it mostly a rational view from the other side of the fence.

Pick something like The Telegraph to get a "cheerleader for capitalism". It infects everything, even the footie, and damn the facts. If it's science or tech they're very unlikely to have understood. Thirty years ago they were more like the Economist - we may vehemently disagree on some points, agree on others, but their core facts and striving for accuracy were reasonable.
I believe this is still beneficial in I/O bound processes.
> at practical temperatures the transformation of chemical energy into shaft horsepower is like 30% efficient in a small engine

Does that also hold for hybrid electric vehicles?
It may not make complete sense, unless you are Dutch.
So what's your solution?

Carry on with IC cars? I'm sure those same Africans will thank you when climate change destroys the lives, livelihoods, and nation in various ways.

Car manufacturing and battery production aren't fly by night operations. As such it will be relatively easy for western consumers to put pressure on these companies to do something about the situation. Also I believe Tesla at least are intending to remove all cobalt from their batteries at some point.
Personally I really don't want the data I shared with one company to be shared with others without my explicit content.

I don't particularily like Google, but unlike a bunch of others they haven't shared my data voluntarily AFAIK.

In a way they already compete on privacy.

If my data gets shared among a bunch of them my privacy will be decided by the most sloppy one.
They are also available on the wayback machine: http://web.archive.org/web/20190405031607/https://devcheckli...
> What about losses in the electric grid? What about losses in the battery?

This is very small.
I have no horse in the race, but it feels like the pension system is promising money that would never exist. How come there's no oversight or some sort of check against this when it was established? Surely those who would rely on the pension would at least band together to create this committee.
Not all operations are CPU bound. For anything that is IO bound, such as reading a file, db access, network calls, etc, CPython threads work just fine.
The usual answer is: in the case of blocking I/O, the thread running send/recv can block while other python code runs.

In practice, this doesn’t work particularly well, as you rarely have massively I/O bound things in Python.
This is great. America never was a heaven. Before, people had false belief. Now, they have true belief. That is to be celebrated.
Are you the owner/founder? If not, why are you even stressing about the startup's demise?
Italians are quite keen on bidets. My (Italian) partner always complains about the lack of bidets here in Germany (and anywhere else we go).
I've used a lot of ASUS desktop boards and never have been disappointed. However I have heard that they stop pushing BIOS updates for older boards. Have you faces such an issue?

My current HP home-server has been with me for ~10years
Not sure what kind of applications you work on, but most web apps are IO bound (waiting on network calls).
> How abundant are the resources required?

Lithium is very abundant, and I have read that it is easily recycled. Not sure about the other inputs to the mix.
AMD has fared better in the age of speculative execution attacks because they didn't allow their speculation to "cheat" and break hardware protection barriers, even though several of their major competitors did.

While it's by no means a guarantee, it does say something about the engineering culture that they understood the theoretical risks of violating a protection barrier and chose to respect those boundaries, instead of dismissing the risk and going for the bigger stats. That deserves notice and approbation.
It's not even really a "hash" in the sense that there's no predictable relationship of the outputs of similar inputs. The "hash" of my DNA is going to be far more similar to people in Seattle than to people in Tokyo, so it becomes far less meaningful to say my DNA matched and I was Seattle at the time.
Why didn’y Bacrot just play 31. Bg7!! And win the game?
What if one of your file names has a space in it? Most bash scripts will crash when that happens.

Please don't tell me never to use spaces in file names.

How many human resources are required to track down and fix why a bash script suddenly starts failing mysteriously, years after it was written, when somebody mistakenly dares to use a space in a file name?

That kind of problem never happens with Python scripts (including problems with file names including other punctuation and unicode characters), because Python simply represents file names as strings.

For a scripting language that was indented to manipulate file names all the time, bash sure fucked up big time.

https://www.linuxjournal.com/article/10954

>Work the Shell - Dealing with Spaces in Filenames

>[...] I've outlined three possible solution paths herein: modifying the IFS value, ensuring that you always quote filenames where referenced, and rewriting filenames internally to replace spaces with unlikely character sequences, reversing it on your way out of the script.

>By the way, have you ever tried using the find|xargs pair with filenames that have spaces? It's sufficiently complicated that modern versions of these two commands have special arguments to denote that spaces might appear as part of the filenames: find -print and xargs -0 (and typically, they're not the same flags, but that's another story).

>During the years I've been writing this column, I've more than once tripped up on this particular problem and received e-mail messages from readers sharing how a sample script tosses up its bits when a file with a space in its name appears. They're right.

>My defensive reaction is “dude, don't use spaces in filenames”, but that's not really a good long-term solution, is it?

>What I'd like to do instead is open this up for discussion on the Linux Journal discussion boards: how do you solve this problem within your scripts? Or, do you just religiously avoid using spaces in your filenames?

>Dave Taylor has been hacking shell scripts for a really long time, 30 years. He's the author of the popular Wicked Cool Shell Scripts and can be found on Twitter as @DaveTaylor and more generally at www.DaveTaylorOnline.com.

(Dave wrote that 8 years ago, and there are still zero comments on it. Nobody has a good solution! Bash is just permanently fucked when it comes to file names.)
It is because only one thread at a time holds the lock in order to avoid race conditions. The keynote[1] by Raymond Hettinger from PyBay '17 will be a great place to start if you are new to this.

[1] https://youtu.be/9zinZmE3Ogk
> If men evolved to be bigger and stronger, as measured in some peak power output, surely there's a price on that?

Perhaps the price is just that men can't give birth.
Jamb: Follow this steps to print your 2019 UTME slips
It will be interesting to see where the long term "wear items" are in an electric vehicle. Right now, I predict the most serious "wear item" is going to be cabin electronics (touch screen etc) and actuators (door handles, locks, gull wings, steering column etc).

Battery packs—Tesla have shown that with sufficient battery management (stable thermals, avoiding charge state extremes) their packs can last extremely long distances. And they wear very gradually; an electric car with 70% of its original range is still a very useful item.

Motors—I recall these were a high-fault item in earlier models, but as far as I'm aware these problems have been mostly solved and the reliable units have long lifespans. (And if they don't, they're comparatively trivial to swap out compared to an ICE drivetrain anyway.)

Seats/Interior materials—I have no idea how durable Tesla's materials are compared to the competition. Does anyone have any insights on this?

The models with all-aluminium chassis (because it's more valuable than steel and has an inherently long lifespan) makes them worth refurbishing. It would be cool if Telsa could license a third party to perform refurbishing on existing models—replacing older parts with newer equivalents. The benefit to Tesla is that improving a car's residuals increases its value and therefore "lowers the price" compared to competitor cars.
Fsociety Hacking Tools Pack
I get online, select the stuff I want, and then go pick it up (to save delivery fee) that beats all this efficiency stuff about cashiers and aisles and people and UPC. I don't have to worry about any of that. Just a leisurely drive and then they load up my trunk.
some C libraries release the GIL before running CPU intensive computations. Examples include numpy and hashlib.
> Nope, Python's Tkinter canvas calls into TCL/Tk directly. It doesn't run it as a separate process. There is no comparison: Another false equivalence.

Python's Tkinter converts all calls into strings which are parsed and executed by the hidden Tcl interpreter in there. It's really pretty hackish. I didn't say it ran in a separate process, I said it was probably on par performance-wise as bash calling gnuplot through a separate process.

> Can you integrate C extensions into bash with SWIG, or any other way short or recompiling?

Yuck. Why would I want to do that? I don't like SWIG or bash. SWIG generates an awful mess. When needed, I prefer to write Python extensions by hand.

However, I suspect the only reason bash doesn't support plugins/extensions has more to do with some GPL ideology.

> You keep going back to this mistaken belief that forking off separate processes is incredibly cheap. Or even convenient. You really should rid yourself of that misconception.

You should really stick to things I've actually written. I'm starting to think you're having an argument with some imaginary bash and fork advocate in your head and pretending I'm him.
Are your servers pets or cattle?
> Elite-level women can beat 90% of all men.

I was curious about this so I looked at the percentiles for the Boston Marathon since the data is readily available.

Roughly speaking, the top 1% of women times lines up with top 10% for men so the data backs up your statement. After that, there's a pretty consistent 20% difference.

% Male Female
0.00 02:09 02:21
0.01 02:38 03:03
0.10 03:00 03:27
0.20 03:12 03:37
0.30 03:22 03:45
0.40 03:31 03:53
0.50 03:41 04:00
0.60 03:51 04:10
0.70 04:04 04:22
0.80 04:22 04:39
0.90 04:50 05:05
0.99 05:50 05:56
1.00 07:58 07:19

Kaggle link: https://www.kaggle.com/jschaf/kernel3166aa9b08
Cars cost much more than cameras (one or two zeroes more) so old cars are going to stay around for a longer time. The other problem is building the energy distribution network. The street road I'm looking at now is filled with parked cars and no recharge points. There is a gas station. Any of those cars can spend five minutes there and go on for hundreds of km. None of them could be recharged if they were electric. There is a car sharing service with electric cars in this city. They have their own recharge points. They drive their cars there at night. They use portable car batteries to move cars with completely empty batteries. My guess is that's going to take much more than five years to get to the point where people can be confident of being able to recharge their batteries anytime they need it. Some EU countries set the late 2030s as a target to stop selling gas and that's also my guess.
While that definitely restricts the attack surface, there are still situations where you are running untrusted code within a process (e.g., JITed code whether JavaScript or something else like eBPF). So it would require not only the kernel scheduler to be careful about scheduling threads to cores, but these applications as well (which is not something most people have ever bothered with, setting thread affinity for performance, yes, for security, not really).
Coinbase's isn't much deeper.

The real problem is that the exchanges all have separate order books, and it's hard to arbitrage between them.

This is a recipe for volatility.
I got 7/8 and I don't even listen to him.
I’m second generation Indian-American. It took my uncles and aunties 10-years plus to become citizens. That’s horribly inefficient.

I like Canada’s system where if you can prove you can start a business and employ some locals you get a visa.
I ask for a spanking or oral reprimand...
Has the whole world subscribed to FAA oversight or would other regulators be able to pick their own fight with Boeing?
It would appear studies have been done on relative body fat % between male and female long distance athletes.

But have they included relative different upper body muscle mass between males and females?

IF upper body muscle mass differential between genders exceeds the same differential for body fat, perhaps it may explain the declining performance gap between genders over distance?

Might male upper body physiology, excess to ultramarathon requirements, become a net negative compared to women’s excess body fat?

A human physics and engineering problem that possibly favours females at extreme distance?

I’ve got data for hundreds of people travelling 80km, but carrying 25kg.

Including female participants.

Different story with the additional weight carried though.

However, we did have 1 truly exceptional/outlier female who once came in 1st place.

Mental resiliency is very much an individual effort.

Having a lot of experience assessing humans in this realm, I don’t see any gender based causal factors.

However, the one human I met who was truly willing to push themselves to the point of true failure was a female. It was the only time I was nervous in my role. But that is strictly anecdotal.
Worn lithium batteries are still highly valuable for grid storage because at even half their original capacity, they still have much better specifications than cheaper batteries like lead acid.

Expect to see old EV cells redeployed into large scale grid storage rather than recycled for their raw materials.
I have been saying this is how it works for a while, so I claim my "I told you so".

> Better yet, buy

you wish

> or short sell BTC

Shorting you can trust turns out to be something Bitcoin doesn't have yet.
Ugh, you edited a bunch while I was replying again. I can't keep up. My only point had been that Python is also slow.
And that is exactly what they would like you to do. If you buy meat (or anything for that matter), mind your footprint, only buy what you actually need.
While the gut is one factor for some autism it is not the only factor.
You are not wrong, but on HN, at least, I feel Tesla gets more credit than it deserves and Nissan doesn't get enough. I was an early fan; the roadster made me believe it was possible, but in the meantime, Nissan produced a mass market car and sold it worldwide in the hundreds of thousands. Only now, with the model 3, is Tesla arguably entering the same market . . . at the same time as everyone else, really. I will grant that they are producing on a larger scale than anyone else, but I'm not convinced they can keep that advantage long.
There was a license controversy a couple of years back, yes, but that was solved rather quickly - I understand that you as an intern don’t necessarily have any sway over legal, but they’re not up to date.
> Cars cost much more than cameras (one or two zeroes more) so old cars are going to stay around for a longer time.

I feel that in both my comments I have been quite clear that I have been talking about new car sales only.

At the risk of repeating myself, I agree that it will take a while for all petrol cars to come off the road, even when the majority of new car sales are EV.
I’m also an avid Magic player haha. Onitama scratches a similar itch for me as opening a hand and solving it relative to the boardstate. Lots of predicting opponent moves / options and leaning into lines of play intuitively, since the cards are randomized each game.
To browse NyTimes with iOS when you have no articles left:

1. Settings

2. Safari

3. Advanced

4. Browser cache

5. Search for ‘nytime’ and delete

(Hope you pay if you often read their articles)
Chef Stef's NES Arkanoid “Warpless” in 11:11.18
1 Billion cars require about 20% of the known reserves of lithium and recycling can be done with low losses. New types of batteries are developed that use less lithium or other materials.

At current prices and technology, the raw material price for lithium carbonate is around $600 per car, (60Kg at about $10 per Kg) and that price can give you an idea of the environmental impact, probably on par with the 1 - 1.5 tonnes of steel required to build the car and costing similarly.

Of course, "environmental impact" doesn't really mean anything unless you put it in perspective. We could talk about CO2 emissions during mining and refining - and we could reduce that to near zero by using electric mining equipment and clean energy. We could talk about the impact mining companies have on some beautiful South American salty desert, and I really have no answer there because it's all relative to how you value desert landscapes compared to urban mobility. Some people will surely claim it's unacceptable and we should all switch to bikes.
Good thing Perl 6 was created and has a fantastic multi threading story.

https://docs.perl6.org/language/concurrency

https://youtu.be/l2fSbOPeSQs
> It always bugs me when I'm using a framework with custom HTML templating language (Angular, Vue or possibly Svelte)

This is the most ridiculous thing I hear when people compare frameworks.

I don't know about angular anymore, but with vue you can use jsx if you wanted to. It's in the official docs, so it's not some random third party support either.

Also, my dude, there's like half a dozen rules when it comes to vue templates. Jsx has lots of small rules about component names and things like class vs classname as well.

As for putting javascript expressions in your templates... Each to his own I guess, because imo it's a pretty bad anti-pattern to put an extensive amount of procedural code in the template code. Again with vue, using things like computed properties in single file components (SFC) makes it very easy to read and maintain code.
Ask HN: Examples of bad open-source code to learn what to avoid?
What are some of the bad examples of code that you have seen? Something you would want to avoid?

I'm looking for examples which fall along the lines of "fail to see the forest for the trees".
It does land on you via higher prices. Nothing in life is free.
The Chinese word for America is "Měiguó", or literally "the beautiful country".

To the common immigrant, it was sold as a country of opportunity and wealth.
Linux will allow anything as a valid file name. Including slashes, colons, new line characters and even none-printable characters. Usually GUIs filter will catch the worst offenders but it’s less of an issue on the CLI because you can escape all of those weird characters pretty easily (at least it’s easy once you know how. There is a little bit of a discoverability problem there though).

Windows, on the other hand, not only has special characters that cannot be used but also reserved words that cannot be used as file names (eg COM). Then there’s the issue with magic file extensions and even Windows Explorer hiding extensions entirely by default.

On balance I prefer Linux’s approach. Sure it creates some problems but they’re easy to be worked around and usually only rear their head when you start using lesser polished UIs or shared file systems with Windows. Plus Linux empowers you to use those names if needed, or change them if it’s a problem. Whereas Windows has these weird hidden show stoppers - many of which were only relevant in the days of DOS but have been carried forward in every iteration of Windows since (including NT) for compatibility reasons. That causes way more problems to developers - which is my personal use case.
I went 5/8, Perhaps it’s because I listen to the podcast on 1.4 speed??
Is 'they' McDonalds, or the people hoping for a handout outside?

Why can't I buy what somebody else needs? (The recipients seem happy to receive the food, and though they'd probably prefer cash, I doubt they'd prefer just 20¢.)
You are assuming that a fat cell can deliver into the bloodstream all of its fat over the course of the ultramarathon. If on the other hand it can deliver only a small fraction of its fat in that amount of time, then the argument in grandparent is saved from your criticism.
No one talks about the used car market for EVs. The battery is by far the most expensive part and the most volnurable to fail. So much so that buying a used EV is a much riskier bet.
This looks great. Though I must admit, 'SSH Tunnel Like a Boss' did make me intially doubtful. I wondered if it might be advice on how to find someone else to set up an ssh tunnel for you, while staring angrily at a command prompt and shouting.
I never take them up on their offer, I would rather leave the service for the elderly, handicapped, or extremely pregnant women.
Well Netlify does give you an option to add custom headers, redirects etc. Add CDN and cache busting along with branch deploys, that's something you cannot do with gitlab pages or github pages.
Also github pages takes a long time to get live for the first time (at least it did for me).
At this point my MVP version of python is Anaconda-latest.
Same here. Only got the "Healthy local ingredients, farm fresh ingredients" one wrong. And I've only ever listed to this person once (the Musk interview).
Why would First Lady be shown the door? Isn't marriage visa legal?

I am in favor of prosecuting past visa violations but don't see the problem with current status.
Test Factories for Diesel (Rust)
not sure why 10 people needed to answer your question lol