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

No, compile time memory is not the same as static storage duration/ro section.

No you are baking data into the compiled program so that you can perform compile time operations on that data. These compile time operations are most often used to guard against erroneous runtime behaviors.

If all you want to do is bake data into a compiled program, there is the #embed feature added to C++26.


This claim is simply false. The cause of bankruptcy in the U.S. has been extensively studied and absolutely none of the criteria you list comes even close to the number 1 reason that people in lower or middle class declare bankruptcy: medical bills.

No, it isn’t that well studied; and I’d be interested to see your source and confirm that it doesn’t trace back to a study that says something more like “A new study from academic researchers found that 66.5 percent of all bankruptcies were tied to medical issues —either because of high costs for care or time out of work”. (https://www.cnbc.com/2019/02/11/this-is-the-real-reason-most...)

What? You mean to tell me people file bankruptcy over the kinds of debt they can actually discharge and less so over the kinds of debt they can't?

That doesn't prove anything other than people filing bankruptcy aren't morons.

If the only thing you could discharge were gambling debts, there would be an equally specious claim that people aren't going broke over medical debt because 80% of bankruptcies cite gambling debts as the cause.


I'm not trying to prove anything. I am pointing out that your claim about the cause of many/most lower and middle class people's bankruptcy is false.

They never made that claim.

This claim is false:

>Bankruptcy won't even discharge the kind of debt many/most of the lower-middle class fall broke upon.

Most of the lower-middle class do not go broke upon the listed criteria.


Average medical debt per person in 2020 was $430 per [0].

By comparison, in year 2006, there was 2.55B$ in arrears in my state of Arizona when it had ~5.5 million people, or an average of $463 per person. Not even adjusted for inflation. [1]

If you set the bar at medical debt, which you seem to have, it seems to have passed it on child support alone. And that is with a quite uncharitable handicap against me, as I'm comparing the 2006 child arrears numbers I found against 2020 dollars of medical debt.

[0]https://pmc.ncbi.nlm.nih.gov/articles/PMC8293024/

[1]https://www.opnff.net/Files/Admin/Assessing%20Child%20Suppor...


I did not make that claim. I made the following:

  Bankruptcy won't even discharge the kind of debt many/most of the lower-middle class fall broke upon. 
The whole point was that bankruptcy wasn't a remedy discharging these forms of going broke. It's unsurprising the bankruptcy data leans towards a 'cause' that will actually discharge their debt, otherwise the incentive for a broke person to file bankruptcy is lowered.

Most of the lower-middle class do not fall broke upon the things you listed.

Looks like there's equivocation about "bankrupt" and "broke". To me you can be broke without going through the legal bankruptcy process.

You wrote an entire wall of text when you could have just taken 10 seconds to review what you call the "most basic back-of-napkin math" and realized you were off by two and a half orders of magnitude.

>"...viable economics for profit..."

OP did not include this requirement in their post because doing so would make the claim trivially true.


Being objectively correct isn't the goal of the translator, the translator can't possibly know if a statement is truthful. What the translator does is well... translate, specifically from some kind of corporate speak that is really difficult for many people including myself to understand, into something more familiar.

I don't expect the translation to take OpenAI's statements and make them truthful or to investigate their veracity, but I genuinely could not understand OpenAI's press release as they have worded it. The translation at least makes it easier to understand what OpenAI's view of the situation is.


> The only only pure fuck-up I'd call out is switching from third to first person when referring to OpenAI in the same sentence (No. 4).

"We" in this sentence refers to both parties; "they" refers to OpenAI. Not a grammatical error.


> "We" in this sentence refers to both parties

Fair enough.

> "they" refers to OpenAI. Not a grammatical error

I'd say it is. It's a press release from OpenAI. The rest of the release uses the third-person "they" to refer to Microsoft. The LLM traded accuracy for a bad joke, which is someting I associate with LinkedIn speak.

The fundmaental problem might be the OpenAI press release is vague. (And changing. It's changed at least once since I first commented.)


In isolation sure. But in context with the other points it makes it look like "they" refers to Microsoft in all the dot points.

[deleted]


Presumably the paid version would be even better! But this free translation is already remarkable

You're mixing up quite a few somewhat related but different concepts: data races, race conditions, concurrency and parallelism.

Concurrency is needed for race conditions, parallelism is needed for data races. Many single threaded runtimes including JS have concurrency, and hence the potential for race conditions, but don't have parallelism and hence no data races.


Concurrency with a single thread of execution runs with complete mutual exclusion, so no "pure" single threaded concurrency is definitely race condition free.

What we may argue over (and it becomes more of a what definition to use): IO/external event loop/signal handlers. These can cause race conditions even in a single threaded program, but one may argue (this is sort of where I am) that these are then not single threaded. The kernel IO operation is most definitely not running on the same thread of execution as JS.

I think I have been fairly consistent in the definition of a data race as a type of race condition, where a specific shared memory is written to while other(s) read it with no synchronization mechanism. This can be safe (most notably OpenJDK's implementation is tear-free, no primitive or reference pointer may ever be observed as a value not explicitly set by a writer), or unsafe (c/c++/rust with unsafe, surprisingly go) where you have tearing and e.g. a pointer data race can cause the pointer to appear as a value that was never set by anyone, causing a segfault or worse.


You can implement your own event loop within a single thread

A lot of developers don't actually understand the code they write. Sure nowadays a lot of code is generated by LLMs, but in the past people just copied and pasted stuff off of blogs, Stack Overflow, or whatever other resources they could find without really understanding what it did or how it worked.

Jeff Atwood, along with numerous others (who Atwood cites on his blog [1]) were not exaggerating when the observed that the majority of candidates who had existing professional experience, and even MSc. degrees, were unable to code very simple solutions to trivial problems.

[1] https://blog.codinghorror.com/why-cant-programmers-program/


You're most likely being pedantic, like when someone says they understand every single line of this code:

    x = 0
    for i in range(1, 10):
      x += i
    print(x)
They don't mean they understand silicon substrate of the microprocessor executing microcode or the CMOS sense amplifiers reading the SRAM cells caching the loop variable.

They just mean they can more or less follow along with what the code is doing. You don't need to be very charitable in order to understand what he genuinely meant, and understanding code that one writes is how many (but not all) professional software developers who didn't just copy and paste stuff from Stackoverflow used to carry out their work.


you drew it to its most uncharitable conclusion for sure, but ya thats pretty much the point i was making.

How deep do i need to understand range() or print() to utilize either, on the slightly less extreme end of the spectrum.

But ya, im pretty sure its a point that maybe i coulda kept to myself and been charitable instead.


Understand your code in this day and age likely means hit the point of deterministic evaluation.

print(X) is a great example. That's going to print X. Every time.

Agent.print(x) is pretty likely to print X every time. But hey, who knows, maybe it's having an off day.


>I mean, you also can't advertise illegal drugs either. Doesn't seem to curb demand though.

Making drugs illegal does not eliminate demand, but it absolutely curbs it. The converse is also true, for example legalizing cannabis in Canada has significantly increased demand for it [1]. While it's true cannabis use had been gradually increasing for decades prior to legalization, there was a significant spike afterwards which has since levelled off.

[1] https://www150.statcan.gc.ca/n1/daily-quotidien/231016/dq231...


> The converse is also true, for example legalizing cannabis in Canada has significantly increased demand for it

The relevant thing that link actually says is that more survey respondents admitted to cannabis use after legalization, the obvious problem being that before legalization they would be admitting to a crime, which will suppress response rates.

The same link also points out that the legalization happened right before COVID and then you have a major confounder because even if cannabis use is actually up, you don't know if it's because of legalization or people turning to cannabis over stress from COVID. Moreover, the reported usage increased during COVID but started to decline in 2023. This implies that either the apparent spike was COVID, or that it was something like media reports about recent legalization acting as temporary free advertising and causing a temporary increase in usage. Neither of those is evidence of a sustained increase in demand.

Meanwhile legal options do cause people to prefer legal sources over the black market, and then you get fewer people becoming addicts because the thing they thought they were buying was spiked with something significantly more addictive by a black market seller. Or the black market products have higher variation in the dose and then customers can't predict how much they're getting and occasionally take more than expected, leading to a higher rate of overdose and stronger dependency-inducing withdrawal.


>Meanwhile legal options do cause people to prefer legal sources over the black market

In the case of cannabis it's been showing to lead to less underage use too. If it's a crime, then selling to anyone of any age is still just a crime. But if it's only a crime to sell to under 18/21 then legal shops will avoid selling to the under age to avoid revocation of their license.


> If it's a crime, then selling to anyone of any age is still just a crime. But if it's only a crime to sell to under 18/21 then legal shops will avoid selling to the under age to avoid revocation of their license.

That isn't true; crimes can have aggravating factors and selling drugs to a minor could aggravate the crime of selling drugs.

I don't think the laws were written that way, but they could have been.


There is an incentive to commit a crime when the benefit of committing the crime exceeds the penalty times the chance of getting caught plus the cost of measures taken to avoid getting caught.

This is why increasing penalties have extremely fast diminishing returns. As the penalty goes up, the relative cost of measures to avoid detection goes down, and the penalty needed to counter them becomes exponentially larger.

If the benefit of doing the crime is a million dollars and the penalty is a 50% chance of a year in prison then you have a problem, because plenty of people would be willing to take the risk. But it's actually worse than that, because spending $100,000 on countermeasures might lower the risk of getting caught to 1%, and they're still making $900,000. That might not be worth it when the penalty is a year -- maybe $100,000 in profit is worth a 50% risk of one year? But if you set the penalty to 20 years then it is. Then the gain is $900,000 but the expected penalty has actually fallen to 1% of 20 years, i.e. expected cost of 2.4 months instead of 6. To deter someone with a $900,000 profit who values a year at $120,000 with a 1% chance of getting caught, you would need the penalty to be 750 years, which you can't do because people don't live that long. And spending even more on countermeasures might lower the risk of getting caught even more. If spending $500,000 makes it 0.1%, that may not be worth doing when the max practical penalty is ~70 years, but the option for it means that even 750 years would be insufficient even if it was possible.

This is why there are things it's very difficult to deter. The profit from doing them is more than the cost of making the probability of detection small and then the size of the penalty can't be made large enough to be a deterrent.

That all changes when you legalize most of the market. Now the profit isn't a million dollars, it's $100,000, because anyone can enter the market so increased competition drives down margins. Moreover, $90,000 of the profit was from selling to adults. So now the profit from selling to kids is only $10,000. Not worth spending $100,000 to lower the risk of getting caught. And then you can easily assign a moderate penalty that acts as an actual deterrent.


That seems like the only sensible path forward, if you assume that the only lever a society can pull to make punishment harsher is “longer prison sentences”.

What if the penalty for selling drugs to kids was death?

It seems like that would change the risk/reward calculation pretty substantially.


Would it though? How different is that than life in prison without parole? There are plenty of people who, given the choice between ~$1M and a ~1% chance of the death penalty, are going to pick the money.

You could hypothetically try to make the difference in the penalties larger by making the penalty for selling to adults smaller, e.g. a $10 fine, so that there is minimal incentive to pay for countermeasures when selling to adults and thereby have them already paid for and in place when selling to kids. But then you're just de facto legalizing selling to adults and trying not to admit it.


>could aggravate the crime

For dealers this would mean almost nothing when the punishment for dealing already lead people to do things like get in shootouts with police.

Meanwhile legalization of some drugs has directly shown that it decreases youth usage.


> For dealers this would mean almost nothing when the punishment for dealing already lead people to do things like get in shootouts with police.

I think you're getting at something valid, but it isn't quite what you think.

The punishment for dealing drugs is, as I understand it, mostly applied to major distributors. In this sense, selling drugs wasn't a crime before anyway.

If you're too low-level for prosecution to be much of a concern, it doesn't take much to guide you away from fundamentally similar crimes where prosecution is a real concern.


Oh come on. Weed use and addiction has absolutely surged since legalization everywhere I'm aware of - US states, Canada, other countries etc. Use everywhere / anytime / as a part of daily life has been completely normalized, it's not uncommon to see people hitting a weed vape in the middle of a work day. Not to mention the potency is far higher and this has been normalized, so one incidence of cannabis use is essentially a mind-blasting wave of THC vs. a casual joint with friends. It would be as if you went from say 12% of Canadians having two beers after work to a fifth of vodka. That the median casual dose in 2026 would have the median casual user in 2016 literally incoherent is undisputed among any weed smoker today.

>The relevant thing that link actually says is that more survey respondents admitted to cannabis use after legalization, the obvious problem being that before legalization they would be admitting to a crime, which will suppress response rates.

Sure, except Canada had legal medicinal weed since 2001 and everyone was aware that police attitudes towards it were very lax. There were even technically-illegal weed stores that the Canadian government took years to shut down. The number of people that lied to a pollster because they thought that the government would get them was almost certainly minimal. The fact that the trend is pretty smooth before/after the boundary confirms this.


> The converse is also true

It isn't true, at least not as a hard and fast rule. Post-legalization changes in demand differ greatly per country. It completely depends on contemporary cultural factors of the country in question.


Your claim is far too open ended to interpret clearly.

A change in demand post-legalization can absolutely be highly variable across different countries/cultures, but unless you can demonstrate a country that legalized cannabis and saw a decline in demand, then your as of yet unsubstantiated claim does not refute mine.


No, all I need to demonstrate is a country that saw no significant increase, not necessarily a decline.

From everything I know, the US states as well as the Netherlands that all decriminalized it in the 70s didn't see local use increase in significant numbers.

Neither did it in Belgium who did the same in 2003.

And before you go "decriminalization is not the same as legalization", in the "Making drugs illegal does not eliminate demand, but it absolutely curbs it." is clearly about drugs that have not been decriminalized at all.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: