skysight-inc/HackerNews huggingface dataset:
I was curious why the std::vector version produced so much more assembly, so I tried to dig a little. At least in libc++, the relevant code is (cleaned up):

template<typename T,
class vector {
private:
pointer __begin_;
pointer __end_;
__compressed_pair<pointer, allocator_type> __end_cap_;
public:
constexpr const pointer& __end_cap() const noexcept {
return this->__end_cap_.first();
}
constexpr size_type size() const noexcept {
return static_cast<size_type>(this->__end_ - this->__begin_);
}
constexpr size_type capacity() const noexcept {
return static_cast<size_type>(__end_cap() - this->__begin_);
}
};

So if the functions are fully inlined we should end up with

template<class T>
bool can_fit(std::vector<T> const &v, size_t n) {
return static_cast<size_t>(v.__end_cap_.first() - v.__begin_) - static_cast<size_t>(v.__end_ - v.__begin_);
}

At least algebraically (and ignoring casts) it should be equivalent to v.__end_cap_.first() - v.__end_, which is more or less what the manual implementations do. Maybe the optimizer can't make that transformation for some reason or another (overflow and/or not knowing the relationship between the pointers involved, maybe)?

If you change can_fit(Vec<S>) to:

return (v.f - v.b) - (v.e - v.b) >= n;

You end up with code that looks pretty similar to the can_fit(std::vector<S>) overload (the same for clang, a bit different for GCC), so it does seem it might be something about the extra pointer math that can't be safely reduced, and the casts aren't really relevant.

(I'm also a bit surprised that can_fit_fast produces different assembly than the Vec can_fit overload)
I think you're absolutely right, assuming the driver is paying attention. Too many don't. I encounter a lot of people bouncing around in a 10-15 mph range (sometimes 20-30 mph) on the highway while they are looking at their phone. This happens in all kinds of vehicles, but the coasting vs. regenerative braking impact on tires emerges in these situations.
And it gums up your engine more than gasoline does. Although this problem can be mitigated somewhat.
Reminds when William Osman hacked a dentist's X-ray source

https://youtu.be/IiJAq53knwc
And one with drag and drop reordering. or at least some form element that allows drag and drop reordering (ideally of arbitrary markup blocks)
On one hand, this extension is great.

On the other hand, it has to be one of the most direct way I can contribute to the fall of actual journalism in the internet era, allowing myself to read quality content that the writer ask money for without ever being reminded that I could pay for it ...
You can use userscripts [1] which is a safari extension which allows you to add userscripts, and the author of this work have an userscript [2] that you can use with safari (or any other browser)

[1] https://github.com/quoid/userscripts

[2] https://github.com/imdj/HNRelevant/blob/main/HNRelevant.user...
Agreed - quite a shock to realize the type of person who is now in charge (haven't kept up to date on leadership here)
Says a man clearly in the pocket of Big Boat.
There's really nothing about the e-mail system that makes it particularly good for anything secure at all.

- Easy to accidentally forward confidential tokens

- Validation of email sender authenticity is still piecemeal, and there are relatively frequently ways to bypass or work around validation.

- Mail is not end-to-end encrypted. I hope that it's at least encrypted with TLS, but last time I actually messed with talking directly to an MX, it seemed like TLS was still limited to smart relays, and actual mail delivery always went to port 25 as usual...

- The cardinality of e-mail addresses is not really defined anywhere. Gmail has plus addressing and ignores periods for the purposes of delivering an e-mail. Meanwhile, Google Workspace defaults to not ignoring the periods. Pretty sure some mailbox providers are case-sensitive and others are not. This means you can't know if an e-mail address at a given provider is unique. Best bet is to treat the entire damn address as a bag of bytes, but that opens up room for UX issues of all sorts, so it's hard to balance.

- It's bad that if your e-mail address gets compromised, any account you have that doesn't have some kind of secure 2FA is literally seconds away from being compromised, too. Obviously, this is not a limitation that is limited to e-mail addresses, people wrongly treat SMS as secure, too. The thing with e-mail addresses though is that they're easier to treat as secure because it is somehow still less of a crapshoot than cell carrier security, and also because literally the majority of online accounts can be stolen with just access to the user's email address, and it can be done quickly and easily, and in many cases it can be hard to convince support that you are the correct owner afterwards.
It may not be 2003 any longer, but what happened then is still reverberating. Seeing the US military and so many lives just get utterly squandered running imperial errands for the president's daddy's friends. Who wouldn't strongly discourage their own kids from putting themselves in such a vulnerable position, or be skeptical of the claim that the next war might actually be important?

Similarly so much of Russia's current war propaganda is repurposed anti-war themes from Iraq and Afghanistan. The US has screwed around aggressively intervening around the globe for so long, that it's all too easy to pigeonhole what actually appears to be reasonable support for a would-be ally into the same bag. And now the chief opponents of such aid are actually the same party that led us into those useless wars! "Can't get fooled again"

Those wars really were a total waste of our country's resources, international stature, and so much of our future. It was seen by so many at the time, including our allies. But the war boosters ruled the day, drunk on corporate/nationalist propaganda and those fucking yellow "support our troops" bracelets, as if the soldiers coming home wouldn't end up being some of the strongest anti-war voices. And now here we are.
That's too long. I just bastardize an existing tld on local network like home.net. Some browsers don't even allow made up names. Internal is too long to type.
> "RecoverableByAnyEmail"

Added 8 months ago [1]. And then one month later:

> "password_reset_any_verified_email"

Was removed. 7 months ago [2], *note* __verified__ word here.

No blaming or conspiracy intended in this post, just listing links to relevant commits.

1 - https://gitlab.com/gitlab-org/gitlab/-/commit/94069d38c9cd63...

2 - https://gitlab.com/gitlab-org/gitlab/-/commit/a935d28f3decf8...
Accelerating a five ton box to thirty meters per second in less than five seconds does tend to do that.
I'm bullish on this! I'll never pay to go to disney world or disney land (can never get these two parks straight) but this is a clear symptom of staying power of a technology.

This is better news for VR than facebook could ever manage.
The original title was clearer: Why do people post on [bad platform] instead of [good platform]?
Oh yeah the Ex google ex Facebook ex Amazon tech lead
It's weird to say but the "worst" parts (as in, questionably legal content and not just controversial content) in my experience has been in non English speaking instances. But just think of basically any community and they have a mastodon spin off, especially they have been deplatformed somewhere else.
That’s correct. I had a Kickstart 1.1 disk to boot from. I feel like the Kickstart on that floppy was as much a part of the A1000 as the Kickstart on the A500’s ROM was part of it. The only difference is was the media it loaded from.
The vast majority of content is essentially ephemeral. I don’t tend to go back and rewatch random videos from years ago.
Having recently participated in a of review GitHub Copilot to determine if we might allow it at work, I can say it appears that most of the utility is in tab-completion of what you were roughly intending to express, in very short form: variable completion, expression completion and function/method/class/object/value signature completion.

I personally didn’t see suggestions that would have significant impact on code quality - simply helping one more quickly express initial concepts including all the language necessities. Intellisense++ish.

I have only seen it assist developers who were going down a bad path get there more quickly. I have not observed anything that would encourage/discourage any design pattern or developer choice.

My gut tells me that the fact that devs can more quickly deliver a “solution” (bad/good) means that they deliver their fat PR and … well … it’s fat - so it’s not scrutinized as well as it might have been had the dev taken some time and another set of eyes hit their branch before they got too far along. It’s often much harder to get the proper attention and review on a large-ish PR than it is to peek in along the way.

I personally couldn’t find anything that I feel would inherently lead to lower quality code. I do see how devs could more quickly deliver their low quality code and it can be a challenge to deny that code.

I’m left on the fence. I’ve found it valuable for autocompletion of what I’m about to express, but I also have no illusion that it’s going to tell me that what I’m about to express is stupid and/or of low quality.

Those things about quality are also quite language specific. Not so much about guessing what you might be about to type for tab-completion.

Also note - it’s about efficiency - as GitHub has stated. Duh. Notice copy/paste declined? Tab-completion. How many jr devs have you seen that won’t just write out a function declaration, they copy paste an entire function, gut it, and write their code. Odd to me, super slow and lame, but even I have seen the utility of tab-completing empty function blocks that are 90% of what I wanted.

Sooo. I’m inclined to say it’s interesting - but in no way at all diagnostic, deterministic or a very good study when it comes to writing conclusions. These are hyperbolic statements. Nearly link-bait.
The difference in value in the stock market between tech corps and other industries is so absurd. I know it's based on the value each company can extract, not on their actual critical value of what they produce, so it makes total sense, but I believe this total disconnection between the stock market goal and "people/society" goal is part of why so many feel disenfranchised and disconnected from "the economy".
Thank the EU. Cookie dialogs trained people to mindlessly click ok to make them go away, so they convert like crazy.
Ahhh I wanted to use the esp32, and thus the esp-at for some specific stuff, but I'm a bit clueless about what else is available and what I'd be missing. What are the more stone agey parts of it?
Biden has said he’ll shut down the border if the Senate bill on immigration is passed

https://www.theguardian.com/us-news/2024/jan/27/biden-border...

The ball is in The Republicans’ court
And even better when that person is you.... and you can't remember how you fixed it last time.
Fair, so I guess it was most often IBM’s font with those programs. It definitely wasn’t Topaz, though.
Almost every technology today is the wrong choice if you look at it from the perspective of 20 years from now.

When Facebook was founded there weren't actually many good alternatives to PHP.
The WSJ just ran an article about how it may make sense for consumers to lease rather than buy, at this particular juncture. This is especially true where the vehicle doesn't qualify for federal tax credits if purchased, but does qualify if leased.
> In the past, Tan has not been receptive to jokes about him: When commenting on San Francisco community organizer Julian La Rosa, who had said that “millionaires and landlords should be guillotined,” Tan seemed to take the jest deadly seriously.

> “This is not a joke,” he posted. “This guy wants to guillotine people.”
Network Encyclopedia
In my country (third world), all the banks forbid phone usage due to insecurity. They can be used by criminals and their accomplice to signal who takes money and how much. Everything is paper, cash, and Ids.
I doubt Tennant paid tuition at RCS as many/most British subjects do not pay. As an American, my kid does pay. It’s also 50-75% less than the comparable American collegiate programs. Going into debt to do what you love is probably the best reason.
Pretty sure K'naan won the East Coast - West Coast diss war https://www.youtube.com/watch?v=_ouDZkX1Yh8
If timely is the key criterion isn’t sticking a caching layer in the middle the opposite of helping?
Sorry, it is really easy to automate Gitlab updates. Just one option is to use Gitlab in Docker+Compose, which works rock-solid, and have Watchtower (e.g.) do the updates daily. I have two Gitlab servers that do this since 7+ years and no issue whatsoever. Looking around, I see so many outdated Gitlabs - what are the administrators doing?
In this case, I would take discerning to mean noticing smaller details that other people might notice. That doesn't preclude having preferences.

Also, $5 for a pound doesn't really seem like a lot of money. Pasta is cheap in general.
Kind of, yeah. The main thing to realize here is that pointer subtraction is not just arithmetic subtraction of the addresses; it's also followed by a division by sizeof(T). (This is not obvious in this context unless you've seen it before.) Thus for the compiler to prove that (f - b) - (e - b) == f - e, it has to prove the remainders of each address subtraction (mod sizeof(T)) don't affect the result. This is certainly possible, but it requires compilers to actually do some extra legwork (e.g.: assume these come from the same array, then prove that implies the remainders don't affect the result, etc.) prior to reducing these to arithmetic operations. For whatever reason they don't do that. My guess is the reason is something between "we believe the general case would break too much existing code" and "we believe this special case isn't common enough to be worth it". But who knows; maybe if someone files this as a missed optimization, they would try to implement it. I haven't tried.

(There's also a secondary issue here, which is that sizeof(S) isn't a power of 2. That's what's introducing multiplications, instead of bit shifts. You might not see as drastic of a difference if sizeof(S) == alignof(S).)
> exploit the uneducated for our military

Just the navy, who instituted a similar change on Friday. This article about the army is from 2022 and the army reverted the change a week later. High school completion is a requirement again. It remains to be seen if the navy makes it the fully week.
Ruby. I kid, but also I don't.

Initially a single email could be passed into the API/form call and they would look it up. If found they would send a recovery to that email but it was the email the user supplied not what was in the DB.

Oh, no problem we looked it up so they are the same!

But then the ability to look up accounts from a list of emails was added. If any email matches the account lookup would succeed. Then they sent the reset link to that same user supplied value but OH NOEHS IT'S AN ARRAY NOW AND SOME MIGHT NOT HAVE MATCHED ACCOUNT EMAILS!

So they ended up sending out reset links to a tainted list of emails.

Rails "concerns" are the worst IMHO anyway, but looks like they aren't using strong params here either which is even worse. Also someone thought it was more elegant to reuse the tainted value which is par for the RoR course.
It's mentioned in the article (reference to Tupac song)
Well, I could see plenty of other use cases (i. e. "My machine is kaput, can you tether the hard disc and grab my data") but this one has a legitimate business edge if they intercept it.
They were all similar in a lot of ways. There are only so many ways you can draw the Latin alphabet in an 8x8 grid. There were plenty of variants to be sure, with different baselines, serif vs sans, kinda of descenders, and all that. Still, it’s inevitable that several are going to look similar.

But Topaz was a Commodore font, and I’m sure no other OS distributed it.
Is there a maximum time-of-effect there? i.e, if you work out in the morning, does it have less of an impact on sleep quality than working out in the evening?
Before oil was even a thing that region was incredibly volatile. It is the cradle of civilization after all, so I guess it was always bound to be a powder keg.
It’s a trade off. The higher the frequency the worse it does with obstructions, generally.
> The loudest people arguing against IPv6 are often hiding the kind of behaviour I really don’t care to protect. Drug purchases on the dark web or exchanging child porn are common reasons to be this paranoid.

> Normal people just use a VPN or a cloud proxy [...]

Ad hominem

<< The most common form of this fallacy is "A" makes a claim of "fact," to which "B" asserts that "A" has a personal trait, quality or physical attribute that is repugnant thereby going entirely off-topic [...] >>

https://en.wikipedia.org/wiki/Ad_hominem
You can focus on power output and if you're looking to clean that part by dirtying another, then you've won the debate. But that's not clean energy. You're not fooling any chemists with that logic. Clean energy takes into account the input side of the reaction. Mining lithium is filthy, emits carbon, introduces a waste cycle that we have no solution for, and distributes toxic waste across continents, especially Asia, in the current market, and across oceans. This is like the push for recycling plastics that lead to the giant plastic collection in the Pacific. Turns out shipping plastic is worse than burying it. Turns out mining lithium is worse than mining gas. Turns out you'll still mine gas for electric vehicles because you still need tires and roadways. What will you do with the excess gasoline? Have you thought about that? I'm just asking questions, but hopefully you have some answers for these questions because so far what I'm seeing is that people are advocating for electric, solar, etc. while offering no solutions for roadways, tires, etc. Meaning your plan is to mine lithium AND oil. To mine solar AND coal. To mine uranium AND burn gas. And those aren't clean solutions. Those are problems. Those are highly profitable problems.
I mean, I guess if all you care about is getting from point A to point B, a bullet train has no benefit over a steam locomotive.
I suggest the book The Man Who Beat the Market and watching or listening to interviews by those who worked there. There's enough information that gives a sense of what Medallion does and how it works.
Not currently. The press stories got recently taken down after the court dismissed the charges. I hope to write it all up after my immigration status is fixed.
That's another thing that I found strange. Why make the version you show the public so tiny, especially if you want to show off multiple people on it. I understand it's a prototype, but surely they can scale it up a bit more to a reasonable size before showing it?
I think radiatori has some additional advantages compared to this. Its shape is more symmetrical, so more consistent saucing, and it's easy to get the right size bite with a fork. Eating this pasta seems a bit awkward due to the asymmetric, oblong shape
I am already using an iPhone, so those things do not typically enter my calculus for selecting apps. I don't like it, but the alternative is using Android, so it's the tradeoff I am making. I know that isn't a very good answer.
From the linked Wikipedia, as a more direct answer to GP’s question:

> Modern computers use about a billion times as much energy per operation [than this theoretical minimum energy per bit of entropy “erased”]
That URL redirects me to various instances, some of which are not working.
Yesterday, I learned there is an inverse correlation between Alzheimer's and rates of cancer. Perhaps a genetic or epigenetic disease processes leads to an exclusive condition precluding other kinds of degeneration.
If you want to listen in on this or a lot of other frequencies try the various receivers available at websdr.org
And the fact that this post got flagged inside of an hour speaks to how biased HN has become. Move to Lobsters and let YC Founders have their TK wannabe techbrosf.org
There was zero speed difference or any changes I noticed last I configured my router, which is why it's still disabled. I haven't seen a single good use for enabling it.
I won't say its very high, just a lot higher than other places on the internet.
Both of which problems I could fix, using my mystery machine, if only this planet weren’t so depleted of the necessary Solvtonium.
I tried that earlier.

"Message: Missing configuration option: twitterv2apitoken"
I suspect more ultrasound BBB permeability with monoclonal antibodies will gradually become the standard treatment, hopefully before people show symptoms by routine blood tests now that one is available. The disease process needs to be caught and treated sooner.
So are dozens of statically, strongly typed languages. I’d rather write Python than php or c++.
Chaos requires nonlinearity. A gravitational body's motion affects every other body, which in turn affects the original body, etc. So you can't analyze the parts of the system independently and then just add up the results. A body's motion indirectly affects its own future motion. Spacetime tells matter how to move and matter tells spacetime how to bend, as Wheeler said.

In two-body problems, this infinite recursion converges to a closed-form solution, which means we can just write down the solution to the differential equations that describe the system's state and predict it at any time in the future.

Unfortunately there are no true two-body orbits in the universe.
And with 3 and greater numbers of bodies that pleasant closed-form convergence doesn't happen. You get sensitive dependence to initial conditions (SDIC), with faster-than-linear divergence, and you can't solve the differential equations: You have to integrate them numerically.

The time horizon over which this divergence happens for planets is long relative to the time horizons we care about, but it's still SDIC and it's faster than linear. The same thing happens with the weather (the "butterfly effect") but there the time horizon for divergence (the Lyapunov time) is short enough that we humans can easily notice it.

https://en.m.wikipedia.org/wiki/Lyapunov_time
I think both the website and the comment which you replied to are satire.
>the only other shared philosophical framework we have is the market, and whatever the limits of the church, the morals of the market seem to be making for a much colder society.

If things are colder, it's not amorality, it's colder as a side effect of cultivated self pre-occupation. For the "market" depends upon narcissism to keep consumers keep consuming. It's getting more pronounced with each successive generation.
Adam Curtis - The Century of the Self is the long history of how and why:
https://youtube.com/watch?v=eJ3RzGoQC4s&pp=ygUTY2VudHVyeSBvZ...
Ah, that sounds far more enjoyable.
No, because both options are about the same privacy-wise.

A better phrase to pull out is "neither necessary nor sufficient".
Xbox has been doing IPv6 for a long time I think. They've even advertised it: https://www.extremetech.com/internet/168394-xbox-one-will-be...
>I've never heard anyone claim that misinformation went down with the acquisition

Twitter Japan's recommendations feed was inundated with political bullshit nobody cared about.

Musk came in, fired everyone at Twitter Japan, and the recommendations feed changed to anime, manga, visual novels, games, music, and other such pop cultural subjects that everyone cares about. Japanese Xers love Musk for cleaning house.

The change was obvious to all, and personally I finally could justify making an account to better manage the handful of accounts I always kept tabs on (news postings from games I play, new art from illustrators I like, etc.).