skysight-inc/HackerNews huggingface dataset:
> #define sizeof(x) (size)sizeof(x)

Undefined behavior[1]

> #define assert(c) while (!(c)) __builtin_unreachable()

Undefined behavior[1]

> I’ll cast away the const if needed.

Undefined behavior[2]

> The assignments are separated by sequence points, giving them an explicit order.

I don't believe assignments are sequence points and only the function call is.

[1] https://en.cppreference.com/w/c/language/identifier#Reserved...

[2] https://en.cppreference.com/w/c/language/const
The concept of steelmanning comes from Sam Harris.
Reddit – DevOps
I wish Sony didn't hobble the mini disc format against storing data in it's paranoia against piracy.

It could had been the next floppy disc of its day.
In reality, most people are working core hours, say 10am-3pm local time. Most are in UTC +/- 2 hours. I’m an outlier, remote from B.C, Canada.

It’s usually best to stick with a “normal schedule” for family/socializing reasons, anyway.

But, it’s incredibly freeing, being able to work when the mood strikes. I used to be a night-owl, often getting super creative in the evenings. I could force myself to bed, sure, but a 3-4 hour stint in the evening would regularly produced outsized returns. 8-9am+ couldn’t remotely compete, creativity-wise, so why force it? Build a culture around trust and impact, it works out a lot better than anything else I’ve seen in practice.

I rarely do late nights anymore, having transitioned to 6-7am starts, an hour or two hiking around lunch with the dogs, and a small handful of hours of wrapping up & planning for tomorrow. But that was all my choice :)
I’m aware of the system, but all you’ve done is explain how the tradeoff works. It’s also how governments raid pension coffers to pay for something else like infrastructure (see Illinois). I’m not claiming I receive “my” money in SSI, but I am saying there is a point beyond which the system becomes untenable. At some there is a tradeoff because the money is gone. You could raise taxes or pay interest on a new loan, but again, that only works when there’s still confidence in the system. What happens when there is no longer confidence? Interest rates become untenable or the citizenry will not continue to support additional taxation.

Now I will agree that this is a contrived problem because SSI is a contrived system. We could just change the rules and make it continue to work, but that will come with tradeoffs.
> If you borrowed at 8%

so whoever lent you at 8% would take a loss if you could just abandon that rate and went with someone else's 2% rate. Therefore, it can't be this simple - somebody must be eating a loss. I suspect that 'somebody' is Freddie Mac and Fannie Mae , which is a quasi-gov't corporation and therefore, they might be able to take the loss without worrying about profitability.
Even then, if they were planning on selling it under the $35 limit. Why would they bother vetoing?
>Social media still needs to be effective media, IMO

Social media needs to be more ineffective, because the effectiveness is what renders these environments anti-social. James P. Carse once made the same point about travel. A lot of people nowadays are obsessed with traveling fast and effectively, yet ironically they skip the actual traveling, which is the part between A and B, the exploration you do on the road. People will hop through 20 cities but have not changed at all, or talked to anyone, they've eliminated the experience they were looking for.
70 miles from the downtown of a major city is still generally considered part of that city’s metropolitan area and prices reflect that. Still though getting a 1br condo in LA for 150-300k is more reflective of what it actually costs to get an affordable place as a single person in that area. Yes you have condo fees, but maintain a house comes with serious costs as well.

That’s the thing, if it’s a trivial expense then who cares, but when there’s more affordable options it’s hard to imagine why stretching yourself buying a house at that price would be a good idea.

255k for a 1,952 square foot place in Harrisonburg, VA 22802 is far more representative of most of the US’s housing prices. It’s a modest 50k population university town 130 miles from DC so not in the middle of nowhere but still cheap. https://www.redfin.com/VA/Harrisonburg/1036-Meadowlark-Dr-22... Plenty of places listed for less than that or far more, but in general there’s still a lot of options under 300k.
Hard to imagine you can do worse than private industry.
Model viewer is a nice tool! I was paid to make some assets for a model viewer website, but I couldn't get any of my model's colors to show correctly. Once I realized that AO was used as direct exposure value, it was smooth sailing ahead.

Most of the time I can't control what light my models are shown in, so it was great to have some control of how it was presented.
Agreed, there is no excuse to veto this just because some future project could potentially alleviate it later. Bring relief now.
> tiny monstera was going for $100, while you can get a large established monstera for $100 today.

This isn't about monstera, it's about Mini Monstera (Brand name) and Monstera ‘Albo’

> Unlike tulip bulbs pot plants do have aesthetic value

Tulipmania is mostly made up and still is a global billion $ business 400 years latter and it does bring beauty to the world for anyone who's not a dried up HN user angry they can't understand tech anymore.

But there is an element like expensive watches where Monstera Albo were both a status symbol and a complex thing of pleasure but unlike tulips I can't see it continuing.

A Monstera albo is not going to beat my 15 foot monstera long term, I don't think humans like unsymmetric variegated plants. Without being told it's impressive I'm not sure it is.
With the right amount of hardening, containers can provide a relatively secure sandbox. It's certainly not built for that which leads to natural weaknesses, but in my experience auditors seem pretty happy with the controls present in OpenShift (page 79): https://www.redhat.com/en/resources/openshift-security-guide...
I think the exception to this is if you're underwater on your mortgage. Then the new bank won't give you a new loan against the house for more than its worth.

This is of course stupid on the part of everyone involved
but especially the person who currently owns your loan. Lowering the interest rate for a person with an underwater mortgage can only increase the security of it as a financial asset. If they default it's pure loss. But a new bank doesn't want to take on an underwater mortgage and even at the institution that owns your loan the left hand originating mortgages doesn't know what the right hand is doing servicing them.
The bill caps the price of the co-pay, but the actual cost is still passed on to the consumer through insurance premiums. Meanwhile, the California government has contracted out with a nonprofit pharmaceutical company to manufacture insulin and sell it at cost, which comes out to $30.

This is—in theory at least—more effective, since it forces pharmaceutical companies to compete on price. And if they don't, Californians still have access to a source of cheap insulin.
Welcome to crony capitalism. It's America's specialty.
I might be able to dig up pictures but they'd be of the iPhone 3G variety.
It’s fine for it to simultaneously be bad that you’re egotistical; good that you’re introspective about it; and net all kind of underwhelming imo. This particular set of notes does not communicate a strong self of self awareness.

That is, the grand scale of jobs’ observations suggest to me he thinks he is being worldly despite his success, not being humble because he is in fact not better than others. Like no shit Steve, you did not invent math. A lot of your shit you just lifted from xerox frankly.

Snark aside. Humility that is self evident to oneself is different than humility that one asserts themself into. Steve is still just some guy even if he single handedly invented all those things that he did not. He is not merely human because of this.

This isn’t the kind of thing someone writes if they truly believe deep down that they are equal to others. Even if it argues just that.
If you're only interested in having users who are attracted to the gardening metaphor, it seems like a neat concept, I guess.

Maybe I'm wrong, but I think that's not a big group of people and it will be hard to build the network effects a social media site requires. The graphic design, aesthetic, and interaction metaphor are too opinionated to attract the general public. Personally, I find the cute look and feel of the site off-putting and I can't imagine most of my friends using it. And even if some were, I don't think it would be enough to get me to want to spend time there.

I recognize that my reaction is completely subjective but that's the point. People react subjectively to design. I'm just not interested in tending a garden, in real life or virtually, neither are my wife and most of my friends. (My sister would probably be right in there though. Not sure who she would talk to.)
Unclear on the concept. Rich people drop $$$ on stuff to signal to other rich people. It's not socially acceptable to brag about your bank balance, so rich people compete socially on taste.
Hardly any politician wins an election only considering their personal beliefs and ignoring that of their electorate.

It's pretty obvious he wants to run for President, so moving a bit to the right as opposed to what he'd do for a purely California political position makes sense.
Why put another law on the books when you believe it will be obviated by other measures?

One reason I can think of is that a law might be more politically "durable" than a contract with a third party to produce insulin. But on the whole I think I'd rather one less law.
I’ve done this with two hard drive platters. Never knew it had a name. Cool.
The Origins of Doxing
> stop mixing together actions meaning done (or doable) deeds, and statements such as speech

This is a completely arbitrary distinction.

In fact there are many crimes for which speech is enough to get jailed, like if you give instruction for a murder, “all” you did was speech. Racketing? Speech. Scam? Speech. Fiscal fraud? You just lied (=speech) to the IRS. Death threats? Speech. Harassment? Speech. Violation of Secret Defense? Speech.

Should all of the above be legal because speech is supposed to be special?
Hold on - what if I’m flying in, it turns red. I then sit there at a red light, unable to move forward. What’s the escape route I’m missing?
As a centrist type thank you Gov Newsom for vetoing that crazy gender identity bill.

I remember as a kid being into feminine things and I couldn't imagine today the pressures on kids to start identifying as a different gender that would come from teachers and other "care givers" in our school system.

I'm also against the people who say that parents shouldn't be notified if a kid is talking to a counselor about identifying as a different gender. I suspect said counselor would push the child in the different direction in order to be a "hero" - it's such a shame that we're doing this to our children while other similar countries (in Europe where they aren't doing crazy stuff) are clearly looking on at us with pity.

Recently I've watched as Bill Maher has taken up the mantle of rejecting this idea as liberalism and I've been happy to see a prominent(-ish) face doing so without fear of "cancellation" or being called bigoted or risking getting fired.
Throwaway quip tripling down on vague aspersions about something good.

Sometimes things are good.
>prolonged conflict with the Ukraine

It is "Ukraine", not "the Ukraine".

https://theconversation.com/its-ukraine-not-the-ukraine-here...
What is the mechanism? They're California state authorities not Federal authorities.
This is a very common macro to get static array lengths and i'm not sure there is any other way to do the same thing (i.e. give a static array, get back the number of items in it) in any other way.
I feel like we’re trying very hard to dislike a good thing here
He is doing what every Democrat does. Campaign from the left, govern on the right.
That's a good catch. The moral of the story is that unless your macro definition expands to a single token (e.g #define X 123) you should always, always, always surround it with parenthesis. Because C's precedence rules are damn complicated.
> From the description, the Debian organization seems to be an anarchist one.

Then it mislead you. Anarchist organisations aren't typically characterised by large, long and complex sets of policies, constantly evolving, that are strongly policed. Often by bots.

This is the reaction from one software engineer that stumbled into Debian infrastructure: https://lists.debian.org/debian-devel/2023/09/msg00334.html

To quote one part of that email:

I've been maintaining free software for 30 years so I've got a lot of experience with a lot of different tools, and I've rarely encountered anything that is as comprehensive and well-documented as all this stuff is.

This style of organisation is characteristic found in engineering organisations try to deliver high quality products, not anarchist organisations.

And while it's a flat(ish) style hierarchy, it has leaders (the DPL), a judiciary (the technical committee) and even behaviour police (whoever polices the conduct - it is policed).
> #define assert(c) while (!(c)) __builtin_unreachable()

And people keep telling me that nobody uses the C preprocessor to define their own syntax any more!
I don't care what the creators said. I pronounce it with a hard "G".

Of course, GIF is a horrible file format and should be replaced in all cases I know of with either JPEG or PNG. Or maybe there are even better formats available now?
I’ve been thinking about something like this. Anyone else interesting in working on this?
> insane law which would have taken parental rights away

It sounds like the law would have given more rights to children who’s parents refuse to accept their child’s gender expression.

To me, ‘parental rights’ could often be more aptly named ‘child ownership.’
What is there to teach exactly? Turning right on red or left in a one way street is equivalent to a stop sign. At least that's how I see it. Am I missing some subtlety here?
I'm not a foobar2000 user, but after some searches, there are Lyrics Show Panel 3 (mostly dead?) and its opensource alternative foo_openlyrics (https://github.com/jacquesh/foo_openlyrics).

Adding LRCLIB source should be easy and straightforward enough (https://github.com/jacquesh/foo_openlyrics/tree/master/src/s...). I'm not very experienced in C++ though, so I suggest opening an issue first to see if the author or anyone are willing to do the intergration.
Has anyone trained a specific offline LLM model to act as a Linux helpdesk?
I'm imagining booting to linux commandline recovery console as a linux noob and being able to boot up on a split screen an offline chatbot that can parse all the man pages and tools onboard and walk you though solving various problems.

(But alternatively you could just make a more comprehensive and recovery focused `tl;dr` program)
Things do change for some, all the time. When someone pushes the envelope, says No to whatever, decides This won't do, things are changing for the better for those involved, because they force change.

If You decide you're gonna accept lower than your real worth, or sell yourself too cheap, because You are afraid of not getting whatever You wish to get, this is when You become the loser You claim you're not.

The truth is: fear will always deceit the fearful, and there is always enough for everyone. You gotta believe it.
I like using the const keyword, and believe it serves a real purpose with readability. I feel like most things are read access by default which is why it seems cluttered. I believe rust gets immutable by default correct .
Machinists calls it wringing.

http://starrett-webber.com/GB46.html
See also Defender of the Favicon: http://www.p01.org/defender_of_the_favicon/
Insulin is not a single drug. Discounters such as Walmart already offer low prices for generic insulin. The expensive branded forms have different release profiles which are more effective at controlling blood sugar in some patients.

https://www.cnbc.com/2021/06/29/walmart-unveils-low-price-an...

While we should do more to improve insulin affordability, the pricing is a bit of a distraction from the core issue. While type-1 diabetics will always need some exogenous insulin, the majority of diabetics are type-2. And research has shown that the majority of those patients can put the disease into remission with lifestyle changes. That is where governments should be focusing.

https://www.virtahealth.com/research
Unless you're in Canada (possibly only some provinces) where our government has, in their infinite wisdom, decided that all alerts must be broadcast at the presidential level.
ooof. Bandcamp is the only place I know of that provides an actually user-friendly experience for buying music. They've seemed maybe a little too good to be true in this modern age.
The key part (for myself) of ForkMeOnTinder's comment was:

> Maybe I'm a beginner then. He lists a few cases where it's not worse than sticking to 8-bit bools, but no cases where it's actually an improvement. It still wastes memory sometimes

They key part of my response is sometimes "wasting memory" (to gain alignment) is a good thing.

If someone, a beginner, is concerned about percieved wasted memory then of course they will use "packed".

As for the guts of your comment, I agree with your sentiment but would exercise caution about expecting a compiler to do what you expect in practice - especially for cross architectural projects that are intended to be robust for a decade and more - code will be put through muliple compilers across multiple architectures and potentially many many flags will be appied that may conflict in unforseen ways with each other.

In general I supported the notion of sanity check routines that double check assumptions at runtime, if you want data aligned, require data to be big endian or small endian etc then have some runtime sanity checks that can verify this for specific executables on the target platform
Many companies manufacture insulin. There's also not just one kind. Two pervasive types are fast acting and slow acting, the latter typically used to provide a low level continuous boost throughout a day. Manufacturing high quality product in volume isn't particularly easy because it's a biologic drug requiring genetically modified organisms to create the protein, typically E Coli, and purification to human injectable standard is costly, requiring removal of the pieces of cells that were used to make it, including endotoxins in the case of E Coli.

Beyond that, there's an easy way to guide analysis of what appear to be excessive costs in any market: find out where government force has screwed it up. It will always be the cause.
While there are a few disagreeable points, I like the article.

I've always felt that C is unfairly maligned. Yes, it's very low level, it's meant to be. Yes, it lets you shoot yourself in the foot, but what language doesn't?

Most of the problems with C are really issues with the standard library, the Unix (now Posix) interfaces, and the string type.

None of these are actually part of C, but are part of how C is normally used. So those problems can be avoided, and use C for what it's good at.
> I might just be a grumpy old dev [...] Everyone knows what a uint32_t is when they see it.

You might not be old enough then :-P many codebases typedef their own int types. See glib (gint, gshort, gint32, etc), SDL (Sint32, Uint32, etc) off the top of my head and there are many that define types like "int32" or "i32" like the linked article.
Beware of burnout -- if companies take you at your word and expect continuous maintenance (for free), the load might be hard to bear after a while.

The best way to avoid it I know of is to delegate responsibility and find other people to maintain the library with you (and/or charge for development/encourage corporate sponsorships!)
> so whoever lent you at 8% would take a loss

Why would they? If I lend you $100 at 8% interest and for simplicity let's say it's an interest only loan so you only pay the interest I get $8/yr for my trouble. Then you refinance with someone else at 2% and I get my $100 back. All good, now it's available to me to loan back out. The only thing I've "lost" is future profits but you also could have just paid off the loan entirely in cash to the same effect.
Fear of disappointment is associated with the difficulty of the task, which is mentioned in the article. You won’t be too afraid of failing at something easy, is the hard stuff you veer away from. The reasons why that’s hard is different for everyone
If you're dead set on doing this, the correct way would be to name the macro in all caps e.g. #define SIZEOF(x) as C is case sensitive. It is somewhat self-documenting to the next guy that SIZEOF() != sizeof().
$35 would have been the cap on copay.

Costs over that are passed on to the consumer via higher premiums.

The CalRx is $30 total.

I think insulin specifically and medicines/drugs in general might be another area that CA leads the country in modeling how to manage prices and overall cost.
Good thing it's a Utah nonprofit, then.
Today, we have FreeDOS[0] and SvarDOS[1], as well as the opened source code from pcmos386[2].

0. https://freedos.org/

1. http://svardos.org/

2. https://github.com/roelandjansen/pcmos386v501
Lol. No, it doesn't.

And there are great reasons not to 'steelman.'

https://thingofthings.wordpress.com/2016/08/09/against-steel...
From the linked article in question:

“Buffett's ultimately successful contention was that, including fees, costs and expenses…”

Most good research that I’m aware of includes fees in the comparison because they can significantly erode returns. (Maybe somewhat less of an issue now that most brokerage now offer no-fee ETF trading). Not including fees and expenses is just a marketing tactic.
Ask HN: Possible to make a game engine in the browser?
What would the limitations be if one were to create a game engine that could run in the browser?

Browsers now have file system access and WebGPU. What would be the major limitations of what it could do compared to a native engine that runs as a desktop app like Unity or Unreal.
I've been: wild place, worth the stop on the way.
Why not both though.
Have you lived in California?
Plenty of countries do it. It's a misnomer to call it capitalism. It's fascism: nominal private ownership with defacto government control in different potential ways (e.g. force backed barriers to competition, regulation boosting costs, etc.)
Bandcamp wasn't on my enshittification bingo card
The $35 is a cap on co-pay, not the actual cost paid out by insurance.
Interesting how my experience has led me in a different direction:

https://dlang.org/blog/2023/10/02/crafting-self-evident-code...

(The article is crafted around D, but the principles apply to C as well.)
No where in Canada has what Toronto offers. Toronto is pretty great, still probably makes sense to live elsewhere though for a lot of people.
While you are right, said 2bdrm were costing 1100-1200 per month in 2019 in Montreal. So prices are catching up in Montreal as well. Surely it's not THAT bad yet, but also keep in mind that typical after tax income in QC is probably 30% lower than in ON.
First robot that could replace many warehouse workers
As I said elsewhere, sure you can make an engaging backend demo, just like you can make an engaging hacking scene in a movie. It’s just a lot harder though than making an engaging chase sequence.

If you added a cool animation to a button, the work is the demo. You don’t need to do any extra work, make any extra graphs, or explain very much of anything. Literally everyone will get it.

Also I’ve been at countless places that insist graphs and charts aren’t demos, but still insist backend teams do demos. This usually ends up with hitting an API with curl while everyone’s eyes glaze over.