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 8y ago · link · parent

Most arbitrary data is actually valid x86 code.

comment 8y ago · link · parent

For the moment all content is blocked at Google's entire discretion, because no European law has been approved yet. So they are probably jut blocking everywhere.

comment 8y ago · link · parent

I agree that the abuse of this excessively strong language is annoying, and I am not sure it really serves the right cause. If I read that "the Internet as we know it will be destroyed" I am much more inclined to ignore than to understand. Maybe they think that people are more impressed by strong language, but this has become so widespread that basically everyone is now "vaccinated" and it does not work any more.

For the sake of the battle, however, I will save my pickyness for another time.

comment 8y ago · link · parent

It strikes me that the System V amd64 ABI is not defined on such an (apparently) obvious point as padding of values smaller than a word. Is there a reason why it does not get fixed?

comment 8y ago · link · parent

"The mental model for Git is needlessly complex". I still cannot understand this one. I find Git terribly simple: you just have a hash DAG of commits, each of which has an associated hash tree of files. Branches and tags are just labels for individual commits (branches "move" and tags "don't"). The index is just another commit, only difference is that it has yet attached permanently to the tree; most of the time it is virtually transparent (just use "commit -a"), and when it is not it is very useful (the various "-p" flags). Pushing commits across repositories mean to update labels in the remote so that they match the local ones, and Git will take care of actually moving objects so that remote remains consistent. How can it be simpler than this?

I have not yet found such a simple description for any other DVCS, although I admit that given that Git is everywhere nowadays has not motivated my to do much research.

In the particular case of Fossil, if I read https://fossil-scm.org/index.html/doc/trunk/www/concepts.wik... (which is supposed to explain the concepts), it already begins explaining workflows, specifying that I have to choose between two alternatives, for which I do not even have a complete explanation (what happens if I divert from the suggested workflow?). Now that is what I call complex!

comment 8y ago · link · parent

Maybe you should acknowledge the fact that others may have different tastes than yours, instead of calling for "system issues" because you do not like the mainstream tool (which is perfectly fine, in itself).

comment 8y ago · link · parent

The author itself admits in the postscript that he has embellished a bit the article, but allow me to take it at its face value: to me, it seems that the article confuses mathematics with its notation (and the same for computer science, but at this level CS is just a branch of mathematics). All the funny stuff he goes on describing follow from this confusion. When a mathematician does mathematics, they have very well defined concepts for "equality", "equality up to some equivalent relation" (my preferred: "equality up to diffeomorphisms that are isotopic to the identity") and so on. However notation is chosen saving on clarity and conciseness, sometimes at the expense of the direct mapping with underlying mathematical concepts. Thus in some case the sign "=" is meant to mean equality (in a certain sense), in some other cases it is not.

Computer languages make no exception: they are nothing else than formalisms to express computations. As for every other formalism, the meaning of signs is chosen to be what appears most comfortable in that context by the formalism designer. The statement "x = x+1" has very different interpretations depending on whether you consider it written in C or in standard polynomial equation theory; but in both cases there is a well known meaning for it. In exactly the same way the word "case" has different meaning depending on whether your are reading in English or in Italian.

comment 8y ago · link · parent

Generally speaking, I consider the combination of overly strict rules and relaxed rule application one of the most dangerous manifestations of authority abuse, because it leaves to the single person in charge of applying the rules the decision to do it or not. So the criteria to prosecute people are not decided any more by the public political discussion, but by the individual decisions of some random guys in the police forces. This mechanism often masks responsibility and allows for ad personam treatments, which I consider strongly unfair.

Rules should be valid for all and applied uniformly.

comment 8y ago · link · parent

I suppose people thought the same of classical computers when the ordinary way to carry out computations was to deliver them to arrays of people sitting at desks. Now, history is not forced to repeat itself, but it has happened frequently enough so that it might be premature to exclude that QC will at some point be generally available and used. I agree that having a lot of programmers is not an immediate need, though.

comment 8y ago · link · parent

I like the idea, but I must admit that (with my background of a mathematics researcher, but almost completely ignorant of quantum physics and quantum physicists' notations) it is rather difficult to understand. In particular the bra-ket notation (which to me is already difficult due to its breaking the obvious way to match parentheses, but this might just require some time) seems to be used inconsistently across the paper (I believe that different authors wrote about the different algorithms, and the variations are rather evident and unhelpful). There are some formulas of which I cannot make any sense (last example I found: in the definition of QFT inside Shor's algorithm, the k inside the ket ranges from 0 to N-1, while according to the introduction it should range on all the combinations of a certain number of qubits).

Also, some authors seem to take for granted some concepts (such as the properties of the quantum gates) that are not explained anywhere and not obvious to me.

Still, an interesting read.

comment 8y ago · link · parent

Fully agree. All authentication operations should always be completely explicit and clearly display the identity you are authenticating to. An email link implicitly logging you in looks like completely unacceptable. The email to recover your password can be excepted, because it is clearly an authentication-related thing and maintain the invariant that at most one person is actually able to log in.

comment 8y ago · link · parent

Unless they use pre compiled headers.

comment 8y ago · link · parent

It seems to me that the author is confusing what the actual point of FP is. I do not think it is about writing less, more concise or more understandable code: the examples they bring are of different length mostly because they use languages with different abstraction level, which is largely independent from being FP or not. The first snippet (the assembly one) requires to use a whole line for each single sum; the second one has a built-in concept of lists and iterations on lists; the third one allows higher order functions. This gives different lengths, but the point is not FP.

Neither it is true that FP guarantees more readability or understandability, which actually depends a lot on what your are used with. If you are used to imperative, FP will probably be a real pain. It is not even true that shorter functions are in general more readable the longer ones: I can immediately understand pages of code and struggle on two lines, depending on what they do and how they are written.

The actual point of FP, as I see it, is that it decouples a function from the context it is executed into. A pure function is not influenced by its context (the global status) and does not influence it (it has no side effect). Actually, for a pure function the context does not exist. So if you want to read or understand it, you can ignore the context; and viceversa you can ignore the function when studying any other. The only interaction between different functions remain the explicit calls, which are easier to track than the implicit coupling given by the global context.

So that is the advice from FP that I would give to every programmer: when writing a function, try to use the global context as few as possible, possibly even not at all.

All the other stuff with lists, zipping and lambdas is fun and useful, but it is not the real heart of FP.

comment 8y ago · link · parent

This "toilet water" part really reminds me of the movie Idiocracy...

comment 8y ago · link · parent

SciHub is unfortunately rather opaque on its internals (and that is definitely something that I would like to see changed), but it seems that the Telegram bot is blessed by the official Twitter account. In practice, I have often found it more reliable than the website, and it does not have problems with finding the right TLD. Also, as I said, it retains the history and it shared is with other devices, provided that you consider that a plus.

comment 8y ago · link · parent

You install Telegram, you contact the bot https://t.me/scihubbot, you send him a DOI and it will answer with the PDF (if it has it).

Sometimes it says (in Russian) there is an error fetching the paper: I understand that in such a case it does not have the paper, but the paper is available on GenLib, so you can go there. But it is not frequent.

comment 8y ago · link · parent

I use the Telegram bot. Very quick, always on, keeps a history, available on all devices.

comment 8y ago · link · parent

It seems to me that this form of "public spanking" would really earn the opposite of what you claim for: when you leave the judgement to the crowd, you are basically fomenting hatred and revenge (because for some psychological reason in such a case every one feels entitled to have a revenge, even when they are not involved in the case), which in turns leads to a punishment that cannot be controlled any more. This is why judgement should be left to professionals that (should) take the appropriate time to listen to both parties, review the legal basis and take a well-thought decision, trying to not put too much feeling in it. I'm not claiming this works perfectly, but it is definitely better that leaving the matter to the crowd. There are many cases of people whose guilty-appearing position was overexposed, for example by media, later proving innocent or less culpable that the initial situation might have suggested, but condemned forever to unjust public shaming.

On the act itself, I am in the number of those who think this should be taken extremely seriously and it is good ground for losing the license and criminal charges. Scarring someone's body (against their own will) has been for long (and until a few decades ago) a sign of property and slavery, and although I do not think this was what this surgeon intended, it still must be considered an extreme humiliation. Also, a surgeon's professional position usually entails an important amount of responsibilities and power, so violation of the public's trust in them are very important matter.

comment 8y ago · link · parent

This is still the easy path. Sometimes you have to hope that the article you need was translated from Russian to English, find which is its translated title, search the title, understand that you could not find anything because you have to search the title the volume it was published into, not its original one; then search again the new title, find nothing on GenLib, SciHub and similar, go the university library, discover that the section this article belongs to is currently packed because they are renovating (or moving, who remembers) and there is not ETA and they do not allow you to fetch it from the packages; speak of the problem with your advisor, who tries to find it in his university's library; in the meantime, speak of the problem with a friend, that encourages to you to ask the library again, this time the library agrees to get the paper for you and you photocopy it; more or less at the same time your advisor manages to give you a photocopy. At last, scan the paper (because you do not want to carry a hundred pages in your backpack all the time, do you?) and put it on GenLib for the sake of future souls that might need it.

All of this just to have the paper. During reading, you still need to check the Russian original and ask a Russian friend (as Google translator is not necessarily to be trusted on mathematical texts) for some points that make no sense and turn out to be mistranslations. Not to mention the references to other Russian papers from the sixties that could be even more difficult to find.

On the other hand I have to mention that the paper actually contained the theorem I wanted and the proof was reasonably clear. The author also replied helpfully to an email I sent him! So this was definitely worth the effort. I was lucky!

comment 8y ago · link · parent

The thing I love of git is that its internal structure is very simple and transparent, so for any given repository it is possible (although not necessarily easy, if things are well messed-up) to understand what is going on. It is true that the interface is often messy and inconsistent, sometimes annoyingly so, but if I can understand what things are, I can somehow work out how to do things with them (in extremal situations, I know I can fast-export everything, process with custom Python scripts, rather easy to write, and fast-import again). While if I do not understand what things are, the most powerful and user-friendly tool will have very little value to me. Also, knowing what is git under the hood makes me very confident that I will not lose pieces: as soon as the hash of my interesting commits is in another repository (which is not corrupted), I can do whatever I want with the first one and everything I care will be safe anyway.

All of this depends on me knowing what happens inside git and the git insides being rather simple (a hash tree with a handful of object types); I think I would like Mercurial (or any other DVCS) much more if I knew the same about it: can someone suggest places where this is described?

381.

Paperbackup: backup secret keys on a PDF of QR codes(github.com ↗)

2 points · by giomasce · 8y ago · discuss

comment 9y ago · link · parent

Did not happen to me, but it's really baffling! https://www.ibiblio.org/harris/500milemail.html

comment 9y ago · link · parent

It's not about believing everything or nothing, I think: it is more about how to filter things you believe. Believing something is a way to be part of a group, and it seems to me that most humans (including me) tend to feel better when they are recognized as a part of a group. Conspiration theories offer an easy way to feel part of a very well identified group (made even stronger by the sensation of being a somewhat repressed minority): for some people this can be much more rewarding than accepting the rigor of actual science.

comment 9y ago · link · parent

Not an expert, but I do not think that you need an evolutionary explanation: birds are often not stupid, and can simply observe that nests with more cigarettes have less parasites.

comment 9y ago · link · parent

I have been wanting to switch to FF for a lot of time, but insufficient performance used to hold me back. With FF 57 there are no excuses anymore, it's fantastic!

comment 9y ago · link · parent

Very good, as long as it works. There have been cases in the past when people did not find the innovation they needed at some point, and have experienced extinction or close extinction. I would like to not risk that again, also because that would be the first time where the extinction risks to be global, not just local.

I liked very muche Collapse by Jared Diamond. He discusses some cases of this type, starting from the iconic history of Easter Island.

comment 9y ago · link · parent

I am curious of that too; however, given that it does not happen yet (or, at least, so I think), I am brought to believe that it is not that easy, or at least not easier than mining ores (which still requires some degree of purification). That probably also applies to using the cheap nickel mentioned by the grandfather comment: it is not necessarily easy to purify it.

comment 9y ago · link · parent

You cannot even assume that innovation can automatically fix supply issues: unconventional oil extraction is possible because unconventional oil is there in the first place. This might not happen with other minerals.

comment 9y ago · link · parent

One thing manufacturers could do to reduce waste would be to make phones less locked in the first place.

comment 9y ago · link · parent

Which other ZFC axiom would be "realistic"?
1
1112131415