skysight-inc/HackerNews huggingface dataset:
As others have said, "Average return is just one statistic". When trading, losses hit harder than wins. Go up 50% then down 50% and you're not even, you're down 25%. The degree of overestimation from this mean return -> "annualized return" calculation depends on what the returns distribution looks like.

Here's the calculation used in main.js line 77 applied to a very extreme unrealistic example. I simulated 253 days of return percentages from a uniform distribution between -5.5% and 5.6%, and then the actual total return percent, calculated in R

set.seed(2020)
n <- 253
daily_gain <- runif(n, -.055, .056)

total_gain <- sum(daily_gain)
avg <- total_gain/n
annualizedReturn <- (1 + avg)^n -1

annualizedReturn
# [1] 0.2933685

prod(1 + daily_gain) - 1
# [1] 0.1324846

Edit:

In reality the actual numbers are likely to be not nearly as different as this example. I chose uniformly distributed returns with a wide range to make the reason against this calculation very obvious. Here's an example return distribution where there's hardly any difference. Normal returns with average of 0.085% and standard deviation of .05 i.e. daily_gain <- rnorm(n, .085/100, .05/100) gives

annualizedReturn
# 1] 0.2414539

prod(1 + daily_gain) - 1
# [1] 0.2414051

For good measure here's one in the middle where your returns are normally distributed with an average of 0.35% and a sd of .2%, but then you have on average 10 bad days a year where returns are 5 percentage points lower than that distribution i.e. daily_gain <- rnorm(n, .35/100, .2/100) - rbinom(n, 1, 10/n)*.05 gives

annualizedReturn
# [1] 0.2712024

prod(1 + daily_gain) - 1
# [1] 0.2490317
I’ve seen packages that do ”internet-detection” by calling out to icanhazip.com, and I just thought that was so irresposnible. What if your package got popular, how much money are you costing the hoster? For services like this, people just don’t consider the fact that there’s someone on the other side.
Once they came out after Heller and stated they still believed it was a collective right, I knew my relationship with them was over.

ACLU (and others) cite it as a 5-4 decision but even the dissenters on the case believed it was an individual right, they just still thought it could be regulated / scrutinized. In that sense the individual right won 9-0.
“Someday we might do something meaningful so bear that in mind when observing the reckless, sadistic and destructive present day behavior” is comic book movie reasoning.
The NRA started as a way to retrain Union soldiers to actually aim their weapons instead of volleying them, as they were no longer using smooth-bored muskets. If that's a principle, they did that.

I'm not sure why they became a weird mix of Russians and the KKK.
I believe in reciprocity. China has blocked a lot of the western traffic. So, the west should block China. If they open up, we should welcome them with open arms. Similar spirit as some open source licenses - reciprocity creates fairness and increases collaboration, prevents hawks in a population of doves and improves stability.

We are already doing this with trade. The amount of leeway and free lunch China has gotten from the west is insane. I don’t blame China, I blame the west and the rest of the world for not preventing it. Asymmetrical policies are often exploited by capitalism and governments have been caught off guard.

I’m not an Anti-China lunatic. It’s just common sense.
Senior/Principle/Staff/etc titles are typically less about raw competence or tenure and more about leadership. A senior will typically spend most of their time working on high level design and overall strategy for a project, with execution left to more junior engineers.

Seniors should be technical enough to jump in if necessary and they should guide junior engineers as needed but execution is not the main focus of the role.
Windows 11 will r.i.p like windows 10x maybe.
yeah, I guess the chinese govt could put a lot of pressure on a country like AR.
The problem is that you don't know what the source of the traffic is. It could be an incompetent network operator/sysadmin, but it could just as well be something like an IP camera that people bought in good faith. If you block the CGNAT system of an operator that has a hundred million subscribers because it all seems to come from a single IP range you know nothing about, you could be hurting innocent users with the block.

That being said, a service like this doesn't come with any guarantees and if it'd disappear from the net tomorrow, I wouldn't blame the author. Blocking is a perfectly valid solution to this problem, but assuming malice isn't always the right answer.

Were I in this situation, I'd rate limit networks per /24 (maybe even /16?) as much as I could, and work together with antivirus companies to help identify infections of malware known to use the service to discourage criminals from abusing the system. I wouldn't even bother hosting the site on IPv6 since those addresses are supposed to be public anyway. The author clearly has more patience than I do.
How is your company, how are you privately protecting yourself against ransomware? Details please!
> So maximize for worker

Uh, the article explicitly mentions "those who manage the corporation" not "those who work for the corporation".

You're thinking of regular workers, but i would bet 10$ that the author is thinking about upper management (not even team-leaders or middle-managers).
or even better: respond with incorrect data

they'll soon learn
> Is it correct to ask about the idea of a table? i.e. is there such a thing as a table in the abstract?

If you rephrase the question as, "Is there such a thing as a more real table than this table?", or if "Ceci n'est pas une pipe" sparks joy (or puzzlement) in your heart, you might enjoy reading Neal Stephenson's Anathem.

I can't write why, for spoilers. I can say the book is heavily inspired by Platonism, as well as many other things. If a science fiction story about philosophical monks, astronomy, and adventure appeals to you, give it a read.
It's very simple, the best strategy for the last 20 years (with hindsight) would be to buy the shares that have performed best over this period, but it wouldn't work better than chance going forward.

Obviously, sitting down and creating that "strategy" would be silly, nobody would think that would work. But if you're using ML or just test a million random strategies, you could end up with something along those lines, a strategy that is optimised for the particular paths stock prices took up to know.
I hate it when my precious limited boredom gets intruded on by nagging feelings that I need to learn or achieve something to avoid falling behind. I seldom have the energy/willpower to learn or achieve well anyway, and end up wishing I had enjoyed my boredom instead.
That’s $8.03 per year right?
If true, it makes sense why Newsweek broke the omerta of silence around the lab-leak theory. Cult or not, we should appreciate the value of media properties on the margins else we end up in a monoculture of everyone following the WaPo, NYT and the WSJ.
> On the other hand, QEMU is this huge piece of software with documentation scattered all over the web and no man pages.

On every Linux distro I can recall it has manpages, and glancing at the AUTHOR section on Ubuntu implies that it's upstream and not a local distro-added thing. Anyone know what's going on there?
Best way to think about ECS is a generic pattern to help make things data oriented. It’s not necessarily going to be optimal though. It’s SoA over the Entity rather than individual struct members which might in a more tuned setup be more performant.

This is also where ECS as a pattern falls down (from the simplistic ideas about them being performant) because keeping components in packed arrays is only one part of making them efficient. The biggest issue is making sure your entity data is best organised for the most common data access patterns. For example you can’t actually store data in big blocks of single component type but need to consider the shapes/archetypes (common sets of components) that make up an Entity. For each archetype we can store the components packed in arrays so that they can be iterated contiguously. That way Systems can visit all of the archetypes that contain the components they care about and iterate straight through them whilst minimising cache misses. This approach obviously falls down the more heterogeneous your Entities are. It also incurs a cost when a component is added or removed from an Entity so makes some common ECS patterns more expensive. There are other approaches with different trade offs.

But this is also pretty academic for most games which don’t have the entity count or gameplay complexity to actually require this level of performance anxiety.
> Play store apps, unless proven otherwise, are generally malware you carry with yourself every day, with potential access to everything in your device because the OS is nowhere near locked down compared to Apple counterpart.

Do you have a single fact to back this up, or did you just read it from Apple's marketing?
Not illegal for governments to do.
Basically the problem with turning hobbies into hustles is the addition of uninteresting (and sometimes frustrating) additional work that comes with managing time and caring about customer satisfaction. The extra work can take all the fun out of it.

Feeling the need to be constantly "productive" is, I think, really a separate issue.

I also differentiate between wanting to do something vs wanting to have done something. It's easy to want to have written a novel, to have learned to play piano, or to have painted something. But if you don't enjoy the process (the actual writing, the practicing, etc), then you may just be torturing yourself for the sake of self-image. Find something enjoyable in the actual process and you won't need to force yourself so much, you'll gravitate toward it naturally for its own sake, and you won't feel guilty if you decide to just watch TV or phone scroll instead. (Plenty of books and articles out there on forming new habits.)
See ports(7) which mentions "config-recursive" and other targets that may be useful:

* https://www.freebsd.org/cgi/man.cgi?ports(7)
Also interview during the flight here:
https://youtu.be/jCCJQjEq4b8
(In Spanish but subtitles will work well
for English translation)
Now I want to golf a 6502 opcode -> mnemonic decoder...

Not that I have any use for one.
The article clearly says that Reddit permanently suspended his account. Do you have sources to support the contrary?
Functions grouped with data is inherently OOP. Even if you don't interact with a graph of objects in a class, you're still using OOP if you define methods on your class and use those methods to interact with fields.
https://beaconcha.in/

This is the Proof of Stake Ethereum explorer. There is over 5 M ETH staked at thr moment which gives the value given above at current market prices.

In truth, that's more of a lower bound because you would have to buy that same amount of ETH in the market which would raise the price.

Additionally, Ethereum's PoS algorithm contains slashing penalties that are used to burn the ETH of an attacker. So a 51% attack may occur once, the attacker then gets slashed, loses his stake and the chain continues without the attacker's stake. Read further: https://cointelegraph.com/news/vitalik-buterin-reveals-why-a...
Homepage feed multi-task learning using TensorFlow
> On the other hand, QEMU is this huge piece of software with documentation scattered all over the web and no man pages.

My frequent resource: https://manpages.debian.org/jessie/qemu-system-x86/qemu-syst...

Not available for BSDs? Maybe that's a mishap by the distro?
how do you actually do planning with Prolog, though? I've tried to model my domain in ASP (Potassco), and I had to use iterative deepening. as I increased the number of objects in my problem, planning slowed exponentially, despite the problem being highly symmetric.

my impression is that SAT-based solvers wouldn't be able to keep up as well as search algorithms, but I've been running out of luck with those too.
I used to read the Robb Report - a magazine for people who consider Rolex to be an entry level watch. This is the kind of thing they would have written articles about and advertised already for sale in early 2000's, so I don't think this is much of an ominous sign.

PS: No, I was doing well in the dotcom bubble, but not THAT well. We all have dreams and reflective reading material.
I’m amused that a node app was used to do this rather than a Google sheet. The =GOOGLEFINANCE function is super handy for building backdated simulations.
Much like they just stay out of 2nd amendment…

https://www.aclu.org/blog/civil-liberties/mobilization/aclus...

As I support their efforts generally. I find picking and choosing seems counter to the what protecting our civil liberties means in a whole.
JavaScript promises: use tuple collection instead of try-catch
> This mindset is how we end up with layers upon layers of badly designed and buggy software that underpins almost every aspect of modern life.

No, it’s not. Changing requirements by adding features is by far the biggest cause of badly designed and buggy software. I’ve worked on multiple teams where everyone was fully committed and highly skilled, and it didn’t magically fix the problems of software. It wasn’t any better than working on teams of people who were less interested. Our inability to stop adding features is what kills us, and this inability is actually stronger with people who think they’ve ‘mastered’ the art of programming than with people who can finish a one-off task.

> they will probably not be a general purpose solution of the problem at hand

Ironically, perhaps, in my decades of professional programming, the number one biggest waste of money I’ve seen is people over-engineering something under the banner of making something “general purpose” that didn’t need to be. I’ve watched a couple of different teams of very smart people waste literally tens of millions of dollars by deciding to rewrite something that didn’t need rewriting, and dramatically overestimate their ability to finish it in a reasonable amount of time and avoid the same mistakes they made the first time.

> If you want to write dependable, high-quality, maintainable, reusable software you better know more than the bare minimum.

This sounds good in theory, but is specious. The real way to get high quality software is to define what that means and stick to it ruthlessly. You don’t need to know a lot about programming. You need a management that is okay lengthening schedules to make room for testing. You need a CEO who is okay with saying no to customer demands for features that the competition has. You need programmers who know when to stop programming and when to avoid rationalizing their ‘general purpose’ solution that solves problems that don’t actually exist.

Good luck in your search for high quality software, it’s very very difficult to find a team who can commit to it, and there are good reasons why: it’s extremely expensive.
Is there any lib/way that automatically generate doc for api/endpoint. I think it is possible to create such generator for graphql api.
If you've spent anywhere near 10 minutes on the app store, you can tell that outside of top charting apps, app store is filled with shit just as playstore is. From overall nonfunctional quickly made pos to blatant copyright infringement evil shit. Fine, I get it it's hard to curate, but let's not pretend then it actually is curated overall. So, Apple, either do what Nintendo did when they started with NES and come hard on QA or stop pretending.
So dividends and capital gains should be taxed like interest and income? OK.
He's using one of the most basic and obvious algorithms in existence, you can hardly call that "massaging".
I think it was Orbi.

It was table level. (Now my APs are near the ceiling though.)

Wireless traffic is super dense here. A lot of people are running multiple APs and I guess we’re no better. Some people are also stacking multiple APs on the middle channels.
imo in market cycle terms 20 years isn’t that long.

especially since market paradigms shift.

ie the last 20 years have been low interest rates, low inflation, with strong secular growth in tech and stagnation elsewhere, and globalization

this varies a lot from the 60s or 70s where there was massive inflation, high in interest, etc..

we may be entering a new paradigm with the changes in fiscal, monetary policy and globalism running its course
There's no stock loan fee if you close the position the same day.
I used to use this site until I found https://checkip.amazonaws.com/. Switched because I wasn't sure who was behind icanhazip.com and it's tough to beat AWS. Glad to hear that it will likely be maintained for awhile longer!
That would certainly be a novel notion of systemic risk. It's like arguing that the financial system would collapse if TSLA trading were halted tomorrow. There's no shortage of other liquidity channels between market participants, so the loss would be confined to the held value of the security itself and any of its derivatives. I'd argue that the systemic risk of my toy analogy is actually worse than Tether, as the derivatives tied to its debt and futures are almost certainly a huge multiple of its notional value. I would venture that isn't the case for Tether, but I suppose it's possible too.
Stronger, faster and more deadly: The ethics of developing supersoldiers
Good. I remember when this lawsuit first got announced, everybody was calling Epic crazy, but I always felt like something was needed to force Apple's hand. Even if they ultimately lose, they forced Apple to cut the percentage they take for small apps in half, which is a big concession in itself. This will likely pave the way for more concessions too, and maybe eventually some form of regulation.

I tried my hand at making apps. I built an app that got some traction on the app store and organically acquired about 1k DAU. I was making <$100 a month in in-app purchases. Competing to improve my organic ranking in search terms (and against their paid search placement) I had a free tier that used Google's AdMob.

Eventually, Google suspended my ads for some reason (They claimed fraudulent clicks - but I know I wasn't clicking my own ads, and of course there's no real path to appeal.)

And it just struck me at how absurd this whole thing is. I'm working so hard, and these companies win either way. Why on earth would anybody try to build their business when they can't even exist on these popular general computing platforms without Apple or Google taking a sizable cut, no matter what happens. And they can shut you down at any time. Google can cut off ads, Apple can have a reviewer reinterpret rules (ex. Hey, WordPress app etc...)

Mobile computing is just too important to be this locked down. Something has got to give. I really think that's why Tim Sweeney used his company to move things forward on this front. Because waiting for legislators to do something in the U.S. could mean waiting 2-3 more decades.

Ultimately I shut down the app even though it was making a meager profit because the fundamentals of such a business are just awful. That was before Apple cut their take to 15%.
I see HN still has a policy of deleting all political content except for political articles whose thesis is "the left is anti-free-speech."
> Currently Python only allows certain thread interleavings, because those are the points where the GIL is released.

How is this currently avoided? My understanding is that anything that accepts a callback / lambda is potentially subject to interleavings as the code can call a C extension which releases the GIL. Moving code to C extensions is often recommended when Python performance is brought up. Am I misunderstanding something?

> It's also unclear how tractable it is to retain current garbage collection semantics without a GIL

Why is it important to retain current garbage collection semantics? Why does Python prescribe a certain garbage collection implementation and does not allow for others like Java?
My wife's friend has seen a few people eating raw cicadas this year. She said they just walk down the road in her neighborhood picking and eating them like they're wild blueberries.
https://en.m.wikipedia.org/wiki/Venti

http://essay.utwente.nl/694/1/scriptie_Lukkien.pdf

http://man.cat-v.org/plan_9/6/venti
Full home unfolds in 1 hour, kitchen and bathroom included [video]
I know nothing about prefab houses, so this video was an interesting introduction to their engineering considerations. After all, building construction is fueled by low-skill labor, isolated into regional marketplaces with low information, and the home buyer cannot determine the expertise of the builder. That theoretically makes it a lemon market. From a naive standpoint, centralizing production to centralize reputation makes sense.

On the other hand, trailer homes also centralized reputation into a few major companies, and nevertheless had severe issues with VOCs and formaldehyde. These trailers were unlivable, so reputation mechanisms didn't manage to raise quality.

There's no underground foundation. I was shocked when they stacked buildings, although there are no stairs to get to the second floor. It's questionable whether a good foundation also serves as a good second story floor (weight? sound? flexure?) but I guess being modular can be worth it. It looks like a saner version of the shipping container home, which is popular in imagination and unpopular in reality.

The attempted niche of this particular company is its price, which is half of comparable prefab homes. It's very low-end. The windows have no shades and no meshes. Sunshine will glare during the day, with no privacy. Open plan, kitchen in living room. Roof seems at risk of leaking. Unclear what the material quality is like (VOCs, heat and sound insulation, appliances). They haven't shown any of the hookups (water, electrical, sewer, internet). No gas. Isn't yet available for purchase.
The sad thing is the people out there on the boats are in all likelihood just trying to scrape a living and the people who deserve to be in harm's way are higher up the economic ladder. There are a lot of world problems that amount to "no one holds China accountable" (and to a lesser extent, first world nations don't do enough to hold themselves accountable), and I would really like for countries to tax and/or sanction China for their negative externalities (e.g., pollution, overfishing) it would make the world a much better place--either China starts to compete fairly or else they lose the wealthiest markets to the advantage of the whole world and especially countries in Africa, Eastern Europe, Central Asia, and South America who would fill the manufacturing void.

Mandatory disclaimer for the pro-China accounts: I'm very much not interested in deflecting to the West's problems--they exist, but they don't excuse China (nor does China's bad behavior excuse that of the West's). This kind of deflection is just a race to the bottom.
His 1973 tome Management: Tasks, Responsibilities, Practices, The Essential Drucker, and Managing for Results are three I find myself opening regularly.

The Effective Executive is great as well. It's hard to narrow down because he was such a prolific writer. Recommendations are also hard because you've got to meet the reader where they are. I picked up and put down Drucker early in my career. Years later, the same pages burst with insight when I read them.
"no reasonable person would possibly believe these statements as true."

That statement from the courts has allowed all sorts of lying in marketing.
I don't think every country in the world minus one or two would be "regional".