Alexander Monakov (@_monoid) profile picture

https://xitter.gq/t.co/PtctIQ7HmN

Joined February 2011
Photo by Alexander Monakov (@_monoid)Photo by Alexander Monakov (@_monoid)Photo by Alexander Monakov (@_monoid)Photo by Alexander Monakov (@_monoid)Photo by Alexander Monakov (@_monoid)Photo by Alexander Monakov (@_monoid)Photo by Alexander Monakov (@_monoid)Photo by Alexander Monakov (@_monoid)Photo by Alexander Monakov (@_monoid)Photo by Alexander Monakov (@_monoid)
Isn't it weird that the grammar for writing down regexes is not regular itself (but rather context-free)? Can haz regular language for regular expressions?
1
.@shachaf rename is the RCU of filesystems
Replying to @TimSweeneyEpic
Love the suggestion. Given that it's unlikely to materialize, is there some sort of 80:20 point that gets you most of what you want? Like, what's the CAS of filesytems? Maybe some sort of LL/SC where it atomically renames if a set of inodes have no modifications since the LL?
Petition authors of papers on homomorphic encryption to nickname the agents Alice and Ellis.
1
Who called it High Energy Physics and not Great Power Dynamics.
1
Alexander Monakov retweeted
in germany we don't do roundabouts; we make them round exactly.
2
12
2
104
✋ "doing %thing% at N jigabytes per second" 👉 "doing %thing% at N bytes per cycle" (for throughput-bound tasks with plenty of internal parallelism) 👉 "doing %thing% at N cycles per byte" (for latency-bound routines where dependencies limit parallelism)
1
1
Glad to see my code adding some spice to life of CHERI people!
2
2
Oh, I almost cannot believe it: man-db's 'man' now understands $ man man.1 # since Dec 2016 and $ man 'man(1)' # since Oct 2019 in addition to the horrible newbie-hostile original syntax ('man 1 man'). (but I use mandoc on my laptop now :'-)
2
2
#include <stdio.h> #include <unistd.h> #include <signal.h> enum { slp_us = 10000 }; int main(void) { volatile int counter = 0; if (!vfork() && !vfork()) { kill(getppid(), SIGKILL); usleep(slp_us); } do printf("%d\n", counter++); while (!usleep(slp_us * 2)); }
1
1
1
Hm, wouldn't it be nice if a FUSE server could gift an open fd to a client in response to a FUSE_OPEN request (as if by fd-passing over a unix socket). This would eliminate file read/write overhead for fuse filesystems layered over an existing hierarchy.
1
In C, how many of the following initializers are invalid? char A = { 0 }; char B[1] = { 0 }; char C = ""; char D[1] = "";
13%Depends/other/see results
13%Only two are invalid
53%Just one is invalid
20%All are valid
15 votes • Final results
1
Only one is invalid (it's C). A is valid since a scalar initializer may be optionally enclosed in braces (I just learned that yesterday). C23 also makes empty braces act like a universal zero initializer, i.e. char E = {}, F[1] = {} will be valid too.
Gentle reminder that when someone pops into your IRC/discord/slack and asks that question that you've already answered 50 times, it's probably their first time asking and they're totally unaware of the last 49 times you've answered it. If they were, they wouldn't have talked.
2
3
31
I'll raise this to "declaration of data members should not have been required": there are valid use cases where callers don't need to know sizeof(*this).
C++ hindsight thinking, again: Declaration of private non-virtual methods should not have been required in .h's Ohh the clutter that would have been avoided!!
1
2
In fact, allowing to forward-declare a derived class would make a lot of sense: struct Base { int memb; void meth(); }; struct Deriv: public Base; So you know some methods of Deriv and its initial layout, but not the complete size/content.
Alexander Monakov retweeted
New blog post: Faster zlib/DEFLATE decompression on the Apple M1 (and x86) dougallj.wordpress.com/2022/…
16
41
1
201