1,209 karma · joined Feb 10, 2016 (10y ago) · 426 submissions
comment 6y ago · link · parent
Maybe, but then the point is that the referee is their friend. If I go and punch a police officer, I'm going to the jail. If the police officer comes and punches me out of nothing, good luck having a fair investigation and trial. The police department will cover their actions, avoid releasing the information they have. Maybe the officer face cannot be seen on the available footage because they have a full helmet and the police department refuses to say their name, so the judge cannot (or does not want) judge them guilty on the ground we cannot be sure who they are. I don't have all these protections, but they do. This means that have effectively become the referee as well.
I'm totally in favour of giving the police the exclusive usage of force when this is required, but they should as well stand the responsibility of its misuse. Nowadays they get the former but not the latter, and this is terribly unfair.
comment 6y ago · link · parent
The problem was to divide a text into a number of tweets to make it a thread, with the obvious constraint that no tweet should have more than 280 characters, but you still wanted to minimize some cost based on how far your tweets were from 280 chars and where you divided them (e.g., dividing after a full stop is better than after a comma, which is better than between two works, which is way better than midword).
With a reasonable cost function, this really seems a textbook dynamic programming example (possibly much more credible than the entering-a-treasure-cave-with-a-rucksack story).
comment 6y ago · link · parent
The hard part is social acceptance. This morning the Whirpool technician was very puzzled by me giving him whirpool@domain.tld as my email, although he accepted my explanations in the end. (I might use more opaque identifiers, but then I would forget about what is what, so for the moment I am trying to stick with this scheme, until it becomes too difficult)
comment 6y ago · link · parent
On the other hand, there are reasons for scepticism towards proposals of forcing a uniform style. If such policies were accepted, they would have accepted years ago, so we would now be stuck with packages on SVN, much cruder tooling, etc. Back then SVN was really the future. What will be the future in ten years? We don't know, and that's the reason why we want to be sure that we'll be still free to move to it when it will arrive.
(and, BTW, of course you can change your SVN policy, but then you have to update all at once 30k+ source packages and the habits of 1k+ developers, not really easy)
Not to be meant as a rant, just an explanation for the current situation.
> That said, again I love debian, its stability and high quality, and thanks to you and the volunteers who make it that way :)
Thanks to you for your support!
comment 6y ago · link · parent
I don't find it terribly difficult, but maybe I am biased here, because I am a Debian Developer, so I work on Debian packages pretty often and know it well enough. It's true that packages can be very heterogeneous for many reasons.
comment 6y ago · link · parent
comment 6y ago · link · parent
The compiler is not responsible for the quality of the source code. The programmer is. The compiler is responsible for the quality of the machine code, assuming that the source code is correct. It is good to have tools to check the quality of source code, but they are a different thing from compilers.
Personally, I am happy that the compiler optimizes the code for me when I write correct C/C++ programs. If I make a mistake and inadvertently do UB, I take the responsibility, without shifting it on the innocent compiler.
comment 6y ago · link · parent
If at some point you want to really become a master, then switch to the actual standard.
comment 6y ago · link · parent
Do the alternatives have anything similar? I don't think so. Signal and WhatsApp basically rely on a GSM identity (a telephone number), which is verified by checking a six-digits code by SMS. There are hundreds of ways to screw this up. Any random street pickpocket would be able to get your phone, read the code and put it back in your pocket without you even noticing, not mentioning attack on the actual GSM protocol of which I do not know much (but have heard of its insecurity more than once). It's true that there is Perfect Forward Secrecy and your peers will get a little notice saying that your security code has changed (and will most probably ignore it), but if it is so easy to take over one's identity, I don't think I can put much trust if the system as a whole. (also, OP complains that GPG is a complex and obscure implementation; what are they going to say about GSM stacks?)
Ironically, the thing that would make this system secure would be that people actually checked security codes, which would basically amount to what PGP users do when they exchange fingerprints (and I am sure OP would consider that the LARPmost possible thing in the universe). Not even with the advantage of having a proper Web of Trust, though.
Even TLS, although it is not mentioned by OP, has quite a few problems. Most TLS certificates are Domain Validating, and the validation procedure essentially consists in recovering a secret file by mean of an HTTP request to that domain (surely that's true for Let's Encrypt, but I believe that most commercial DV operators work in the same way, except that you have to pay for it). So as soon as you're able to MITM the domain validation (and there are a lot of actors who are able to) you can grab the certificate, which would in theory protect from those who are able to MITM your server. This mechanism still protects your from MITMs positioned close to the client, that's true and it's better than nothing. But you still have all the holes you want. And bad examples of TLS CAs are nothing near missing.
So, bottom line: I am very happy if you give me modern and advanced tools for encrypting stuff, but please do not ignore the problem of giving names to keys, a problem that as far as I know only PGP is currently able to tackle.
comment 6y ago · link · parent
int *ptr = ...;
intptr_t iptr = (intptr_t) ptr;
ptr = NULL;
iptr ^= MAGIC;
// do something else
ptr = (int*) (iptr ^ MAGIC);
At the end of this ptr is again a valid pointer to the same thing it was pointing at the beginning. However, if a GC scan will happen during the "do something else" block, it won't see the actual pointer value and it might free the pointed object.I don't think it is possible to write a GC for C if the program is allowed to do this kind of things, because there is too little structure at runtime. And in any case, this kind of GC is not a GC "for C", as it heavily relies on knowing the compiler internals.
EDIT: Re-reading, I didn't mean to be harsh. This is still interesting to read, I am just noting a weakness that is not mentioned in the article. BTW, I know that glibc actually does some pointer scrambling like I said to mitigate some types of attack.
comment 7y ago · link · parent
comment 7y ago · link · parent
That said, I believe that road space has different rules than housing space, so it is hard to compare them directly.
I am Italian and live in Belgium, in case this gives more strength to my argument. I also have a car and pay European prices for it. Of course, I try to use it as little as possible, which is good.
comment 7y ago · link · parent
After all, cars, especially when moving just one person, heavily overuse shared and scarce resources like space and environment. It's all too fair that they pay a higher share to public resources.
Maybe you will still use your car, accepting to pay a higher price for it, but other people will switch, making the world a better place also for you.
comment 7y ago · link · parent