Hacker Newsnew | past | comments | ask | show | jobs | submit | krapp's commentslogin

Where do you think you are, right now?

- allows comments

- allows multiline strings

- no quotes around keys

this is just Lua tables

- no commas

now it's just s-expressions?

also JSON is already made for humans. I've seen a lot of people claim it isn't but I can't fathom that - it was literally created as a text-based format for humans to manually write in a text editor. If it were "made for machines" it would be bytecode.

I'm not saying this is bad but.. meh? Do we really need another bespoke JSON format that mostly does what Lua tables already do?


No. Not once in the entire history of the human race, from the time we were dwelling in caves to today, not in any tribe, village, hamlet, city, state, kingdom or nation, in no culture or circumstance, has effort ever been rewarded.

It's weird that homo sapiens sapiens has been around for approximately 300,000 years and it's never happened once. Not even once.


In the village, the horse works the hardest. But the horse will never be elected as the chief.

Horses tend not to run for office. Because they're horses.

Everyone knows someone who worked for years on a project only for it to go nowhere. Pour years into a business that failed. Spend years getting a degree that was useless. Effort might be a part of many people's success stories, but it's not the thing that literally gets rewarded. And conversely, many people get rewarded for things that require relatively little effort.

I suppose I should have said that the correlation between effort and reward has never been 1.0 and has often been a lot lower than we like to believe.


Don't worry, DOGE saved us so much money it won't even matter /s.

The national debt went up by $2.5T since Feb 2025, keep up the DOGE work

But without DOGE it would have gone up $2.51T

I think I've been successfully nerd sniped.

It might be preferable to create a font atlas and just allocate printable ASCII characters as a spritesheet (a single SDL_Texture* reference and an array of rects.) Rather than allocating a texture for each string, you just iterate the string and blit the characters, no new allocations necessary.

If you need something more complex, with kerning and the like, the current version of SDL_TTF can create font atlases for various backends.


Completely depends on context. If you're rendering dynamically changing text, you should do as you say. If you have some completely static text, there's really nothing wrong with doing the text rendering once using PangoCairo and then re-using that texture. Doing it with PangoCairo also lets you do other fancy things like drop shadows easier.

If Hank Green even knew what Hacker News was, I think my respect for him would diminish considerably.

You're making the mistake of thinking of "nature" and "evolution" as intelligent, reasoning systems, and that every evolutionary adaptation exists for a purpose. Evolution doesn't do things for "reasons," things just happen.

Remember that cephalopod brains are donut shaped and their digestive tracts go right through the middle and if they eat something too big they'll have an anyeurism. Pandas and koalas evolved special diets that serve no evolutionary purpose and both would be extinct if humans didn't find them cute. Sloths have to climb down from trees to take a shit. Female hyenas give birth through a pseudopenis that often ruptures and kils them. Horses can't vomit and if they swallow something toxic, their stomach ruptures. Also their hooves and ankles are extremely weak and not well designed to support their weight. Numerous species like the fiddler crab and peacock have evolved sexual displays that are actively harmful to their survival.

And as for humans, our spines are not well adapted for walking upright, our retinas are wired backwards, and we still have a useless appendix and wisdom teeth. The recurrent laryngeal nerve has an unnecessarily long and complex route branching off the vagus and travelling around the aorta before running back up to the larynx.

Evolution is not smart. Evolution isn't even stupid. It isn't trying to keep you alive and it isn't even capable of caring if you die. Yes we should absolutely fuck with it, because we don't want to live in a world where we still die of sepsis and parasites and plagues because "we don't want to mess with evolution."


Yes, there’s a misconception that evolution leads to optimization and efficiency. It really just leads to traits that are “good enough”.

Evolution has lead to optimization and efficiency many times. It rarely trends to maximization or the largest possible efficiency, since those conflict with "good enough". Protein structure and function is a common example.

> It rarely trends to maximization or the largest possible efficiency, since those conflict with "good enough".

Sometimes things get trapped in a local minima. Particularly when a seemingly inconsequential detail at a much much earlier stage becomes a dependency of lots of downstream stuff, but then it turns out that this just so happens to conflict with a better option in the here and now.

More commonly, the "perfect" solution is extremely brittle while the (supposedly) "good enough" solution is incredibly robust to all sorts of environmentally inflicted bullshit. In other words, most of the time evolution is practical while the humans criticizing the outcome are ignorant idealists.


I would go so far as to say that the vast majority of the time, systems that evolved are robust, not brittle, and you're right, this compromise "works better" or is "good enough to reproduce more than my relatives". And other times something gets caught in a local minima- but other bits around it optimize anyway (I think the "backwards" human eye might be an example of that- https://en.wikipedia.org/wiki/Evolution_of_the_eye#Placement and see also, https://en.wikipedia.org/wiki/Evolutionary_baggage).

Anyway, the example I was thinking of is here: https://en.wikipedia.org/wiki/Diffusion-limited_enzyme where some enzymes have evolved to reach extremely close to the maximum rate of catalysis limited by diffusion rates (and some enzymes have clever tricks to get around that).


Not even good enough: "population reproduced faster then it died".

That's it: and it's separate from good enough because that can include things like "happened to live on the part of the island which didn't get obliterated by a volcanic eruption at the only point in history that volcano ever erupted".


>koalas evolved special diets that serve no evolutionary purpose

Koalas biggest problem is us? Like they seem perfectly adapted to their niche. Eat lots of leaves that nobody else is adapted to use as food, and once a year, run very fast to outpace the bushfire that your principle food source needs to reproduce.


FYI horses are the product of domestication.

Are their hooves, though? The fossil record clearly shows a progression in their ancestors from having feet with many toes to the single "toe" they have now.

Fair enough.

In my defense, domestication is still technically an evolutionary process.


>we still have a useless appendix

This was believed in the 20th century, but we now believe the appendix is actually useful, and is basically a fail-safe in case the intestinal flora are wiped out; some will survive in the appendix and repopulate the intestine.

https://en.wikipedia.org/wiki/Appendix_(anatomy)#Functions


Which is an incredibly specious conclusion because when would the gut fauna ever be wiped out? For the evolutionary history of mankind, antibiotics did not exist, and people without an appendix (such as myself) have no medical need for any special treatment after going on antibiotics.

> intestinal flora

> gut fauna

May I be excused? My macrophages are full of slime molds!


>Which is an incredibly specious conclusion because when would the gut fauna ever be wiped out?

It's called "gastrointestinal illness". From the article I linked:

"Research in 2012 reported that individuals without an appendix were twice as likely to have a recurrence of Clostridioides difficile colitis. The appendix, therefore, may act as a reservoir for beneficial bacteria. This reservoir could repopulate the gut flora following a bout of gastrointestinal illness."


Huh, that's really interesting. But I suppose it doesn't apply to the amber alert thing. In that situation, evolution probably was an intelligent reasoning system that existed for a purpose and we must be subverting it (a bad idea). There's always an exception to every rule, I suppose.

Evolution is never an intelligent reasoning system, any more than gravity ever is.

Never? Not even the OP's «there's probably a reason evolution didn't put the immune system on permanent "amber alert" as they call it in the article»? Oh, that's surprising. Well, TIL.

Some groups of people have evolved to believe that, anyway.

You can use SDL3 with LuaJIT easily. You just need an FFI generator, I use the one here: https://github.com/sonoro1234/LuaJIT-SDL3

Just a reminder, Donald Trump is mentioned over a million times in the Epstein files. He likely not only raped but participated in the murder of children. He probably had Jeffrey Epstein killed as well. Don't let yourself get distracted. None of this alien shit is real. Donald Trump being a rapist, pedophile and criminal is real. His administration's coverup of Epstein's crimes and his own complicity is real.


You are an enigma.

I’m the same guy who told you those things about the Greys you freaked on, and I find you posting in this way.

Cute that our whole thread was flagged, isn’t it?

On one hand Trump is incentivized to share that there has been “contact”, since he and Bannon looted the most ultra secret enclaves of American intelligence programs (in a way inaccessible to all prior presidents, yes including “unless they kept it from the president” Obama.)

On the other hand, the true true revelation about those aliens that Americans are criminally insane aggressors.

The “Grey” they mutilated and murdered has over 100,000 clones. Oops.

I know people are curious, though we aren’t just about to be friends. Not to the fault of the Greys, who are jilted yet fundamentally altruistic.

An apology would be equivalent to the president admitting that what you say is true. Though it isn’t.

I don’t like Trump for other reasons, though I know from “insider sources” that Trump is neither a rapist or a pedo.

He’s a reckless irresponsible jerk arse who let Bannon destroy Americas own intelligence infrastructure.

How to pick sides…


We don't have the free market. We've never had the free market. Every economy has always been under some degree of regulation and centralized control simply by virtue of existing within the context of a society and government that enforces laws and levies taxes.

The government has never controlled the means of production for the most part except for “natural monopolies” like utilities, cable etc where everyone should be served and it doesn’t make sense to try to have two companies building out infrastructure

They don't need to control the means of production. Simply provide minimum necessary housing, nutrition, and medical care. No one should starve to death, die of preventable illness because they can't afford care, or end up homeless in the United States. It's degrading to the basic dignity of our country.

For some narrow definitions of 'control', and ignoring regulatory capture

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: