skysight-inc/HackerNews huggingface dataset:
That's a Javascript rant from 2015, and almost completely unapplicable to Rust. The rust designers were well aware of the disadvantages of various async implementations and have learned some lessons.

First he starts with a rant about the color of a function. In that sense, all typed languages have a color, aka the type of their return parameters. Sure, there a advantages to dynamic languages, but they're going out of fashion now for some good reasons.

Then he lists 5 more specific drawbacks of async code in 2015 Javascript 2015. All 5 aren't issues in Rust.

#1. Every function has a color: that's how typed languages work

#2. The way you call a function depends on its color: the rust compiler doesn't let you get this wrong and provides cut and paste corrections when you do

#3. You can only call a red function from within another red function: Use Future#poll

#4. Red functions are more painful to call: This is in reference to callback syntax in old node.js code and is fixed by the await sugar even in modern Javascript

#5. Some core library functions are red: The clause "that we are unable to write ourselves" is untrue in Rust; you should never have a need to drop down into C to write anything. And this is really just a variant of #3; if it's trivial to convert async to sync this wouldn't be an issue.
The US Navy says no to touchscreens–maybe automakers should too
> Even in developing countries that are popular with rich tourists, like Thailand, tourism is <20% GDP.

When you spend your entire vacation at a resort, it might feel like the entire country is a third world "shit-hole" dependent on tourism. That's probably why the OP feels like this.
MoviePass actually did run as a $50 subscription for a few years and had a viable business model.

Many people only know of MoviePass as the $10 a month subscription service that sprung out of nowhere about 2 years ago, but MoviePass had been around much longer than that.

MoviePass started back in 2011 and originally required you to print out physical vouchers at home, and take them into the theater. MoviePass juggled lots of different pricing models ranging from $25 a month for 3 movies, up to $99 for an unlimited movies. And yes, for a while they had a $50 per month unlimited movie plan.

For the first 6 years of their business, they operated in this semi-sustainable way. They had funding from AOL Ventures, True Ventures, and other venture capital companies during the time but ran a fairly sustainable business.

In 2017 they finally had their "exit" when a publically traded analytics company called "Helios and Matheson" purchased a majority stake in the company. Helios and Matheson saw potential in MoviePass (which had been running "successfully" for 6 years at this point) and wanted to expand it to as many people as possible.

This is when MoviePass decided that the best way to get lots of new users is to offer them something they can't refuse. How about $10 a month for unlimited movies. This led to a myriad of articles and free press about the company and a huge influx of customers. This is when most people had first heard of MoviePass as if it came out of nowhere, but it had a solid 6-year history of being in this business.

The goal of this promotion was only to gain a large influx of customers. It was never intended to be a long term strategy. I also think that H&C (the parent company) intended to make money back by selling customer data (since they are already in that business anyway).

Unfortunately, like the Hoover story, they underestimated how many people would take advantage of this offer for unlimited movies.
If your team size is 1 then you're not doing yourself any favor thinking about performance beyond basic usability when dev productivity is a far higher priority.
How can they accurately monitor a non-Apple battery? Are they to test their systems against every possible junk battery?

For those complaining, you’ve never dealt with airplane repairs. If you want a draconian system, try using non-Garmin SD cards in Garmin avionics. A blank Garmin SD card costs $300 and your avionics won’t work without it.
> I predict that long, slow, possibly "eco" trips

Anecdata but I can see this already happening in my circle of Friends in a big German city. Friends telling of weekend trips by plane are increasingly met by snarkiness, and I personally dream of doing the Interrail trip I never did in my teens!
Arabsexegypt
Ask HN: What are some of your favorite puzzles and puzzle resources?
Preferably lesser known ones, the weirder the better (mechanical puzzles, word puzzles, algorithm puzzles etc)

Any resource - books, websites, videos, shops...
Obvously this trend isn't unique to Trump, but if politicization is what gets people to pay attention to privacy issues, then go ahead.
Around the time of the Equifax breach, there was a discussion here that put it succinctly. "Identity theft" is just a clever name for "fraud" that shifts the responsibility away from the bank.
> I would sketch out game ideas and maps while pretending to take notes in the endless deluge of meetings...

You're my hero <3
Afaik soli is the recognition part (through radar).

Something that creates physical feedback is for example that Disney VR project where they use air to create the feeling of resistance
Old timers told me when Social Security was first started, the American people were promised that the number would never ever be used for anything but Social Security.

It's interesting, in Canada and probably other countries, the corresponding ID code cannot be used as primary key, like for employment records. And somehow their societies function.
Why I love Gatsby.js: 10 reasons
You can't argue with someone who has chosen to overlook your viewpoint.

I've ran into the same issues while writing python code. People who are newly picking up python are especially prone to these kind of bugs. Also, with python I have to spend lot of time to figure out what went wrong in my code as compared to other languages.

People who have been using python for long have wired there brain to avoid such pitfalls and now they happily defend it.
I understand how they work. It's just that turning something as fundamental as "each semicoloned statement happens after the previous one, as quickly as possible", into an abstraction, makes me really uncomfortable.
And what exactly are Flask and Django missing to merit more packages doing the same thing?

Routing requests and managing HTTP fundamentals is a solved problem. There is literally zero value in adding another framework when the real complexity is in business logic.
The costs of running a commercial service are always higher. Between insurance, licensing, generally stricter rules on technical aspects (like periodic service checks, etc.) you start spending a lot. The liability is a lot higher for these cases.

This is exactly why Uber went the route of "we're just a tech company even the drivers are basically driving taxis". Having those drivers conform to the same rules would have made the fare just as expensive as a taxi fare.
This is great, as the title says, this means that web applications can now have tracing across the whole stack, all within the same platform. Support for AWS X-Ray is great for me due to it’s very low cost at the small scale.

So far every tracing solution I've seen deals with _either_ server-side or client-side. Very few platforms support tracing across both.
The Three-Body Problem
> "It turns out if the seller publishes some list of probabilities and lies about them, the seller can make significantly more money," Elmachtoub said.

Perhaps contrary to the author's point, the ability to reap rewards by defrauding players regarding probabilities of payouts seems to imply some rationality in purchasing the loot boxes.

> "There is a benefit for lying. Since there's a benefit for lying, there must be regulation around this."

In all things there is often a short-term benefit to be derived from lying. It doesn't necessarily then follow that "there must be regulation around" all things.
Promises, as exposited in the article, are an interface for bona fide monads. I think Promises are the best example of monads because they don't just wrap a type in memory. Maybe is kind of a subset of List (as you mention), and for both the contents are available in memory. Promises are not like Lists, and their contents can't just be pulled out, so you have to use `.then` (monadic bind) to do computation on them.
You can write a unit test for anything you can think of, of course.

But a strongly-typed language will catch such errors automatically (and for free) at compile time, even if you didn't anticipate the failure case.
Khan Academy Annual Report
Why not just forbid the storage of user data? It would solve most problems. Why needs a whole society to be taken hostage for the profit of some companies?

I seriously do not understand.
Be careful about doing side projects on work time or with company resources. Some vindictive employers may use this against you.
A lot of opposition to national IDs is based in religion.
“Angels” that aren’t actually angels, and the problems that poses
Your second paragraph is on point. This is why when I travel I go to a new city for a month or more, and I live in exactly the type of places people are deriding in this thread (AirBnB) to live more like a local, not in a hotel. I am not there to be a tourist, although certainly my visa is a tourism visa and I'm counted in those numbers.

There's a huge difference in ecological impact and cultural impact of package tours where you have ~30 people following one guide with a flag sticking out of their back vs one person spending month+ in a place and minimizing their ecological impact. The one thing I haven't been able to do yet is stop flying, it's required both for work and for pleasure, but I do buy carbon offsets for air travel.

I just don't know how to clearly separate the types of activities I'm talking about without it automatically coming off as elitist when these types of discussions happen... it's not really fair, but the reality is that the Western world had enough various constraints that helped make tourism if not perfectly sustainable, relatively so. With Asia coming up we've added literally billions of potential new tourists to the pot and that's just not scalable. It's even very obvious to me, as I try to visit places which are not tourist destinations... and I visit off-season. I don't really care for tourism itself, I want to meet people and discover food. I go to these places to find not English dual-language, but Mandarin Chinese...
Mountains, Transcending
Kinda reminds me of this: https://en.wikipedia.org/wiki/Ken_McElroy
Look upon the horrors and weep: https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
My dog intentionally turns on my PS4 in the morning. When she turns on the PS4 it automatically turns on the TV and will play the soothing main menu music. We aren't sure if she does it for the music, the light from the TV, or the beeping noise from when you first press the button, but she has been doing it almost every morning for the last year and a half.
Because going to a foreign country and staying in an English speaking hotel between trips to landmarks and Burger King (but in Spain!!!) is not experiencing other cultures.

You're the "Vince Vega" tourist who visits France and eats fucking McDonalds. You've completely missed the point of visiting another place, you've just gone to the place where America has exported its culture into another area, with all the grace and sensitivity of a hiker taking a dump on a birds nest.
> Actually, if your type system is powerful enough, you don't need to test. That's the source of the "if it compiles, 99% of the time it works right" people mention about Haskell (and even more so languages like Idris etc).

Types only eliminate certain tests. You will always have system tests, acceptance tests and unit tests.
One should use types to augment their system reliability.

Types will not catch logical errors in your code.
What Makes Technology Creepy?
'Tis an ill wind that blows no minds.
They raise a valid point with a needlessly sensationalist title - but it does feel like a natural (d)evolution of the gaming industry. This is what happens when a studio becomes successful, hires a lot of people, then tries its hardest to maximize profits.

The real solution here is that parents need to educate themselves on how to lock down permissions on game purchases and manage their children's playtime/addiction levels. Government regulation is not a good substitute for parenting.

Remember, as a consumer, you can still support games that don't employ these tactics! Personally, I have way more fun playing Rimworld, Factorio, etc.
Nobody said they should let you choose your own passwords. We were comparing with SSNs, which are assigned to you, not chosen by you. You'd do the same with such passwords. And nobody claimed SSNs are appropriate passwords either.
Thanks for confirming that I'm looking at the right list!
> Glad you know what you value in life

Just to make it clear I am the submitter but I am not Chris Zukowski / zukalous. Title was preserved per the rules.
> keeping the price of food artificially inflated, maybe your local means of production isn't real great.

Really makes you think about how Europe did for thousands of years before our great American saviors helped us. Local food wasn't expensive before globalisation, talk to your grandparents you'll see how different things were not so long ago.

> This is your customer leaving because they don't like your prices.

You do understand that when the market is not flooded with cheap subsidised alternatives that issue doesn't exist ? Fresh/local products were not a niche market a few decades ago, it was simply all that was available. You didn't have to buy cheap bananas from costa rica because you simply didn't have access to bananas, so you bought local apples &c. you couldn't buy cheap beef from the US because all the meat available was local and priced so that people could afford it.

> You don't get to force people to do business with you.

But apparently you get to say "Accept our subpar products or we will make you pay!", and I genuinely fail to see the difference in practice. If this isn't some form of abuse of authority I don't know what it is.
Agree with the comment wholeheartedly. BTW please lets use Gandhi not Ghandi ... Its a very common mistake though.
At what point in history did the populace have empathy?
> NVIXM wasn't as salacious of an organization as it has been portrayed in the media. It was a self-help organization. The leader was a loon, a non-monogamist, and built himself up as a pseudo-spiritual leader/guru. Not that it makes it right but the branding and the 'slavery' only occurred to a handful of women at the top of the organization.

And how exactly do you think a loon can pull off a sex slavery operation without having all of this tiered and staged brainwashing? Just go up to random people on the street and ask 'hey, I'd like to brand you and make you my sex slave, interested?'
I'll add on to the "comfort crying baby" point ... once you cover the basics (clean? fed? dry? warm? burped? etc), sometimes babies just cry, and that's ok. Obviously you should be mindful and watchful over their condition, but there's no need to be stressed over a crying child in the short term as long as you've made sure everything is ok.

I'm only mentioning it because with my first (daughter) I would get really stressed and worried if she continued to cry after I did all the above. Just talk to them, play with them, and all will be good :)
The massive influx of tourism that people are complaining about, are absolutely NOT doing extended day hikes. People are being carted in by chartered buses and tour guides. There is no way you're seeing these families, and selfie teens 5,10,15 miles out there. Which is why I do it. Silence.
You mean "stability and security will suffer"? Sorry I didn't exclude it to try to make my point more convincingly, I just missed it altogether.

Assuming that's the part you meant, do you really think that is sufficient in explaining the situation to the user. I'm very unconvinced, my parents would have no idea what that means and just close the warning.
No, a synchronous procedure is a procedure whose minimum completion time depends solely on the speed of the CPU and memory system (and lock contention, in some models), while an asynchronous procedure is a procedure whose completion time also depends on external events.

In other words, synchronous procedures are essentially locally CPU-bound, while asynchronous procedures are bound by I/O, network or IO/network/CPU of remote servers.

Async functions are the most efficient way to support asynchronous procedures, while non-blocking non-async functions are the most efficient way to support synchronous procedures.

There are also adapters to turn synchronous function into asynchronous ones, and to turn asynchronous functions into blocking non-async functions, although they should only be used when unavoidable, especiallly the latter.
Could you please name a few such cities/countries? Or, better yet, link to some sources?

I'm very interested in planning best practices and not sure how to google this.
I think it's not just tourism, it's traveling in general. We need to stop taking the car or the plane like it's nothing for the environment, and taxes are the only way, we can't rely on people's common sense.

A single roundtrip from New York to Los Angeles a year offsets the combined effort of going vegetarian and recycling for example - https://shameplane.com/?fromCity=New%20York&fromCode=JFK&toC...

I've gone to many of those places: The Egypt Pyramids, Paris, London, Austria, Amsterdam, Crete, Cuba, Japan. After a while it becomes all the same, it all feels like a tourist trap everywhere you go, most likely because it is.

Seeing natural wonders like the canary islands, it's probably still worth it, but visiting man-made cities with their tourist trap monuments? No thank you.
So what do you think about "Tree shaking" as a Javascript minification strategy? The phrase ticks each of your boxes for a fad phrase, but I wouldn't consider it to be one.
You may enjoy this: https://journal.stuffwithstuff.com/2015/02/01/what-color-is-...
The Emerging Art of Drawing in Prime Numbers
NY Times claims Mosque Attack manifesto was on 8chan
I love poetry, and am using it in all my python projects, but despite that I would hesitate to recommend it for this reason.

That said, "ejecting" a plain requirements.txt is possible on the alpha branch via `poetry export`
All this is a metaphor for all of human civilization on earth at our time. The problem is much much bigger than these little anecdotes show. Corporations don't follow signs either, they are very much like incorporeal tourists on the planet.
The "golden rule" is definitely "taught" in elementary schools. How do you think teachers solve disputes among students? Our schools even had "social contracts" in the upper-elementary.
My next question would be, if we have a reactor we can bring there, do we have an atmospheric or other type of processor that the reactor could power to convert martian air into something closer to earth air?
Yeah I'm aware of how their monetization works and I think it's great as they at least never force you to buy them and everything eventually becomes available for a flat price in the shop at some point.

> Someone having a pre-existing gambling problem isn't the fault of the developers, nor is that what the researcher in the original article is claiming. The researcher claims that allowing kids to engage in buying loot boxes fosters a gambling addiction later in life.

Kids can also buy lootboxes in PoE. Ok sure, technically kids shouldn't be playing PoE, but that's just not reality.
Wow i had never heard of this offer. But it seems like it was a good deal without even dumpster diving.

What does a Medium Drink at Wendys cost? Probably $1.50?

So buying 32 medium drinks would cost $48, which would get you a free one-way flight in the US. $48 (plus all the drinks you can handle and diabetes to prove it) is an insane deal for plane ticket.

By this logic a round trip ticket would cost ~$96 which is also a steal.

Even without dumpster diving, $48 is a great deal for a ticket even if you just dumped the soda out or never filled up the cup at the fountain.
I have no issue with skepticism but:

> I disagree with any fad phrase (emerged in a year or so and suddenly used by everyone, the media, etc)

That is not skepticism, that's denial of anything remotely popular because of its popularity, not because of what it entails or puts forward.
Are you saying the same thing about casinos? That children should be able to go to casinos? And the parents should just make sure their children don't actually go to the casino?

That sounds wholly crazy to me. Loot box mechanics should automatically result in a mature rating for the game.
I'd probably take objective measurements of physical properties over a "profile new battery" charging cycle, and not solely rely on supply-chain QA personnel, protected by DRM nonsense.

My charger for rechargeable AA (LR6) batteries can do that, recondition batteries to eke out a few more cycles, and also tell me when a battery is finally gone beyond its powers to revive.

And my charger is not a $1000 device that utterly relies on the health of its battery to function, either.

What Apple is doing is slapping an opaque cover over the report screen until someone comes along that has a company-issued "remove report cover" pass. What if someone put alkaline batteries in there, instead of metal hydride? What if they put in AAA batteries instead of AA?

The charger can detect wrong chemistry types, like alkaline and NiCd, by objectively measuring the physical properties. And it can still charge AAAs. They just have a lower capacity. The battery subsystem in the phone could analyze a new battery and report its condition, but that would require Apple to admit to itself that a battery is a 3rd-party replaceable part that will require replacement some time over the projected lifespan of the device.

How do you know? You measure. High-tech batteries have some of that capability built-in, and high-tech devices with charging circuits connected to high-powered general computing processors can certainly run automated tests after their case-intrusion sensors and/or power-interrupt sensors detect events.
This "kids these days" stuff is a complaint that dates at least back to ancient Greece, and almost certainly into pre-writing days.
I was waiting for this update!
> anti-tank mines for the public's own protection

Seriously can we not? Mines are such a horrendous lingering danger to the public that most militaries restrict them. https://en.wikipedia.org/wiki/Ottawa_Treaty
There's a term used by "race realists" to describe the liberal consensus towards integration: "magic dirt". It's a mocking way of phrasing the belief that an immigrant who moves from a dysfunctional to a successful society will likely become successful, or that the same is true for a child from a dysfunctional neighborhood going to a good quality school.

Naturally, I don't agree with the "race realist" view on this, and think the term is a bit of a strawman. Humans are intensely social, people's actions are deeply shaped by their social environments, and the liberal view being mocked isn't that your location transforms you but that your social milieu does.

But your comment seems to actually be this strawman come to life, which I find fascinating. To be clear, do you really think it's likely that good neighborhoods are shaped _primarily_ by factors independent of who lives in them? I know this is possible in the abstract, eg a downtown neighborhood is closer to jobs, a neighborhood with a freeway running through it is rarely cohesive, etc. But this seems dwarfed by the mountains and mountains of data points of neighborhoods transforming dramatically due to shifts in resident demographics, and pretty much every housing-related phenomenon is in line with this: white flight, gentrification, the recent impoverishing of the suburbs etc.