peti | 15 years ago | on: How decompilers work
peti's comments
peti | 15 years ago | on: How decompilers work
peti | 15 years ago | on: How decompilers work
The parent comment's suggestion was: (1) for each possible input program, (1.a) compile it, and (1.b) check if the result equals the given compiled code.
Agreed, steps (1.a) and (1.b) terminate deterministically (for a given compiler).
However, the search space for this search procedure is infinite.
Similarly, it would be impossible, in general, to exhaustively test every possible input of a compiler.
peti | 15 years ago | on: How decompilers work
peti | 15 years ago | on: Japanese Programming Syntax
( X==Y -> A ; B)peti | 15 years ago | on: An Open Letter to JavaScript Leaders Regarding Semicolons
peti | 15 years ago | on: An Open Letter to JavaScript Leaders Regarding Semicolons
"Cozy up with some hot chocolate and the ECMAScript spec some Saturday afternoon. Practice a little. Play around with some test programs. It’s a good time. Or don’t do that, if you don’t feel like it. It’s your life. You almost certainly have better things to do with it. Just please stop making authoritative claims like “terminate all lines with semicolons to be safe.” It’s not any safer, or more reliable."
peti | 15 years ago | on: Xkcd: Online Communities 2
peti | 15 years ago | on: How I handle my mail
peti | 15 years ago | on: Ha Do That in HTML5
peti | 15 years ago | on: Westerners vs.the World: We are the weird ones
peti | 15 years ago | on: Semicolons in JavaScript are optional
I am certainly not against coding practices or readability. With (Q)BASIC, you could also add semicolons and have multiple statements per line, but who did ? It seems that it is the same with Javascript, semicolons are separators between statements, as well as newlines : why write both ? just to be sure they are well separated ?
peti | 15 years ago | on: Semicolons in JavaScript are optional
Also, I don't understand how adding a semicolon could help against the "stupid error" you cite. Could anyone please explain ?
peti | 16 years ago | on: A perfect girlfriend theory
".. while this approach [randomness] has actually been proven to be a disappointment .. "
I did not see any reference linking randomness and divorce rates, even as being merely correlated. Where is the "proof" ?
I would not rely on that theory in practice, because it abstracts too much of the existing complexity between people, and do not solve the real problems in relationships.
As a filtering algorithm for dating sites, it may give many false positives (you do not like that person, who still shares many of your interests), and may prevent you to meet a "perfect" girlfriend, only because she is/seems/looks radically different than you.