skysight-inc/HackerNews huggingface dataset:
Incidentally, this automatic branch-if-zero from LLVM is being improved.

First of all, a recent LLVM patch apparently changes codegen to use CMOV instead of a branch:

https://github.com/llvm/llvm-project/pull/102885

Beyond that, Intel recently updated their manual to retroactively define the behavior of BSR/BSF on zero inputs: it leaves the destination register unmodified. This matches the AMD manual, and I suspect it matches the behavior of all existing x86-64 processors (but that will need to be tested, I guess).

If so, you don't need either a branch or CMOV. Just set a register to 32, then run BSR with the same register as destination. If the BSR input is nonzero, the 32 is overwritten with the trailing-zero count. If the BSR input is zero, then BSR leaves the register unmodified and you get 32.

Since this behavior is now guaranteed for future x86-64 processors, and assuming it's indeed compatible with all existing x86-64 processors (maybe even all x86 processors period?), LLVM will no longer need the old path regardless of what it's targeting.

Note that if you're targeting a newer x86-64 version, LLVM will just emit TZCNT, which just does what you'd expect and returns 32 if the input is zero (or 64 for a 64-bit TZCNT). But as the blog post demonstrates, many people still build for baseline x86_64.

(Intel does document one discrepancy between processors: "On some older processors, use of a 32-bit operand size may clear the upper 32 bits of a 64-bit destination while leaving the lower 32 bits unmodified.")
Brain Implants Give People Back What They Lost
quote from tiktok's webiste https://usds.tiktok.com/usds-myths-vs-facts/:
```
Myth: TikTok’s parent company, ByteDance Ltd., is Chinese owned.

Fact: TikTok’s parent company ByteDance Ltd. was founded by Chinese entrepreneurs, but today, roughly sixty percent of the company is beneficially owned by global institutional investors such as Carlyle Group, General Atlantic, and Susquehanna International Group. An additional twenty percent of the company is owned by ByteDance employees around the world, including nearly seven thousand Americans. The remaining twenty percent is owned by the company’s founder, who is a private individual and is not part of any state or government entity.
```
I appreciate the thorough response. So they speak to the motivation in part being "preventing a foreign adversary from accessing the sensitive data of 170 million U.S. TikTok users", but not at all the portion of the motivation to "prevent the CCP from having a megaphone into 170 million attentive US TikTok users" (my words). Did they omit that this was likely a motivation, or contend that it wasn't.

Edit: see https://news.ycombinator.com/item?id=42742762 for this same thread
What is it? Smooth scrolling?
The author also used domain specific language when they meant jargon.
According to "The Millionaire Next Door", this is actually a surprisingly common "edge case". The "rich" are the people who diligently save and invest, get their hands dirty at what they do, and don't care about pretenses -- they'll drive a beat-up pickup truck because it helps them at their work, and they can take it out for fishing and hunting, and they can have it paid off -- while that pretty Porsche is going to just sit in a driveway and rust, because it's too nice to take it for a run doing the things you want to do!

Whereas the "high income" people -- typically doctors and lawyers -- are spending lots of money on nice suits and cars and homes, but have little to show for it in terms of actual wealth.

Having said that, I don't mind the rich who aren't pretentious getting a discount. I'd call it a "pretention tax". What's further ironic is that the former tend to appreciate paying a little extra if it ensures that a job is well-done, whereas the latter tend to skimp on paying extra, and often get the poor-quality results you'd expect.

And yes, there's exceptions to both categories, too -- indeed, it's not as if it's hard to live within your means as a doctor or a lawyer, if you don't mind looking a little "lower class" as a result (and if your clientele are the working class, this may even be a bonus!). But it's nonetheless a fascinating dynamic to keep in mind!
The backend for this app is literally 300 lines of SQL + Rust -- very cool.
He also has a major donor who owns Meta, and a major donor who owns Twitter/X.

He also has a daughter who is the only American to hold patents in China without having to license IP to a Chinese company.

We are about to see some strange mental gymnastics out of 1600 Penn.
The answer is, of course, no. (Betteridge's law and all that)

Are there going to be massive changes in building codes? Yes.
Will that make owning a building more expensive? Yes.
Will the pundits tell you it is the fault of the what ever political party is in power? of course they will.

What is true is that 'pre-global warming' designed infrastructure is going to become uninsurable because it will be regularly destroyed. Once a track record is established for 'global warming aware' infrastructure, the cost to insure it will become more clear.

If you were wondering "How will global climate change effect me personally?", this is it. Your city's costs are going up as it has to rebuild itself to a new
standard, if you own a home your insurance costs are going up until you tear it down (or it gets destroyed) and rebuild it to the new standard.
> The internet and its associated gadgets stir reactions remarkably like those once directed at the press. In some quarters, futurist technophilia; more commonly, alarm at the social, political and cultural impact of these innovations, combined with neurotic dependence upon them.

Note that the article is not taking the simplistic position that, because 19th century French writers decried the emergence of the newspaper, and 21st century contemporary thinkers decry the dominance of social media, that the latter should be dismissed. It's more nuanced than that, and it's really mostly an accounting of how those Modernists thought about newspapers, with a little bit of "let's consider a modern example..." at the end.

One thing I'd like to point out, though, is that very common argument by which one waves away concerns about social media today because, in the past, Socrates said reading is bad, and Mallarmé said newspapers are bad, is really a canard for two reasons.

First, because the social media is not reading, or newspapers, it's a different thing altogether, and in any case what happened in the past does not strictly determine a new case in the present or the future.

Second, because I'm fairly certain Mallarmé and Proust and Baudelaire would probably look at the world newspapers created, and say "I was right about newspapers all along". It did create yellow journalism, it did create tabloids, it did redefine truth, and recalibrate leisure, and it did create doomscrolling, and make people think in different—and not necessarily better—ways. Technology changes the world, and people adapt to it. After the fact of that change, the world normalizes, and new generations can't conceive of any prior alternative way of being. But, that does not mean the change was an improvement.

As a consequence, it may be categorically incorrect for us to even try to evaluate these historical positions from our modern perch. Maybe all we can do is listen to what people living through that change said, and take it as read, pun intended.
First, they are american platforms, and already do a lot of filtering. It's not easy to ban an American platform either, and there is more leverage to twist their arm.

Second, how does your comment change the fact that there are multiple politicians on record saying this is why they are going after tik tok?
There's a podcast named "??? Tapes" (can't remember the ??? part) on the matter that seems to be blowing a lot of people's minds, some of whom were formerly very skeptical.
It's not even about them:

> If, for example, a user allows TikTok access to
the user’s phone contact list to connect with others on the
platform, TikTok can access “any data stored in the user’s
contact list,” including names, contact information, contact
photos, job titles, and notes. 2 id., at 659. Access to such
detailed information about U. S. users, the Government
worries, may enable “China to track the locations of Federal
employees and contractors, build dossiers of personal information for blackmail, and conduct corporate espionage.”

https://www.supremecourt.gov/opinions/24pdf/24-656_ca7d.pdf

It seems farcically ridiculous to me to ban the app because it somehow could let china blackmail CEOs.
This is just checks-and-balances at work, is it not? It’s by design.
I think Biden talk is a nothing burger. You need time to enforce things. Ban goes into effect on the 19th. Do they send out violation notice on 19th (Sunday), 20th (Monday and holiday and transition day) or 21st (first working day) when Biden administration does not exist.
That can't be true. The current record for non-concentrating cells is 39.5% efficiency using triple junction cells [1]

Concentrating cells are at 47.6% [2]

[1] https://www.cell.com/joule/fulltext/S2542-4351(22)00191-X

[2] https://publica-rest.fraunhofer.de/server/api/core/bitstream...
> The president's DOJ can't simply refuse to enforce the law.

I had to look up how they handle marijuana laws since that has the _look_ of the DOJ doing just that.

'In each fiscal year since FY2015, Congress has included
provisions in appropriations acts that prohibit DOJ from
using appropriated funds to prevent certain states,
territories, and DC from "implementing their own laws that
authorize the use, distribution, possession, or cultivation of
medical marijuana"'[1]

So in that case it's Congress that prohibits the DOJ from enforcing a federal law. So your point stands in that the DOJ may not be able to unilaterally decide not to enforce a law, but apparently congress can sort-of extort them into ignoring laws? Oh America.

[1] https://crsreports.congress.gov/product/pdf/IF/IF12270
Bits that can't be exported can be recreated by the new owner, most likely with material differences anyways not just because the new owner might not be able to recreate the original faithfully but because they might not want to.
Information warfare is a domain of war in the 21st century.
I don't think it will survive because non American cultural exports are not quite there yet you have to be born outside the US to understand the reach of Hollywood/cultural export as an opinion shaping tool

But then again Telegram survived and they had to resort to kidnapping the CEO so if it does survive the US pretty much gifted that space to a geopolitical adversary

But I'm pretty sure Langley/MD folk thought about this and are betting on it not surviving
Good point - I didn't realize that the new majorities are more narrow than they were in 2017 - but my observation is that he has more control now over these more narrow majorities. In 2017, there were still a lot of "Never Trump" or at least "old establishment" Republicans, and the party had its own brand and ideology that was distinct from Trump. That no longer seems to be the case. And the degree to which he can deploy an angry mob against any Republican that stands up to him, threatening primary challenges or worse, seems totally unprecedented to me.

I say this as a registered Republican since the Bush era who has never voted for Trump. I don't feel like anyone in the party represents me anymore.
I like the new marketing names they finally settled on.

https://en.wikipedia.org/wiki/USB#Connector_type_quick_refer...

USB ${N}Gbps instead of the confusing old labels and operation mode classifications.

I'll assume you meant the 5Gbps version of the link, which ( 5000000000/8/3/60 ) can drive about 3.47M (24 bit) pixels at 60fps, even raw. https://en.wikipedia.org/wiki/List_of_common_display_resolut... It looks like 4K mode would require the use of VP8 (likely no hardware included) or h264. Patent license issues are soon to expire, (though some BS one won't until 2030, not sure how that's even possible), but no remedy for older models https://en.wikipedia.org/wiki/Advanced_Video_Coding#Licensin... drat.
This law does not impose a Great Wall on the Internet in the U.S.
Great idea combining batman with libp2p! You guys have the heart in the right place :-).

Currently, your project seems to be an opinionated wrapper ontop of libp2p. For this to become a proper distributed toolkit you lack an abstraction to for apps to collaborate over shared state (incl. convergence after partition). Come up with a good abstraction for that, and make it work p2p (e.g. delta state based CRDTs, or op-based CRDTs based on a replicated log; event sourcing ..). Tangentially related, a consensus abstraction might also be handy for some applications.

Also check out [iroh](https://github.com/n0-computer/iroh) as a potential awesome replacement for p2p; as well as [Actyx](https://github.com/Actyx/Actyx) as an inspiration of similar (sadly failed) project using rust-libp2p.

Oh, and you might want to give your docs a grammar review.

Kudos for showing!
US Treasury Dep. imposes sanctions on Chinese company over Salt Typhoon hack
From the html:

// SmoothScroll for websites v1.2.1
This outcome is worse than I could have ever conceived:

1) People have valid concerns about TikTok. TikTok will remain, and those concerns will remain.

2) People have valid concerns about free speech. The law that tramples free speech stands and is upheld by the court.

3) People have valid concerns about unfair and unequal enforcement of laws. The law will be blatantly and openly ignored for political reasons.

Literally everyone loses. What a clown show.
For perspective on the the root issue, that number seems incredibly high, and it's still only ~.5% of estimated active American TikTok users.
And the employees are mean! Really mean!
the 40% efficiency is a claim about how much energy contained in the fuel can be converted into electricity*. It would make the most sense to compare this against either combustion engines or hydrogen fuel cells. Compared to those 40% is not breaking any records but could be extremely useful given the size, flexibility, weight, power output, etc.

Basically big if true, but this thing's 40% and photovoltaics' 20% aren't comparable efficiency numbers.

* They say wire to wire, IDK exactly what that means, but if it includes the losses from green hydrogen production then it seems like pretty wild efficiency. This doesn't line up with the numbers though, as H2 with 1250Wh/L * 0.4 = 500 Wh/L claimed density.
Sometimes dreams are all they have - especially if they're young.

I think we have to understand the reality that the economy today is not what it once was, not even close. I think a lot of people are looking to the influence trade since they see the corporate / political / economic future as failing them and they want to carve out something on their own while the getting is good and while they still can. Sure some just want to be famous but others appear to have a very realistic view of their prospects both as an influencer and elsewhere.
Show HN: The Phoenix LiveView and OTP Crash Course (Free Tutorial)
FWIW when I research stuff through chatgpt I click on the source links all the time. It usually only summarizes stuff. For ex: if you're shopping for a certain product it wont bring you to the store page where all the reviews are. It will just make a top ten list type thing quickly.
I moved from software dev to IT management. I took specifics I already new (I was always the guy responsible for understanding the hardware/implementation side, preventing/mitigating performance impacts, generating hardware requirements/recommendations, etc, creating the network portions of our troubleshooting guides) to sell myself. If I can be the remote/high level IT for all of my customers whom they go to when they can't figure things out as a random side port of my job, I can do it as my main focus for a single company easily.

Off the top of my head you could look into business process consulting, specifically ERP/MRP implementations/reimplementation/improvements along with custom report creation. I'd build skills generally via consulting (much lower bar to get into because the consulting company provides the 'domain competence' proof versus companies looking at your previous work history as proof), then key in on an area of interest and/or what industries where you live is a hub for (pharma, auto manufacturing, aerospace manufacturing, service centers) and apply for an individual position.

Maybe you could go a similar route for cybersecurity. When I was writing PCI compliant software the PCI validation people were idiot consultants working under the 'social proof' umbrella of the testing company (again you leverage the consulting company to satisfy the customer while you build up the personal credibility). That might be an easy space to get entry into that would also look good transitioning to something more 'real'. "I did security audits for VISA with oversite over customers totalling <X million> financial transactions annually, highlighting areas of risk/potential improvements" might sound impressive to a rando looking for a security person.

Edit: Not sure how to phrase this. This may be harder if you are a woman. I have found getting in the door is social engineering + confidence but sadly I'm not sure my 'confidence' part would work the same if I was female. I played center at football. I'm used to stepping in and taking control. I'm large and physically strong. I do not outwardly show stress. Eh, I don't know how to express this. But I think good looks/presentation/outward expressed masculinity/ability to project leadership has helped me walk onto random roles more easily as much as anything. Whereas a woman that stepped in the same way might be judged differently at some places.
What sentence have others with the same conviction faced in the past? Without that comparison, it is not a “no”.
Is it possible to visualize PlantUML? I tried to paste some but it wasn’t very easy on mobile.
This is belied by the lack of laws (and lack of provisions in this law) preventing American companies from collecting data and selling to the highest bidder, including China.
All powers are mutually antagonistic and it prudent to prepare to confront each other. As long as thoes efforts are equally matched and neither side is prepared thinks it can gain an advantage the peace is held as it held during the cold war.
"Some of you may die, but that is a sacrifice I'm willing to make!"

- Originally Lord Farquaad, emulated by every modern billionaire
Often I imagine storing light as fuel. Compared to hydrogen, it doesn't weigh much at all, and you can fit a lot in the same space.

(Yes, I know where the halfbakery is.)
I'd laugh if an effective way to present this is:

CAPTCHA:

Please copy `qwertyuiopasdfhkl`

Into here `<textbox>`

Edit: Quick (ai mockup) concept... https://imgur.com/mc0IdEA
Obviously it would be most effective with a longer string though.
Why should they have to pay for wildfires? That seems ridiculous.
Stepping into this pile of....

> Even after bytedance bent over backwards to appease the US?

In 2017 when TikTok was launched, there were no US government rules towards it, there were no demands made by the US government about TikTok - that part is the absolutely wrong part of your argument. You either didn't know that, or you are lying about it. Either way it's misinformation.

ByteDance didn't do anything to appease the US in 2016 or 2017. Bytedance offering Douyin for China, and a separate app TikTok for other markets is specifically about controlling the content that people see in China. TikTok is banned in China because content on TikTok isn't as filtered and strictly controlled in the same ways that China's government wants it to be for their own people - TikTok was specifically made for markets outside of China for this reason. The US had NOTHING to do with that, it is strictly about China controlling China's population with Douyin, or more specifically, not losing control of Chinese people by allowing anti-China videos to appear in Douyin. It's far easier for China to control the narrative they want if there are two separate apps that essentially provide the same user experience. The Chinese government controls TikTok, and I have not seen a single anti-China video in my wife's TikTok feed, so I'm willing to believe that they do have some control over content in the US too.

I hope that's not too complicated for you to understand.

>> Why do you lie so much btw?

>Everyone can read this thread and see that you are lying. Not me.

The other person is not lying. You may not be lying, but you really don't have your facts straight.
Yea, but LLMs cannot reason - we've all seen them blurt out complete non-sequitur, or end up in death loops of pseudo-reasoning (e.g. https://news.ycombinator.com/item?id=42734681 has a few examples). I don't think one should trust an LLM to pick Prime products all the time even if that's very explicitly requested - I'm sure it's possible to minimize errors so it'll do the right thing most of the time, but having a guarantee that it won't pick non-Prime item sounds impossible. Same for any other tasks - if there is a way to make a mistake, a mistake will be eventually made.

(Idk if we can trust a human either - brain farts are a thing after all, but at least humans are accountable. Machines are not - at least not at the moment.)
You'd think with all the H1Bs the US is importing some of those could bring in some recommendation engine expertise.

The truth is that the recommendation engine is power and people drawn to power in the US were too quick to abuse it driving out the old hands - and once institutional knowledge is lost it's hard to get back.
A small part of me: This is the dream, right? (Presumably) cashing out your side/main project. You made it. Good job!

The other part of me: This grows tiresome. Users are increasingly treated like stepping stools for founders (reminiscent of a pyramic scheme): Users help grow a product with their network, their content, or their money, get comfortable with that product, integrate it into their lives... and then it's yanked out from under them.

No, you're not (legally) obligated to provide a service in perpetuity, and founders/investors take on all the risk, but what would it look like for founders to push back (even a bit) and say "Listen, I want your money and you want my product, but you need to do something to take care of my users"? Seems far-fetched, but at some point I (the user) am going to stop taking a risk on your new product and just go with one offered by Google that will last forev— Oh.
I'm not driving, officer, I'm traveling!
Sorry me neither english no good the thing I'm trying to understand why do you think they used TikTok over YT shorts or Instagram Reels? What makes it better suited from a coding POV usage numbers suggest comparable MAUs for all three
Amazing stuff. I wonder what hardware you need to try it out.
The fact that none of this was put forward by the lawyers makes me think the tiktok lawyers were incompetent.

Or they knew it would get them nowhere because they understand precisely how unpopular pro-Palestine sentiment is among lawmakers.
Have you looked at the rules and standards? Last time I delft with Section 508 and WCAG 2.1 there were less then 100 rules. I think you have a point about to many standards, but I'm pretty sure most of the standards have an incredible amount of overlap. As someone who's blind I don't want to interact with my online banking website through AI because they were to lazy to insure it's accessible and would rather click a checkbox. I already deal with enough hallucinations about functions in third party libraries that don't exist, inaccurate product specifications, etc. I don't want to miss a bill payment because AI thought it knew what I wanted and sent money to the wrong place, or misread my account. I could see a place for AI conducting basic automated testing for accessibility and providing information to a human to verify but I'm not sure if such a product exists.