skysight-inc/HackerNews huggingface dataset:
Bitcoin uses almost as much energy we spend to run the internet datacenters [1],[2].

121 TWh/y for bitcoin (just bitcoin, not crypto), 205TWh/y for the Internet data centers.

Just pause for a second and think about the magnitude of the waste.

[1] https://energyinnovation.org/2020/03/17/how-much-energy-do-d...

[2] https://www.bbc.com/news/technology-56012952
You can't map an arbitrary stream into memory. That's one of the constraints of the challenge: it has to be able to work on a stream.

And even then, you can't memory map all kinds of files. This is what happens when you assume that you can:

$ ag MHz /proc/cpuinfo
$ grep MHz /proc/cpuinfo
cpu MHz : 2300.000
cpu MHz : 988.934
cpu MHz : 2300.000
cpu MHz : 800.044
cpu MHz : 2300.000
cpu MHz : 2300.000
cpu MHz : 2300.000
cpu MHz : 1100.949

In the optimized C program, allocation is not a bottleneck. Pretty much all allocation is done upfront and that's all you need. There is an allocation for writing a new word to the table, but that's also amortized and isn't a big factor in the performance of the program in this particular benchmark.

As for "bad spatial and temporal locality," can you be more specific? I guess the only thing I can see is perhaps inlining words smaller than some size into the same allocation as the hash table. But the hash table is otherwise one contiguous allocation.
Seconds ago, this story was #1 (169 points in 1 hour). Suddenly, it's #23 on the homepage.
What I usually do in the mean time is.... revise the board.

Sometimes I get 4 revisions in the pipeline where 3 versions I haven't even received yet are already obsolete and go right from the mailbox to the trash.
Right-Wing Propagandists Were Doing Something Unique
The Germans had already lost, hence the retreat back to Germany.
The word fortnight is in common parlance. Four score is not. But for the record the term bi-weekly is still confusing.
TIL:

"A fortnight is a unit of time equal to 14 days (2 weeks). The word derives from the Old English term fēowertyne niht, meaning "fourteen nights".

https://en.wikipedia.org/wiki/Fortnight
Well, obviously the Visionary Leader wanted this feature removed. They’ll push against user feedback, quote Ford (”If I asked what the customers want, I would still be selling horses”).

We should have a name for the fallacy of ”Jobs/Ford/etc ignored user requests and they were geniuses. If I ignore users, I’m a genius”
Look at https://www.enforcementtracker.com/.

Sort by fines desc :)
Few mines is all we need. The entirety of the USA would need just one such site.

There's plenty of nasty natural stuff underground and a well-designed mine storage site would be a lesser risk than continuously radioactive coal power plants of today.
Outranking it now.
Parler's stated goal was to allow that type of speech while Facebook at least put a cursory amount of effort in blocking it.
Ask HN: Side Hustle vs. Promotion?
I am trying to prioritise my time as effectively as possible. I have recently become really engrossed by the side-hustle/passive income success stories, not just because of the money they make but because of the learnings that are achieved in the course of setting up a 'home business'.

However, for a side-hustle to be successful, it seems to me that I need to create anywhere from 3-10 small projects before I happen upon the 'golden-child'.

From a monetary point of view (and effort prioritization pov), should I continue working on side-hustles/passive income, or is it more effective to work on increasing my salary via whatever method the market provides? (eg. internal promotion, competence building, job hopping etc.).
Many western countries have banned those things because of covid restrictions.
I'm going to guess here, but I think because in such a system anything is allowed till you don't bother the government. And if you think about it, unless you are part of a group disliked by government, most things you want to do doesn't bother the government. It's actually easy to live a "normal" life, because most people don't belong to a group disliked by the government.
I think you'll find both USD and the internet are much better vehicles for that.
> Just a small group of hyper enthusiasts

You are mistaken, Sir. We are legion.
Hey! The great burntsushi himself answering me.

Thanks for taking the time to clarify specifics. I appreciate your attention.

I guess in Go strings are just a slice of bytes?

Isn't it possible to do the same with Rust for this benchmark?
I suppose he mean temporarily because covid restrictions..
BIRD’s Journey to Threads
Yeah, this reads kind of like an early-1900s scientist going on about skull shapes. There are cultural reasons why "We ain't Europe" is true, but they can't be broken down to percentages of ethnicities.
Yup; I just updated ours to 13.9.4 and it was seamless as always (EE version).
I don't get it. The wording of the bugzilla specifically says

> The "Compact" density is a feature of the "Customize toolbar" view which is currently fairly hard to discover, and we assume gets low engagement.

So not only do they not have telemetry for that, they aren't even attempting to make it more discoverable to test if there's a correlation between "hard to discover" and "low engagement"?

I would use this but never knew this could be changed.
Pointer arithmetic uses it a lot. For example:

struct X
{
float a;
int b[10];
};

X x;

If you want to access x.b[3], then you have to add sizeof float to the address of x, and then add sizeof int times 3.
Nah, you're not wrong. As a bit of wine nerd, I've never heard other wine nerds care too much about how expensive a wine is. What they care about, and love talking about, is geography and grapes and production methods. Now some of those factors do correlate with price, but everybody is very aware that a lot of expensive wine is pure marketing, and that some producers are able to make wines that punch far above their weight, price wise.
Very interesting, these kinds of articles are (to me) some of the best content we get on here.

I'm no expert in any of the languages used except maybe C, at least I'm quick to form opinions about C code. In C, I'm not so sure that there is a well-established "idiomatic" concept, since C is not so tightly bound to a community as more modern languages. At least that's my feeling.

That said, I was shocked to see that the example code did heap-allocations to store integers. Single integers, one per allocation, per "counting bucket". I would store the count in the data pointer without a second thought, I just "can't" make 4/8-byte heap allocations and still sleep at night. Especially after all the concern about processing the input in large blocks for performance! Casting an integer to/from a void pointer should be pretty safe according to my gut feel. If that turns out to be false, I would dump the libc's hash API altogether, since it makes me do heap allocations to store single integers.

I tried making the change locally, and the time taken (as measured with the OP's benchmarking program) dropped from 0.11 to 0.10 on my system (a Dell laptop running an Intel i5-7300). That's at least something.
For more language benchmarks of this sort, there is a pretty extensive list:

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

Here, they have code samples and multiple implementations of each task in each language.

It's a great resource for, at a glance, how performant a language is at basic cpu and memory intensive tasks and how simple the related code is.

It still has the issue that some code is unrealistically optimized for the language. And also that many solutions use standard libraries written in other languages. It's worth looking at the source, therefore.
What about alternative chains ? actually I never read the energy use of eth and others.
Zoom Fatigue (The Differing Impact on Introverts and Extroverts)
This just makes it a good case for platforms like dissenter to continue the conversation.
Yes. They (GitHub) have been doing a lot worse. Last time I checked, they where completely down 2 days ago. [0] Before that, GitHub Actions was down 14 days ago: [1].

At least with GitLab, you can set up a self-hosted solution for free as a backup, unlike GitHub (Unless you want to pay a lot for GH Enterprise) where some have 'gone all in on GitHub Actions' and then some couldn't push that critical change [2] before the start of the weekend. Oh dear.

Maybe its time to setup a self-hosted backup VCS and not depend entirely on GitHub/GitLab web.

[0] https://news.ycombinator.com/item?id=26439075

[1] https://news.ycombinator.com/item?id=26301659

[2] https://news.ycombinator.com/item?id=26439213
Exactly this: recent Firefox mobile update. It is the worst happen to software I like to use and I use it on daily basis. It went bad. And I don't understand why they removed so many helpful features. It is time to (again) depart from Firefox and choose Chromium again.
wechat yes, but AFAIK whatsapp uses the signal protocol? Not to mention half of the US uses iOS which has imessage
No. Audience here just skews heavily towards personal freedom of movement and that movement happens to include movement of money. Collective HN mind, if there is such a thing, abhors restrictions that it perceives could impact its freedom.

And frankly, personally, I do not really care what my ruling class thinks is best for me. I will figure it out on my own, thank you very much. I have seen the job done so far.
6 months is a pretty low bar for a SCM tool.
>My bet is that the green argument will be the first attempt to neuter BTC.

Seeing a lot of seemingly inorganic noise on this. At the same time in the US, we are running a power grid like a country that inherited it from its imperialist colonizers from the distant past with no inherent capability to improve or even sustain it. 650K miles of transmission lines are oversubscribed and there are less than a dozen regional substations that act as an aggregate single-point-of-failure for the entire country. Texas was the canary in the coal mine.

The fact that we're not having the genuine discussion around improving the efficiency, cleanliness, and resiliency of our infrastructure lays the true capabilities of my country and the intentions of those in power bare: we are a declining power managed by corrupt and power mad psychopaths. Bitcoin is the least of our worries - it's actually a symptom of loss of faith in the system.
In WW1, the rape of Belgium might have been used by propaganda and some parts fabricated, but was still pretty real. And it was not an isolated incident, but a policy.
Hey I'm not sure the post-fap gasm is higher than some bitcoin hodlers.
What I'm saying that it's the best performing aspect precisely because the degree of speculation is astronomical as opposed to the degree of fiat printing.

Mind you I don't think speculation is a bad word. Here are some speculative bets that are in the price right now:

- It will be adopted as the global reserve currency
- No other crypto currency will replace it
- It will replace gold
- It will not be restricted by governments
- The price will never stop going higher in the long run
- Lighting network will appear
- More corporations will add it to their balance sheet
- A mature, reliable financial system will develop around BTC
- Mt Gox won't happen again
- Old coin holders can't dump into the market
- The chain can't be attacked
- The current leverage in BTC isn't a problem
- BTC lending is currently safe
- There will never be a run on BTC

Given how much speculation plays a role in the value, these are all fuses that if ever lit could cause significant down movements.

Note I'm not predicting any of these things. I'm just saying that 600x holds a lot of future promise that if unrealized will be painful in the short term.

Gold, having been around for millenia, does not have this issue. The market is mature, well understood, and well regulated.
If you think all governments are tyrannical I guess you need to move to a failed state. They are all lovely places.
The paper itself cites previous attempts of the “generations of cosmologists” to use models that do take relativistic gravitational effects, including gravitomagnetism. The common models aren’t Newtonian because nobody has tried anything else, they’re Newtonian because the previous relativistic models didn’t end up producing different results.

The model used in this paper is less simplified and correspondingly harder to solve, but note that it is still a simplification. If this paper’s claims are borne out, it is a methodological advance, not a foray into something cosmologists have been ignoring (let alone purposely ignoring).

This article’s failure to present what the actual paper says instead of a hobby horse narrative in no way absolves you from rudely accusing someone of incompetence. If you don’t like fibbing, I’d focus on backing your opinions more solidly (crazy idea: read the introduction of the paper) before you attack others.
Also exactly why the UK is happy to accept all sorts of shady money flowing in.
While I agree that one shouldn't trust WhatsApp and I don't use it, I don't think it is fair to simply label it as backdoored without further proof. It uses Signals encryption after all, despite its drawbacks (i.e. single-client only or multi-client with a rather bad setup).
`Vec<i32>` or `vec::IntoIter<i32>` being a subtype of `impl Iterator<Item=i32>` would imply that you could take have a vec of type `Vec<impl Iterator<Item=i32>>` and have many structs of different types stuffed in, that all implement `Iterator<Item=i32>`. You can't do that, ergo, it's not a subtype.
Same thing happening here: https://www.theguardian.com/environment/ng-interactive/2020/...
How is it a straw man? It seems an apt analogy given your critique of the ban: it does not matter the implementation details, if society deems some behavior against the public good, then there will likely be an intervention if the enforcement of such seems feasible.

It does not matter whether it's just some math or signals on a computer - torrenting CP is just "doing some math" on your computer, but it is similarly banned.
I assume it would be secret ballot so the future votes couldn't be directly bought. But I agree that voters will have little interest investigating the facts around dozens of laws proposed over 40 years ago, so the signal is largely worthless. I mean, are the Brits here for or against the Acquisition of Land Act 1981, and how does their opinion on this actually relate the the "performance" of compulsory purchase orders? How about the Animal Health Act 1981? No, vegans, despite how it might look on the ballot paper it's not about vetinary standards, it's about mass slaughter of potentially infected herds...

For every iconic wedge issue that public opinion changes on or investment that yields massive long term benefits, there are dozens of obscure minor regulatory shifts to niche industries that have been updated several times, and this isn't the stuff people will expect to win massive returns in 40 years on. As others have pointed out they're not attractive as future performance betting markets but very attractive as selling-current-policy-to-the-highest-bidder market.
Why do you care so much? Did you complain about the same thing with Steve Jobs, that we should be saying "Apple said" instead of "Jobs said"? Or Bill Gates? Mark Cerny? Or.. Well, in many situations where the CEO or other management of a company says something, where it's absolutely normal to mention who said it?
Exactly. The right way to go about it would be changing standard business hours (and school, etc.) twice a year.
At this point, I don't have it clear that this is going to be accepted and adopted. If it is, then it isn't clear what the economic impact will be. Companies still need the job done to be competitive, and clearly no one will be happy with pay cuts. In a country in which the industry overall is struggling, it sounds like a risky move. At the personal level, I understand the benefits of having more personal and family time, though.
Absolutely, he probably would not be the right hire to squeeze an extra 0.1% of performance out of Google search, but on any team which has to understand the needs of the legal industry (plenty of these at FAANG and non-FAANG companies) he could find himself in a senior role very quickly.
The hardest part is getting any traction with it.

Developers have no incentive to go the extra mile to publish on your store, because there are no users and it is extra work.

Users have no incentive to install your store, because there is barely anything on it.

OEMs have no incentive to preinstall your store, because you don't have any content (which devalues their product) and they don't gain anything from it. If they are willing to roll their own store, they at least rake in all the profit from it.
> third world's failing currencies

I don't think our currency qualifies as a "failing currency". The ₹ is quite strong, the people's trust in the government is quite high, and there is no need for citizens to run to other currencies.

As an example, the government outlawed all the cash in the country in 2016, with 4 hours' notice. This basically rendered 1 billion people helpless. But people still voted the for same government back in 2019, with an even greater majority.
Any examples of such data?
I’ve used Telegram for years now, along with almost all my family and friends. I’m a huge fan of it, and it’s basically the only IM I use anymore (other than Signal with some tech friends).

If Telegram adds ads, rather than offer us a chance to just pay them, I’ll delete it instantly and push everyone I know to do the same.

I absolutely despise ads of any kind, and go to a decent amount of effort to block them from appearing on any device in my household. I’m totally happy to (and do) pay for useful services/content but if you don’t give me the choice of paying and just stick ads in it then it’ll disappear off my devices instantly.
I use Telegram a lot and would gladly pay for it. However, that route is not so easy. People in Latin American countries can't really afford to pay for apps. If they have to choose between a free WhatsApp (who everybody uses) and a fee (which can be high in real terms for poorer countries) they will choose WhatsApp.

They can also do what companies like Steam and Netflix do, charge a differentiated fee by country. Some games which cost 20 US dollars might cost less than 2 US dollars in countries like Argentina (Steam)
Well, they are stretching and extending gitlab with more and more functions.. With a... Not so great code base..
I think everyone turned on him because he spoke the nastiest of truths at the most inconvenient time (week before elections). And lo and behold our political apparatus swiped their power back, and did not allow anyone to question anything. Even a top journalist with years of good work can be smeared in front of the public unquestioningly. And that doesn't mean squat since orange man baaad - exactly what the media ingrained in the masses(yes you included) for the past four years. Nation of free thinkers can't focus for shit.
Not everyone wants to sell user data. Their business is in private communication. WhatsApp reads through all your shit, whether you like it or not.
https://lists.freebsd.org/pipermail/freebsd-current/2010-Aug...
This will get you nowhere. Already, Monero successfully employs general CPU-s for its PoW. Bitcoin could switch to another PoW algorithm if critically necessary. Decentralized cryptocurrencies are beautiful hydras.
Tesla isn't saving much energy, apparently. Manufacturing and then repairing a luxury car uses a lot of energy.
I guess one threat in that scenario is if some other competing service actually does succeed in their ads driven model, they can attract a lot more users, because it's free? But I have no idea about running a company this size tbh, just thinking out loud.
> I would use this but never knew this could be changed.

Same here, but since it affects both the toolbar and the tab bar, I'm inclined to keep the density set to Normal except on small screens.
Let people pay for premium stickers. Split between Telegram and the artists. Win-win-win. Line does this well (at least it did in the past, I’m not in Asia anymore)
Related work from 2008: Mona Lisa in 50 polygons, using a genetic algorithm.[0][1] Sadly I think they refused to release their source, but I believe others have re-implemented it.

[0] https://news.ycombinator.com/item?id=4912964

[1] https://rogerjohansson.blog/2008/12/07/genetic-programming-e...
You could sue them in small claims court.
As far as I know, HN gives a push to submissions in the first hour to allow it to gain visibility. That push probably expired.
"some" people are happy to do that. Some people just don't want to pay for software regardless of anything else.

I have friends who had switched to other messaging apps instead of paying WhatsApp 1€/year or whatever it was, and by any measure I live in a rich country and paying 1€/year for my friends would have been pretty much completely irrelevant economically.
Please just let me pay for it.

I pay 12EUR/yr for email, it's ad-free and works. Happy to do the same arrangement for a IM service.
But they probably couldn't be hired as drop-in experienced SE's.

That's exactly what I said in my first post - "I doubt any of them could drop in to a high level coding role and be productive, but they could all do intern or junior level stuff."
Live Podcast on Clubhouse with Ryan Burgess, SW Engineering Manager Netflix
Github has had frequent downtime too in the last 6 months too. For a low bar, it seems to be fairly hard to clear.
I watched Citizen of the State recently, and the paranoid old man in that movie looks like a normie today.
If it's unattainable then the country with the strongest propaganda (like China) will come out on top.
I would love to hear more about this. Have you written about the process anywhere? Would you be comfortable saying where you moved?
I always found the "overpriced" theme on Apple hardware curious: it always sounds like people are comparing with "wrong" PC hardware.

Whenever I was buying a new laptop, I've only considered MacBooks because they did one thing I cared about a lot (high resolution displays in portable machines), and they were usually cheaper[1] compared to laptops I went for (lately X1 Carbons: worse performance [lower TDP CPUs], better battery life, worse but acceptable screen, keyboards way ahead — in essense, better keyboards and Linux compatibility + nicer design [personal take :] for worse performance and pricing on par or worse than MacBooks). M1 Macs now win even on battery life too, so it's going to be even harder to stay away from them going forward.

Still, keyboards and Linux compatibility will likely keep me in the HP/Thinkpad business lines for longer, but pricing is not the factor when it comes to choosing Apple computers or not for some jobs.

[1] Configuring a Thinkpad X1 Carbon 8th gen brings the Linux + i7-10610U 1.8GHz/16GB RAM/1TB SSD/2560x1440 screen up to $2022 today (down from "retail" price of $3140, which I hope nobody is paying anywhere, ever), and for roughly that money you get a 13" Macbook Pro with i5 ("up to 3.8GHz"), 16GB RAM, 1TB SSD and a 2560x1600 13" screen.
Regarding the C++ version: instead of copying data to a vector and then sorting the vector, it might be more profitable to use std::multimap<size_t, string>. This is a sorted container (likely rb-tree based) that handles duplicated keys.

Also, as somebody else mentioned, iostreams are slow. Even simple reading of file can be several times slower than plain C (http://0x80.pl/notesen/2019-01-07-cpp-read-file.html).
In Poland we have an exception as well, but it's for C-level managers only. How does it work France?
> “A project of our size needs at least a few hundred million dollars per year to keep going”

They have 550M MAU, using a freemium model and assuming a 1% payment conversion, that's 5.5M monthly paying users. With a price ranging $1 to $10, that can be $66M ~ $660M ARR, at least they can try.