Dafny is a good intermediate step for LLM generated code.

this is the abstract of the paper:

Using large language models (LLMs) to generate source code from natural language prompts is a popular and promising idea with a wide range of applications. One of its limitations is that the generated code can be faulty at times, often in a subtle way, despite being presented to the user as correct. In this paper, we explore ways in which formal methods can assist with increasing the quality of code generated by an LLM. Instead of emitting code in a target language directly, we propose that the user guides the LLM to first generate an opaque intermediate representation, in the verification-aware language Dafny, that can be automatically validated for correctness against agreed on specifications. The correct Dafny program is then compiled to the target language and returned to the user. All user-system interactions throughout the procedure occur via natural language; Dafny code is never exposed. We describe our current prototype and report on its performance on the HumanEval Python code generation benchmarks.

 

YOU MIGHT think that in Trumpworld a new National Security Strategy (NSS) would not count for all that much. John Bolton, a national security adviser in Donald Trump’s first term, frequently laments that his boss had no strategy at all. Instead, the president worked by impulse—and without the encumbrance of too many briefings. From one day to the next, he veered in opposing directions.

Despite that, the new NSS matters. Released, weirdly, in the dead of night on December 4th/5th, it will be pored over by soldiers, diplomats and advisers in America and around the world. It is the latest and fullest statement of what “America First” means in foreign policy. It sets the terms for a soon-expected review of military power, and lays out the priorities for all those trying to interpret the president’s wishes. And, for many of its readers, it will be profoundly alarming.

For the most part, the new NSS rejects the decades-old insight that a common set of values are what cement America’s alliances. It declares that it is “not grounded in traditional, political ideology” but is motivated by “what works for America”. Instead, it embraces what it calls “flexible realism”. That means being “pragmatic without being ‘pragmatist’, realistic without being ‘realist’, principled without being ‘idealistic’, muscular without being ‘hawkish’, and restrained without being ‘dovish’.”

If that sounds like a dog’s breakfast, that is because it is. Shorn of the enlightened values that have long anchored foreign policy, America First becomes a naked assertion of power that owes more to the 19th century than the world that America built after the second world war. And that leads to a document riven by contradictions.

In some parts of the world, in particular in Asia, Mr Trump expects countries to behave as willing allies. In most others they are to submit meekly to America’s economic and military will. In one place the NSS rejects the interventionist idea of urging countries to adopt “democratic or other social change that differs widely from their traditions and histories”. That suits Russia, China and the monarchies of the Middle East. Yet in Europe, where MAGA worries about wokeism, migration and the dominance of liberal values, the NSS bluntly declares that “our goal should be to help Europe correct its current trajectory.”

When the NSS applies this formula to the world, region by region, the full consequences of this shift start to become clear.

Nowhere is this more evident than in the section covering the western hemisphere. “We want to ensure that the western hemisphere remains reasonably stable and well-governed enough to prevent and discourage mass migration to the United States,” it reads. Governments in the Americas will be enlisted to control migration and curb drug flows. They are expected to grant America control of key assets, resources and strategic locations, or at least a veto over “hostile foreign” ownership of them—a clear warning to refuse Chinese investments that offer a sway over ports or such assets as the Panama Canal. Where law enforcement has failed to halt drug smuggling, America will use armed forces, the NSS warns.

This swaggering right of intervention is called a “Trump Corollary” to the Monroe Doctrine. That is a deliberate tribute to the “Roosevelt Corollary”, President Theodore Roosevelt’s assertion of gendarme-like enforcement rights over the western hemisphere in 1904.

All this seems sure to provoke angry recollections of high-handed American interventions in the region in the 20th century, from military invasions and blockades to CIA-backed coups or security pacts that saw America arming and training autocracies guilty of extra-judicial murders and torture in the cold war. With its talk of conditioning aid and trade on co-operation from Latin American governments, the NSS signals a belief that resentment will not stop Latin Americans from doing as they are told.

In Asia, by contrast, allies will read the NSS with a mixture of immediate relief and long-term gloom. The passages on Taiwan could have been worse. The nightmare scenario for such allies as Japan, the Philippines and South Korea would have involved an NSS declaring that the fate of the democratically ruled island of Taiwan is not an existential interest for America.

Instead, the NSS restates America’s position that it “does not support any unilateral change to the status quo in the Taiwan Strait”. True, there is nothing about Taiwan’s importance as a friendly, pro-Western democracy whose people overwhelmingly oppose coming under rule by China. But the strategy does make a cold-eyed realist case for Taiwan’s importance as a usefully-located redoubt in the middle of the “First Island Chain” that runs from Japan through Taiwan to the Philippines, penning in China’s navies and air forces. In addition, the NSS nods to Taiwan’s importance as the largest source of advanced semiconductors.

Accordingly, America will sustain forces capable of deterring any attempt to take Taiwan or to control the sea lanes near that island, or in the South China Sea. Asian allies must also spend much more on their own defences and grant America more access to their ports and bases. In short, the NSS demands that Asian countries risk China’s wrath by helping America contain Chinese ambitions in the Indo-Pacific. But there is not a word of criticism for China’s (or indeed Russia’s) expansionist ambitions or their desire to overthrow the post-1945 legal and multilateral order.

The NSS spares its sharpest barbs for Europe. The old world, it says, is undergoing a profound crisis, and this is not so much about economic decline or military weakness as it is about the loss of national identity, leading to the “stark prospect of civilisational erasure”.

Warning that “it is more than plausible that within a few decades at the latest, certain NATO members will become majority non-European,” the NSS warns that “it is an open question whether they will view their place in the world, or their alliance with the United States, in the same way as those who signed the NATO charter.” In other words, immigrants will corrupt the values of the societies they move to—a shocking assertion from a country that is itself built on immigration.

The NSS’s prescriptions for Europe flow from this assertion of Judeo-Christian nationalism. The NSS calls for “unapologetic celebrations of European nations’ individual character and history”, encouraging the revival promoted by “patriotic European parties”. That is a reference to the populist right, including National Rally in France, Reform UK in Britain and Alternative for Germany, which the vice-president, J.D. Vance, embraced earlier this year when he spoke at a conference in Munich. If that is the Trump administration’s programme, how are the centrist governments in Europe, who see these parties as a grave threat, supposed to treat America as an ally?

When the NSS applies this rationale to Ukraine, it draws some devastating conclusions. Suggesting that most Europeans want peace even if it means surrendering to Vladimir Putin, and asserting that their governments are standing in the way, the strategy calls for a rapid end to the war in order to prevent escalation. It says that America should curb the sense in Europe that Russia is a threat and warns that NATO cannot be “a perpetually expanding alliance”. Alarmingly, it has nothing to say about the repeated aggression and hostility of Vladimir Putin, the Russian president. To much of Europe, this sort of appeasement will only serve to set up the next conflict.

“In everything we do, we are putting America First,” reads the letter from Mr Trump to the American people that opens the NSS. But it is the preceding sentence that will be read by allies with gloom, and with glee by China and Russia, for it is hopelessly at odds with reality: “America is strong and respected again—and because of that, we are making peace all over the world.” Alas, that claim comes from an administration that is indeed feared, resented and obsessed over, but one that is less respected or trusted than any American government in decades.

 

https://www.economist.com/business/2025/09/22/nvidias-100bn-bet-on-openai-raises-more-questions-than-it-answers

ONE THING is clear about the announcement on September 22nd that Nvidia may invest up to $100bn in OpenAI to help the maker of ChatGPT buy 4m-5m of Nvidia’s artificial-intelligence (AI) chips. Silicon Valley is becoming more incestuous than ever. Just days after Nvidia announced a $5 billion investment in Intel, as part of a deal to help boost the business of its beleaguered American chipmaking rival, the proposed partnership between Nvidia and OpenAI, set to start in the second half of next year, is yet another eye-popping move. It makes today’s AI-driven stock market rally increasingly dependent on the intertwined fortunes of the world’s most valuable firm and America’s most prominent private tech firm. For good measure, OpenAI is also deeply entangled with Microsoft, the world’s second-richest firm. Nvidia’s shares climbed by almost 4% after announcing the letter of intent with OpenAI, raising its value to close to $4.5trn. Jensen Huang, Nvidia’s chief executive, described the deal as an addition to its sales of graphics processing units (GPUs), which likely buoyed the stock. He also said that selling as many as 5 million extra GPUs would be roughly equivalent to Nvidia’s entire GPU shipments this year. There was another unspoken benefit. The deal would make OpenAI more dependent on Nvidia’s chips, reducing the incentive to build its own. It was also apparent that Nvidia would fund the GPU sales via the $100bn it is proposing to invest in OpenAI, which will increase in $10bn increments for every gigawatt (GW) of Nvidia-supported data-centre capacity that OpenAI builds, up to 10GW. Some Nvidia bulls celebrated the proposed investment as a convenient way for the chipmaker to fund its sales. In effect, said Pierre Ferragu, of New Street Research, a firm of IT analysts, Nvidia would invest $10bn for every $35bn of GPUs OpenAI buys from it, meaning OpenAI will pay 71% in cash and 29% in shares. But some also expressed concerns about the transaction. In an interview with CNBC, Stacy Rasgon of Bernstein, an investment firm, acknowledged that it would exacerbate worries about the “circular dynamics” of Nvidia investing in companies that it supplies with GPUs. The size of the deal will “clearly start to raise some questions”, he said. Moreover, OpenAI’s use of its privately held shares as currency may also deepen concerns about its cash constraints as it makes ever-bigger spending pledges. It has reportedly struck a $300 billion deal with Oracle, a data firm, to build 4.5 GW of data center capacity over five years starting in 2027, which was the primary contributor to Oracle’s blowout earnings projections earlier this month. That is connected to the “Stargate” project President Donald Trump announced at the White House in January. However, how OpenAI finances such expenditures remains an open question. Though ChatGPT has more than 700m weekly active users, making it by far the most popular AI application, the response to GPT-5, the research lab’s latest family of models, has been underwhelming. For now, the sums OpenAI is promising to spend dwarf its revenues, which run at close to $13bn a year. Cash is not its only constraint. Additional power capacity of 10GW is almost half of the 22GW of utility-scale electricity generation added in America in the first half of this year, or the equivalent of ten nuclear power plants, even with a laxer infrastructure-permitting regime, that could take years to bring online. Sam Altman, OpenAI’s boss, acknowledged three difficulties in particular to overcome as he announced the Nvidia partnership. One was pushing the frontiers of AI research. The second was building products that entice users. The third was the “unprecedented infrastructure challenge”, such as obtaining chips and power supply. A lot of interconnected wealth is riding on the hope that he can solve all three challenges simultaneously. None is proving as easy as getting his well-heeled friends in Silicon Valley to believe his promises.

 

Here's a theory to help explain some online discourse of emotional suppression that could be behind certain meme-ing behaviors or neurodivergence, in the sense of articulating emotions that might arise from different parts of memes.

Pepe = the stunted inner child, stuck at a kindergarten-like emotional level, innocent and vulnerable but largely unable to articulate what's wrong using complex emotional language, just knows it's sad or something with some body language.

Wojak = the adult mask, the societal script-following shell that's supposed to have it all figured out but is actually just as lost, ,wondering "I did everything I was supposed to do, why do I feel like garbage?"

When they're combined in memes, it's literally the adult self staring at its own emotional stun,ting going "what the hell happened to me?" The bland, mask-like appearance of Wojak is perfect because that's precisely what following societal scripts does: it turns you into this generic, hollow version of a person.

And the reason these memes exploded across the internet is that many are seeing this split. They see Pepe and think, "Oh wow, that feels like my emotional state," and they see Wojak and think, "Oh damn, is that what I look like to the world?"

It's as if the internet has figured out how to express the fundamental disconnect between their inner emotional reality (confused, sad, stunted, etc.) and their outer social performance (bland, conforming, mask-like) through frog and Wojak memes.

view more: next ›