skysight-inc/HackerNews huggingface dataset:
No, American manufacturing started losing its competitive edge in the heydey of unions. It is only because American manufacturing saw a market decline that union membership rates in the private sector declined.

When US manufacturing was expanding the fastest was when unions had no power, in the late 19th century, and that was also when wages were increasing at their fastest rate. Unlike the post-war wage growth, the wage growth of the late 19th century did not come at the expense of the industry that was providing those wages.

>>This is simply false. Passenger rail service went bankrupt as a result of many forces

You should read up on the agreement that the brotherhoods forced on the passenger rail lines and what that did to their financial position. The growing power of the brotherhoods is primarily what did the rail lines in.
Stick a fork in it. It's done.
Do you not see the problem in societies being unable to share trusted and accurate information about reality? I mean that is 100% required for any interpersonal relationship between two people let alone a community.
It won't impress anyone. All it will do is incentivize them to see what else they can get out of you for free. They won't respect you if you don't respect yourself.
No need to worry if you just use the same shell through WSL. The integration is with the shell not the os.
Soviets Tried So, So Hard to Eliminate the Plague
> the days of ever using the system python are over

You don’t have any Python scripts in your bin folder?
His first publication, as a high-school student, was in MAD magazine. His books are full of jokes, both highly technical ones and more trivial ones. :-)

If you have some mathematical inclination and a couple of hours to spare, you may like watching his (1-hour) Christmas lecture from 2017: https://www.youtube.com/watch?v=BxQw4CdxLr8 — you may need to listen carefully (he's over 80 after all), but some of his humour comes through at moments.
Seeing this got me curious to know if any work has been done on generating completions for applications that make use of the clap command-line argument parser.

https://github.com/clap-rs/clap

https://crates.io/crates/clap

Among other things I found this currently open issue that has a lot of discussion and information in it:

https://github.com/clap-rs/clap/issues/568

It might be of interest to you as well, OP?
The blog clearly mentions "Ashutosh Mehra is the third-richest person in San Serriffe".
Don't know about the A485, but the E585 _still_ needs kernel command line changes to boot.
Lenovo refuse to make a simple patch to the BIOS :(
> Stop and think before you write that shell script. It's not going to take you any more time to write it in Python

Have you actually measured the amount of energy each takes? I would not be surprised if the Python VM's startup makes it more inefficient.
Ask HN: Too Good to Go for the United States?
Too Good To Go[0] is an app/service which connects its users to shops and restaurants in Europe who are happy to sell any unsold food they have at a heavily discounted price rather than it going to waste.

Currently, I am not aware of any such app/service that is available for the U.S. right now. I did take a look through Google's Play Store and saw 2 or 3 apps that have a similar model, but they didn't look any good. I probably wouldn't trust them with my payment info as a user.

I am also not aware that TGTG is planning to bring their service to the U.S. any time soon. So I come here today, wondering if there is an unfilled niche right now. Are there really tons and tons of good food going straight to the garbage when I'm here in California avoiding eating out due to the often unstomachable prices for what you get? Tons of good food that probably aren't going to people who need it the most and can't afford it because the incentives aren't there for restaurants to donate it? I've certainly never heard of stuff like that being done around here.

I don't have the brains to make such an app/service, but you guys on HN might, so I'm making this post to spread some awareness and maybe spark some inspiration. Could it work? Would restaurants and shops sign up for it?

[0] - https://toogoodtogo.com/en
In short - the DOM was often used to store state. And this just isn't a very efficient approach.

By some people, sure, but separating state and business logic from presentation and rendering logic was a well-known idea many, many years before React was around.

I think the basic premise of the article here is correct. The important development with React that hadn’t previously been widely seen in front-end, JS-based web development wasn’t the virtual DOM, it was the declarative description of the rendered content — building it in absolute terms from the current state, not in relative terms from the current and previous state. The virtual DOM is a means to that end: it makes that approach fast enough that it can be used with acceptable performance for a lot of realistic applications.

This doesn’t change the fact that the declare-and-diff strategy is extremely expensive compared to actively observing only necessary changes in the underlying state and making only necessary local updates in the (real) DOM. In a typical web app, if there is such a thing, that might not matter very much. In more demanding cases, say when you’ve got tables with thousands of cells or you’re drawing a complicated diagram with SVG, it’s still all too easy to run into performance lag with any library that uses this strategy. Then you start using escape hatches like shouldComponentUpdate or using lifecycle methods to manipulate the (real) DOM directly rather than rendering through React, at which point you’re not really benefitting from React at all for that particular component (though of course you might still be benefitting from it for the other 90% of your UI code and incorporating the rest into the same overall design using those escape hatches might make sense in that situation).
You don't need to start a new Python VM every time you need to multiply two numbers or split two strings, like you need to do with a bash script that calls dc and sed.

That is because Python actually has a built-in way to multiply numbers and perform string manipulation, right out of the box, without forking another process! The overhead of the Python interpreter required to get to that "mul" instruction is nothing compared to the overhead of forking another process to run "dc". This isn't rocket science, it's not even close. You really should check it out some time. So do a lot of other languages. Just not bash.

I can't believe I need to explain this. This isn't about Python being amazingly well designed or efficient. It's about bash being extremely badly designed and inefficient, and people having absolutely no clue how expensive it is to fork processes like "bc" to multiply numbers and "sed" to split strings.
I don't see any moral justification for violating someone's contact liberty. If someone does not want to employ unionized workers, or workers who go on strike, they should not be forced to. Freedom is a two-way road. You have a right to do whatever you want including organize and strike but you do not have a right to force other people employ while you do these things.

I simply cannot wrap my mind around the idea that it is morally permissible to restrict freedom-of-association/contract-liberty in this way.
I live near Kansas City, and see probably a dozen a day. They seem to be very popular, but there is a good charging infrastructure in this area. I'm cheap though, and bought a used Leaf.
Any reasons to expect that they won't be able to cash out? Why?
On the other hand nobody in China uses Web for banking. Most people I know just use mobile applications, which aren't that bad, moreover most of the operations done through AliPay/WeChat/QuickPass, so you don't need to use yacky bank things. Alibaba and Tencent have better UX in their apps. When you go to any bank you feel like a time traveller for 20 years back.
The cost of the DOM operation is the same. The difference is that React batches the changes to reduce the number of operations whenever possible.
I was super excited to use Three.js and thought it would be easy to do what I wanted to do. What I wanted to do was load a simple .obj model and display it. Easy this was not. Hopefully someday they will merge in obj support from their demos code section to actually be part of the main Three.js code :/
You think that land is easier to assess the value of than other forms of wealth? That seems backwards. What's 1000 shares of Amazon worth? I can get a lot more accurate and current answer to that than I can to what some land is worth. (Yeah, it gets harder with some things like works of art.)

Jeff Bezos may be one of the biggest landowners in the US, but the cause and effect is backwards. He became rich off of something that didn't need much land (Amazon), and then later bought land with the money. But suppose he hadn't. Suppose he had been willing to just sit on his billions in Amazon stock. Should he escape the tax because he didn't buy land?

There's no way to hide property? There's not much way to hide stock ownership, either. (I agree that you can hide ownership of gold, diamonds, works of art, and bitcoin. But, frankly, not many people are using those as their primary stores of wealth.)

A wealth tax creates deadweight loss, whereas a land value tax benefits the economy? You need an argument to demonstrate that rather than just asserting it, at least if you want to actually convince anybody. From where I sit, it looks to me like a land value tax is just another kind of wealth tax, and is no more or less a deadweight loss than any other kind of wealth tax.

In fact, a wealth tax on stock might make stocks' values correspond more with their dividend rates. That might re-value things like Uber (valued at $90 billion but losing money hand over fist), which one could argue is a good thing. I could see that working in much the same way as you think a land value tax will work for real estate.
Six Months at Sea in the Merchant Marine
即使不用饿了么订餐，也请务必收藏好该库！
For me the rule of thumb here in SF is: even though I may only want 10 McNuggets, if there's anyone hanging around outside who looks like they'd appreciate some, get the extra 10 (for 2¢/each!) to give away. (It comes in 2 boxes.)
React is more like 'Lambda the Ultimate Web Component'.

A component is almost a function returns element. Expanding a component is like calling a function and give it the property.

So you can have some abstract common behavior in HOC f and g, then you can have HOC `h = compose(f(g))`.

A quick comparison with Angular: @Component({template, style}) seems composable if we stretch a lot. But why make template and style in the decorator... They are not something we consider most abstract at all.

The function is the simplest yet composable abstraction over the template, Cheng Lou also has a really excellent talk on the topic:
https://www.youtube.com/watch?v=mVVNJKv9esE&t=1470s
Yep. Canada has the federal General Sales Tax (5%), and most provinces have a separate Provincial Sales Tax (varying rates). Some provinces have combined these into the Harmonized Sales Tax, which is collected by the Canada Revenue Agency and the provincial portion distributed according to their respective rates.

Other levels of government are not permitted to charge sales tax, or even income tax. Most cities' primary sources of income are property tax and development fees.
A 4 door Porsche is an abomination, along with that stupid SUV.
If you don't need a physical relationship, an intelligent-enough GAN-bot might be appealing for a lot of people.
> That is because Python actually has a built-in way to multiply numbers and perform string manipulation, right out of the box! You really should check it out some time. So do a lot of other languages. Just not bash.

$ echo $((1*2))
2
$ string="hello, world"
$ echo ${string/hello/goodbye}
goodbye, world
Also, women tend to weigh less, so the calories per km is less.
After years of doing mostly React and Vue SPAs I've never experienced a performance problem.

The metrics of Svelte that interest me more are lines of code and bundle size, both in which it excels.

Here is an article that compares the exact same project called RealWorld written in a number of front end libraries/frameworks.

https://medium.freecodecamp.org/a-realworld-comparison-of-fr...

Here is the main repo for the RealWorld project for front and backend:

https://github.com/gothinkster/realworld
The author of the original article also cites that as some kind of reason for something.

It's pretty irrelevant, though. If you have your Bitcoins stored on a market, your "transactions" don't go through the blockchain. It's just a field in a database then, indicating how many Bitcoins a user has stored on an exchange.

The argument would be the same as as claiming "to transfer stocks, you have to deliver them by mail to the recipient, so it takes at least two days". Or indeed the same with money.

If you wire somebody some money, no actual money is moved. It is just fields in a database of banks changing, that indicate how much money the banks owe you. We are so used to it by now that we think of it as actual money changing hands, but it is not.

So I am sorry, I can only take the article half serious. The author seems to be driven too much by his disdain for Bitcoin than by actual facts.
Well, even Russia managed to switch some governmental bodies to Linux. It is only a matter of political will. UK has Collabora who has contract to remove some issues in LibreOffice. South Korea can do just the same if required.
There's also the connection between knitting and perling...
This works in Perl, a language that almost everybody criticizes or hates. I've never had any issues in upgrading core packages.
You can optimize the unnecessary operations but it's a lot more work to fully determine that they're unnecessary and erase them.
I did come across this work by clap while doing research for this post. The major difference in strategy is that clap is generating completion scripts in Bash, while shell_completion is a library which helps writing completion scripts in Rust. I think one exciting bit of future potential for shell_completion is it could potentially allow building something like what clap has done using the standard Rust macro system.

In any event, thanks for bringing this up.
I know that in concept not needing compilation is nice because it’s one less thing to have to worry about, but I don’t think I’d want to use JavaScript without any compilation. Just curious what the use case for not doing compilation is?
I know nothing about Python internals, but my understanding from the article is that this "overhead" is about creating a new sub-interpreter (loading modules is particularly slow in Python), not the performance of executing code after it's created.

The article also makes it clear that each sub-interpreter still has its own GIL, but two sub-intepreters can run at the same time without having to care about each other's GILs.
Didn't they already break this promise when they absorbed NHS data from deepmind back into Google, only two years after suggesting that Google would never obtain them?

https://www.theguardian.com/technology/2018/nov/14/google-be...

In other words, do we have any assurances that these third parties can't be restructured with a sleight-of-hand?
Fun fact: each nugget costs $0.06 to make (excluding overhead). [1] [2]

So even though it's $5 for 20 which seems cheap... it's still only $1.20 in ingredients.

[1] https://www.quora.com/What-is-the-profit-margin-on-McDonalds...

[2] https://imgur.com/gallery/CvHqp6V
It has opened an avenue for future research that has better than "monkeys throwing darts" odds, which is an accomplishment.
XCKD: PGP

https://xkcd.com/1181/

https://www.explainxkcd.com/wiki/index.php/1181:_PGP
What I am curious about is how much selection was involved in the fake ones. Like is it the cream of the top of the fake ones that sound the most natural or is it a typical output?
Now show me how to add 1.5 and 0.5.

bash-3.2$ echo $((1.5+0.5))
bash: 1.5+0.5: syntax error: invalid arithmetic operator (error token is ".5+0.5")

https://unix.stackexchange.com/questions/40786/how-to-do-int...

I gave up INTEGER BASIC for APPLESOFT several decades ago, and never looked back.

(LOADING INTEGER INTO LANGUAGE CARD)
]INT
>PRINT 1.5 + 0.5
*** SYNTAX ERROR
>FP
]PRINT 1.5 + 0.5
2

It's 2019, and you're struggling to do in bash what you could have done on an Apple ][ in 1979, but the syntax you need to use is even WORSE than BASIC, so your code looks like line noise from when your mom picks up the phone while you're using a 300 baud modem. Is that really progress?

https://en.wikipedia.org/wiki/Integer_BASIC

>Integer BASIC was phased out in favor of Applesoft BASIC starting with the Apple II Plus in 1979. This was a licensed but modified version of Microsoft BASIC, which included the floating point support missing in Integer BASIC.

https://en.wikipedia.org/wiki/Applesoft_BASIC

>Applesoft BASIC is a dialect of Microsoft BASIC, developed by Marc McDonald and Ric Weiland, supplied with the Apple II series of computers. It supersedes Integer BASIC and is the BASIC in ROM in all Apple II series computers after the original Apple II model. It is also referred to as FP BASIC (from "floating point") because of the Apple DOS command used to invoke it, instead of INT for Integer BASIC.

Notice that there are even machine language instructions for cos, atan, tan, sin, ln, etc. How do you call those instructions in bash?

https://docs.oracle.com/cd/E18752_01/html/817-5477/eoizy.htm...

>x86 Assembly Language Reference Manual: Floating-Point Instructions

>The floating point instructions operate on floating-point, integer, and binary coded decimal (BCD) operands.
Using Google Fonts Locally
Students advised to falsely claim to be racial minorities for college admissions
I had to code in Python recently and had PTSD over all the syntactically significant whitespace. I have no idea how I ever found productivity in the language coming back to it now with fresher eyes. Refactoring, editing, and writing new code feels like such a drag.
Why (and How) networks should run themselves?
(1) Anochai FDM's answer to Should you buy real Google reviews?
> So “cin“, “cout” and “cerr” also known as stdin, stdout and stderr are shared.

Note that these are different things: std::cin is a std::istream, std::cout and std::cerr are std::ostreams, and stdin, stdout, and stderr are FILE *s.
This is a sadly common failing of many of the popular graphics libraries.

DirectX 9 and XNA were quite nice to work in, because they had model-loading code baked right in, albeit you had to use .x or .xnbs. Later versions took out that D3DX support, and you have to integrate something third-party like Assimp.
And if they ever get it wrong, do we get to hang the jury, judge and prosecutor for murder too?

You get a hanging! And you get a hanging! And YOU get a hanging!
>I'm beginning to seriously hear people discuss that it's perfectly okay to use DNA people submit in these ways and even that it would be okay for the government to collect trash and other things that would contain DNA to add people to databases. Such arguments are usually emotional

It's also "emotional" to not want your remains to be compared to a serial killer's DNA.

There is admittedly a property rights argument to be made. (In a way, your decendants have the "rights" to your remains, displayed in the manner you bequeathed them, traditionally a cemetery plot in western cultures.)

But it's even more emotional to have attachment to random bits of litter.
> The original promise of React was that you could re-render your entire app on every single state change without worrying about performance. In practice, I don't think that's turned out to be accurate. If it was, there'd be no need for optimisations like shouldComponentUpdate (which is a way of telling React when it can safely skip a component).

It's shouldComponentUpdate(), not shouldDOMUpdate(). Even if DOM operations are direct, or the virtual DOM is infinitely fast, there are plenty of situations where you want to avoid running application code on every update.

Some frameworks use data binding to track if a component update is necessary. This is what Svelte does, but because there is no explicit checks they have some weird conventions around annotating certain bound values:

<script>
export let num;
$: squared = num * num;
</script>

React just happens to implement this behaviour different: it assumes a component needs updating unless the shouldComponentUpdate() hook says otherwise. The advantage (ironically) is that React is "just JavaScript", whereas Svelte needs a compiler that can instrument the code.

This design decision shouldn't be confusing to the author; I assume he would have made this design decision consciously?
Desktop monitors, sure. Rack mount KVMs, not so much.

Nonetheless you have a point, I think, but I hope it’s considered. HDMI would be awful for something like this. It’s liable to fall off in use where vga can be screwed down. Displayport seems like overkill. Etc.
bash is Turing complete... the rest is left as an exercise to the reader. :-)
Software doesn’t just fail, though. If it works today, it’ll work tomorrow.

You could lose features that depend on connectivity, but you’ll still be able to drive.
Life is going to be weird if virtual girls/dolls go from fringe otaku culture to realistic, relatively normal household items.

People also seem to be wanting to get more drugged up, plastic, and bio-engineered.

Maybe in the future the average person is the meeting somewhere in the middle.
I recall famous chef / restauranteur, possibly Gordon Ramsay, giving a bare minimum sale price of 4x the raw ingredient price for profitability. Assuming the $0.06 estimate, $1.20 would imply a price of at least $4.80, pretty close to the $5.00 price
Where I work, there is currently a push to get python on the computers that manage physical equipment operation. These computers are not allowed to connect to the internet, and have extremely limited connectivity to the rest of the business network. Installing anything new on them requires risk assessments like you wouldn't believe, since the consequences of malicious code could easily hit 10s of millions of dollars and a nonzero number of lives.
You're not eating meat even if you eat McNuggets /s.
Job Searching Advice for Junior Devs
Why don't they allow react? One reason I can think of is they have a server side side rendered architecture and they want people to continue to use that. They don't want new devs to use company time to buff their resume with unmaintainable learning front end code. At least that's why I generally shoot down attempts at using FE js frameworks over here. We have some really awful react 0.11 pages that are years old that will take weeks to redo properly.

Anyway, my point is you might want to check if it is okay to use any FE framework at all. It seems like a very strange policy to say "you can use any FE framework except React".

But if you are going to do this use Vue.