I'd argue that it follows the CPU's native integer representation, which C also does. Yes, if your language uses tagged integers or something, you'll have to marshal the syscall arguments/results from/to your own representation, but the same is true if you want to use those integers for arithmetic (beyond trivial additions or multiplying/dividing by a power of two, for which you can use lea).
That is not true on Linux, where you can just make syscalls yourself. They don't even use the C ABI, even if it's pretty similar (For syscalls, the fourth argument is passed in R10 instead of RCX, since that holds the return address for sysret).
But the return value guarantee is, as far as I can see, a C++11 change, so you can't ignore those. And as of C++11, c_str is noexcept, so it cannot allocate anything.
I don't really know how to point this out without sounding rude and obnoxious, which is not my intention, but it's "per se" (Latin for by itself), not "per say".
One is that the variable is called openFile and not f. I don't know enough python to see something else wrong with that but would love to know too, since I've written such a line just last week.
But he's not modifying the code, he's just changing one ASCII char for another. And if you take a look at the hex editor screenshot, you'll see that it's not even inside the code, but rather surrounded by the menu entry names.
The entire point of POSIX is that, if you only use what it defines, your program automatically becomes cross-platform, because it will run on several Unices, as well as other systems (like Haiku).
In my personal experience, most of them do so precisely to be affirmed, not to have their minds changed. Because what are upvotes, if not affirmation? Even better if you manage to convince the other person, but that's entirely optional.
That seems to depend on the specific version of Office, if the screenshots I looked at are to be believed. Office 2016, for example, doesn't seem to have it.
Edit: Maybe this depends on settings rather than versions? Upon further investigation, I've found some screenshots of Word/PowerPoint 2016 that have a search bar and some that don't.
It also annoys infrequent users, because you need to remember into which ribbon they stuffed what you want to do and what icon it uses. With a classical menu bar, the organization tends to be more intuitive (in my experience, at least) and you can skim the different menu items to find what you need.
But that's a relative link, so if you're using HN via HTTPS that will be an HTTPS link as well. Downloading the paper redirects you to http://rachit.pl/files/pubs/calyx.pdf, a plain HTTP link.
> Personally I don't want plastic trash polluting the environment.
Ban throwing them into the environment, then. I've never thrown my plastic straws into the ocean, that happens further down the line of trash disposal. So why should I be the one who's punished for it?
No, you couldn't. If running the code is too dangerous, then so is running the unit test suite. You'd have to prove that it doesn't do anything observable, like accidentally deleting your home directory, or, if the code is actively malicious, uploading your SSH key somewhere. And if you can do that, you probably also have enough information to provide good completion without running the code.
Only on systems where the syscall ABI is stable, like on Linux. Others, like macOS and Windows[0], can and will change theirs between releases. OpenBSD even goes one step further and actively prevents code other than libc from performing syscalls[1]
[0] I seem to remember that this changed in a recent Windows version, but I couldn't immediately find a source.
Copilot seems to be an AI tool to generate code for you[0]. In the gif, it's copying code from Quake, which is GPLv2 or later. If copying GPLed code wasn't bad enough, it then adds a MIT-like license header.