

I don’t know what I was thinking.
But, if you borrow C’s semantics, you are allowed to “optimize” away side-effect-less loops, even if they would never terminate. But that would require the random method to be pure.


I don’t know what I was thinking.
But, if you borrow C’s semantics, you are allowed to “optimize” away side-effect-less loops, even if they would never terminate. But that would require the random method to be pure.


I feel like an idiot. Also, in the “Good” example, no underflow occurs. i goes from 0 to -10, and x is assigned to -i every loop.
It might still be possible to optimize away the random number example, if the random function were made a magic language item, but it would not be even remotely close to being worth the effort.


The compiler should be able to optimize all of them to the same machine code.
x==10, so as long as the nextInt() method doesn’t have side effects, the loop should be eliminated. But, again, language semantics can affect this.Edit: Very wrong for 3 & 4, see replies.


Depends on your religion, I guess. The Flying Spaghetti Monster seems pretty edible.
one could argue this is a harmless way for people who suffer from this to get their fix.
I don’t know how many people get off from drawings. I think that AI-generated child porn might be better?
I’ve never understood the complaints about that. It’s not like real children are hurt by those drawings.
Also Ireland, Norway & Sweden.


If you make it amphibious and go fast enough, it will plane.
Their vision is based on movement, stay perfectly still.
You’re thinking of a different kind of predator. I don’t think that would work against sexual predators.


The theory of everything?


I understand, but the value of something like “about 200 apples” might vary a bit less.


I understand what you mean, but the value of 1 of a currency depends a lot on the currency. 1 euro/U.S. dollar is roughly equivalent-ish to 10 Swedish krona or 100 Japanese yen/en.
It’s JS, so about 5, I think.
Edit: Looks like TypeScript, but the same applies.


Lemmy is written in Rust.


I’m willing to count that as a bus.
As the label states, the map is old. NATO has more members now, with at least Finland & Sweden joining since then.


You seem to be slightly confused, that’s how Orkish aviation works. Western FreedomPlanes™ generate lift by harnessing the power of the line that must always go up. For example, the U.S. Dollar’s line has started to go down, which has caused many U.S. airplanes to crash.


Isn’t that how it’s done in English (Traditional)?
I hope that the language’s ints are at most 32 bits. For 8 bits it could even be written by hand & the source code for a 32 bit version would only take up avg_line_len * 4GiB space for the source code of the function. But it might take a bit of time to compile a version that supports the full range of 64 or 128 bit ints.
You could do a lot worse. If the type of
iwas an object, you could overload the negation operation to have side-effects for the third snippet, for example.