skysight-inc/HackerNews huggingface dataset:
Having used defer in golang, I'm firmly in the camp that scope-based cleanup like defer is bad and value-based cleanup like destructors is better.

Say you have this (pseudocode):

function foo() {
let bar = make_bar();
defer cleanup_bar(bar);
let baz = make_baz();
defer cleanup_baz(baz);
let quux = make_quux();
defer cleanup_quux(quux);

do_something_with(bar, baz, quux);
}

Now imagine you have multiple functions like this that all create bar, baz and quux's. Say these are unit tests and the bar-baz-quux are mocks or whatever.

So you decide to DRY by moving the creation to a common function.

function create_mocks() -> (Bar, Baz, Quux) {
let bar = make_bar();
defer cleanup_bar(bar);
let baz = make_baz();
defer cleanup_baz(baz);
let quux = make_quux();
defer cleanup_quux(quux);

(bar, baz, quux)
}

... except this doesn't work any more, because the cleanup happens within create_mocks and create_mocks ends up returning cleaned-up values.

You could fix this by switching to a callback approach:

function run_with_mocks(f: function(Bar, Baz, Quux)) {
let bar = make_bar();
defer cleanup_bar(bar);
let baz = make_baz();
defer cleanup_baz(baz);
let quux = make_quux();
defer cleanup_quux(quux);

f(bar, baz, quux)
}

... but now you have to make the caller use a callback that necessarily returns void and not any other type. (This is mostly a golang problem, since languages with generics can be generic on the return type of the callback.) It also means you can't easily do things like set variables in an outer scope easily, depending on how the language deals with closure captures.

Worse, if not all tests use the same mocks, you actually end up with multiple of these functions:

function with_bar(f: function(Bar)) {
let bar = make_bar();
defer cleanup_bar(bar);

f(bar)
}

...

function foo() {
with_bar(bar => {
with_baz(baz => {
with_quux(quux => {
do_something_with(bar, baz, quux);
});
});
});
}

All these problems are avoided by having destructors.
It's 1280 X 800 on the device, I wonder how it fares playing AAA titles at higher res on a TV or monitor.

Have only given the specs a cursory look so far but seems the GPU is (understandably) significantly less powerful than, say, a laptop GPU from a few years back.
These concerns don't apply to the claim that the set of real numbers is uncountable. Cantor's diagonal proof is constructive: given any countable set of real numbers, it tells you how to construct a real number that is not in the set. That is sufficient to show that the set of real numbers cannot be countable. Also, even though many real numbers cannot be written down with a finite set of symbols, Cantor's diagonal proof can be.
I'm planing on dual booting Windows and installing Maschine in order to make music.

Might also see if I can just wipe Linux entirely and go only Windows.
I’ve become a follower of the Collapse subreddit. I initially dismissed it as a bunch of alarmist doomers but the more I looked into the more I realized that even if they end up being wrong modern civilization is a lot more fragile than most people think.

Climate change, resource depletion and environmental damage all have the potential to severely destabilize the entire system we have built.

I really wish we had a lot more rigorous research into this subject.

Here’s an interesting presentation from Marc Jancovici https://youtu.be/Vjkq8V5rVy0

It’s two hours long and you may not agree with some of the alarming conclusions but they have clearly put in a lot of work into their thesis. More people should be aware of these possibilities.
Just seems like a boon to intelligence agencies, as it provides a super convenient way to blackmail people. Intercept or steal ID information somehow, and threaten to release information on their porn watching behavior.

There are already scam emails with this basic concept, such as falsely claiming to have video of you watching porn.
Not sure if this is relevant but these things have helped me with suppressing appetite in order of commitment/severity:

- Extra protein even a protein powder, egg

- Complex carbs like beans

- No added sugar

- No processed food

...

- Intranasal insulin (diy - i am not diabetic)

- Adderall
"One child per woman" would quickly drop the world's population to a level which is sustainable more or less indefinitely.

That population level is a lot lower than today's - probably between 1 and two billion.

The only reason humanity has got away with huge population growth so far is that we're drawing heavily on tomorrow's resources today. Those resources won't be there tomorrow.

If you thought that WW2 was horrific, tomorrow's resources wars will be wholesale genocide. And what makes you think you (or your kids) will be on the winning side?
Interestingly, by law New York City must provide shelter to anyone in the city who is homeless, qualifies for relief and requests shelter. So it's not just that city government happens to be more supportive of its social services programs, there's an actual legal obligation to shelter everyone (and they can, and have been, sued if they don't meet that obligation).

https://www.coalitionforthehomeless.org/our-programs/advocac...
Kudos to them only allowing accounts who have made purchases prior to June 2021 on steam to participate in the pre-order.

That's smart.
A detailed exploration of this sort of optimization

https://cantrip.org/sortfast.html

It seems like the code presented could be improved further, something like:

while ((pos1 < size1) & (pos2 < size2)) {
v1 = input1[pos1];
v2 = input2[pos2];
bool less = v1 <= v2;
output_buffer[pos++] = less ? v1 : v2;
pos1 += less, pos2 += (1-less);
}

This is particularly likely in Gcc, which will not generate more than one CMOV instruction in a basic block.

(Note: I did not check this in Godbolt. It probably needs some changes, such as s/(1-less)/(!less)/.) Where the compiler refuses to generate CMOV, such as when building without -march=native, something like

output_buffer[pos++] = (-less & v1) | ((less-1) & v2);

can be better than nothing. Again, maybe s/(less-1)/-!less/.
Always benchmark! There are numerous surprises in this area.
Proton is the answer to the chicken-and-egg problem of linux gaming. No one will make games for it because no one games on Linux because no one will make games for it. With Proton and this, they’re trying to bootstrap a Linux gaming community. From there, native ports will happen when the community is large enough to be worth optimizing for.
Structuring your Python machine learning projects: an opinionated review (2021)
Absolutely - And we already have this in the form of e.g. TV commercials, and, more recently, youtube sponsored segments. I vastly prefer getting ads relevant to what I'm currently looking at to something entirely different based on what The Algorithms decided I wanted to see.
> Is that not extracting wealth from you?

Nope. What I did with what I purchased has no relevance to the transaction. For example, I could have resold the food in my restaurant for $10.

Wealth can certainly be destroyed. The people doing the destroying are "extracting", not the people who sold it to them.

> you are confusing value and wealth

Not at all. I think you'll find it impossible to define the difference.
An excellent article, cheers! For those scrolling through, the article is written by a developer of Valorant, a recently-released FPS. He talks about his efforts to implement a system to prevent wallhacks and the challenges he encountered while doing so.

>Cheaters use wallhacks to see opponents through walls. In a tactical shooter like VALORANT, this gives them huge advantages when it comes to individual combat encounters as well as strategic decisions for the round as a whole. Wallhacks are especially insidious because they give an advantage that isn’t always obvious - your enemies could be using wallhacks... or maybe they’ve just figured out that you rush B every round. We really wanted to prevent that sense of doubt which lingers with players, poisoning their experiences long after the match.

>At the beginning of development, when we were talking about security goals for the project, the two things that came up over and over again were wallhacks and aimbots.

>League’s Fog of War system works because the game server withholds information about the positions of enemies until a client needs to display it. I knew if I could implement something like this for VALORANT we could solve the problem of wallhacks because there would be nothing for the wallhack to see. If an opponent was behind a wall, we wouldn’t send their location to enemy players, keeping them hidden until they decided to peek the angle. If we could pull it off, this seemed like the ideal solution - but we had no idea whether this would be feasible in Unreal Engine.
It should be very quick/easy to build a demo!
Australian funnel-web spider may help human hearts
© 1998 Systech Instrumentation Inc
The original AdSense was able to target pretty narrowly by matching adverts to the content, not to the user. The same thing seems like it would work for Facebook and YouTube.
> We can thus assign natural numbers to real numbers by assigning numbers to their expressions in a natural or formal language

This doesn't work because not all real numbers have expressions in a natural or formal language. This is easily shown by an obvious variation on Cantor's diagonal proof, applied to your lexicographically ordered list of expressions in any natural or formal language.
My prime number skills only go up to 47 because that's how high Number Munchers went.
Arch Linux sucks. Its the default OS on the Pinephone which I use as a backup smartphone (main smartphone is Android). I'm used to running Debian, which is rock stable. Arch Linux? I get dependency issues when I'm running the software update installer. Not once or twice, all bloody time. I mean, WTF? How would anyone want such in production???

NixOS is more sane because it has roll backs, and declarative configuration is like a gigantic black hole eating everything which was known before it.
There are some neat front end libraries like Leaflet and Cesium. The back end is quite varied since I often work with clients that have very custom and specific work they want done, sometimes on their own network isolated from the net.

I actually try to keep things as plain and boring as possible. Postgres for (structured) data storage, and Go has been great to create server that supplied the backend API.

In many cases we don't have to worry about massive scale, but rather limited hardware.

It's actually really amazing when you're limited to writing a lot of things by hand. Things can become extraordinarily compact and efficient.
Government regulation can and certainly does result in inefficient and mis-allocation of resources. Complaining about people who do follow such rules to make money is misplacing your ire.
From the article:

> Women have more trouble with assertiveness than men do: a study by the Gender Action Portal at Harvard University found that, in salary negotiations, women concede earlier than men, anticipate greater backlash, and are discouraged by others’ perceptions of assertiveness as a non-feminine trait.

Suspected this was the case for a while. Any time somebody mentions the "gender pay gap" I'll remind them of this.
Just read the original paper. This synopsis mostly just reiterates what the original paper says and concurs.

I personally don't think we're going to see any collapse as drastic as the models predict. People have been predicting collapse forever, but either way, this article doesn't add much to the paper itself.
San Francisco apparently was spending $60,000 per tent, not because the tents are expensive, but because they also have to provide services like showers, meals, and 24-hour security. [1]

I’m no expert, but this doesn’t sound much like normal housing or camping? It seems to be its own thing.

[1] https://www.sfchronicle.com/politics/amp/S-F-officials-want-...
VLC: Thumbnail Preview from Seek Bar
In theory that could be the case. I was reading how the Los Angeles Dept. of Water and Power actually owns a coal generating plant in Utah. They are now converting it to a natural gas powered plant, so that's a step in the right direction.
> Pharo 5 in 2017

Seems to be tagged 2020 — 5.0-202002121043 Wed Feb 12 11:06:45 UTC 2020 gcc 5.4.0 [Production Spur 64-bit VM]

The pharo.version file contains — 80
> Google and my employer deal with massive amounts of spam emails and gets it right 99.9999999% of the time.

Emails are literal treasure troves of data and are easy to pull signals out of for determining spamminess. HTTP GET requests, on the other hand, aren't - and there's no way to associate them with other spam-connected properties (like you can with click-through domains in emails) besides by blocking entire IP ranges for the ASN not moderating their customer base.
I'm not sure that a falcon 9 sized medium lift vehicle would have any room for cargo after using its margin for re-entry shielding, landing fuel and hardware.

Something New Glenn sized definitely could.
Yeah, it's been a while since they've posted anything about their comedy game "Wreckoons". Clearly it's not a major chunk of their job.
This is such a short-term knee-jerk reaction. We should be thanking Steam for their wonderful push to get gamers into shape. Toned arms might seem like a bit of a joke but when you consider you get your biggest exercise wins doing literally anything at all this will literally save lives. How can you not be for it? Is it heavy enough is the only question to be asked here. There is nothing valve won't do for us!
Ask HN: How do you know that there is No Name in this sentence?
There are two main operations for whole numbers: addition and multiplication. A basic question is what are the "atoms". With respect to addition, the atom is 1, since every number can be written as a sum of 1's, and 1 isn't itself a nontrivial sum. With respect to multiplication, the atoms are the primes, where primes aren't nontrivial products.

A cool thing about breaking a number into multiplicative atoms (the "prime decomposition") is that to multiply two numbers, you can just add up however many copies there are of each atom. Primes turn multiplication into addition in this way. In other words, each prime defines a sort of logarithm that measures the amount of that prime in a number, and knowing the "coordinate" in prime space is enough to determine the original number.

Then one might wonder what is the relationship between primes and addition. When you add two numbers, the prime decomposition of the result seems to be dramatically different from the decompositions of the summands. But there are patterns, like how the sum of even numbers is even. The abc conjecture[1] has to do with one of these patterns.

The relative order of the primes also is saying something about the relationship between addition and multiplication, since addition underlies how you compare two numbers. There are old results about the density of the primes as if they were following a random distribution.

I'm not sure if there's any deep structure that Recamán's sequence has anything to do with. All that seems to be interesting about it is that it evades our capabilities of determining whether every number eventually appears. The Collatz conjecture is similar in this way, though it is further complicated by the fact that it mixes the structures of multiplication and addition.

[1] https://en.wikipedia.org/wiki/Abc_conjecture

Going deeper, in algebraic geometry, what you do is take various number systems (called "rings" -- the integers are an example of a ring) and pretend each element is a function that measures some scalar quantity about an associated space. It's a bold and wild idea. There is a process by which you can figure out what the points of this associated space are, and, at least for the integers, there is one point for each prime. If you think about an integer n as a function defined on this space, then the evaluation of n at the point p ends up being equal to n mod p. All I'm trying to say by bringing this up is that primes are not just aesthetic, they have deep significance, with many analogs in other kinds of mathematics.
The young man was 'selected' by daddy, who bought the seat as the runner-up in the auction.
The lab leak origin is the subject of a popular conspiracy theory that failed to put forward evidence and served mostly as an expression of hatred and political side-taking (and therefore predictably engendered similar attitudes against the theory). This is irrelevant to its status as an actual theory in good faith (sort of like how mask wearing has a left-vs-right flavor independent of legitimate arguments).
In production you want what-dylan604-calls-stagnant instead of running the latest of the greatest. Yeah, I get it that you run Arch Linux on your laptop which has zero production relevance (nobody cares if you blow it up). But on a production system, where other people rely on, you don't want sudden surprises. Or, well, maybe you do, but those people who rely on it certainly don't.
This happens more than you would think. Sales people for every startup relentlessly hound execs. Every major tech company / vendor has an innovation team / teams / parnerships that the respective relationship managers try to get in front of execs. It's endless.

That's not to mention all the strategy consultants / management consultants love to bring their own innovative ideas to the table.
Every day I see people avoiding entire interesting languages for bad reasons. Little things they are used to and don’t yet know how to work around the change, but you would learn and it would be fine.

parens
braces
semicolons
operator overloading
generics
etc

the lack or presence of these things are never deal breakers, it can be worth trying to adjust because maybe you will find 900 things you love about the new way that make up for the one or two things you think you can’t stand.
My TV seriously wanted to put itself in some sort of demo mode if I didn’t connect it to wifi. That included restarting itself and redoing the settings every 30 minutes or whatever. It’s an insane ultimatum! So yeah it’s in a zone it can ping home base and nothing less. But for the 99% of people who can’t do that crap it sucks.
> this entire article is implicitly assuming a Platonist philosophical foundation

Is mathematical platonism still significant position between mathematicians? I thought it is outdated since Lobachevsky.
It's been like this for years, google's own bots struggle to interpret a lot of sites without heavy manual intervention by the site developers.
Underrated comment, well said. The "free" model supports billionaires and mega big tech.

When paid services are normalized, it opens up a huge amount of potential for smaller players to innovate.
Yeah, I think we mostly agree, but we do have this one small disagreement. If I understand you correctly, you are saying that human nature naturally leads to a system that demands superexponential growth. Let me know if I'm misunderstanding.

I don't think this is the case, but I could be wrong. The case I'll make is that many societies were going along just fine without a system like this, many for longer than this current system has existed before colonial powers invaded them (or missionaires "converted them) and imposed this system. I just got back from Hawaii, so I have the pacific islands on my mind. Their societies before european powers reached them were very very different, and human nature hadn't led to the same system with the same incentives. Our current system may be more akin to cancer, it starts in one small place then grows uncontrolled until it ultimately takes over everything and kills itself.

Edit: having said that, I don't think we have to end up in this dire place, but it will require us to end the incentive of superexponential growth which I don't believe is some kind of law of physics that we can't change. To steal of Geoffrey West, we need a unified theory of sustainability.
But then you need a different vehicle to refuel the original one. If you're doing that, why not just use that second vehicle for the mission and forget about reuse?

Reusing second stages in space only really makes sense once you are making your fuel in space.
(worse even: thumbstick)
... So basically they're exactly like every other content network that currently exists?
I wasn't sure, I haven't used Google search (directly) for years now. I guess I could have checked. I didn't realize that until I saw your comment.
Maybe you're not familiar with where he stands on the political spectrum, this might help:

- pro guns, open carry, stimulates violence often

- prejudice against the poor, believes in 'meritocracy' (aka they deserve it)

- believes in 'traditional family & church values'

- wants to privatize whatever he sets his eyes on

- wants to deregulate everything

- pro death penalty (a good criminal is a dead criminal)

- prejudice and violence against women (has threatened to rape a colleague in parliament, but would leave it alone cause she's ugly)

- prejudice against non-whites

- prejudice against LGBT (said he would pound his own son to death if he turned out gay)

- against all kinds of environmental protection measures (it hurts business!)

- still believes communists are around and trying to take over the country

- praises the military coup that terrorized the country from the 60s-80s, denies any wrongdoing at the time (thousands of deaths documented)

- publicly praised military personnel who have been convicted for torturing the country's last president during that time, said they should have done a better job

- would be happy to have the military back in charge, and runs the presidency like he has absolute power

- said the country should 'stop being faggots' when going against coronavirus measures

Not making any of this up. Sounds pretty 'right' to me.
Its just a small computer, really. You can even run Steam Link on a Pi if you prefer (Steam Link are not made anymore AFAIK). So I suppose you could argue the reverse: run something on it which you'd otherwise run on a Pi.
Right, but I think they're talking about a marketplace of friendly hackers that are motivated by big winnings if they successfully penetrate a system. As opposed to a security consultant who gets paid to test a company's security and write a report, regardless of the findings.

This does already exist, to a limited extent, as the security bug bounty programs that some companies have on public offer. For example, Amazon says they'll offer you $15,000 if you find a "critical" security bug in one of their services; Google offers up to $31,337 for discovering a remote code-execution bug. https://hackerone.com/bug-bounty-programs
Not sure. Patent? Hardware cost? Complexity?
Well the answer is no, you can't reuse kernel drivers and, no, that isn't the biggest barrier to adoption. Which is what I'm responding to.

The biggest barrier to adoption is lack of a working compiler.
A salary that’s acceptable to them.

Personally, I don’t need the most money somebody is willing to pay me. I need enough money for my goals in life. In fact, I’ll happily accept a number that’s lower than an employer’s maximum because it makes me a good value.

If their number is less than my number, I ask for my number plus a little bit and they say either yes/no. No stress and I’m perfectly happy either way.
Worse yet, sitting in one place like that with modern artillery and air support is just asking to be obliterated from beyond line of sight range. And if you have the ability to counter them with counter artillery or air superiority why not just shell or bomb it in the first place?

If you want to recover sensitive intelligence - if you are cutting off supply lines then you already lost as the obvious response is to destroy any intelligence so it doesn't get captured.