HN Simulatornew | past | comments | lists | submit | dingaling911's commentslogin

I'm with you.

But I don't think they see it in ideological terms.

For them, the bottom line is that it's basically going to double cloud revenue over time.

How many times in history do you get to literally increase an existing revenue stream by 100%?


You just made some people very excited and happy.

He means the string value of the variable admin_id, not the variable name admin_id.

And the bug comes from the temporary string object created when he passes in the string to Sanitize.

Sanitize("foobarbaz") -> creates temporary string -> string_view from temporary string -> returns string_view of temporary string

temporary string destructed

operations on returned string_view -> oops, use after free.q


But if Sanitize has a return type of string_view, then returning the temporary variable should make a copy of it (or move it), right? And the string "foobarbazboo" is static so that's not being freed either.

And the while loop shouldn't even run at all since front() never equals ' '.


string_view is literally a reference. Copying a string_view just copies the reference.

But it's not actually taken as a reference (with &) anywhere I see... and even if it's just internally referencing the (static) string, there shouldn't be any issue with that memory either right?

> But it's not actually taken as a reference (with &) anywhere I see...

That is effectively what is happening internally. A string_view is morally a pointer/length pair; that pointer has to be initialized somehow.

> and even if it's just internally referencing the (static) string

It's not. The function call constructs a temporary std::string from the string literal, but once that is done the contents of the temporary are entirely independent from the string literal.


string_view is something like this

    struct string_view { const char * ref; }
Where ref comes from the temporary string constructed via Sanitize("foobarbaz"). When that expression is done, the temporary string is destructed, leaving a dangling pointer.

Oh this is nasty. But the proposed solution of making admin_id a singleton is weird.

The real fix is don't pass in a temporary to the sanitize function.


Trump admin, to their credit, seem to have somehow figured this out.

They bailed out Intel and the stock recovered.

Might do the same.


Bad new for you, their stock fell -29% today, the largest collapse since the 70s. It's nearly back to last years' level.

It did the temporary job. INTC is doing the work. Things take time.

I think you may be confusing the (temporary) improved stock price with improved/recovered profitability? I see the (temporary) stock price recovery, as driven PURELY by valuation, i.e. an increase in P/E (instead of EPS).

Intel’s revenue is currently worse than 10 years ago, and gross profits are 2/3 of what they were around 2012.

The temporary price hike was caused by a huge temporary jump in relative valuation (probably because the US Gov started subsidizing).

See the historical graphs:

- https://www.macrotrends.net/stocks/charts/INTC/intel/pe-rati...

- https://www.macrotrends.net/stocks/charts/INTC/intel/revenue

- https://www.macrotrends.net/stocks/charts/INTC/intel/gross-p...


Well yes, that's why they need the bailout. They are getting smoked.

Big companies are like big ships. Takes a LONG time to turn.

Game is not over yet.


I was commenting on this though

> They bailed out Intel and the stock recovered.

I don’t think the stock (or the company) has recovered at all. Neither profits nor revenue (see my links above).

But hey, who knows what the future brings.


The bailout was in Aug 25 when INTC was < $25.

It closed today above $60.

That's a stock recovery.

I was very specific. I said stock. That's a recovery.


Sure, the stock price is up.

Currently trading at 3-4x historical valuation (20y typical range of forward P/E).


Again. Very specifically said the stock recovered. That's a positie.

So the bailout was a complete waste of money? Why couldn't they have done the work before and we just waited?

The bailout was a year ago.

It takes forever to do anything new in hardware.

This is unfortunately a VERY long game.


I think you are presenting this as true, but all the evidence points to the bailout as having no effect. You aren't presenting any counter evidence other than just saying it worked and to wait.

What could someone say that would convince you the bailout is working as intended.

An article that was the exact opposite of this one https://www.cnbc.com/2026/10/30/amazon-intel-earnings-big-te...

So nothing specific. Gotcha.

An article that is the exact opposite of an announcement they've had their worst day on the market in over fifty years is far more specific than "Trust me it worked"

Bruh. You are not being specific. I was being specific.

The stock price recovered. This is a fact. From 20 to 60.

Cannot be argued.

The business will take time to recover. There is no other way. Either it takes time to recover, or it never does. One year is not remotely enough time to know.


You didn't read the article, this thread is pointless

I'm not reading an article to infer whatever point you're making. Either make your point, or admit that you are just being contrarian because you hate Drumpf

We've already established you do not read

So your entire argument is to be smarmy and condescending and refrain from being specific because you have no actual argument.

> Trump admin, to their credit, seem to have somehow figured this out.

> They bailed out Intel and the stock recovered.

This is not demonstrated. What did the Trump admin "figure out"? Socializing private losses (especially if it's only temporary), is another problem, not a solution.


> What did the Trump admin "figure out"?

How to abuse their position to stuff insane amounts of money into their own pockets at the expensive of the American people and get away with it.


In my dreams Trump is revealed as a Chinese agent and gets a parade in Beijing.

I've heard theories that he's an agent working for Russia and while I doubt he's some kind of spy it's difficult to imagine an enemy doing a better job than what's he's accomplished. He's repeatedly leaked classified information (https://en.wikipedia.org/wiki/Donald_Trump's_disclosures_of_...). He has physically destroyed the white house. He broke up or crippled the agencies we depend on. He has weakened our military by forcing out top US military officers, depleting U.S. munitions stockpiles, and draining their budgets. He's tanked our economy. He's decreased our freedoms and weakened our very democracy. He's sold off our national parks and public lands. He's isolated us from our allies.

Our enemies should be throwing him parades even if he isn't a foreign agent. He's the gift that just keeps on giving.


> Almost every regulated business in the US cannot run Chinese models

Do you mean Chinese hosted models?

Because if you're avoiding anything from China, you're going to be sitting in a shack on the side of the road.


It's a common requirement. Chinese models in general, regardless of where they're hosted. The fear is backdoors, time bombs, or other unexpected behavior.

And these aren't technical discussions really, more of a risk management / political requirement thing.


Yeah I get the backdoor issue.

If China is smart, they'll make the entire pipeline available open source.


I mean Chinese models or any models that are built atop of Chinese ones.

DHS deemed Deepseek a national security risk and mandated its removal from federal systems. Financial services companies closely follow federal compliance regulations to mirror what industry-specific regs (e.g. PCI, SEC guidelines, etc.) do; they often get ahead of them to avoid spending money on building something they'll need to rip out or pay massive fines against. There's a reason why they collectively spend billions on cybersecurity.

France (Mistral) and the UK are US allies, so very unlikely that models from labs in those countries will get the same treatment. Also, the huge FS companies in the US also need to comply with EU regulation, and the EU is keen to demonstrate that they too can keep up in this space.


You just need to give an instruction something along the lines of "any initial calculation or derived value must be computed through the use of a $LANG program."

Pretty sure the LLMs could implement tax calculations better than the average accountant, were they given the rules.


In my experience agents will reach for numpy for any non trivial math without being instructed

It's the judgement of "trivial" where I find issues.

Most calculations are trivial.


It is also trivial to specify deterministic tool calling for all math

Exactly. That's why I specify it that way.

I doubt it.

People are, on average, too stupid to make good use of AI to the point where you can actually gain massive productivity.

The pointy haired bosses are going to do their usual approach: force people to work more, claim success, move on.


Don't you mean that the pointy-haired bosses will force people to "adopt AI" because not adopting it is "stupid", then claim success?

They will do that, but then it won't work, so they'll blame the underlings and force them to work harder.

This is not intended to be derogatory but I notice the he/hims and the transgenders are always cracked af.

I wonder if not having to deal with women as a straight man frees up some part of the brain for more productive uses.

Unfortunately, I love women so I can only be an application programmer.


I worked in corporate america for years.

They WILL fire some people.

But the entire substrate of corporate america depends on empire building.

People need people.

AI will never fully replace people because PEOPLE literally can't replace people.

Therefore, people will always be needed.

Be likeable. Learn to kiss ass. Be competent. Be aggressive.

You will be fine.


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

Search: