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

"Given the opportunity, players will optimize the fun out of a game." - Soren Johnson, Civ 4 lead designer, 2011

I agree, if you change "players" with "people who play games to win and not have fun".

This is true in a competitive sense.

It is not true in a general sense.

Most people play games to optimize for fun...


He wasn't talking about competitive "people who play games" He was talking about regular players. His customers. A large number of regular players want fun, and winning is fun, so they try to win. But often the easiest way to win is also the most tedious way to win, so people stop having fun winning, but intentionally crippling themselves by not making the optimal choices is also not fun. So in the end, the game stops being fun at all and these players that did the optimization lose desire to play. Therefore, the essay[0] says, it's very important from game design perspective that the most optimal way to play is not boring and tedious.

It has nothing to do with competitive gaming.

[0] https://www.designer-notes.com/game-developer-column-17-wate...


GCC routinely adds support for C++ features before they're fully approved. -std=c++0x was added 2 years before C++11 was published, and initially included some features that were ultimately removed. -std=c++26 is available since 2024 and -std=c++29 is going to be added soon in GCC 17.

Similar story with Clang, though CBA to find exact dates/versions.


That's not actually adding support for features before they're approved.

The -std=c++XY flags are added after the previous version is released and the new version's target date is known. The actual features are tracked in pages like https://clang.llvm.org/cxx_status.html, with the new features being added to the lists after they're voted into the standard. Implementation work only begins after standard inclusion, and this is a very deliberate choice (compiler vendors don't want to chase a moving target for implementation details).


It was called C++0x literally because the date was unknown.

The status page you linked shows that a lot of C++26 features - which still isn't finalized to this day BTW - have been implemented in Clang 17, 18 and 19 released in 2023 and 2024.


And Rust nightly feature implementation only starts after the RFC process completes and the change is approved. Which is equivalent to adding a proposal to C++ working draft (both indicate it's almost certainly going to become part of the language as is, in their present form, with only one more vote afterward to irreversibly confirm it.)

So either way, C++ compilers are just as willing to add experimental features as Rust, or equivalently, Rust is just as unwilling as C++.


That is quite literally adding features before they're approved. Even in your link, a table has a heading "C++29 Proposal".

Those are features that were voted into the C++29 standard two weeks ago or five months ago.

P3733 isn't part of either 26 or 29 draft at the moment, correct? And it's already implemented in Clang 23.

P3733 is incorporated in the working draft: https://eel.is/c++draft/lex.universal.char#3 (it was voted in in Brno in June). (If you prefer, see https://open-std.org/jtc1/sc22/wg21/docs/papers/2026/n5054.p..., which is the C++29 working draft issued immediately after Brno).

Luna lied to me, who would have thought. I stand corrected.

Formal final approval for C++29 is, naturally, scheduled for 2029: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p10...

Approval into the working draft is the stage that compiler implementers actually care about; the ISO approval step is basically meaningless to them. Which is why it seems that all of the compiler implementers on the committee preferred the option of "cancel C++26" to the entire C++26-draft-ballot-failed debacle.

If I was someone trigerred by incorrect use of the word "determinism" when talking about AI, I would be so much more triggered by "transparent homomorphism".

Nevertheless, we do need a word for the property of guaranteeing preservation of the encoded algorithm, and we need it fast. I don't know what that word might be. Definitely not homomorphism, though.


"Semantics". Programming languages have semantics. LLMs do not. You really don't need to go deeper.

Do humans have semantics? My first instinct is to say yes, and that would imply AIs can also theoretically gain semantics one day without being compiler-like.

Taking this seriously... Human communication in natural language does not have the kind of precise semantics needed to unambiguously convey the entire behavior of a program. That's why programming languages were invented in the first place.

The problem is more subtle than just having a specification. Code is a complete positive and negative specification. It conveys exactly what a program will do and will not do, with a combination of presence and omission. Natural language communication does not work that way. It involves implicit shorthand everywhere. Details omitted are left to the receiver to infer, and there are lots of social rules in place about how to do that in good faith. But even in good faith, there are options that have different sets of cascading consequences in software.

As an example: Say a web app needs to take an email address as user input, and the validation process is unspecified. Do you make email validation interstitial, where the process can't proceed until the user has received an email from your system at the specified address? Do you let the process proceed to collect other information, but defer completion of whatever your app does until the address is validated? Both of those are completely reasonable, but the latter requires architecturally allowing unverified users to participate in lots of functionality, but not all. The former only requires unverified users to be allowed to become verified. This architectural choice cascades through your software, as the policies and data structures shape everything your program does.

Natural language specifications are filled with thousands of small ambiguities like that. Code... just says what to do. Precisely.


> Code is a complete positive and negative specification. It conveys exactly what a program will do and will not do, with a combination of presence and omission.

This kinda falls apart when coupled with undefined behavior, JIT optimizations and lazy evaluation. Various programming languages permit both for things to happen even when not specified by code, and for things specified in code to not happen, at the discretion of the compiler and the runtime environment. And these compilers still have this property of preserving the overall algorithm that AIs lack, and that I'm looking for a better name for.

Usually, when people use the word "semantics" when talking about code, they do it to explicitly highlight they're talking about the opposite of the precise nature of the code as written. Especially as an adjective "semantically". For example, HTTP ETag is semantically the identifier of a particular version of a document. Semantically it's used to conditionally refetch the document if cache is stale. But in actual code, there are no versions, and ETag is basically a secondary cookie with lifetime tied to cache entry, that can contain an arbitrary string that may or may not have anything to do with the requested document. In actual code, presence of ETag enables the use of status code 304 and that's it, the rest is just a convention. Hulu famously ignored the intended semantics and used ETags for user tracking.

Funnily enough, Wikipedia article on ETag contains the word "semantically" used in this meaning, talking about a different aspect of ETag: "A weakly validating ETag match only indicates that the two representations are *semantically* equivalent, meaning that for practical purposes they are interchangeable and that cached copies can be used. However, the resource representations are not necessarily byte-for-byte identical, and thus weak ETags are not suitable for byte-range requests."[0] Just to show I'm not pulling it out of my ass.

All this considered, while I can see why you'd call this thing "semantics", I don't think it would be a useful term in practice, pretty much for the same reasons why determinism isn't.

[0] https://en.wikipedia.org/wiki/HTTP_ETag


Ah, I think I see. You mistook my statement for "a program fully specifies its exact behavior in all details". I can see why. I worded it too broadly. You are right, there is a bunch of room for uncertainty in internal details. But the key point is that those details are independent of the language semantics. As long as the semantics are observed, the details are allowed to vary. But that's my point: the language has semantics. They exist separately of code execution.

You can examine code to see whether it's correct and complete. You might be able to examine a natural language prompt to find incorrect portions, but you'll never know that it's sufficient to generate a system with all the properties you need before you run it. And that's not because of nondeterminism, it's because natural language doesn't work that way.


Here's the problem - you're talking about language, but it's the compiler, not the language, that has the property I'm talking about. LLM doesn't need to know English or any human language. It can be 100% trained entirely on programming languages with strictly defined semantics. You can have LLM that is only capable of understanding C and only produces valid LLVM IR. Every input will have known, verifiable semantics. Every output will have known, verifiable semantics. There would be zero question about the meaning of the input or the output, and everything will be according to every applicable spec. And yet, this LLM would produce bytecode that is only loosely based on the source code and only preserves the intent in very broad strokes - as opposed to a compiler that, despite producing something completely different in every way from the source, is guaranteed to perform all the same computations.

What do you call this difference between a compiler and an AI, when both speak the same (programming) language?


If that ever happens, I'll care. It won't, because no one is going to pay per-compilation of a language that can be compiled by a faster and cheaper local system.

LLMs are only used for cases traditional compilers can't do. I don't consider a what a system does to be different from what it is.


Yes, the example is purely hypothetical - but the property is very real, and ascribing it to language (lack of) semantics is at least a category error. You can't say it's okay to be wrong just because a counterexample is yet to be implemented. That's not how science works. Especially theoretical science like CS.

Eh, no. There are strictly prescribed semantics linking the input to a compiler to its output. There's no such restriction on an LLM. That makes it an entirely different sort of thing. Any argument that attempts to sophistry that distinction away is missing the point.

But the semantical linking is because of the compiler, not because of the language it's parsing/producing. It's an important difference. You can have English to German "compiler" with the exact same guaranteed-link-between-input-and-output even though neither English nor German have strict semantics. And this time it's not a hypothetical - it's literally how early translator applications worked in the 80s and 90s (and the reason why they were so bad). It's not sophistry, it's pointing out that C having strictly defined semantics is wholly and entirely irrelevant to what we're discussing.

Someone else suggested calling it lawlessness. I like it a lot more, it makes much more sense than semantics. Compiler is lawful, there are laws about how the output relates to the input. LLM is lawless, there's no such linking. Regardless of languages used or strictness of their semantics. LLM remains just as lawless in C-to-LLVM as it was in English-to-English.


I use chaotic for the general term and prompt instability to refer to the specific issue.

I think chaotic works well because it captures the problem that very small changes to input produce very large changes to output and not in a way that you can easily reason about.


I see what you're going for. Unfortunately, "chaotic" is already a common term in information theory, and the assembly output of an optimizing compiler definitely counts as chaotic, since small changes in source code can often result in rewriting half of executable (e.g. adding an extra field to some struct, a one-line change, can change the decisions about packing, reordering stack, repurposing padding bytes, inlining, function order in file and split between pages, and other unpredictable downstream effects, including 2nd and 3rd order effects from the changes mentioned). But despite the chaos, an optimizing compiler still has the property of preserving algorithms.

I think that prompts are many orders of magnitude more chaotic than inputs to a compiler in that a single character change is likely to result in a new output that shares 0% overlap with the original output.

But I see your point that compilers can also be described as chaotic even if it is to a lesser degree.

Maybe lawless is a better word to describe the lack of any formal properties that are preserved.


Information-theory-chaos-wise, I'd say LLMs are less chaotic than compilers, because small variations in prompt (typos, synonyms) result in minimal changes (often no changes) in output. You can say that the randomness in output is not of chaotic kind.

Lawless is a good one. I like it, it's pretty accurate to what I wanted to convey and there's no overlap with existing terminology.


Predictable.

AI is very predictably doing things it wasn't asked for. Not a good choice of word.

In that sense, nothing is unpredictable. Earthquakes predictably happen on an unpredictable schedule. So they are predictable. The outcome of a dice throw predictably will be between 1 and 6, and furthermore predictably unpredictable which of those numbers. What could be more predictable than a dice throw, I now wonder...

The kind of thing the AI will do based on a prompt can be easily predicted based on which model was used and what the prompt was - even if the result isn't what the prompt asked for. Not everything has this property. You can't predict if the dice will roll 6 based on where it was bought and how the throw was made. You can predict GPT will tell you GDP of USA when the prompt said "which country has highest GDP" unless the prompt also specifies to give very short answers.

But that's all besides the point. Predictability is a bad term for what compilers have that AIs don't.


> the kind of thing the AI will do based on a prompt can be easily predicted

Sure, in the same way "the kind of thing" a dice will do when you throw it can be easily predicted. You are trying to tease out subtle details that don't actually exist. 'Predictable' is perfectly fine. So is 'deterministic'. People will get your gist, according to the depth of their understanding of the subject, as is the case always.

AFAIK there are a couple of sources of indeterminism in modern LLMs. One has its source in the nitty-gritty of computation pipelines in servers. This one can be avoided by paying a price in resources (time and memory). Then there's 'temperature', which is a purposefully introduced (pseudo-)randomness, which helps the net avoid getting stuck in local minima. This can be set to zero, which degrades the model's general usefulness/accuracy but removes some of the unpredictability.

But the main source of indeterminism is accumulated during training. This is the one people miss, because they are thinking of the model as a completed artifact. But because we use these models with a new input pretty much every time, we are always encountering this last form of indeterminism. I think this is why people get confused about the right word to describe what's happening.

Sabine Hossenfelder put out a video a few days ago on just this subject, it's worth a watch: https://www.youtube.com/watch?v=-MiM5xfAe2c (and yeah, she's using those stodgy old words without complaint: 'predictable', 'random' etc.)


Neither predictable nor deterministic nor homomorphic is fine. People will not understand what you mean, and will argue to death that compilers are just as deterministic/unpredictable/nonmonomorhic as AIs, and they'd be literally right. "You know what I mean" can get us only so far.

The only people who will "not understand" will be pedants who don't understand that language is fuzzy and ever-changing, and that that's a feature of language, not a bug. Granted, these people are over-represented on this site, but they are still a tiny and inconsequential minority. The vast majority will be (and are) just fine.

Apparently the language ever-changed from underneath me so fast I didn't even notice engineers are called pedants now. Of course engineers - who are vastly overrepresented on this site - like precise terminology. It makes our job so much easier. We have words like constant, static and immutable. In common speech, all three mean the same thing and can be used interchangably, and even if they don't quite fit, you can say "you know what I mean" and the issue disappears. In programming, it makes a world of difference whether a value is constant or static (or static constant), constant or immutable (or immutable constant), and so on. We must be able to differentiate between these 3 synonyms or we wouldn't be able to do our job efficiently.

Predictable already means something. In a technical discussion, it would be very annoying if it suddenly grew a whole other unrelated meaning. "The predictable mode produces unpredictable ordering in high traffic, and that hurts our cache hit rate. We're going to use this new module to predict traffic spikes and switch to unpredictable mode to keep output predictable" - actual lines that I'd have to say at some point in the future if your idea took hold. And yes, it's perfectly understandable what I mean. But it's still annoying.


reason-able

Could be easily confused with ability to reason (which compilers DON'T have).

I fully expected your comment to end with a sarcastic "it'll be just fine".

Well yeah that would have been a lot funnier. I guess they can't all be zingers.

What period was it? Secure internet connection basically didn't exist until 1999, and by the time TLS 1.0 was found insecure, 1.1 already had wide support. Same with 1.1->1.2 transition.

Pretty much the whole 2000s. Mark the end of that period with the TLS CRIME attack.

It kinda does that, by using borrows. If A borrows B, then the upper bound of A's lifetime is the borrow of B. You can control the lifetime of the borrow by creating a new mutable reference to B at a particular point (works regardless of whether the original borrow was mutable or immutable).

In this case you’re really setting a lower bound on the borrow of B, not an upper bound on the lifetime of A.

I assure you this is not pedantry or a nitpick. The classic case here is if you want to borrow a local variable inside a thread… you need to ensure that the thread lifetime is bounded from above by the lifetime of the borrowed variable. This is why we have weird workarounds like std::thread::scope. If we could just express an upper bound on lifetime, it wouldn’t be necessary.


I fail to see the difference between the lifetime of the variable being longer than the thread and the lifetime of the thread being shorter than the variable. I also fail to see how flipping it around would help eliminate std::thread::scope, which exists because of Rc cycles. Could you please show an example of what kind of code would be disallowed if upper bounds existed that is not possible today?

Here is your example:

  use std::thread;
  fn main() {
    let v = vec![1, 2, 3];
    let handle = thread::spawn(|| {
      println!("{:?}", v); // borrows `v`
    });
    handle.join().unwrap();
  }
If lifetimes could have upper bounds then this would work.

Define "would work". As far as I know, this already existed in pre-1.0 Rust, it compiled, it worked, it prevented borrowing variables with shorter lifetime than the thread, and it only fell apart if you did something very questionable with cyclical Rc's.

Would upper bounds prevent falling apart if you did something very questionable with cyclical Rc's? If so, how so? What kind of code would compiler REJECT that it wouldn't today?


“Would work” = would compile and run as intuitively expected.

I don’t understand the second paragraph. “Questionable” is vague, lots of things are questionable. The last sentence I don’t understand.

I’m illustrating a limitation of the compiler and of Rust as it exists today, not some pre-1.0 version, and I’m not comparing it to some complete alternative compiler without that limitation. The sample code above is an illustration of the limitation only.


I think your parent is thinking of the thread::scoped API, which was removed before Rust 1.0, and is back now. And it illustrates a technique to do what it is that you want, even if you can’t literally do what you want, but there’s sort of a parallel to defer vs RAII, in that it doesn’t really let you fully escape the parent scope, but does give you what you want in certain circumstances.

Right, if your use case works with thread::scope (as I mentioned) you can get it working.

The thread::scope is kind of a workaround that may or may not work for your use case and I trust people are able to figure out that I’m illustrating a limitation, and not asking “how can I get this code to work”.

If lifetimes could be bounded from above, then we could say that references which the closure borrows are bounded above by the scope containing the thread. We can’t do this, so we use thread::scope instead, which introduces a second closure just to work around the limitation.


> I think it was the right call by the C++ people to explicitly list what objects are captured and how

Having recently worked a lot with Rust, which does this implicitly - I find the explicit notation entirely unnecessary. There's only one choice - are captures moved into closure or passed by reference? - and everything else is inferred. It does lead to some verbose cloning when there are many refcounting pointers at play, but other than that it works flawlessly; I've never been in a situation I couldn't do something I wanted to.

I'm confused by the point about RAII. Why are you saying that closures break it? Personally, I found that closures complement RAII very well - the closure owns its resources, and when it goes out of scope they're all cleaned up automatically. Or do you mean situations where resources outlive the closures? This is no different than any other object that needs a reference to something that lives longer.


Before 6.2 Astra was published.

"haven't been" implied that it isn't released now. If he said "hadn't been", that would be relevant, though it also wouldn't matter because it wouldn't imply that the public doesn't have the tools now.

What's your point? Are you suggesting that models become weaker once they're published? Are you suggesting that a model is only published after all new discoveries accessible to it are claimed by the lab?

> Are you suggesting that models become weaker once they're published?

I can't speak for the parent commenter, but yes, this is fairly common "knowledge". We know that released SOTA models are dumbed down versions of what is available internally (explicitly w/ Mythos -> Fable), and the community is fairly good at predicting new model launches shortly after existing models start behaving noticeable dumber.

It is completely reasonable that prior to launch, when the user base is a sliver what what it is post-launch, that allocated resources and "thinking" complexity can be substantially elevated (compared to what is available to tens of millions of external users).


It's highly unlikely that the internal versions of 6.2 Astra at OpenAI functioned the same as the publicly available release now. There are simply too many parameters around compute, and safeguards on public releases that don't exist internally.

Even after release, models are updated dozens of times a day without having their version name changed, or even providing any public indicators of a new version at all. "6.2 Astra" really refers to a family of model releases, not a specific set of hardlocked weights.


> Are you suggesting that a model is only published after all new discoveries accessible to it are claimed by the lab?

Dunno about OP, but this is what I would stand by. They spend millions if not billions on driving it to get all the low-hanging fruit, and only then hand us the models.


I don't get it. Can someone explain?

Typically there is a heart emoji in that text string. The blinking indicator is a meme/trope presented throughout the article in an overbearing fashion, reflecting its prevalence in contemporary LLM output.

I would read it as:

> Made with "lol fuck you" by Mike Lacher


I think the blinking red dot is supposed to represent a red heart. Some pages have "made with love" but love is instead a red heart. It's an older trend. On this page, it's obviously satirical.

Back in 2012, members of the NY Tech Meetup like Vimeo started putting "Made with ♥ in NYC" (linked to nytm.org/made) in their site footer in an effort to strengthen the city's software engineering reputation and community. Hipster webdevs across the country immediately emulated this with their city named and some years later, the cutesy Millennialism had been thoroughly appropriated by the most soulless of corporations (like Comcast). This parodies that trend but instead of being made with love it's made with [meaningless character].

https://web.archive.org/web/20120414172241/http://nytm.org/m...


Looks like HAL 9000 to me but the page does give reference for the blinking lights, in this case it’s “0 Real Incidents”

For every statement that humanity as a whole knows for certain that it's true, there exists a human who understands how to prove it.

This just stopped being true.


That kind of certainty vs. understanding is limited to mathematics, of course we’re almost entirely certain about many things out in the world we don’t fully understand.

And even in mathematics, incomprehensible but valid proofs have been a thing since the four-color theorem decades ago.


That's not true. You can take any single piece of that lean code, and it tells you exactly how to prove it.

It's just that no single human understands the whole. But we had proofs like that before.

Btw, see also the infamous proof of the 4 colour theorem, which faced similar hurdles.


Riemann hypothesis is "the statement". The entirety of it, a single statement. And we know for a fact that single statement - the entirety of Riemann hypothesis - is true. Understanding how to prove this one statement is understanding how to prove the entirety of that one statement. And like you said yourself, no human understands the whole of this one statement. This literally never happened before.

What about the classification of the simple finite groups?

That's also one statement that no human understand the entire proof of. (You can make new statements by taking multiple existing statements and combining them with 'and' for example.)


This feels like the wrong framing.

This hypothesis was previously not proven at all. That's strictly worse.

Now it is understood by our systems.

Soon it will be by us. Our systems gave us a new and working salient.

We're building machines that help us understand faster.

There have been plenty of times in history we didn't completely understand something yet used partial knowledge to make advances. This isn't even that bad.


The inverse of what I said might be easier to understand. Up until this week, there has been no statement in all of science that we simultaneously knew for certain that it's true and that nobody understood how to prove. It was always either-or. Either someone understands how to prove it, or we didn't know for certain.

We didn’t understand how to prove the four-color theorem?

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

Search: