Better HN
topnewbestaskshowjobs
Log inSign up

giomasce

1,209 karma · joined Feb 10, 2016 (10y ago) · 426 submissions

Mathematician, computer scientist, programmer. Currently Wine hacker @CodeWeavers and developer @Debian.
Submissions

comment 6y ago · link · parent

> And to your point about referee: the cop isn't a referee.

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

I tried to read the comment, but don't quite understand: what is the problem GCC is trying to solve there?

comment 6y ago · link · parent

Yes, I was more or less inspired by TeX's algorithm.

comment 6y ago · link · parent

I recently had an A-ha moment when I realized that the problem I was trying to solve admitted a simple solution with dynamic programming, something I had never used outside programming competitions.

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

Since I have my own domain, I receive all emails addressed at whatever@domain.com. Of course, different values of "whatever" end up in different directories, and should one of those display an insufficient SNR, it would go straight to /dev/null. This way the "proper" address, i.e., the one that goes to the actual inbox, is not easy to extract.

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

Yeah, I can see that. Fortunately on many axes the situation is getting better and better, as data in https://trends.debian.net/ show. But every single developer is still free to choose whatever tools they like, so there will be always packages that do it differently.

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

What is a mess? The build scripts? More often then not, patching a source package amounts to add the patch in debian/patches and write its name in debian/patches/series.

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

I use Debian and feel satisfied about package management. What should I miss from Arch?

comment 6y ago · link · parent

I would have preferred this to happens with RISC-V, though...

comment 6y ago · link · parent

It is what Maths researcher do. Relatively common thing, usually found in universities.

comment 6y ago · link · parent

What is the total bandwidth Starlink is going to use once it is fully deployed?

comment 6y ago · link · parent

Wow, in Belgium you can get the same for around 15 EUR and in Italy you can get 50 GB for less than 10 EUR...

comment 6y ago · link · parent

The ISS has ~20 Windows laptops on it. Pretty sure there will be some SQLite around.

comment 6y ago · link · parent

Do you have some link to documentation explaining how to setup/debug this kind of things? I tried to deploy Jitsi Meet on a EC2 instance with all access permitted, but it still had quite a few problems. Did not try to tinker with STUN, though.

comment 6y ago · link · parent

That's right. Although I tried to setup self hosted both BBB and Jitsi Meet, and was not rally satisfied. Both had quite some problems with audio and video streams, which either didn't start or froze later. I think that both software are better than I could setup, because I've seen them working pretty good, but I'm not sure what is the secret ingredient.

comment 6y ago · link · parent

It is more oriented to teaching, so it's more classroom style: there is a main presenter and many listeners, it had a whiteboard, things like these. It's quite feature-packed, while Jitsi is maybe more minimal.

comment 6y ago · link · parent

Different people have different ideas on what "makes sense". The point of a standard is to not have to use common sense, which is usually not common al all. So there is no point is saying that when the standard does not say anything you should use common sense. If the standard says nothing, you should just avoid relying of that thing.

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

In which way would be Italy incentivizing births?

comment 6y ago · link · parent

Since UB can be a bad beast to tackle while learning C and C++, I would suggest to frequently compare what you learn with cppreference.com, and check that you understand that what you think matches what the standard dictates. Cppreference is not the standard, of course, but is sufficiently similar and much easier to read.

If at some point you want to really become a master, then switch to the actual standard.

comment 6y ago · link · parent

Why would you suggest older versions?

comment 6y ago · link · parent

I can agree with all the PGP bashing in the world, but it seems to me that PGP provides one thing that apparently nobody else cares about, and I don't understand why: the thing is identity verification. When I encrypt or sign I don't just do it for the sake of itself: I want to be sure to whom I am encrypting and from whom I am verifying a signature. If I am not sure of what is the link between the used key and an actual person, organization or service, crypto is not very useful for me. PGP has a way to do that. We can speak for hours of its pitfalls, but it's there, and with same care it can be used.

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

TL;DR: "Encrypted email is not safe according to my security model, therefore is not safe according to nobody's".

I am not buying it. Warning about risks is ok, pretending everybody else is like you is not.

comment 6y ago · link · parent

Or any manufacturer supported by LinegeOS.

comment 6y ago · link · parent

Also, I believe that you can also access the object representation of the pointer and scramble it. If you fix it up later, I believe it will have to represent the original pointer, by C11 6.2.6.1 (4).

comment 6y ago · link · parent

This GC does not probably survive to pointer scrambling. If believe in C I can validly do something like

    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

Probably not. FTR, I never said they should. I didn't propose any dependency on the number of residents, but this does not imply that I think there should be none. There are probably many other variables to take into account, and I didn't want to state a complete proposal. Just one of the many criteria.

comment 7y ago · link · parent

I perfectly support house taxing being super-linear in the size of the house, if this is what you mean, in such a way that a decent house is as affordable as possible for everybody, and those who want very large houses recognize that they have an above-than-average share of a common resource, and therefore contribute to the common needs more than others.

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

> And why not? That's an entirely legitimate choice

Not only, it might be considered the precise sought after effect.

comment 7y ago · link · parent

I don't think that outlawing car is a solution, but disincentivizing them maybe is: higher taxes with which pay a better public transport network, less and more expensive parking, more lanes dedicated to public or unmotorized transport, traffic lights more favourable to public or unmotorized transport, stronger presumption of fault on the side of the motorized vehicle after accidents. All of these improve the value of less impacting transport.

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

Yeah, but those two were two isolated issues in a decade. Now we're having a continuous stream of microarchitectural bugs that require more and more complicated fixes in toolchain, kernel and microcode. I am an outsider, but the impression is that the thing is exploding.
1
91011
15