In Kerbal Space Program your ships sometimes catch the NaN virus. If one fuel tank level is reading NaN then whatever you do DON’T try and fill it from another (full) tank. I’m not sure if it can spread to physics (thrust, mass, etc) EDIT: Yes it can happen to physics, oh dear.
I wonder what would happen if you landed a NaN-infected spaceship on a planet.
You may remember Hilaria from such controversies as “how do you say in English, cu–cucumber?”. Born Hillary Lynn Hayward-Thomas in Boston, she somehow developed a Spanish accent once her parents retired to Spain in 2011.
Is this a thing? In MMA, a pro fighter from America called Mackenzie Dern married a Brazilian and adopted both the accent and the need for an English translator. There is also an English football manager called Steve McClaren that managed in the Netherlands, and infamously did an interview in broken English because “he thought locals would understand better”.
Mostly it’s not a real thing. Most people who speak multiple languages don’t get worse at one of them. Europe is full of multilingual people who speak like native speakers in their first language, and then near native in a bunch of other ones. There are times when you can’t tell what someone’s first language is.
On the other hand, it can happen a bit if you never use your native language, especially in the first few minutes of trying to switch. One famous example of that is Arnold Schwarzenegger who has spent so long in the US speaking English exclusively that his German has a slight American accent (though mostly it’s a heavy Styrian Austrian accent). Also, it is true that you can temporarily forget words, even in your native language. It’s not so much that you’re forgetting the word, just that your brain insists the object is a “pepino” (the Spanish word for cucumber) and for a moment you can’t say “ok, yeah, I know it’s pepino in Spanish, but what is it in English?”
But, “code switching” is a real thing. If an American moves to Australia, it’s really helpful to adopt some Australian pronunciations just to get by. If you ask for a “wah-der” in Australia, they’ll have to think for a second, if you ask for a “whoa-tah” they get what you want right away. Someone who speaks English fluently but is always among Brazilians who only speak a bit of English might use a subset of English to talk to them, use local phrasing that isn’t proper English but is Portuguese idioms or expressions moved into English word for word, and use Brazilian pronunciations so they’re understood more easily, even if those are mispronunciations under most English accents. But, it would be surprising if they couldn’t revert to normal English in an English-only setting.
A lot of you have a lot of faith in people reviewing PRs. I know a few Sr. developers, that if shit was too busy, would skim it and say 'fuck it, it will be QAs problem. If you put this in the correct sub-system in file that would only be executed once a month, for example a maintenance class, It would be really hard to notice something is wrong if it didn’t cause issues seen immediately. Maybe this is the story of an intern that added something that also fucked up boolean comparisons in a subsystem used once a month. Where there is a 2 week lag between the execution and operations noticing something wrong.
I use Discord mostly for arranging matches in Wiimmfi, but yesterday I used it to get help about an issue I had running Knightcrawler (selfhosted Torrentio for Stremio) with my specific setup and some kind people helped me out real quick.
Honestly I think the burden of context rests with the user. This is unfriendly, of course, but this is one of the times you are reminded the world doesn’t care. Nothing is “nice”. Security/privacy/ad intrusion is the individual’s burden.
I’d even argue that most platforms are directly adversarial to a users individual privacy. User data is such a hot commodity these days that it’s even beyond planning your own privacy, but you’re essentially farming out your data for free.
Disclosure: I use Discord and plenty of similar apps, but it’s important to protect yourself.
As a professional in the field of artificial neural networks, I endorse this meme wholeheartedly and will figuratively slake my thirst for schadenfreude on the tears of this child with joy.
That exact version will end up making “true” false any time it appears on a line number that is divisible by 10.
During the compilation, “true” would be replaced by that statement and within the statement, “LINE” would be replaced by the line number of the current line. So at runtime, you end up witb the line number modulo 10 (%10). In C, something is true if its value is not 0. So for e.g., lines 4, 17, 116, 39, it ends up being true. For line numbers that can be divided by 10, the result is zero, and thus false.
In reality the compiler would optimise that modulo operation away and pre-calculate the result during compilation.
The original version constantly behaves differently at runtime, this version would always give the same result… Unless you change any line and recompile.
The original version is also super likely to be actually true. This version would be false very often. You could reduce the likelihood by increasing the 10, but you can’t make it too high or it will never be triggered.
One downside compared to the original version is that the value of “true” can be 10 different things (anything between 0 and 9), so you would get a lot more weird behaviour since “1 == true” would not always be true.
If the error is too frequent it will be hunted down very fast, what you want is errors that happen no more than once every month, maybe add another level that ensures this only triggers based on the running time.
That is true, but from a human perspective it can still seem non-deterministic! The behaviour of the program as a whole will be deterministic, if all inputs are always the same, in the same order, and without multithreading. On the other hand, a specific function call that is executed multiple times with the same input may occasionally give a different result.
Most programs also have input that changes between executions. Hence you may get the same input record, but at a different place in the execution. Thus you can get a different result for the same record as well.
__ LINE __ is a preprocessor macro. It will be replaced with the line number it is written on when the code is compiled. Macros aren’t processed when debugging. So the code will be skipped during debug but appear in the compiled program, meaning the program will work fine during debug but occasionally not work after compile.
“__ LINE __ % 10” returns 0 if the line number is divisible by 10 and non-zero if not. 0 is considered false and non-zero is considered true.
#define is also macro. In this case, it will replace all instances of “true” with something that will only sometimes evaluate to true when the program is compiled.
yeah I’ve really noticed it’s hard to find info and therefore use any project that does this.
and it must suck because anyone new, instead of finding the answer to their question in a forum archive from when it was first asked, has to log in and ask it again.
whenever I have dumb noob questions on setup and I see a discord link I give up a little.
My biggest pet peeve is when you join a new server and you have 15 different steps you have to do before you can ask a question. Verify with a bot or two, send picture drinking verification can, send emoji here, ask for emoji there, introduce yourself, publish your whole biography, wait for the pope to bless your account, and then, maybe, you are allowed to use the #help channel. I’m not a discord user, I don’t know what this all means ffs!
dude i give up completely, you think im joining a random discord full of a bunch of people i dont know with a culture of who knows what dialect?
Nah fuck that i’ll just go use some dudes random piece of scrapped together software that’s actually pretty based instead. To that guy who wrote the bash script for flashing windows ISOs under linux. Thank you.
All you idiots telling FOSS maintainers to do something else, know that we don’t want to maintain yet another server. Aside from Discord, Zulip is the next best thing.
programmer_humor
Active
This magazine is from a federated server and may be incomplete. Browse more on the original instance.