An io_uring-based user-space block driver
lwn.net102 pointsby veddan38 comments
<meta name="googlebot-news" content="nosnippet"> ALTER TABLE ..., LOCK=NONE;
will give an error if the requested operation can't be performed while still allowing concurrent reads and writes to the table (if you're fine with preventing writes you can use LOCK=SHARED). <file.txt grep foo | sort void hash(char *out, const char *in);
with two different possible implementations: a slow one using common instructions, and a fast one using exotic instructions.
You can then can have a resolver like this: void fast_hash(char *out, const char *in);
void slow_hash(char *out, const char *in);
void (*resolve_hasher(void))(char *, const char *)
{
if (cpuSupportsFancyInstructions()) {
return &fast_hash;
} else {
return &slow_hash;
}
} xor eax,eax
...
rep stos QWORD PTR es:[rdi],rax
and some rep movs for memcpy/memmove. int main(void) { for (;;); } #include <stdio.h>
int main(void) {
(* * & * * * * * & * * * * * * * * * * * * * printf)(&1["C is awesome\n"]-3/2);
}