skysight-inc/HackerNews huggingface dataset:
I forgot about that other ABA issue.

Still, that's easily solved: 64-bit version number + 64-bit pointer (or 32-bit version number + 32-bit pointer) for a 128-bit (or 64-bit) compare-and-swap.

All modern CPUs support 128-bit CAS.

EDIT: The version number is incremented by +1 each time. It is unlikely that you'd overflow 64-bit version number and risk an ABA problem, though 32-bits can be overflowed surprisingly quickly in today's computers.

--------

EDIT2: Note: I'm pretty sure (but not 100% sure) that the Head of a linked-list stack can be "simply" compared-and-swapped to remain lock-free and 100% valid (ie: 64-bit compare and swap over the 64-bit pointer). I did not mean to imply that you can "CAS any arbitrary node of a linked-list". A fully generic linked list is possible and I've seen it with the 128-bit CAS operator, but that wasn't what I was going for originally.
I think we all understand - very well - exactly what happened here. Apple has a law firm that scours the internet looking for Apple IP being used improperly. Unfortunately, they didn't think to carve out exceptions for fans and historians, so things like this get taken down as collateral damage in a war on actual IP theft.

Ideally Apple would re-release all of this old footage with a permissive license, but the bureaucratic red tape at a large organization is probably immense (not to mention the fact that they'd have to scan it all to make sure they aren't using any 3rd party IP, such as music as Steve Jobs walks on stage, opening Apple up to lawsuits).
You got a good chuckle from me on that last comment.

Thank you for sharing your story. I'm sorry about the pain re: Medication :(
Software Documentation Quality Survey
Hello,

I'm doing research on software documentation quality and created a website that allows developers to view a summary of various metrics reflecting the documentation quality of Java/Javascript/Python libraries. If you are familiar with developing software, please take a look at it and provide feedback through the attached survey questions.

https://smr.cs.ualberta.ca/docquality/
It is powerful. The contracts run 24/7 with 100% uptime. Hayden Adams created Uniswap with about 1000 lines of code using an elegant xy=k formula to create the first good automated market maker, Uniswap. It essentially replaces much of the functionality of an order book on a stock exchange, except it's decentralized, global and permissionless. Plenty of other good examples in web3.

https://app.uniswap.org/
Did it already, thanks for the hint!
In scripting languages it is a truism that anything you would want to do with a linked list is probably better done with an array. And given the overhead of working in the language versus things implemented in C, this is generally true.

However I have a fun use for linked lists where this is NOT true.

Anyone who has played around with algorithms has encountered dynamic programming. So you can, for example, find the count of subsets that sum to a particular number without actually enumerating them all. But what if instead of counting them, you wanted to actually find some?

The answer turns out to be that instead of using dynamic programming to get a count, you use dynamic programming to build up a data structure from which you can get the answer. And the right data structure to use turns out to be...a type of linked list! There is no faster array equivalent for what you get.

In other words, with a few extra fields for clarity, here is the basic structure for subset sum of positive integers:

{
current_sum: ...,
count_of_solutions: ...,
current_value: ...,
solutions_using_current_value: (link in one dim of linked list),
solutions_using_previous_values: (link on other dim of linked list),
}

I leave figuring out the dynamic programming code to generate this as a fun exercise. Likewise how to extract, say, the 500'th subset with this sum. Both are easy if you understand linked lists. If not...well...consider it education!
Of course, that's not remotely how the system works or has been used. This goes into what I've said elsewhere today regarding Twitter. I've seen SO much hyperbole on what's going on, when almost nothing at all is going on in terms of moderation changes. It's so very hyper-partisan at the moment.
Must be ReactJS!
> Has anyone else seen the animation of the two fists rhythmically striking each other at the same time, until one side accelerates their loop and strikes the enemy when they're not prepared?

Please come back and share this if you remember what it is or where to find it!
Why do people hate politicians?
Maybe the two of you can be that person for each other!
Exactly. So get behind the wheel and do something (eg. fork Chromium without MV3 or something like that). But if you're not willing to spend your own time and energy then what's the point of constantly complaining about conspiracies surrounding MV3 on HN. It's tiring to read.
I don't really relate or sympathize with the Silicon Valley types, no. I don't do the yoga and $8 latte-shakes and the Kegerators and Ping-Ping tables; I come into an office I rent myself in a flyover state, do a full day of work, and then go home, usually after sundown, seven days a week, and I make a lot less than those kids in California do. So it doesn't really burn me up to see the less productive ones trimmed off.

I read elsewhere that they all get 60 days of salary as severance, so I'm not interested in hearing sob stories about being fired right before the holidays either.

If you got laid off in these cuts, you'll do fine. Just find another SV company that's hiring, go in there with "Twitter" prominently on the CV and play up a sob story about how that mean ol' racist fascist homophobe fired you because you wouldn't give him a Roman salute or whatever, and you'll be back to working in an office with bean-bag chairs and free vegan flatbread brunches in a jiffy.
Biden said a similar thing recently, bragging that the (high) rate of inflation was holding steady.
Is the problem ADHD or is the problem WFH? hmmmm
> Personally I wonder why Amtrak doesn't offer a "Presidential" fare

they should call it "railforce one"
> Solar/storage will certainly power a geothermal heat pump, replacing an oil burner that would otherwise burn ~diesel.

Will. One day. Doesn’t today. Inflation is happening today.
The Snap's build instructions do nothing but download the .deb and repackage it into a Snap.
> Yes, you do die of thirst if lost at sea. You can't drink the water

You say that as if I hadn't already pointed it out. Being unable to drink the water doesn't mean you die of thirst while at sea. There are many well-documented examples of people surviving at sea for much longer than it would take to die of thirst. It doesn't matter that you can't drink seawater; you can get water in other ways.

But in the desert, you'll die.
That's exactly it though. For many it's as much a home as an investment.
I have not done any systematic check, but I often see this type of inverted curve in product reviews. -- Though either the 5-star side or the 1-star side will be significantly higher than the other.
You can be in favor of this, but don’t act like it’s not a cause of inflation.
THANK YOU!!!!!!
Cancel culture is a circumvention of democracy and justice. No trials, no votes - just a handful of loudest, most reactionary people stamping their feet and screaming until they get what they want.

Yes, free speech allows cancel culture to exist, but that in itself doesn't make it good.
Does Twitter do this for other governments or just the White House?
All of their builds have shelf lives of 90 days. You must update at least that often or your app will stop working, so it's a non-starter for inclusion in the official Debian repos.
Yeah life become complicated. I mean in a sense that the decision space got much bigger. Now thinking a lot if I'm really in the right place/country if things moove so slow. Trying to outsource things is a good idea. Guess this is the way to go.
I'm not sure this is the best application of a survivorship bias. I believe the point holds even when survivability is not a factor.

>My feelings about it may well normalize over time, but only if I survive long enough.

Based on what you said, it implies that well-being drops as a time-dependent function. Yet when we study psychological well-being, we see the opposite trend except at the very, very end of life when well-being dips. If your assumption were true, wouldn't well-being be expected to continually drop across one's life? (Unless, I suppose, the other assumption is that we bolster that through more consumption.)

I think this is change in how you initially framed the problem. If "better" can be objectively measured and "better" correlates to happiness, then I wouldn't expect it to normalize at all. The fact that it does change implies that subjective well-being doesn't actually hinge on how objectively better something is.
Mosty dequeues are implemented under the hood with arrays. A linked list usually requires a heap allocation for each element.

This is speaking in generalities though, since you could have an “alternatively implemented dequeue or a linked list entirely on the stack.
There will always be minor issues that can be amplified even in non-technical solutions (see also: the 'hanging chad' fiasco of the 2000 US election)

Giving voters the ability to inspect their ballots and the criteria by which they are considered valid at least gives the voter the control over making sure things are correct.
it's doable cuz most unis have nice scanning equipment u can use for free in the library. i have literally made over $1000 in a semester scanning a textbook nobody had PDFed and reselling it electronically. it wasn't even offered in digital format by the publisher.
How about letting new accounts be lurkers for a few days, let's say 5 to 10 days?
If he’s a co-founder, he probably has enough stake that no one is able to fire him, or there is no coalition of other owners large enough to do so that is tired enough of the antics to do so.

One of the privileges of ownership is being able to fuck yourself over by destroying your own stuff, after all.
When people asking my opinion for Rust, I loved to share them the Linkedin List implementation link:
https://doc.rust-lang.org/src/alloc/collections/linked_list....

And the first feedback is why so many unsafe blocks?
What is it Option<NonNull<Node<T>>> ?
'_ ?

Another reason to share, if you can understand Linkedin List, you are free to code in Rust ;)
As another commenter said, no choice. That's just how it works. Conversely, we're confused why banks in the US are willing to do a 30-year fix in the first place. That's an awfully long time into an unknown future to commit to anything, especially in an industry so conservative and ruthless as banking.
> "yea, that's how it is here."

Its also how it is in the UK and most other countries. There is a benefit that the central bank can control the economy much better. When the fed raises rates most people dont directly notice, where with floating rates the majority of households have less money every month straight away.
I think that's the exception, not the rule. Many large public companies have many board members with only trivial ownership stakes.
So, basically Pied Piper Net?
Thanks, I wasn't sure
Lots of reviews are paid. I get half my electronics refunded by leaving 5 star reviews on Amazon that sellers have asked for in the packages.
<marquee>Killjoy</marquee>
looked to me like the take away was that the rule was 50 years old. would you have been happier if the context didn't mention nixon, but noted that it was because of a law that had been in effect for 50 years?
Is the point of bringing up Trump to say that he is a bad person who was doing the same thing, therefore that thing is good? Or are we just making lists of people who have lied?
This seems like a step closer to the 'Her' movie AI entity (voiced by Scarlett Johansson) , or more closely, the scene where she converses with a Alan Watts, https://www.youtube.com/watch?v=Exe7yup2Yu0 where in the movie did something that this inifiniteconversation has done in terms of feeding in a deceased philosophers works and voice to create an AI representation of the person.
I wrote my own program that submits new RSS entries to my todoist account once each night.
I assume all online reviews are faked or at least biased. I don't believe any of them, especially those that appear on the same site or include affiliate links to the product being sold.
Modern CPUs detect patterns of pointer chasing common in linked list use and prefetch to cache just fine. Your comment would have been valid a decade or more ago.

And plenty of use cases are much better with linked lists than resizable vectors. Eg: queues.
We have reached stage 6 in iommi: docs from tests.

The docs are written as strings in a special tests directory, with special markup to mark code that is not included in the output, and special code for generating (at test-time) and creating inline iframes for results where applicable.

Code examples in docs that aren't executed will very often be wrong. That's just a fact of life. So we execute them all.
That may be true, but at a significant cost. Skilled labour contributing to GDP is rather more useful than trashing the place and making a quick dollar. Just comparing the dollars masks this.
it's typically implemented as an array (e.g. circular buffer)
Are we anywhere near close to selling out city halls in the way you describe, in such a way that "private companies own every method of articulating your views" is meaningful?

I specifically called out POPS as something I don't like.

FWIW, the HQ for the Greater London Authority has since moved, to a building owned by the Greater London Authority - https://en.wikipedia.org/wiki/City_Hall,_London_(Newham) . (Confusingly, as I just learned, it's not a city hall, in that it does not serve a city.)

https://en.wikipedia.org/wiki/Privately_owned_public_space says "the Mayor of London, Sadiq Khan promised to publish new guidelines on how these spaces are governed." - any progress?

> If someone says they support free speech except when private companies are involved, IMHO they might as well say they support free speech except on days ending in Y.

IMHO, those who support free speech without also supporting the right of free association ... are not actually supporting free speech. Hecklers do not have a veto right.

I would change it by having and enforcing significantly stronger anti-trust laws, restoring restrictions on media conglomeration, stronger personal privacy rights, including strict limitations on resale of personal information, and restoring postal banking for anyone to use. For starters.

Yet the result will still have all major online spaces be privately owned and nearly all Radio and TV channels, newspapers and billboards owned by private corporations.

Do you think it would still be so dystopian?

Could you elaborate more on real-world examples of your points #3 and #4?

Regarding #3 has many cases where a college has changed its mind on inviting a speaker, but every case I've read seems to be a valid exercise of a right of free association.
> soon most web applications will switch to using HTTP/3 implemented on QUIC so they won't even be using HTTP.

HTTP/3 is definitely still HTTP. QUIC is replacing TCP.
Cloudflare's valuation is for sure because its free therefore everyone uses it(~20% of the internet).

If Akamai was also free and as accessible as Cloudflare, they would start to grow for sure.
I think Manu's original "org charts" diagram needs to be updated to include Twitter.

Perhaps Musk on top with a gun, shooting everyone on the bottom?
I don't get why we don't just print receipts with anonymous hashes at polling stations, publish all counted votes with those hashes, and allow people to independently verify that their vote was counted. This would be so easy to implement. It's truly depressing that it hasn't.
AI Lex Fridman Interviews AI Richard Feynman
For completenes, here’s what Bjarne Stroustrup says on why you should avoid using linked lists: https://youtu.be/YQs6IC-vgmo
Or just use pumped-storage hydroelectricity
Over the years in various hiring threads it's been common to describe Twitter as the giant tech comapny you go to when you can't get hired anywhere else. Twitter has definitely had a reputation for a long time for being bloated and filled with less-than-competent employees. It's only earlier this year that I've seen the discussion shift towards this idea of Twitter being a competent group.
This is beautifully said and absolutely true. The HTML/js/css platform is truly incredible. Looking forward to seeing how people can use WASM in incredible ways!
...so the 'why' is because of spam abuse??
I did think about it, but my concern was that because I only take a small subset of top keywords for each channel, it's very easy to create a combination of tags that'll show no results. I'll play around with it and see if it makes sense to implement.
This is a really good use case.
Under-represented...where exactly? I'm interested in hearing which groups that you think are under-represented based on their percentage of the population.
We're in the year the free money dried up. How long can this last?
Amazon has a lot of paid-for reviews, so you would likely see it if you remove the paid entries.

In some cases on very bad products, you see tons of 5 star reviews and a lot of 1 star reviews - and if it's high on the fakespot list, I can only conclude it's a bad product.

I've mostly given up on Amazon except where I can't find the product elsewhere (or on time).
> Could also be just adjusting to inflation

Could also be? You definitely are not understanding the article.
I think Occam's razor applies here. In other words, it seems the more likely explanation is just that Musk is an egomaniacal rich guy. Imagining that Musk is playing 3D chess with the public psyche is overcomplicating things.
For context, when I worked at _The Guardian_, roughly half our engineering staff worked in Commercial - doing things for advertisers
The law doesn't give them the ability, as the DMCA is for copyright and with an unrestricted free software license, there is no copyright issue. The takedown itself was illegal.
Sorry for that. Can you share with me the Figma link in Discord? So I can take a look on what is happening.
He might well sell it if Google, or anyone, would pay him what he spent on it. That doesn't seem to be a near term prospect. When he finally payed for it even Elon didn't think it was worth that price.
Three star reviews feel more intuitive anyway: 1 bad 2 average 3 good.

But when it comes to product reviews, accounts of hardware failures is super important imo.
Thank you for letting us know! It does seem like that may have been the issue and we'll be looking more into how we can improve that with the team, feel free to DM us within the admin chat if you notice it still later on as well.
I'd say the marketing on at least this article is more geared at the electric energy. Heat is a form of energy for sure, but not a big enough one that it could "transform clean energy".

Nuclear can be ramped, but typically is not. I haven't dug into why, but I get the impression it's partially economic - the plants are very expensive to build and the marginal cost of a few hours of fuel is so low that they prefer to just run all the damn time. I think there may be some technical reasons as well. In general if you look at how utilities operate, they will ramp down literally everything else before the nuclear plants.

That probably applies less to the Small Modular Reactors people keep talking about, but those are still not really a factor.
No, I'm implying that the headline claim "transform clean energy" is overstated. It mostly applies for far-flung, low-density areas. This is still useful, but not transformative for most of us.
Sounds like they weren't doing a very good job then.
You'll still have people saying there were extra votes or that the votes weren't counted correctly. It'd have almost no effect on complaints about election integrity, just like... every other indication they're barking up the wrong tree hasn't had an effect.
Lower ratings most of the times are honest reviews and if seller replies to them you can see how much they care about the customer and if they are being honest business
Ironically Biden's pre-whitehouse career involved a lot of wanting to make cuts to social security.
I don't really care about Elon Musk as a philanthropist or not. He's like a one-man Apple in that way.

But.

- The environmental problem with electric cars is undoubtedly due to the batteries, both the manufacturing and the fact that the cars are much heavier as a result. But the idea that without electric cars more people would choose for alternative modes of transport is a bit dumb. The cars are inherently luxury vehicles, and in many places, the infrastructure isn't there for a low-car/car-free lifestyle.

- You don't need hyperloop to derail high-speed rail investments and projects. Simple bureaucratic ineptitude and red tape will do that. Like that story of how SNCF pulled out of California and went and built trains in Morocco instead, which was cheaper and more efficient.

- What's a huge technical liability is a bloated govt space agency that takes decades to deliver projects at 100x the cost of what a commercial vendor can do, while all the people who originally built the tech are retired or about to. And all that cost isn't just money, it represents an enormous amount of time and resources spent. Chastizing SpaceX for rejuvenating the space industry seems pretty ridiculous.

It seems like you're just taking Musk as a convenient target to blame, because he should spend his resources more "wisely", but each of the examples you cite is actually due to an enormous systemic ineptitude elsewhere.
False choices imho: nowadays just combine markdown, rst and living code in notebooks using the great Jupyter book system. It is build on sphinx but resolved crucial friction points by creating MyST markdown. Brilliant and simple to use. And it is FOSS. Check https://jupyterbook.org/en/stable/intro.html
Thank you for the suggestion!

Unfortunately for our specific service, where the focus is on the coaching relationship between the specific coach and member, doesn't make us best fit for a "drop in" session, at least for the core model. Creating and maintaining a trusting relationship with the coach is a multi-step (multi-week) process and for many members redeveloping this trust with a 2nd/3rd coach may be out of the question.

However, I could imagine this being kind of an add on to our normal sessions, and there could be times you could talk about something separate from your specific coaching journey with a coach that may or may not be yours.

You got my wheels turning.
It's not about censorship per se.
There will always been censorship. Removing spam is censorship, removing copyrighted material is censorship.

There's a difference between removing a politically neutral piece content which violates some arbitrary rules and censoring political news which benefit a certain party.
> the other party wants to get rid of social security

You should not repeat fake news. This isn't true. Promulgating made-up narratives does not help anyone.
And yes, we are basically reading figma files and rendering ourselves. The idea is to also support psd and illustrator files in the future.
congrats on finding something that works for you!
Unfortunately all the other languages have too few results, I just checked and Greek only has 0.7% as many channels as English in the db, so it'd only be a few pages of content
I have had similar experience. For me the most annoying was the work they put in making it difficult (nearly impossible) to use with conda environments.
Would you like to explain to the class?
The key part is how you react when the ToS gets enforced. Like I said, if your account gets suspended and the specific violation is brought to your attention, then either delete the offending tweet or revoke your agreement.