skysight-inc/HackerNews huggingface dataset:
This is why the Australian system is better.

Make people file a tax return, but auto-populate it with the data the government already knows. And at the end include a tick box clause that essentially says "I have included everything and reviewed the autofill info, and if I have omitted anything later discovered I will be prosecuted".

20 seconds to file your taxes if there's nothing unknown. Very easy to add extra info. Covers the tax departments back of you intentionally mislead them.
The most recent example of this is the Porsche Taycan

The EPA range is certainly disappointing. However, the Tesla and the Porsche have much different design goals and target customers. Porsche sports cars are not meant to be inexpensive and are not meant to compete in the mass market.

For example, the Tesla is strictly direct drive, the Taycan has a two speed transmission. Ratio is 15:1 motor:wheel in 1st gear and 8:1 in second gear. Compare the two cars at a steady speed of 120 mph (if any factory stock Tesla could maintain that speed for long). I'll make a stupid guess and say that the range of the Porsche at that speed is greater than any Tesla.

I know that's not saying much in favor of Porsche for most people. I, for one, have never driven faster than 100 mph in my life. But there are people that do, and there are others that have enough money that it makes them feel good to know that they can go that fast if they want to.

The Taycan is a niche car. It will probably not sell as many units as the Panamera, which is itself a niche car.

Nevertheless, your overall point is quite strong. So many new EVs, so poorly do they compare to the various Tesla models.
> Though much of the early gains was to undo the Mao's collectivization of rural lands.

This is simply not true. In 1978, start of reforms, GDP per capita was >50% higher than 1966 (start of cultural revolution) [0]. In current dollars it was $104/per capita in 1966 and $155 in 1978 (although there is something funny going on as it was ~$180 both preceding and succeeding years). More important is the miracle streak starting in 1988 where every year was positive.

I think it is important to not diminish Chinese achievement while criticizing China, because by denying their achievements you allow the unconvinced Chinese readers to say "ha, clear US bias and propaganda" and ignore the much more troubling truth about their current government (such as china running literal concentration camps, disappearing dissents, crushing demands for freedom, overtly trying to force other countries to bend the knee, etc). I have many friends dismiss valid criticisms of China with this exact excuse. If you deny to a Chinese person that they had a massive improvement in their life quality they will laugh at you, because you are denying an obvious lived experience for hundreds of millions of people (basically people in cities).

[0] https://www.macrotrends.net/countries/CHN/china/gdp-per-capi...
We hit that limit. And yes developers think things will just work - until they don't.
When item count and especially app complexity go up, redux becomes cumbersome and you then need to start using action batching, avoid immutability and so on...

Second issue is that developers think they know how Redux works, but there are a lot of gotchas. From example on OP - `return state.map(toggleTodo(action));`
With large app, there are for sure cases where such arrays are empty - and this thing will get updated and re-rendered even if it's empty.

From my experience - in most cases MobX is much better than Redux and it's horizontally scalable - as you can just create new, unrelated stores (something that's total PITA with Redux).
What's the rationale for a flat tax over progressive? I believe that an ideal tax system should properly reflect that the value of a marginal dollar is inversely correlated with income/wealth in a nonlinear fashion. But I'm open to having my mind changed.
>The example given with LINQ reads the whole files into memory:

The examples indeed use `File.ReadAllLines` which returns a `string[]`, but the same thing can be done with `File.ReadLines` which returns an `IEnumerable<string>` - a lazy sequence of lines read on demand as the sequence is enumerated.
Show HN: Simple 2D car physics with JavaScript
For posterity:

$ = document.querySelector.bind(document);
Since there's a correspondence between proofs and programs (Curry-Howard), maybe you're just looking for a graph-based visual programming language.

But given the failure (of adoption) of dataflow programming languages I don't think there will really be that much of a jump in understanding just by visualizing stuff as graphs.
I'm assuming you're asking in good faith, so I'll point out three problems with your line of thought.

First, you assume that having multiple competitors is pointless if one product is the clear winner. Proponents of breaking up tech giants would argue that Twitter and Facebook are not actually very good products right now, and the reason they're popular is largely due to network effects and anticompetitive behavior, not innovation. They would argue that even if breaking up Twitter just resulted in 2nd-best Twitter, the existence of competition would force the original Twitter to innovate at a faster pace than it's moving right now.

Second, you assume that there would be a clear "best" product. In truly competitive fields, it's often difficult to point to one product and say, "that's the best, and everyone else is settling for a worse product."

Take iPhone and Android. Why does anyone use the 2nd best phone operating system? Why don't we have one OS? Because there isn't a clear 2nd best operating system. The products are good for different things, and fit different niches and use-cases. It seems obvious to me that the smartphone market is broad enough that other niches could be served better by more targeted alternatives to the two major OSes, if those alternatives were allowed to mature to the point where they became competitive.

Finally, you misunderstand what the proposals about breaking up tech companies often entail. Most commonly when people talk about breaking up big-tech, I find they're talking about Warren. Warren's proposals are (roughly speaking) about separating product offerings and platforms. Her plan isn't to take Apple and force them to split up and create a second iOS. Her plan is to split Apple so that the company controlling the iOS App Store isn't the same company selling software on that store.

It's not about blindly making a second Apple, it's about trying to remove conflicts of interest from platform maintainers.

I'm not going to say whether or not I think that plan is good. I do think it's pretty unlikely to happen even if Warren is elected. But regardless, it's a very different, much narrower plan with very different goals and implications than what you're describing.
Anecdotally, Redux was absolutely awful to work with. Want a project chockful of middleware to make it passably usable? Use Redux. With all due respect to the Redux team, I simply don't think Redux scales in large applications. The "defaults" are insanely unproductive and encourage developers to cram tons of state in some global pile of state-soup just to claw back conveniences they lost. Monadic transformers and pure state transitions - great ideas in principle, carried way too far here in an ecosystem where the rest of the language and libraries rely on and use mutable state. Not to mention the lost performance, bloat for code that would be considerably shorter, and more disadvantages.

No thanks Redux, no thanks :/
Similar project: Voice2JSON

Website:
https://voice2json.org

GitHub:
https://github.com/synesthesian/voice2json

(I am not affiliated but am using it in my own pet project)
The version they have here is somewhat inefficient and not well presented.

You can get from the year to the doomsday by a simpler formula:

If odd, add 11; divide by 2; if odd, add 11. Count up to nearest multiple of 7

So e.g. 1955 turns into 66 turns into 33 turns into 44 turns into 5. Add that to 4 for the century (1900 is 4, 2000 is 3, that's all you really need to memorize) and you get 9, so the doomsday for 1955 is Monday.

From there it's simple, 4/4 6/6 8/8 10/10 12/12, 9/5 7/11 per the mnemonic mentioned, last day of February, Jan 3/4 depending on leap year, and March 7 counting forward from February.

There, that's the entire algorithm.
Need to jump to another, diverging timeline, Morlocks fugly, Elois sexy :-)
:-) I'm a jazz musician, and I think a bad piano teacher. I basically teach everything in one hour - how to read music, basic chords (triads, and with all kinds of 5ths and 7ths), cycle of 5ths, basic harmony - then tell people now they have to find great musicians they love and learn from them. (So much easier with the internet than when I was a kid) Sometimes I give them a list of people to check out. Of course, you have to practice that stuff for years until it's like breathing, but the basic theory can be presented in under an hour. You learn from years of listening to the music, transcribing solos and playing them, and playing with other people.
Right see, this is what all redux proponents advocate. Every redux project I see is chock-ful of "extras" to make redux workable, and this changes from season to season. If this isn't an architectural smell, I don't know what is.
The Economist podcasts.
You seem to think 'growing up' only means skyscrapers and not everything else around them. Why do you think American cities uniquely have problems with public transit, traffic etc compared to their contemporaries?

The answer is because again, we designed our cities with urban sprawl and car ownership in mind (see: white flight). I didn't create a false dichotomy, you're attempting to over-simplify city growth into 'builds skyscrapers / doesn't build skyscrapers' when there's a lot more math that goes into the equation. Especially when you start factoring in our cultural demand for parking space and inefficient forms of transit.
Depends heavily on your state, which no federal tax is ever going to fix. I'm always going to be less taxed than in Maine, so long as NH has no income tax. Not to mention sales tax.
Tesla is not destroying any company. I don't know why you think they do.

In the USA the market share of light trucks was 73% in Q3 2019. Those are 100% not Tesla's.

Tesla's revenue is ~23% of BMW group's revenue. Impressive for sure but they are not destroying anyone.

It is also estimated that if Ford and VW bring an EV on the market they will easily sell 100k units with their first model.

The world market is bigger and different than you think. The German brands are loved in China. And markets like Brazil are upcoming.
I agree with your overall point that this result is backwards to what people probably want. That being said the situation is hardly ridiculous.

Eg, To a pretty reasonable first approximation, all of Amazon's income is either going to be (1) distributed to shareholders and trigger income/capital gains tax or (2) invested in making goods cheaper for amazon's customers.

It isn't immediately obvious that it is a good idea to tax a system designed to get goods to people cheaply. The money Amazon reinvests in itself is in the short term all about making life better for its customers, not its owners. In the long term that reverses, but the reversal triggers additional tax events.

> It's ridiculous my tax rate is over 30% while wealthy people has it at 15%

The wealthy will be paying much more tax than you though. In raw amounts, the wealthy are doing much more to run the government financially than you are by orders of magnitude.

It isn't immediately laughable. A billionaire is making an absurd contribution vs. other taxpayers even at a 5%. And again, that part of their money isn't going towards themselves, it is difficult to consume that much in real resources in a year. It is likely going to investing in things that other people want.

There is no obviously-right or obviously-wrong with tax. Systems are complicated.
>> a smaller, denser country making EV ownership practical and economic.

Ya. I'm in Canada. The total opposite. Vast stretches of wilderness between cities. Bitter winter cold. Darkness. And in many area less than reliable grid power[1]. If we are listed countries by the practicality of electric vehicles, Canada, Russia, Australia and Mongolia are in leagues of their own.

[1] We are having a windstorm in my area atm. Power has dropped out twice in the last few hours, only for a few minutes at a time, but at this time last year we lost power for three days.

https://www.bchydro.com/power-outages/app/outage-map.html

250ish different outages means about 35,000 people are without grid power in BC at the moment.
Of more advanced forms of government or... all forms? I suppose societies that have always been strongman-governed aren't slipping into strongman government as a failure mode, but still.
Then I'm not sure what your point is if we want to point to arbitrary neighborhoods, say they're walkable and call it a day rather than address the ninety others which aren't.

By your argument, we might as well say San Francisco is perfectly OK to live in because we can find one neighborhood that isn't a hellscape. You're not really addressing my points or arguments at all, just weirdly trying to sidestep it.
Same with Age of Empires 2 vs 4. Also Brigador for example of a recent game which makes excellent use of isometric visuals.
Proponents of legalisation should use any argument that is likely to persuade, as long as it’s honest. For a person who believes that drug use is inherently bad, “anyone should be able to do whatever they want to their own body” isn’t an argument. It’s just the opposite of their opinion.
The best resource I know of is the textbook I bought for the course I took on group theory and ring theory [1]. It’s pretty expensive and the exercises are very challenging but if you’re a self-motivated student, you can learn a TON of abstract algebra from this one book. You may want to review some linear algebra before you dive in, if you haven’t done so in a while. You can find solutions to many of the exercises online though I can’t vouch for their accuracy.

[1] https://www.amazon.com/Abstract-Algebra-3rd-David-Dummit/dp/...
In fact, while Ford, for instance, is gutting their sedan offerings, they are making money hand over fist in SUVs and light trucks.
I would expect that to be common for the first couple years but after a couple years of realizing that they aren’t saving any additional money or are saving less than they are paying for TurboTax I’d expect that to drop off.
And most of the Americans use iPhone too. Not true for the rest of the western world. You always tend to read from online how poor American working class are, but the fact is Americans either have insane amount of disposable income or you spend like crazy. That is why so much ecommerce is focused on Americans and every ad click you make costs way much more than others.
Perhaps you’re using it wrong. It’s tiny. All you do is manipulate a JavaScript object that holds some state that different parts of your app can access. It’s not much more complicated than that.
The purges came later. There was no external force driving those, only internal forces (specifically: Stalin's unquenchable thirst for power).
Let say the chinese able to finished the research and achieve result then why can't then the original researcher or anyone just stole that again ?
As much as I would like to buy a put, the timing is hard to get right. The decay of the option will make your derivative expire worthless. And then, the next month, the market will fall as you predicted, but you lost your money on that option.

Or if you're a true believer, then you'd roll over your options, and keep throwing money down.

But as they say, the market will stay irrational, longer than you can stay solvent.
Most people in Germany rent, so they even less power to make these decisions. Americans tend to own nice and big houses with a lot of garage space and all the freedom that comes with it.
You just have to write a tiny part that uses a lot of CPU in C++/asm or anything else.

Much of code's performance isn't really reflected on to the scalability since mostly a tiny part of code is really ran a lot of time, and the other parts are just glues or management stuff or rarely used(not used in scale) features.
Here's the library I wrote to replace redux for myself: https://github.com/gunn/pure-store

It's the simplest API I could think of, has excellent type support, and handles immutability for you.
I was under the impression redux is basically a message bus plus some sugar. Is that wrong?
Redux is a mixed bag but I'd say it's one of the most elegant ways to handle state.

Biggest problem and reason why people (me included at the beginning) don't like Redux, you should know when you need it and you should use some abstraction layer (eg RTK). One cause could be the docs: while the maintainer try their best to educate a lot (also in this thread paired with interesting link building strategies), there is not quick and easy way to get into Redux. If you start with RTK's docs, you don't understand everything. Then, you need to read the Redux docs, then again back and forth. And this just takes too long to grok an actual simple API.

One easy indicator for Redux or not: does your app need kind of an undo feature, then you should dive into Redux and I'll promise you. there is no other way to do this in such a sane, maintainable way.
Orange man did what he promised on the trail.
In my opinion State Machine is sufficient on it's own. To me reducers seem superfluous and in fact distracting from actually managing state. But as already said it is my own opinion coming from my own experience. We do not need to convince each other
> Most functional languages have immutable persistent data structures that don't require a linear copy and are fairly efficient.

This is true, but unfortunately those libraries/languages don't make use of that tree structure for "partial memoization" of derived data. They very well could, but they don't -- even when you use Immutable.js in a Redux app, and you use Reselect, your selectors will take linear time when you mutate one element in an object/array instead of taking constant- or log-time.
Could relatives of measles virus jump from animals to us?
In reality Amazon is accumulating cash faster than it can spend it, same as the rest of big tech. If it had things to reinvest it into it wouldn't be such a problem
No MDR on RuPay, UPI transactions will kill the industry
You missed my point. Windows 7 Pro made sense in that market. Windows 10 Pro does not. You are literally relying on a system where you cannot maintain both proper control of your own resources and good support for things like security and compatibility updates.
IDK. While this idea is as old as the Internet, does it make any sense? The key point of a postcard is not to communicate (limited space, not secure, slow) but being a gesture. Buying a postcard, writing something on it and bringing it yourself to the post office is a huge gesture and signals many things--in contrast to postcard gateways like this one. Any receiver who will get this machine printed postcard will think, 'why didn't she/he just text me?' and throws it in the trash bin.

But maybe OP can give us a hint about the real use case or he is hand-writing the cards himself.
One point is that "fairness" is highly subjective. One can perform many contortions to justify their own definition of what they perceive as "fair".

Personally I like a flat tax because it drastically simplifies the tax system and removes the loop holes that wealthy people who can afford accountants use to achieve the lower effective tax rate stated in the root comment. It also deletes the tax prep Industry and a significant majority of the IRS, these Ultimately act as drag in our economy for arguably a net negative benefit.
Samsung Galaxy S11
until china becomes so potent a force that their purchasing power cannot be checked

That’s assuming China isn’t also papering over the cracks. I see no reason to believe that, given all the ghost towns full of crumbling high rises and the enormous amount of effort the CPC puts into their nationalistic propaganda.
I really like the “2053” pattern, it's easy to remember. But I doubt I will be able to remember the rest. I think I'd rather do like this:

Given a year CCXX, we know the doomsday of year CC00 from the “2053“ rule, and then:

(a, b) = divmod(XX, 12)
c = b // 4
offset = a + b + c

Then add the offset to the day found by the “2053” rule, and you have the doomsday of the year.

E.g., for 2020 we have:

start = 2 # from the 2053 rule
(a, b) = divmod(20, 12) # (1, 8)
c = 8 // 4 # 2
offset = 1 + 8 + 2 = 4 (mod 7)
doomsday = 2 + 4 = 6 # saturday
WebAssembly is a bytecode format.
> The wealthy will be paying much more tax than you though. In raw amounts, the wealthy are doing much more to run the government financially than you are by orders of magnitude

This also has a disproportionate effect on the rest of the government, however. The wealthy clamor for tax cuts because they already pay more than everyone else (and as long as income disparity exists, this is going to be a fact, so it's not really much of an argument) which in turn means said tax cuts can break the bank so to speak. Which results in cuts to systems that the poor and less wealthy rely on to live, things such as basic schooling or financial aid.

In turn, that money that they do get tends to go towards things that entrench their power. Politicians, mainstream media, things such as that. I personally have not heard a strong argument for not taxing the wealthy and corporations more, because for all the tax cuts we've seen we're still in dire straits when it comes to dealing with poverty and healthcare. So clearly something isn't trickling down here.
Ever performed a lot of stock trades in a single year and had the IRS believe that you owe them $5 million in income taxes because they assume every sale you made was all profit? That's always fun, especially when they think they're right and they're entirely wrong.

The IRS information is at times comically incorrect in fact.
> Linux actually has better audio performance than [...] macOS

That seems unlikely to me and doesn't match any experience I've ever had or known anyone to have. Can you explain what you mean by that?
At work, I used that configuration with an older MacBook Pro for over a year and a half, including an external monitor and a stand for the MacBook.

I continued using this configuration with my newer MacBook Pro, with the same external monitor.

At least, I did up to the point where I had to get a second MacBook Pro and external monitor for other work that I can’t do from my primary machine, and given the limited desk space I had to get rid of the external keyboards, touch pads, and laptop stands. And I think my RSI problems are returning.

I would use the same external keyboard plus magic pad plus keyboard stand and external monitor on my home MacBook Pro, if I had a good dedicated desk where I could keep all that stuff connected all the time.

A good dock/hub has been a lifesaver for me, where I can keep everything else plugged in, while having just the one cord I have to disconnect from my laptop, when it’s time to pack up for the day and take everything home.
No you’re right. I find the comments deriding Redux as some bloated beast to be amusing...it’s just a thing that lets you read and update a plain javascript object that different parts of your app can access.

People making things more complicated than they are is really a disease in the dev community.
That is totally amazing! Have played it for 5 minutes on my phone now :-)
Lol. I prefer to be clean than masked. Most workplaces here have shower stalls for people who need them. For example if you biked to work.
Except Italian makers I see way more EV cars from those manufacturers on the road then Tesla in my corner of Europe.
There are. That’s why dynamic linking typically doesn’t use self-modifying code and JIT compilers take a number of precautions to prevent attackers from being able to execute arbitrary code.