skysight-inc/HackerNews huggingface dataset:
But the second sane_realloc now never frees. That's a problem shared by by the ISO C realloc.

According to ISO C, size zero can behave like this:

free(old)
return malloc(0)

and if malloc(0) allocates something, we have not achieved freeing.

There are ways to implement malloc(0) such that it returns unique pointers, without allocating memory. Or at least not very much memory. For instance we can use the 64 bit space to have some range of (unmapped) virtual addresses where we allocate bytes, and use a compact bitmask (actually allocated somewhere) to keep track of them.

Such a scheme was described by Tim Rentsch in the Usenet newsgroup comp.lang.c.

If an implementation does such a thing, adjusting the size to 1 will defeat it; allocations of size 1 need real memory.

(I can't fathom the requirement why we need malloc(0) to be a source of unique values, and why someone would implement that as efficiently as possible, when it's implementation-defined behavior that portable programs cannot rely on. Why wouldn't you use some library module for unique, space-efficient pointers.)

I would never rely malloc(0) to obtain unique pointers at all, let alone pray that it is efficient for that purpose.

I'd be happy with a malloc(0) which returns, for instance, ((void *) -1) which can be hidden behind some #define symbol.

saner_realloc isn't realloc; it is our API, and we can make it do this:

#define SANE_REALLOC_EMPTY ((void *) -1)

void *sane_realloc(void *ptr, size_t size)
{
if (ptr == 0 || ptr == SANE_REALLOC_EMPTY) {
return size ? malloc(size) : SANE_REALLOC_EMPTY;
} else if (size == 0) {
free(ptr);
return SANE_REALLOC_EMPTY;
} else {
return realloc(ptr, size);
}
}

Now, a null return always means failure. The shrink to zero, or allocate zero cases give us SANE_REALLOC_EMPTY which tests unequal to null, and we accept that value for growing or freeing.

The caller can also pass in something returned by malloc(0) that is not equal to null or SANE_REALLOC_EMPTY.
Ah, okay, thanks for explaining and cross-linking!
Isn't the brain kind of just a predictor as well, just a more complicated one? Instead of predicting and emitting tokens, we're predicting future outcomes and emitting muscle movements. Which is obviously different in a sense but I don't think you can write off the entire paradigm as a dead end just because the medium is different.
Why does the AI have to inject the creativity? It's supposed to guess what you want and generate it. The prompts in the article make it clear the author wants Harrison Ford.

If you ask it for a female adventure-loving archaeologist with a bullwhip, you think you'll get Harrison Ford?

What if you ask for a black man? Etc etc.

You're talking about how unoriginal it is when the human has asked it in the least creative way. And it gives what you want (when the content filters don't spot it)
>Well yeah, that's just some weird French place we bought and turned into a slave labor camp.

Well pack it up, that, the Evangeline legend and the Katrina episode of Boondocks round the tale out. Nothing else to see here.

(Actually, the slave labor camp is Mississippi these days [1])

[1] https://news.ycombinator.com/item?id=9354922;
https://web.archive.org/web/20201108140152/https://in.news.y...
Oh man, I remember in 2000 when I first started working in the industry we had this database build process written in Java that took almost 30 days to run. The delivery schedule was monthly, and if anything went wrong we'd have to restart from checkpoint and the database build would be late. It also pegged a 32-CPU SMP DEC Alpha machine for the entire time, which was, well... CPUs would regularly (once every other build or so) cook the socket they were in and have to be replaced. The GS-320 would hot-swap (semi-reliably) so it wasn't a HUGE deal, but it would slow it down and inevitably the build would be a day or two late.

Enter myself and a buddy of mine. First thing we discovered was that they were using regular java.lang.Strings for all the string manipulation, and it'd garbage collect for between 30 and 50 seconds every minute once the process got rolling. It used a positively criminal number of threads as well in our predecessor's desperate attempt to make it go faster. SO much time was spent swapping threads on CPUs and garbage collecting that almost no real work got done.

Enter the StringBuffer rotation scheme. John and I decided to use the backup GS-160 as a hub to read source data and distribute it among 16 of our floor's desktop machines as an experiment. The hub was written in C++ and did very little other than read a series of fixed-length records from a number of source files and package them up into payloads to ship over socket to the readers.

The readers gut-rehabbed the Java code and swapped out StringBuffer for String (and io for nio) to take the majority of garbage collection out of the picture.

The trick we employed was to pre-allocate a hoard of StringBuffers with a minimum storage size and put them in a checkin/checkout "repository" where the process could ask for N buffers (generally one per string column) and it'd get a bunch of randomly selected ones from the repo. They'd get used and checked back in dirty. Any buffer that was over a "terminal length" when it was checked in would be discarded and a new buffer would be added in its place.

We poked and prodded and when we were finally happy with it, we were down to one garbage collection every 10 minutes on each server. The final build was cut from 30 days to 2.8 and we got allocated a permanent "beowulf cluster" to run our database build.
> But to be displayed in MoMA she'd kind of have to be.

While I agree with you about Ono’s art, I disagree on this. I know art is subjective, but in my times at MoMA I’ve found it bimodal: works on display there either blow ls my mind or I just don’t feel anything about.
I was hoping this to be about development happening in containers/VMs that can run on my local computer or elsewhere, as I wish.
Not sure if you're up on the literature but the chemical imbalance theory of depression has been disproven (or at least no evidence for it).

No one is stigmatizing anything. Just that if you consume doom porn it's likely to affect your attitudes towards life. I think it's a lot healthier to believe you can change your circumstances than to believe you are doomed because you believe you have the wrong brain

https://www.nature.com/articles/s41380-022-01661-0

https://www.quantamagazine.org/the-cause-of-depression-is-pr...

https://www.ucl.ac.uk/news/2022/jul/analysis-depression-prob...
I doubt that since knowledge and education wasn’t wide spread - beyond cloisters, people didn’t general know how well the Romans had it.

Remember it took until the Renaissance until ancient texts (Greek and Roman) were “rediscovered” by European scholars.
In the short term rule breaking generally leads to better productivity.

In the long term rule breakers can just job hop .
I'm no geologist but I would think it would be hard for the outer layer to stay stable enough to harden to that degree, while the inner part is still liquid and cooling. On our own planet the crust is incredibly thin compared to the other layers, even while the mantle is cooled enough to be solid, and the solid mantle still moves around enough to break apart the crust constantly. Seems impossible for the hollow eggshell of the crust to not break and crumble into the retreating center at some point.
I've heard similar sentiments expressed as well, even from a person who was a vocal advocate for Trump in this last election. He is still hoping that this is 5D chess and just very temporary pain, but after the blanket tariffs from a couple days ago he's starting to openly admit that he isn't pleased. I guess time will really tell
Left leaning, but authoritarian, governments have also cracked down on universities. The issue isn't the political lean.

People with a more authoritarian bent view dissent itself as objectionable. That's central to their whole worldview. Any institution or social organization that allows debate or questioning things is a problem for them.
I'm potentially interested in this service, do you have a website?
I read Ken Williams' book and found it meh. I'm fascinated by that era (after having read Steven Levi's account in his own book, "Hackers") but Ken didn't strike me as a particularly compelling narrator/person.

I came away kind of sickened by the "corporatization" of art (and I think game development is a kind of art when it's at its best). Budgets, deadlines... Gross.

Wild window in time though that was.
>Here is her performance art, she is screaming in a microphone

anybody who judges an artist on the basis of one work is an ass. here are a number of those in a work that cleaved the art world into two hemispheres with a chasm between them https://www.youtube.com/watch?v=1CbDkRFjLAQ

been a long time since I read about it, but pretty sure iirc those are celebs making cheeky cameos in that piece
> Those are our error messages of today.

Is that in your .NET code? Time to switch to Java!
See https://ukfoundations.co/

Similar argument to the article, but in much more depth.

In a nutshell, the UK has made it legally difficult to construct new housing and many forms of infrastructure- electricity plants, roads/tunnels, railway, hospitals, etc.

As a result, these things take up a larger fraction of ordinary people's budget and also limit mobility and hence productivity, resulting in poverty or effective poverty even for someone with an income that would make them globally rich.
Oh yes I agree. Not trying to downplay the recent inflation at all. More musing about how it’s interesting that we’re mostly looking back to events outside of the US when in reality we can look to the US for much of this. Which isn’t to say don’t look everywhere more that it feels like we have a blind spot that we shouldn’t have.
Funny cause just today this made it to the front page of HN

https://animejs.com/

It has way fancier animations and scrolls like butter
I think they're just trying to inform you that you're painting with a broader brush than you might realize.

There are lots of flavors of Marxism out there, the one you're describing is often called "Orthodox Marxism" or the closely related "Marxism-Leninism".

It's now considered pretty outdated, with most of Marxist thought having moved on to less rigid modes of conceptualizing history and geopolitics, like Western Marxism (Frankfurt School), Autonomist Marxism, Eco-Marxism, Libertarian Marxism, Structural Marxism, etc.

There is a reason that "leftist infighting" is a century-old meme. Leftism is fundamentally a political movement grounded in moral philosophy, but since moral philosophy is an unsolved and likely unsolvable field, fractionalism is guaranteed.
Is a "gran" the lowest unit of human life?
What sorts of trouble and benign speech are you talking about?
I don’t know much about NYC, much less its transit issues, but it seems like congestion pricing is only marginally popular inside the city, and unpopular in the rest of the state: https://ny1.com/nyc/all-boroughs/traffic_and_transit/2025/03...

Whether congestion pricing is welfare-positive really depends on your utility function. I think rich commuters probably like it, and poorer people who need to drive for work probably hate it. My concerns are more related to political accountability, political incentives, and discrimination against non-voters, all of which exist here.
Have not read the book, but only deep learning has had such wild advancement that a decade would change anything. The fundamentals of ML training/testing, variance/bias, etc are the same. The classical algorithms still have their place. The only modern advancement which might not be present would be XGBoost style forests.
I don't agree with her worldview, but it isn't a contradiction. She paid into the system.
In terms of use of hard power against religion: Mandatory prayer in school was outlawed in 1962. Teaching creationism in public schools was banned in 1987. Teaching the Bible (and other religious texts) in public schools is mostly banned. Title VII of the civil rights act prevented employers and many other institutions from discriminating based on religion in 1964. These were all passed by the left.

In terms of soft power: Huge cultural movements (driven by left-leaning people) against church attendance and in favor of atheism really began in the 1960-1990 period. The hippie movement and all things associated with it, as well as the new age movement are big parts of this.

In general, I think you underestimate how much power religion had in 1950's America. It was constantly pushed on young people, and if you wanted to get a good job, you had to have "strong moral character" that was demonstrated by where you went on Sundays.
> The median American household has an income of around $78,000

What are the expenses of the median American household?
Looks cool. Os there any comparison with Green Sock?
> For offline-first, the user would be alerted that someone changed the record(s) while you changed them as well and ask what to do.

There are few sync strategies worse than "you worked hard on this, but now you have to choose to either throw away your change or everyone else's changes". May any product doing that fail miserably.
NYT 1975: Transmission Problems in Cars Linked to Ban on Whale Killing

https://www.nytimes.com/1975/04/17/archives/transmission-pro...
The article is about prices from last year.
The historical answer is because Congress wanted to be sure that employers could fire Communists for being Communists.

Of course, that's not my view. I think political affiliation should probably be protected, but it needs to be very narrow. You shouldn't be able to be fired for being a Republican. But if you post "Gay people should be executed," you shouldn't be able to hide behind "I'm a Republican, that's a political view!" any more than you should be able to hide behind "I'm a Christian, that's a religious view!"
I think the original title for this submission also called it open source: https://news.ycombinator.com/item?id=43580533
Not only but now the trust is broken

Let's say this was SomewhereElsistan and they elected someone who just cancelled contracts, backed out of treaties, refused to pay balances, fired entire departments and maybe even arrest your international colleague working there and sent them to a foreign concentration camp.

Afterwards they elect Johnny Reasonable who doesn't do this.

Would you go back with any kind of assurance it wouldn't happen again? Nobody stopped the first guy.

The US reputation in international markets is hosed for decades unless some dramatic reversal and patching comes in, by both Congress and the courts or some wild thing where the states override the federal government somehow.

Otherwise the trust is gone for decades, perhaps forever.
I don't remember the pro single state pro Israel protest. Don't know what it has to do with the question
And then that's more or less what I remember from my history classes in France (30-35 years ago) : they were broke because of how we put way excessive sanctions on them, and Hitler was seen as (and partly really was) the savior who put the country economically back on track.

That was in public school so the same program as for the vast majority of French students.
I don't understand where you think I've missed that distinction.
I would recommend https://udlbook.github.io/udlbook/ instead if you're looking to learn about modern generative AI.
While I agree with a lot of what you said.

In my experience, it was the need for orchestration that killed it but we are probably using different definitions of "immutable", where in Chef context I think of it as the infrastructure.

For me the killer feature of ansible for me was the ability to gate based on remote state, which really was incompatible with the foundational engineering choices that were almost ideal for its original target.

When you were upgrading rabbitmq, postgres, etc... the view from other cluster nodes was critical, not the local view.

Both chef and puppets tried to graft on what they called orchestration, but was really just batch jobs.

Immutable infrastructure was fairly easy IMHO with chef if your architectural quantum was a machine, but not for situations where that quantum was a cluster, especially with data that needed to persist like with Cassandra etc...
there was some guy on hackernews whose post I had read who had actually compiled .net entirely from source.

Like the issue I think becomes that .net itself was written in .net and so you needed the earlier proprietary versions right?

But Gnu also had a .net compiler and he had actually used it on guix (basically like nix) to really create sort of reproducible .net , I am sure that some reader of this comment will attach the post on which I am talking
Assuming the task remains just generating tokens, what sort of reasoning or planning would say is the threshold, before it's no longer "just a form of next token prediction?"
The design is fun and gave me a lot of nostalgia, but I admit they overdid it. They could have made that piece feel the same without so much distraction. And please people, support reader mode. It's not hard and it shouldn't be optional.

EDIT: Good god they animated EVERYTHING. It's not even readable... also... not one inline code sample? This is the designer trying to get an awwwards site of the day without any interest in the actual content. It's like a guitar player that solos over everyone else's solos.
Yep. I’ve installed $700 ERV myself. Probably less than $400 if you omit NZ tax. Meanwhile people are dropping $10k on ducted heat pumps.

Same with 10kWp of solar. $4k in gear plus $700 for electrician. Easily half of paying someone else for full solution.

(Prices converted from nzd to usd).
Is this post paywalled for you?

Or is there just a signup/login banner that you can dismiss?

If there's a paywall we'll pin a workaround at the top.
He doesn't suggest that the economy is a zero sum game, but that the distribution of that wealth matters and in our societies we're increasingly distributing wealth unevenly so that tiny minority of people increasingly control and own all the wealth, assets and means of production thus depriving other people of economic opportunities and crippling the economies.

In your example of building more, in order to a new building get erected someone owns the land, someone owns the materials, someone owns all the assets and the capital required to build. The people who invest to this will of course want to turn a profit on it.
The biggest thing I worry about with AI is that its current incarnation is anathema to the directions I think software needs to go next, and I’m at a loss to see what the judo-throw will look like that achieves that.

Rob Pike has the right idea but the wrong execution. As the amount of second and third party code we use increases, the search time goes up, and we need better facilities to reduce the amount of time you need to spend looking at the internals of one package because you need that time to look at three others. So clarity and discoverability both need to matter, and AI has no answers here, only more problems.

IMO, a lot of the success of Java comes from having provided 80% of the source code with the JDK. You could spend so much time single stepping into code that was not yours to figure out why your inputs didn’t cause the outputs you expected. But those are table stakes now.
It was Space Quest for me.

Oh, I played many of the others, but SQ -- specifically II -- was what made me fall in love with adventure games, warts and all. I learned English (well, besides taking actual English classes anyway) by typing words in its text interface.
But the clothing costs more without the benefit of supporting countries with stronger workers' rights. Isn't that the worst of both worlds?
Capsules do generate lift by having a slightly offset center of mass and control its orientation by rolling the entire capsule. This is used since the Apollo days to steer to the landing site. Even mars rovers use capsule lift during mars entry to steer.
"whether hierarchy is better than tags" sounds like whether hammer is better than a screwdriver. Use a tool appropriate for the job.

Hierarchy seems more rigid less general than tags but when it works--it works.
Not just about last year; the article itself is dated April 2, 2024.
The site was assembled using webpack and at least one element has a `data-react-helmet` attribute, so my guess is it's a React or React derivative such as Next.js. You're right -- it's not progressive enhancement and it's not necessary to present a simple tutorial.

Maybe there are other reasons, though? Maybe Ben wanted to learn the framework? Maybe Ben wanted to integrate a storefront and a comment section -- which he has done via Shopify and Disqus -- and his choice of framework made that easy due to the existence of official React libraries from both vendors? Maybe Ben's using cloud-native serverless deployment tools alongside his React application because some of the derivative frameworks like Next.js do really well at minifying, compressing, caching, and serving only the content that's needed?

I can understand the purist argument -- I really can, especially from a security standpoint given what we've learned in the past few years about cache-timing side-channel attacks -- but is it possible that Ben is simply a fan of learning and he's as excited about building a web application in React as he is about building an 8-bit computer from scratch?
Let's separate the implementation of copyright and the concept of copyright. I don't think you would find anyone who would say the US's implementation of copyright is flawless, but the OP seems to be talking about the concept itself.

> Additionally plenty of people making videos for YouTube have had their videos demonetized and their channels even removed because of the Content ID copyright detection scheme and their three strikes rule. In some cases to a ridiculous extent - some companies will claim ownership of music that isn't theirs and either get the video taken down or take a share of the revenue.

Let's take YouTube videos as an example. If the concept of copyright doesn't exist, there is nothing stopping a YouTuber with millions more subscribers from seeing a trending video you made and uploading it themselves. Since they're the one with the most subs, they will get the most views.

The winner of the rewards will always go to the brand that people know most rather than the video makers.
No, the law explicitly applies to ByteDance. The President does have discretion to apply it to other applications if they meet certain criteria.

https://en.wikipedia.org/wiki/Protecting_Americans_from_Fore...

He's just decided he doesn't want to enforce the law, at least for now.
Even if they don't "lose" their equity, it might just turn essentially worthless. Very often "equity" founding staff receives is in the form of (V)ESOP s = (virtual) employee stock options, or other equity grants that only materialize in the case of an "exit event". Depending on how the exit events are specified in the contract, the founder taking the company private (/ divestment from the investors) might have resulted in an exit event with $1 value of the company.
Old Man Murray wrote a great peace in 2000 about who killed adventure games, the answer to which I won't spoil since it's an easy read:

https://www.oldmanmurray.com/features/77.html