skysight-inc/HackerNews huggingface dataset:
> NIMBYs have made it impossible to live in Northern California unless you make a lot of money

At which point the tax base starts rotting.

I grew in up the Bay Area. (Among other places.) The clear trend in my high school group: make money, buy a house, move to a lower-tax state (read: any state), pay what you owe for the days you’re in California. Which leaves middle class folks like my parents, one of whom was until recently a bank teller, shouldering the cost for these policies.
I had a conversation with a co-worker who used to work for Toshiba heavy industries on their nuclear stuff - he made the interesting point that there's only so much accessible uranium on the planet, to the point where we'd use up all of it in ~75 years if we were running the entire planet on nuclear. The only way around this is to use breeder reactors, which is a huge no-no from an international relations perspective because those are the same types of reactors used to make nuclear grade fissile materials.
The only reason these doses were donated is because they couldn't be used.

When the doses could be used, the US jealously guarded them, while the EU, Russia, China and even Cuba shared.

The 100 million doses that were "donated" almost two years later is a very poor excuse for hogging the supply when it mattered most.

As for the optics or donating - it was done only so that the US could say "we donated the most" while many, many countries actually supplied a lot more. Paying 3-4$ per dose is not an issue for almost any country, and when it actually is the EU, Russia, China et al. had no issues discounting or even donating them.
Math Quants Could Disrupt Process That Sways Power in Washington
Vaccine manufacturers respond to incentives. If everyone was paying $1000 a dose there would be a lot more factories opening up.
> when police jam cameras at protests they just use bright visible strobes

Ironically then the story just goes from "here police are brutalizing the people protesting brutality" to "and also being childish with their flashlights." Bright lights aren't nearly as blinding to large-sensor cameras with good lenses as they are to cheap cell phone cameras.
I've had one of these forever. Great purchase. (I am sure it still works great but I never print anything anymore.)
The first fully electric Porsche model outsells flagship 911 sports car
Low income is a lot lower than you are likely thinking. China and India aren’t considered low income.

https://g2lm-lic.iza.org/call-phase-iv/list-of-lic/
The US didn't buy the entire supply, it bought enough for its citizens (with some contingency in case a given vaccine didn't pan out), as did many other wealthy countries. Many countries bought more doses per citizen than the US and donated far less vaccine to poorer countries, but no one is criticizing those countries (go figure).
> For some reason, a lot of focus on Japanese, specifically

That's because Japanese is a popular language to learn, especially in HN-type communities, and to learn Japanese you, most of the time, have to learn Kanji

> never seen a post about learning Spanish on Hacker News

There are some https://hn.algolia.com/?q=learn+spanish. The thing is that you don't have to learn 2000 symbols to learn Spanish. I also think that many "hacker type" people consider raw memorization "boring" compared to conversation or playing around with the language.
I’m all for dispelling Whig propaganda about the European Middle Ages, but I’m not sure medieval monarchies and contemporary democracies can compared in this way.
As you mentioned, medieval societies were heavily variegated, religious, and did not have the means to manipulate nature in the way we do today, all of which were practical constraints on a wicked or despotic monarch. These constraints are now gone. I don’t think you could hide from Nero (or King John, to stay more overtly medieval) today.

Also, mobs were not absent from medieval society (think of the antinomian, flagellant movements in Germany, or various anti-Jewish outbursts). They’re likely to be with us to greater or lesser degree until the end.

My view is that for those of us concerned by the trajectory of modernity (Christian or not), the task is to better understand the phenomenon of totalitarianism, which we will have to contrast against a recovered, “re-realized” understanding of authority (as freedom from arbitrary power). But I don’t think medievalism, or pitting democracy vs monarchy will get us there.
Yeah, I've been eyeing the Chinese no-names. They seem to be getting better. Thanks for the data point.
Oh, just noticing there's a mix of git specific commands and actions a user would want to take.

Like, I wouldn't know what a cherry-pick means if I didn't use git a lot.
Poor countries except for the initial 20 years of adopting free market economics are poor by choice.
Really? Maybe in 2020 or 2021, but not in 2019. My work laptop got dragged to meetings and gets taken on flights to remote offices. My personal laptop gets used in every room of the house.
As long as the number of keys is finite, you (or a computer) can still technically figure out whether your program will halt. The halting problem is semi-decidable and this is a case where you can decide, it just takes a long, long time. Moreover, in this case you can generally say “if one of the keys in the key space decrypts the message to the chosen plaintext, it will halt”.

The Collatz conjecture example on the other hand shows something where we don’t know whether it will halt for all input[1], because we don’t know if the Collatz conjecture is actually true. There are many other things without proof in either direction, some of which may not be able to be proven (Goedel’s incompleteness theorem says that if I’m not mistaken, but I am not a mathematician, please correct me if I’m wrong or inaccurate).

[1] Yes in practice the data types are limited, memory is limited, state in general is limited. So you can always “solve” the halting problem for a “real” computer by just trying out every representable state, even if that takes longer than the universe exists. But Turing machines, which is what the halting problem is defined on, have infinite tape.
> The creepy factor does way more damage to FB’s business than the bells and whistles that the buyers of inventory use adds to it.

They helped to create a genocide in Burma. If people didn't leave after that then I doubt any "creep factor" is going to hurt their business.
It is rather easy to keep an inkjet printer from gunking up if you buy a set of refillable cartridges, fill them with a 50/50 mix of demineralized water and inkjet cleaning fluid, install them and run a cleaning cycle after you finished a printing session. No ink in the nozzle means no gunk. This trick also works well for cleaning nozzles, since the cleaning fluid is a surfactant and it breaks up clumps of dried pigment better than just a stream of ink.
If you're having trouble with node_modules size, do yourself a favour and try PNPM[0].
It's another npm/yarn. It installs each npm module into a local store first, then creates a bunch of hardlinks and symlinks in your project's node_modules. End result, no matter how many duplicate dependencies you have installed (for example this AWS SDK), you only store one of them on your disk. Plus, it's super fast.

[0] https://pnpm.io/
Zugarcoin to hit $1M per coin end of 2021
Crypto is the next big deal.

For example, on the Ethereum network, you can earn up to 57% APY (as of 1st Jun 2021) staking your 1Inch Tokens for governance reward compared to the average stock market return of 13.9% annually for the S&P 500 Index.

Zugarcoin a cryptocurrency that aims to rebuild Africa's dying economy hit $392,000 this 2021 with a maximum token cap of 1M. The coin founded by Dr Archbishop Sam Zuga sold during it ICO in 2020 at $40,000 per currency.

It has also been reliably gathered that at the speed rate of Zugacoin’s growth, it is projected to hit $1m by November, 2021.

With just 20,000 USDT (tether token), I will give you 0.5 Zugarcoin (SZCB) which cost over $50,000 to buy from those who have it.

Your 0.5 SZCB will be worth over $500K towards end of 2021. Hurry now and get yours before it's too late.

To buy, chat me up by my mail (abaridennis@outlook.com) or leave a comment below.
Related: Git Line Endings configurator. Uses a github action to brute force all combinations.

https://hediet.github.io/git-line-endings/
I'm sure that developing and certifying a drug administered to a large percentage of the population is entirely simple and risk free.
Lack of temporal consistency for colors is absolutely horrible.

I think it indicates that the problem posed to ML was defined wrongly.
> As I was typing this, a great example of said broken crap, is Lenovo popping up a MessageBox asking me to reboot to update my firmware. Didn't software developers all agree well over a decade ago that windows stealing focus was not a good thing? So why then is a top of the line brand in the PC world writing shit like this?

Don't think that MacOS spares you about that either. Update notifications are equally distracting.
No one that I'm aware of ever complained that vaccines had to be paid the (low) cost of production. What's at issue is keeping the doses for yourself until you don't need them, instead of sharing the doses at the outset. 500 million dollars of charity while I'm sure is appreciated is worth a lot less than timely vaccinations of the most vulnerable.
Really? That's a surprise to me, considering the supposed purpose of JMH, though to be fair I'm not hugely experienced in it.

Do you know what optimizations are disabled? Are they disabled automatically, or only if certain parameters/functions are used (e.g., BlackHole)?
Java Optional is not a general replacement for nulls (although people might use it this way). It's a way to replace nulls in method return value, when those nulls indicate missing value. It's a subtle philosophical distinction, but I think that it's worth to remember it.

If you want to improve nulls handling in Java, you should use @NotNull annotation and corresponding linters.

https://stackoverflow.com/a/26328555/315129
Exactly. I don't get why people complain about null-pointers in Java when all it takes to get rid of them is enabling static analysis that enforces checking for null at compile time... as that's exactly as safe as using Optional, and as Kotlin has shown, it's also possible to have a nicer interface (e.g. `something?.let { it.isNotNullHere() }`) with bare nulls... without incurring the cost of allocation or of declaring generic types everywhere.

Since I started using "safe" nulls with Ceylon, nearly a decade ago, later with Kotlin and TypeScript, I've been firmly in the camp of supporting nulls in the language instead of `Optional` or `Maybe`. Rust should've used them IMO... using `?` for error propagation instead is such a weird choice.
Just as a starting point, you can look at any existing uses of #define to either define a constant or define a ‘function’ that can be evaluated at compile time.

For constants, #define is ubiquitous and works fairly well, but it has several disadvantages including:

- When a macro quotes some code, e.g. when assert() shows the expression that failed, any uses of macros inside that code will show up fully expanded. This makes it harder to tell what’s going on.

- If the definition of the constant has any complexity to it, it has to be re-evaluated every time it’s used.

- Doesn’t work with debuggers in some cases (admittedly this could be fixed without a new language feature).

- Difficult to work with for tools that generate FFI bindings for other languages. They can’t easily tell what’s a constant that should have bindings generated for it, versus what’s some random piece of syntax.

An alternative way to define constants in C is with anonymous enum declarations; they avoid all of the above issues, but they can only create constants of integer type – not structs or floating point values – and on some compilers are even more restricted to only creating constants of type `int` or `unsigned int`.

For functions: There are many function-like macros in C APIs. Some must be macros because they're type-generic or otherwise go beyond what a regular function can do. Others could work just as well as inline functions, even in current C, and are macros only because they're inherited from days when compilers couldn't reliably inline functions.

But others are macros because they're meant to be evaluated inside compile-time constants.

For example, from OpenBSD's implementation of the Unix socket API:

#define CMSG_SPACE(len) (_ALIGN(sizeof(struct cmsghdr)) + _ALIGN(len))

#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)

CMSG_SPACE calculates the required buffer size for a control message structure of a given body size. One of the examples from the relevant man page [1] has:

union {
struct cmsghdr hdr;
unsigned char buf[CMSG_SPACE(sizeof(int))];
} cmsgbuf;

which requires CMSG_SPACE(sizeof(int)) to be a compile-time constant.

Mind you, this is all just a starting point. There are more ambitious things you can do with constexpr that people aren't doing with #define because it's not powerful enough. For example: if you use printf, modern compilers have built-in functionality to validate the format string against the argument types. But what if you want to define your own variadic function (for formatting or any other purpose) with a different format string mini-language? With constexpr you can do your own validation at compile time. (It's a bit easier in C++, but it should be doable in C as well if constexpr is added, by using a wrapper macro.)

[1] https://man.openbsd.org/CMSG_DATA.3
My fingers don't always have prints.

Sometimes they are callous.
As a sound guy, I've always been into acoustic architecture. It's overlooked (except for performance spaces or recording studios) and under appreciated, when done well it really makes a difference, it can really set the atmosphere of a place. As part of the backlash against open office it's gotten a lot more attention (as the article mentions).

But this being Hacker News, I want to complain about the most annoying trends in acoustic architectural design: Restaurants.
I've noticed over the last ~10 years up-scale restaurants designing their spaces to be extremely "live", IE not much sound dampening so the place echoes amongst the concrete walls. The idea is that it sounds like so many people are there and it's really happening, because with even with two tables it can sound full. But so hard to have a conversation!
Yeah, I don't let the "but he did it first" excuse fly with my kids, I'm certainly not letting it fly with the media.
Such a great size it’s a shame the hardware was such an unreliable turd
Fellow "charrúa" here :)

Greetings ...
I’d add that for most people, you should go higher than 1080p regardless of screen size. UHD/4k/Retina are all a huge improvement just when looking at text and it’s hard to go back.
Wow, that's a huge stifle on the shipping industry.

Do our representatives not realize literally EVERYTHING we have access to depends on trucking?
The US bought the entire supply of vaccines made in the US, and banned their export.

Other wealthy countries such as EU countries allowed other countries to buy at critical times too, at the expense of their own supply, for the greater good.
Expandability, repairability, ports, toughness. I dont want to spend over $1500 on something only to find I cant expand the ram, change the battery or replace the ssd.
From listening to interviews of Apple tech folks, they also have done a lot of optimization of their CPUs based on calls frequently used by Mac OS. I don’t recall specific examples but the fact that they can control both the hardware and software allows them to profile and tune the system as a whole.
UPDATE: this seems to have blown up a bit.

Combing through once again, thanks everyone.
I agree. I prefer i3wm with Ubuntu to macOS, but its just not feasible when I am developing iOS. Macbook hardware is also rock solid.

My previous Macbook Air had 0 failures over 3 years, but something on my XPS breaks every year. The only things I haven't replaced at this point are the motherboard and screen.

I would seriously consider the frame.work laptop as well, but I need XCode. I might buy the frame.work laptop in a year or two.
Just to be clear.

Government wealth comes from tax collection and from the people. While we want to help the world there are constraints on how much we can do.
Why would you not support jpeg?
I constantly print with heavy color usage as a Junior in a graphic design/interaction design BFA program. After painstaking research, I bought a Canon and some refillable ink cartridges. I pay more for paper than ink, which I get for about $15/liter! The print drivers don't accept CMYK— they only accept RGB and do their own internal conversion— so exact color correction is a challenge. Even still, it's passable for proofing/critique prints without fussing or even decent prints of photographs. It would absolutely meet the needs of a casual user.

The thing is pretty cheaply built so it's janky as all get-out, but ink included, I haven't touched the expense of the cheapest laser printers— maybe half. I'll upgrade when its limitations outweigh the benefits.

(watch out— it won't work on every model. It looks like some cartridge companies sell refillables for models they know won't work without official cartridges, so do some reading!)
TIL! False cognate. I'm not a native speaker. In Portuguese there is the term "condescendente" which means "indulgent, one who doesn't imposes discipline". What is the equivalent term in English?
Yup, almost every single car has this ability, sat nav or not.
I felt lucky in Japan in that you can print at every convenience store so I'd just walk 1-2 mins to the local store when I needed to print. 10 cents for B/W, 50 for color.

In SF you can print at the library which I've done once.
Does Anki actually work if you want to read Japanese?

Flash cards are a really small part of the picture, and making a better system for flashcards isn't going to result in much improvement.
If you read elsewhere in this thread you'll see that there really is enough discussion to suggest that yes, this is worth an article.

And it really, really isn't Bubble Sort. One of the defining features of Bubble Sort is that it only ever compares elements in adjacent locations. Others are claiming that if you optimise this then it becomes Bubble Sort, but someone else observes that if you "optimise" differently you end up with Insertion Sort.

That suggests that this is not Bubble Sort. It's something different that can be mutated into Bubble Sort, but it is, of itself, not Bubble Sort.
My take on this is, we can't be surprised if the entire spectrum of anti-capitalists show up to cheer-lead for stronger anti-trust enforcement. I don't think the GP was trying to conflate enforcement with communism, rather trying to notch a hypothetical victory benefiting their cause.
Yeah as a vaccinated non-US citizen I’m super upset the Trump govt funded vaccine development. What an awful country.

Thankfully 50% of your country graciously declined vaccines so the rest of us could get vaccinated. Those citizens are the real heroes of the pandemic don’t you agree?
You should check Zig comptime keyword, which does exactly that. Its the feature from zig I miss the most in C.
I think the post you replied to is a fantastic example of what I was referring to, btw.
Most randomly. Different family members contribute to the shopping. Anybody could get milk if they go to town. A few weeks ago I started buying green salad supplies whenever I could, on the way from work or the gym. Sometimes my wife does a more comprehensive run together with one of our tenants but rather than complain when she doesn’t do it, I do it myself.

We never have a ‘food desert’ because there is a stock of less palatable food such as canned beans
Are we now saying donating unused things is inferior to donating things that could be used? I think this is a horrible take. Also two years since when? US had regular supply of vaccine only since March.
Münchhausen's by Internet specifically
Article:

> the printer ran out of ink

Quite wrong! Should say: "a count-down chip in just one half-full cartridge started sending an empty indication signal to the printer".
Not surprising at all--HP in the early 1990s was still very much an engineering-focused company (both H and P were on the board until `93) that made high-quality, durable products. This was right before it got gobbled up by MBAs and celebrity CEOs, who spun it off into a hundred subunits hawking flimsy plastic trinkets and "business consulting".
This is horribly misleading. The US isn't donating its leftover vaccine stock, it's paying to have vaccines manufactured and delivered to poorer countries and working out the logistic hurdles to make sure the pledged vaccines are actually delivered. To that end, the US has already delivered more doses than the entire rest of the world combined (hundreds of millions of doses total), and they've pledged about a billion more doses.

A much more apt analogy would be: "would you rather not be able to afford groceries, or would you rather have a rich person buy your groceries and deliver them to you?"
/r/eyebleach

Cute pictures of animals helps.
The article you linked in that thread had an update from the same person.

https://www.extremetech.com/extreme/324466-tutorial-how-to-u...
This is an interesting point. Is there some data to use as a reference for it? Would other forms of nuclear fuel replace uranium in larger quantities?

I feel like this has been absent in many pro-nuclear arguments (I always assumed we had much more)
> That's not my experience at all. Please see my link detailing my own experience with the Heisig method.

Did you forget to post the link?

Heisig’s approach to break down the characters into components is indeed useful, I just doubt the usefulness of the “stories” that Heisig provides.
This is the first I've seen `num::NonZeroU64` which is nice, intrusively using a zero value to mean none.

Is there any analog for a const pointer? I want to point into or just beyond a const array, intrusively using null as a None value.

There is `ptr::NonNull` but this always converts to a *mut T, and one is just supposed to "be careful" to not use the mutable features if your pointee isn't actually mutable.
And with the Euro being explicitly set up by other countries with the intention of challenging the USD as a global reserve currency without the US so much as wagging a finger at them, it's a little hard to believe that the "real" reason a US administration dominated by neoconservative hawks resumed a decade-old conflict with an outspoken enemy in a strategically important region full of oil at a time the country was obsessed with fighting sponsors of terrorism was the relatively insignificant decision to accept Euros for some types of international payment...

The best you could say about that theory is that it's confusing cause and effect. Other nations which have been hostile to and sanctioned by the US for some time also shifted from dollars to Euros.
Yep. The halting problem is semi-decidable, and this article showed a whole lot of “semi”. And an undecided one even, because Collatz is unproven (so we don’t actually know if that example really always works, and it may not be provable).
The general sentiment I get from most people is that banding together to save the lives of others is a moral imperative, and unwillingness to do so is selfish.

I don't think I am mischaracterizing this, am I?
can't.
Why do people insist on trivialising our profession so much?

You don't get bootcamps for doctors or airline pilots. But people think they can go on some course, shit out a few lines of javascript/ruby/whatever and go get a job.
Current crop of MBPs is not like the 2015 MBPs. The 'Pro' has been beaten out of them.

Otherwise, agree.