skysight-inc/HackerNews huggingface dataset:
This paper talks about how rotation of pointers can result in simpler (and potentially less error-prone) programs than sequential assignment when implementing algorithms that mutate linked structures; they go on to talk about some properties of rotations. They first talk about reversing linked lists, since that's the simplest example, but also other algorithms.

For example, to reverse a linked list in C, you could implement it like this:

struct node *reverse(struct node *head) {
struct node *prev, *cur, *next;

prev = NULL;
for (cur = head; cur != NULL; cur = next) {
next = cur->next;
cur->next = prev;
prev = cur;
}
return prev;
}

But given some macro for a left rotation (for 3 pointer variables) it could be implemented like this in C:

struct node *reverse(struct node *head) {
struct node *prev = NULL, *cur;

cur = HEAD;
while (cur != NULL)
LEFT_ROTATE_3(cur->next, prev, cur);
return prev;
}

(The fact that they mentioned this was pretty cool to me, as just recently, I had realized on my own that you could implement a list reversal function in Common Lisp using the rotatef macro, which does the same thing; implementation is below [1]);

They also show off how you could write the Deutsch-Schorr-Waite List Marking algorithm. In case it's hard to understand their code, which is in Guarded Command Language [0], I translated their DSW algorithm into pseudo-C.

// root points to the root of the list structure to be marked
// x points to a parent of z
DSW(root) {
z = root;
x = NULL;
while (true) {
if (z != NULL && z->m == 0) {
z->m = 1;
LEFT_ROTATE_3(z, z->head, x);
} else if (x != NULL && x->fl == 0) {
x->fl = 1;
LEFT_ROTATE(x->head, z, x->tail);
} else if (x != NULL && x->fl == 1) {
LEFT_ROTATE_3(x, x->tail, z);
} else {
break;
}
}
}

[0]: https://en.wikipedia.org/wiki/Guarded_Command_Language

[1]: List reversal in Common Lisp using the rotatef macro:

(defun destructive-reverse-list (list)
(do ((prev nil)
(cur list))
((null cur) prev)
(rotatef (cdr cur) prev cur)))
Not GP.

I watched the video and didn't learn anything new. I know UB pretty well.

> Compilers generaly do not abuse UB

It's disheartening to see this take from the guy who said that one word broke C.

It is also false, in my experience because some people, including compiler developers, think that compiler freedom is the definition of UB, not a side effect of that one-word change:

https://gavinhoward.com/2023/08/the-scourge-of-00ub/

So your claim in the video that such things are scary to compiler developers is sad. They have broken existing code; they are not afraid to.

I used to be somewhat confident (https://gavinhoward.com/2024/05/a-grateful-open-letter-to-je...) in the direction of C with you and JeanHeyd Meneide on WG14. But if you sincerely believe what you just said, then it seems you have changed your mind since you wrote that one word changed C. So I am not as confident anymore.
(Loved you in "Galaxy Quest"!)

Whatever you think of us, no lawsuit like this one, or data collector (Pocket, I think Anonym) acquisitions, or me taking > $25M out over eight straight years of declining market share. When we err, we fix quickly and avoid repeats.
> Material Design is focusing on support for Google's large-scale internal Wiz framework, and has reassigned the engineers working on Material Web Components. This places MWC into maintenance mode.

At one point, it seemed like Google was trying to move their stack toward stuff they could publicly release.

Now, they seem to be less and less interested in trying to release stuff like this publicly. At some point, if everything google uses is a proprietary stack, eventually people who have worked at google are going to have more trouble getting jobs elsewhere when all the tools they've worked with are things that nobody outside of google has heard of, and that could make it harder for Google to attract developers.
I think your response is overly optimistic; what you're saying is _possible_, but actual deployment of the policy leaves quite a bit to be desired.

So, when you say

> So no, you're not seeing plastic being replaced with plastic.

I think immediately of NJ's attempt to wrangle this problem.

> While the state’s ban — which, unlike those of other states, also prohibited single-use paper bags — led to a more than 60 percent decline in total bag volumes, it also had an unintended consequence: a threefold increase in plastic consumption for grocery bags.

> How this happened is no mystery.

> The massive increase in plastic consumption was driven by the popularity of heavy-duty polypropylene bags, which use about fifteen times more plastic than polyethylene plastic bags.

> “Most of these alternative bags are made with non-woven polypropylene, which is not widely recycled in the United States and does not typically contain any post-consumer recycled materials,” the study explains. “This shift in material also resulted in a notable environmental impact, with the increased consumption of polypropylene bags contributing to a 500% increase in greenhouse gas (GHG) emissions compared to non-woven polypropylene bag production in 2015.”

https://fee.org/articles/new-jerseys-plastic-bag-ban-backfir...

I'm supportive of the goal, but I really do think that making laws that are simple solutions to complex problems really can backfire and be a net negative, so we need to think several steps ahead.
No overlap is rather surprising, though as others have mentioned the article doesn't do a good job explaining what is actually being measured here.

The idea that the male and female brains are identical has always seemed to be more grounded in political expediency rather than in reality. While there are always outliers (which is why the purported no overlap seems odd), when you actually interact with people in the real world it doesn't take long to identify behaviors and ways of thinking that are more common with either men or women.

I suppose the root of a lot of the trouble here is that some people just suck and have to make everything a competition. If men and women are different, then one must be better than the other, right? Surely we couldn't just accept and come to understand our differences and therefore work better together.
Show HN: FinanceRants' Personalized AI Platform for Better Money Decisions
Wait, what's wrong with BMI1 instructions?
This man spends almost five and a half years in prison fighting for press freedom and now you think he is suddenly a grifter?

What planet do you live on or what U.S.Intel agency do you work for?
To be honest, I've never felt like I needed additional tooling to make learning faster or easier. You're inherently rate-limited by the bandwidth of your own brain, so it mostly comes down to finding information in the first place. It sounds like others haven't known where to start in the past, but I guess I'm lucky not to have ever had that problem. I'm drowning in more information than I can take in already. My bookshelves have always been and will always be full of books I intend to get to eventually. All the other things taking up mental time and energy, spending time with my wife, trying to have a family, making and eating food, sleep, exercise, software can't help me with. The only time-consuming activity I can potentially offload is paid work if I can find some other way to pay the bills.
Dimension 1 and dimension 2. They reduced a multidimensional vector output to 2 dimensions to make it visualizable.

https://en.wikipedia.org/wiki/T-distributed_stochastic_neigh...

IMO this study feels like it's saying "facial recognition AI model outputs vectors where female and male faces cluster closer to each other than not". Which to a typical human is stupid obvious.

The author is spinning up drama to get more engagement in his article IMO.
I second this, for programs to terminate eventually, is not a good goal to pursue. In practice if you need termination, you will need bounded termination, which solves your eventual termination problem completely.

I don't understand why people talk so much about eventual termination.
Your links appear to be identical.
>Your link does not include a denial

I don't recall calling for or making detailed plans to assassinate the leaders of the G7 at their recent summit.

I also don't recall claiming that you were a pedophile, a murderer and a cross-dresser.

So does that mean you believe I have actually said/done the above, as I haven't denied them?
> Note that I am discounting the years of hyperventilating messages about aspartame (in particular) leading to supposedly sweeping epidemics of cancer, autism, seizures and what have you. These are not based on any solid evidence, and after the original trials and forty years on the worldwide market, there would be solid evidence by now if any such things were happening.

Glad to see a balanced perspective on this. Everything in moderation.

"Lard" is "completely natural" and is bad in massive quantities, just like aspartame would be.
This is research-stage, calm down. Nobody is forcing anyone into anaphylaxis.
This [1] page talks about 500 EUR per display which would result in about 3000 EUR for a 3x3 grid or 1.27 EUR per pixel.

I love the idea but that's WAY to expensive for me.

[1] https://hackaday.io/project/159415-flip-dot-display-diy-cont...
Ask HN: HN community members are HN sponsored companies. Do you know other forum
If Australia truly loved Assange they would've done the thing Russia does where they start their own bogus competing extradition proceeding in order to repatriate the person. Not to mention that they stuck him with a $500k bill!
Exactly what I was thinking of with respect to kludges necessary for backwards compatibility.

I think Commodore made one monitor that supported a bi-modal scan rate, and it was something like twice as expensive as the the regular Amiga monitor range. I also recall a somewhat exotic NEC 17" flat-face CRT monitor that was completely out of the question pricewise for almost anybody except institutions, that also could do it by virtue of having a continuously variable sync clock from 15 khz up to 45 or so.
While they pick up in almost every location the drop off is sometimes "close by" like 3min walk to final destination (the app tells you in advance tho so you can decide to order or not). This is quite annoying sometimes and I picked uber instead.
If "near-linear" time was a bound it would be, but it's not. HM type inference is exptime-complete. Near-linear here is just "most programs people actually write type check in something close to linear time".
I think the one made out of bricks is just taking the piss! I also like the ones with porches ... such a homey little convenience!
The US government is looking into heavily limit availability of high end GPUs from now on. And the biggest and most effective bottleneck for AI right now is VRAM

So maybe Apple is happy to sell huge GPUs like that but the government will probably put it under export controls like A100 and H100 already is
Unfortunately project files don't seem to have folders or a way organize the hierarchy so I had Claude write a little script to dump all source files into a single markdown file with paths: https://pastebin.com/P6Cc1cmL

It uses fd which respects .gitignore by default. A 10k LoC C++/Rust/QML/JS project came in at about 50% of the context.

With this release they also added chat history search!
Wikileaks only leaked what they got handed to them. In the DNC case, it seems that the leaker was motivated by Clinton railroading Bernie in the primary. Meanwhile on the Republican ticket, the populist, Trump, was able to sweep aside the established Bush dynasty and other party insider favorites.
With how good Claude 3.5 is for coding, I would love if this supported private github repos - just connect my github account and provide a repo link which stays up to date as changes are made instead of having to upload content to a project.

I feel like this will probably be an option down the line - I wonder if it would be possible to replicate this functionality via the API as well, kind of like how there are open source projects attempting to replicate artifacts via the API.
https://archive.ph/9ZO1k
Isn‘t git the best example for a local first approach? So why reinvent the wheel?
Blog post: https://www.etched.com/announcing-etched

I don't see a lot of detail on the actual architecture. Hard to evaluate if it makes sense. The idea of specializing in transformers has merit I think. It seems like this is only for inference, not training. Although inference accelerators are definitely important and potentially lucrative, I find it hard to get excited about them. To me the exciting thing is accelerating progress in capabilities, which means training.

The title of the blog post is "Etched is Making the Biggest Bet in AI", and it is a pretty big bet to make an ASIC only for transformers. Even something like 1.5-bit transformers could come along and make their hardware blocks obsolete in six months. Actually I would love to see an ASIC implementation of 1.5 bit transformers, it could probably be far more efficient than even this chip.
A Burrito Is a Monad
Bayesian surprise attracts human attention
I feel like xylitol was never a particularly viable candidate as an artificial sweetener; as the article mentions, you experience digestive distress when consuming enough to sweeten a soda. Whether or not it's bad for you over time doesn't matter, it's already not a very good artificial sweetener. The sweetness to calorie ratio isn't very good either. It does taste pretty good, however, especially in things like mint candies that already have a cooling effect. (I was very excited about xylitol when I first heard about it. Excited enough to order a bunch of candy and eat far too much of it in one go. Didn't make that mistake again!)
It's been a long time since I've used Oauth2, and I don't remember how it works, I only remember pain.
If I had to run Linux as my main desktop again, for some reason, and it were an option, I would legit pay real money to have access to Apple’s various 1st party programs and tools on it. They’re so, so good.
Another, perhaps even more interesting question, is also how the first generation who are born in low g will evolve and adapt. And this, so far as I know, is a completely unexplored question. Mammal experiments might be interesting, but at some point you simply have to do it with humans, not only because of our fairly long gestation period, but also because of how absurdly undeveloped we are even once when born. There's every reason to think a human baby may develop differently than other mammals which do far more development within the womb.
Show HN: We made a tool that lets you research electronic components faster
Hi HN,

I’ve spent the last decade building hardware products like humanoid robots, 3D printers, and self-driving tractors. I needed a tool to navigate technical documents faster, so I created one with friends.

This tool helps with component search, cross-referencing, comparison, and debugging.

We’d love your feedback, whether you find it useful or not. Thank you!

Try it here: www.convergelab.ai
Great to share this with the world!
Good point. It’s just that some weirdness arises as stories (or adaptations) begin to pass as originals, which I think happens by default. More effort to not take the thing at face value, more effort to asterisk every story you tell. Sanitizing is sorta like politeness in its (usually mild) degree of dishonesty. We tend to accept this level and sometimes praise it. Both also usually add slight bias towards the teller’s needs.

Even the idea of telling _the_ story of Cinderella vs _a_ story of Cinderella adds a not necessarily warranted suggestion of what people hundreds of years ago moralized and embellishes it with a kind of “time-tested” truth of humans.
They really need to introduce a way to delete all previous chats... Other than that, I'm an absolute fanboy....
Paramount Erases Mtv.com Archives, Wipes Music, Culture History After 30+ Years
Paper (no free full text, alas): https://www.pnas.org/doi/10.1073/pnas.2310012121
There are a lot of new local-first tools these days but broadly speaking Triplit lends itself to more typical client-server applications with a central, authoritative server where other tools in this space are oriented around decentralization and server-agnostic systems.
Legally obligated, no. But there is an obligation of a certain level of reliability in order for a party to maintain a reputation that their products are worth adopting for anything important.
I love the idea but I think they really need integrations to make this useful. They need connectors to cloud storage and other SaaS apps. No one wants to manually monitor a Box/Google Drive/One Drive folder for new or updated documents and manually upload them into a Claude project.
In a language with errors as values, 100% code coverage (and no `unwrap()`) would force you to handle all the types of errors you mention.
The highlight color in Win8+ is customizable, although that only applies to apps using the new XAML-based frameworks.
>Why does Israel have such a privileged status with respect to other nations? If it were any other country, US news organizations and politicians would be up in arms about a foreign government directly manipulating US public opinion. But this one country is special. Why?

Religion, mostly. Despite its secular and liberal pretenses, the US and in particular the US government is deeply influenced by Conservative and Evangelical Christian interests, among which support for Israel is seen as a necessity to bring about the apocalypse and second coming of Jesus. Many Americans see themselves and their nation as metaphysically blessed, founded by and given a destiny by God, and see Israel with a similar metaphysical lens. Therefore, Israel can never been seen as merely a state. Everything it does is entangled in America's own sense of cosmic self-importance and destiny.

Also, Israel is good money for the American military industrial complex. Setting aside the many Americans who ultimately believe a global war allied with Israel against the Islamic world is inevitable (as per their interpretation of the Book of Revelations) and their influence on American foreign policy, the mere presence of Israel as an ally creates enough chaos and discontent to fund America's war racket in that part of the world indefinitely.

>Isn't this eroding free speech in the US? How is it constitutional that saying something about the politics of a foreign government could lead to increased prison sentences for US citizens?

It's particularly weird when you consider that antisemitism and racism are often given a full-throated defense by Americans in the name of freedom of speech, a nation that proudly declares the Klan can march in the streets and Mein Kampf can be bought in bookstores, but public opposition to the policies of the state of Israel - opposition by a public which includes many Jews - results in the swiftest and most pervasive crackdown on free speech that I've seen in my lifetime. Or at the very least since right after 9/11.
I’m pretty glad that these types of articles get upvoted to the top.
you would give russia a platform in NATO? I think russian wars with its neighbors speak for itself (and not just with Ukraine) to keep them out. NATO is for instance needed to keep russian imperialismus away from europe. It's also a deterrent against China, North Korea, Serbia etc
Bit of self promotion, but I do a lot of these types of tinkery projects (slightly less technical, but adjacent) on my channel "abe's projects"[1]

[1] https://youtube.com/@abetoday
Show HN: postgen – AI Personal Brand Builder for LinkedIn and X
Show HN: I built an AI mock interviewer for system design interviews
Hey HN! I'm Nathan and I built a free AI mock interviewer for system design interviews.

How many of you have gone through the entire software engineering interview loop only to mess up on the single system design interview? We've all been there—acing the coding rounds only to stumble on that one crucial hour of system design.

While there are plenty of resources to improve on system design—blogs, books, videos, and courses—none of these quite capture the real experience of an interview. The nearest would be paying any of the existing mock interview services $200+ for just one mock interview!

Enter Interview Shepherd (www.interviewshepherd.com/), an AI mock interviewer designed to help you prepare for system design interviews as realistically as possible!

What are Interview Shepherd's core features?
Real-Time Speech to Speech: Engage in natural, conversational practice sessions with our AI, simulating a real interview environment.
Currently 20+ different system topics
Post-Interview Feedback: Get detailed feedback to understand your strengths and areas for growth.
Interactive Whiteboard: Sketch and refine your system designs in real-time, just like during an actual interview.
Live Transcription: Receive instant transcriptions of your interviews for easy review and improvement.

Check it out today with the beta version for FREE and let me know what you all think!

Still not convinced yet? Check out a demo:
https://www.loom.com/share/0cd01ccc107e4d1386970a2d5196fd3d?...
The law on this is not at all that people can publish "whatever they'd like". It's a complex mishmash of written laws and legal precedents that have accrued over a long period of time. The end result is somewhere in the middle. There are legal ways to publish more information than the government or others would like, but there are also things that are arguably "press" that are not legal to do.
That's because the US exports plastic waste to other countries. So yes, there is good reason.
You can drop multiple files onto a project at once - I had to rename my .rst files to .rst.txt in order for that to work (GPT-4o zsh snippet):

for file in *.rst; do mv "$file" "${file%.rst}.rst.txt"; done

My https://github.com/simonw/files-to-prompt tool might also be useful here, for turning a bunch of different files into a single file to upload.
> when it seems to me the whole point of scary stories is to provide a safe place for children to feel scared and learn what it takes overcome fear.

That’s not the point of the original scary fairy tales. The point was to keep kids from danger by scaring them so much that they don’t expose themselves to said danger. The downside of this style of child raising , of course, is that kids are unable to realistically assess the danger and sometimes don’t shed their fears when they get older.
Discussion (42 points, 4 days ago, 56 comments) https://news.ycombinator.com/item?id=40743524
Upfront Leading $5M Seed Round in Daytona open source dev env manager
This is similar to how Rails handles secrets - https://edgeguides.rubyonrails.org/security.html#environment...

In Rails, the entire file is encrypted unlike here where only the secrets are
It is not "Bézout's identity" [pdf]
I was expecting someone mentioning this very good book. In a time where politics is dominated by populism, this should be part of the school curriculum. Reality is complex. There are often no easy or simple solutions to get a certain number up or down. Even the author of this book writes that being an expert in systems science does not give her the superpower of never being surprised by outcomes. But being able to think in systems is still a very valuable ability. A lot of humbleness and appreciation for complexity can be gained from reading this book.
> How will the compiler ensure that your program does what you expect after a bogus write somewhere in memory?

I'm not asking for that. I'm asking that the compiler not remove code because of a prior error!"

If the program prints garbage, that's good enough to fail on a test.

If the program cannot print anything at all, then so be it.

What's actually* happening is that an over-eager compiler is removing something that exists. I'm asking that it not do that.

I'm not asking that it ensures that the line after the error executes, I'm asking that it not be eliminated.
Clearview AI Offers a Stake in Its Company to the People Whose Photos It Stole