skysight-inc/HackerNews huggingface dataset:
It is unfortunate that the language doesn't have a built-in "average between two ints" function. It is a common operation, people often get it wrong, as shown by this article, and it may have a really simple and correct assembly representation that the compiler may take advantage of.

Such a function, even if it seems trivial, has some educative value as it opens an opportunity to explain the problem in the documentation.
Datadog Container Report
Wasn't Array.length 32-bit on Java when the article was written? In fact, isn't it 32-bit even now?

Moreover I don't see how you deny that using signed would lose functionality in this case—it's pretty undeniable that it gives the wrong answer in cases where unsigned would give the correct answer; the code is right in the article and you can test it out. This is true irrespective of any other cases that neither might handle correctly (assuming you believe any exist, but see my previous paragraph).
It tends to make you stupid, and seriously degrades short-term memory after prolonged use.
I've found switching every other drink for an Non-alcholic beer is working quite well. They're pretty tasty these days, and your hands are still busy with a drink.
> We thought anonymous people saying what they thought in a public forum would lead to the best idea getting shared the most

This is true in some parts of the internet, such as Hacker News and Reddit. The key seems to be good signal/noise moderation and users able to amplify content with cardinal voting (upvotes/downvotes).

I'm constantly finding great, new ideas between the two websites (especially when combined with search) and sharing them with others.

On other sites.. it seems as though the drive to engage users ($$) and a lack of a "downvote" option allows the flame-bait/low-brow/spammy content to take center stage. Which eventually drives users away (-$$).
As far as can be counted, the user count of just mastodon users, has surpassed six million [1].

> No one uses these platforms.

Six million is not no-one. It's relatively few, but absolutely a great number. I'm certain you'll have a hard time finding social networks with these amounts of users, that don't belong to one of the tech monopolies. Or with such numbers where the EU has no account or official presence.

[¹] https://bitcoinhackers.org/@mastodonusercount/10929745506607...
> There is no TLD equivalent of .gov for Europe

Which is why I said:

> is the closest equivalent

Also it's a distinction without a difference in the context of the discussion, a tld is just another kind of domain. In the same way .gov subdomains are reserved for US government and signify to the users that the content of the page has official value subdomains of .europa.eu are reserved for EU institutions and agencies

The same way it'd not be smart for the US government to give out john.smith@gov email addresses it'd not be particularly clever for the EU to give out francois.martin@europa.eu

And no, all official agencies and institutions use .europa.eu subdomains, the only exception in that page seem to be other bodies such as research groups which are not official branches of the EU
How many of these apps will drop support for Monterey within the coming year(s)? How many of your apps will actually stop working when there are no updates?

I think that if a Laptop lives for 6-8 years, that's quite good. If you don't think so, maybe Windows is a better fit for you because you can purchase fove (cheap) laptops for the price of one Mac. If you "need" your Mac for work, I think replacing it every 6-8 years shouldn't be an issue.
I don't know if anybody really thought this about the Internet back in the early days, say the 1980s, when networks were mostly restricted to academic institutions, large corporations and banks, and military communications:

https://networkencyclopedia.com/networking-history-1980/

The military had in past decades (60s and 70s) funded a lot of research into a networked system that would hopefully allow communications to survive a nuclear war, not exactly a utopian future vision:

https://www.britannica.com/topic/ARPANET

Few if any were thinking that networking was going to lead to some social utopia due to the ease of communication among groups of people online - although ease of information sharing was recognized as a big plus in academics, at least. The introduction of the bulletin board system, and then usenet, mostly seemed to be about technically savvy people sharing information, some games, etc.

https://www.makeuseof.com/tag/how-we-talk-online-a-history-o...

Then came the commercialization of the internet in the 1990s, the sale of ads, the rise of engagement metrics, and realization that there was nothing quite as effective as outrage porn (i.e. 'look at these terrible people and what they're doing! Tell everyone what you think about it!' )for drawing repeat users to your site. That's really when it went all sour.

I think the whole 'the Internet will bring people together in a beneficial way' theme was just a revisionist history put out by the PR people at outfits like Twitter and Facebook to put a patina of do-gooderness over what was essentially a predatory business model. I don't think such views were being widely promoted in the 1980s or early 1990s, at least I can't seem to find any such optimistic articles from that period.
That's a fixable problem.
The website is funny. They call themselves "transparency platform" and they even got a .eu domain. Yet their cookie consent popup is so not GDPR conform, because it only has an "accept" button and not reject button at all.

Fortunately trusty ol' element zapper gets rid of this and one can still look at the actual content one came for.
This is also the essence behind Shamir's Secret Sharing
where the sample at x=0 is a secret shared by k+t parties
any k of which can recover the secret.

[1] https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing
> Si vis pacem, para bellum.

We, Romania, had not fought the Russians in centuries until 1941, we did quite all-right. On the other hand the Polish did fight the Russians for centuries before that, they got their statehood obliterated as a result. Romania and Poland have long been historical neighbours of the Tsarist Empire/USSR.
While the USPS is a government department, it is allowed to charge its users and does so.

The people running elections don't charge voters for voting.

So I'm not sure it's useful to compare the two?

(That the Americans feel like they need government mail when the supposedly more socialist Europeans mostly managed to privatise their former monopolists probably tells us.. something?)
What do all the different fountain pen nib sizes mean?
So it is! I thought it was 27+8 bank holidays but I was wrong!
They tried to implement a standard algorithm themselves and failed. Doesn't mean that almost all binary searches are wrong. C++ standard library had a correct implemented binary search with more flexible signature when this article was written, they could just have used that one instead.
A MacBook looks to me like every other brushed metal laptop on the outside.

Therefore I shall assume nobody else can tell the difference.
There's the issue of integers overflow, on Rust they're only detected in debug mode not in release mode.

The MIPS had 'trap on overflow ' integer arithmetic instructions but sadly the RISC-V doesn't have those..
To these people as well; cooking is chemistry. Making household cleaners is chemistry.

To do chemistry with kids all one needs is a grocery store, an herb shoppe, and the right explanations for what’s going on.

But instead there’s bunch of waxing poetic about how the world has changed. It’s rather pathetic to think science should come neatly labeled in a box. The lack of individual creativity and imagination in our culture is stunning.
I run Linux on my 2015 iMac. Just upgraded it to Ubuntu 12.10, works great and loving the latest Gnome.
We aren't smarter for sure but we're less ignorant i'd say, if ignorance = unawareness of random facts (e.g. the weather, how old some actor is, if a store is open) now that we have devices capable of retrieving those facts at any time in our pockets. What to do with those facts, what facts actually matter, and what do they actually mean in the context of solving problems? Who knows really...
We were naive idealists, but not for the reason the comic says. We thought a lot of societal problems had their roots in centralized control of information by government and big media companies. Democratizing communications would lead to good outcomes for the oppressed. "Sunlight is the best disinfectant" and all that.

In some ways, that was true. Police treatment of black people in some parts of the US, for example, is incontrovertible now whereas in the 90s most people simply wouldn't believe it.

We weren't wrong about the sunlight, but we were wrong about what it would do - what the human reaction would be to the lights being turned on.

Rousseau has been in the ring with Hobbes, and Rousseau lost.
How much of the soybean crop is grown in the desert southwest versus the midwest?

Almonds is really the only contentious item on this list as they are grown in areas with water insecurity.
Neither the sea nor mountains work from Kaliningrad. The border with Belarus is pretty good terrain with a fair amount of roads too.
No, it's because the reason that integers overflow is that negative numbers are technically stored as larger than positive numbers in the Two's complement representation most computers use to store integers. Neither low and high are floats.

Example with 8-bit integers (from wikipedia):

Bits, Unsigned value, Signed value

0000 0000, 0, 0

0000 0001, 1, 1

0000 0010, 2, 2

0111 1110, 126, 126

0111 1111, 127, 127

1000 0000, 128, −128

When the logical bit shift is conducted on -128, -128 is treated as an unsigned integer. Its sign bit gets shifted such that the integer becomes 0100 0000, aka 64.
I went from Mac to Linux. POPos was what the machine came with. It’s very stable though the UI took a little getting used to, it’s not as big a change as I expected.

The upside is Bioinformatics tools run natively and it saves me from doing all my work on the cluster (just finished a multi day run that was “quick” using all 16 of my cpu cores. ).
I love this. Can you earn their trust, as in, become pals with them? Or is this more of a human desire. It's probably mostly food based priorities to them.
One of the craziest things about the invention of the ur-leica is the start of the 3:2 format. Before most cameras followed the 4:3 format as did movie film. Even most paintings before that followed a format somewhat similar to 4:3. It was considered natural as it seems to roughly follow the natural field of human high accuracy vision.

Barnack however did not have much of a choice. His camera was brand new and was a side project so he could not have a film manufacturer make film just for his camera. So he decided to use movie film but to run it from side to side (as not to obstruct the view of the photographer.

In order to avoid film wastage he decided to combine to movie frames to for one camera frame (ie to have round numbers and avoid random length off cuts). That worked but changed the aspect ratio. The film camera was 4:3, he moved the 4 from the horizontal to vertical and doubled the 3 by combining two frames to get 6:4, or 3:2.

And thus the 3:2 format was born purely out of practical necessity and without any artistic reason. And somehow this wide and short format lives on until now with many photographers swearing it is the best aspect ratio, even though I do not think there is any reason to believe so and nobody seemed to believe so before Barnack had this purely technical problem.
Think about why people wanted push in the first place: because the internet was now always-on instead of something you checked or surfed periodically. It has everything to do with carrying it in your pocket.

Personally I don't let apps interrupt me and I keep my phone fully muted by default.
Ask HN: What are the pros and cons for Google with Chromium being open source?
> the good side during WW2, i.e. on Russia's side (with the well-known exceptions)

There are some pretty fucking big exceptions there, my friend. The USSR was perfectly content to cooperate with Nazi Germany for their own benefit until they got backstabbed.
Err, what? The site says it's both real and fake. It glitched and let me press both to see the answers.

On "fake" it says "nice try, but real". On "real" it says "nice try, but it's fake, we edited the mouth".

So... which is it? Did I miss something?
I knew it. I'm not nobody.

Sorry for pointing out, but such absolutists statements are easily debunked with a single 'black swan'.
The additional cost for the battery etc. makes this a less desirable solution. Meaning you won’t make up the money you invest.
We know that crows and many other animals use tools, which represents at least one level of linguistic abstraction ("It's not just a rock, it's a member of a more general category of things capable of smashing open food").

I've always thought that recursion, specifically the ability to apply abstraction to itself, was a unique human trait. We don't just abstract one level, we keep going - building tools that help us build tools, building social structures that facilitate the production of these meta-tools, etc.

So while we see other animals using tools that they find in their environment, I don't know of any evidence that they recurse on that, i.e. they always use tools for their primary purpose but never engage in systematic production of tools, or tools that make other tools. But given this article, maybe it's not mental capacity or linguistic recursion that limits tool making but something more mechanical like simply dexterity?
Didn't play for some time but pretty similar. MSFS spawns individual meshes for trees/buildings when you get closer so still a bit better imo, but keep in mind in game you are always pretty high so they didn't focus on first person view details.
Is there an appropriate price for a child's drinking water? 500/yr? 5000/yr? What if a company wants to use all our water to make really expensive luxury food and earn back everything it spends? Should we sell them all our water since they're the highest bidder?
Lots of Apis do this both Microsoft and Google's Apis require signed jwt tokens. I think this is the norm now.
I expect there's a whole class of pandemic-induced, alcoholism related deaths that will be severely delayed. If alcoholism can be acquired, which I believe it can be, alcoholics minted by the lockdowns could have decades before they start to drink themselves to death. For example the article mentions alcoholic cirrhosis -- see below, my liver is fine. I would speculate that the increases the CDC notes here are existing alcoholics whose physical deterioration was accelerated by the lockdowns and don't include those who began drinking alcoholically during the pandemic.

I've been sober for 6 years and drank like a fucking maniac for 15 years before that, averaging roughly 25 drinks per night for the later half of that. Even through some of that level of drinking I could show up to work the next day and turn in something that passed for a productive workday as a programmer. I expect there are a lot of people at this stage now.
Then make a citizen.eu site or something like that and hand out addresses!
I imagine the most efficient option will be to either crash the asteroids into the Earth directly (assuming they aren't too big), or "land" them on the moon for exploitation there. Sending a whole mining/refining rig to each asteroid feels a bit too high risk.
They won’t be Able to make it to a career in science. Since you need a PHD or at least a masters to do it you need to go through some top tier universities and invest some serious $$ into it. Science is for love is only a marginally better career choice than art.
At university we used finger.

I made my .plan file an ASCII art video version of the famous shot from Terminator 2 of the terminator doing a death-defying motorcycle jump into the draught channel: https://www.youtube.com/watch?v=V0pCE0N-EF0

The sysops politely emailed me, asking me to change it, citing bandwidth usage. It was about 800kb.
And not only the farm assets, but the other natural assets, not to mention the know-how of manufacturing (the stupidest thing we ever did was follow the MBA's recommendations that "labor is just fungible, ship it off to the lowest-cost markets").

>>"You can't take water and export it out of the state, there's laws about that," said Arizona geohydrologist Marvin Glotfelty, a well-drilling expert. "But you can take 'virtual' water and export it; alfalfa, cotton, electricity or anything created in part from the use of water."

Seems it is time to put a stop to a LOT of that. Fortunately we already are returning semiconductor & other mfg. Must keep this up...
Social problems are not only culture problems. They are also economic. They are mental health problems. They are education problems. They are industrial (logistical and infrastructural). And so on and so forth.

All things that would be problems even where you have only one culture. For instance, ask the average Japanese about Japan's social problems, from mental health up to and including the nation dying.

I think what you mean is that the cultural dimension is the only dimension you care about. Which is a valid view, but on the internet it won't be the only view. (Which kind of speaks to the issue the subject comic of this post was talking about.)
Not only that, but US digital law hasn't caught up to modernity. One can make the argument that European laws have, at least to a much greater extent.
Psilocybin Relieves Some Treatment-Resistant Depression Cases: Trial
Airlines closing seats because we (and our stuff) are getting heavier
The FAA is changing how airlines compute average passenger weight. The default is going up by 20 pounds. This will put some planes overweight if they sell all their seats
The only software I look forward to upgrading is Emacs. Everything else fills me with dread about what will break or what functionality will be lost this time.
The show’s premise is a nuanced, optimistic take on what humanity might have achieved had we continued the space race. It focuses on historical plausibility, a bit like The West Wing. The main characters “pay the price” for this early progress in the way you imagine a hero astronaut/cosmonaut might - with their lives and/or livelihoods.

I watched it with my dad however and he wouldn’t shut up about “wokeness” (we disagree on a few things). The show is effectively an imagining of “America, made great in the first place”, and at least the core premise - that we lost our hunger for exploration after winning the space race, _used to be_ a bipartisan talking point.

Absolutely recommend it. Also, the imagined space shuttles they get to come up with are amazing.
applicable here -- "A reflection on the lasting legacy of 1970s USDA Secretary Earl Butz"

https://grist.org/article/the-butz-stops-here/

many American hippy environmentalists cried in pain, since some of these farms are their birthing grounds; but in the mix was a hopeless morass of post-Civil War small holders with provably dysfunctional operations, and the promises of Big Returns for Big Capital on the other side of that fence -- where the grass is always greener.
> whims of a private American corporation

It's worse. Whims of one American individual.
For links or for just general formatting?

For links I just decided to leave out. Seemed blue was enough, and especially since link interaction in Bike only happens through link button. For general formatting I left out because underline formatting seems to be falling out of favor as a standard and when I asked in my forum most users said they didn't need it. Eventually I would like to read/write Markdown from Bike and underline isn't a part of standard Markdown.
I left reddit about a month ago after having been on there for years, substituting in healthier habits like running, listening to music, and meditation when I need a break, and have been much happier as a result. HN is pretty good like 75 percent of the time but yeah there are occasionally hiccups like the comment from OP that make it through.
The raw terrain texture and height data is probably a bit lower res in most cases. Some places have photogrammetry, in which case it looks pretty good and looks similar. Outside those areas, which is limited to mostly major cities, any structure you see is auto-generated using some AI algorithm. It looks at the satellite images, open street map metadata and more and guesses what kind of structure matches best. Cities generated that way look ok, unless you fly too close :)
He was also hysterically complaining way before anyone leaned on him.

The problem with transgenderism today is that it actually is extremely regressive to say that just because you don't conform to the male or female stereotype, you therefor are transgender and should transition.

It is the exact opposite of what gay acceptance strived for.
Some additions, as "exercise for the reader":

1. The finite field you choose has a minimum size. What is the minimum size field 2^bits for an RS(N,K) coding system? What happens when you try to construct a Reed-Solomon code with a finite field that is too small?

2. Consider a Reed-Solomon coding system which uses a lookup table for the finite field multiplication operation that fits in L1 cache. Given that the table already fits in L1 cache, how could you make the encoder/decoder faster, if you had a smaller finite field?
I see your point, I think I agree with you on second thought.
I’ve looked at the news reports and as far as I’ve seen they only reference social media posts which seem to be inconclusive.
As someone who has maintained a personal mastodon instance since ~2017, I'm quite sceptical of your hopes that this sudden influx of users will remain active.
Ask HN: Boycotting xams. What would happen to the US economy?
This year I am boycotting xmas.

My small family is not rich, but we are all doing OK, so we really don't need anything.

Su I'll buy something small and inexpensive for the kids, but that's just it.

SO and I don't exchange presents, we just treat ourselves to a yearly vacation.

So, what would happen to the US economy if we all boycott xmas and didn't buy anything out of the ordinary?
I don't want to be too New Age here, but spending time with your kid is infinitely more important than anything else you can do. Time lost, because, say, you had to file that last bug report, or stay on the phone the extra 30 minutes on Saturday, or whatever, is irreplaceable.

Children are not going to say, "spend time with me". They are going to say, "look at this!" or "I like it when it rains" or "Im bored with school " and these are just some of the millions of ways they are asking for your time and attention. If you dont give it to them, theyll find people who will, and the outcomes will not be what you expect.