HNHacker News
TopNewBestAskShowJobs

sugarfactory

125 karma · joined February 28, 2014

submissionscomments
sugarfactory··on Proposal for a Binary Encoding of the JavaScript AST
It seems that you (like a great number of other people) assume that an ordinary person without special skills cannot comprehend what some code does once it is compiled. But that assumption is fortunately wrong. It is easier than you think to learn to read disassembly of machine code. It would be much easier to read higher level bytecode such as Android VM's smali.

So don't fear compilation. What is truly worrying is any attempt to restrict access to code that is run by a computer. Even a highly skilled reverse engineer cannot do anything if there is no way to access code.

sugarfactory··on Neurodiversity
Even though my intuition tells me that I should support neurodiversity my reasoning keeps failing to justify it without introducing "diversity is unconditionally good" as an axiom. I find it difficult to add it to the list of axioms I support because it seems like hypocrasy to endorse diversity considering the history of humans.

Almost every human has the ability to learn and speak language, which is unique to mankind. (What media often reports as an animal language is not a language in that it doesn't have recursion -- the ability to handle it is, Chomsky and his supporters believe, unique to humans)

But shortly after language was born, in the very first stage of evolution of language, there must have been significant percentage of people who could not learn language. Where did they go? The answer is: they went extinct, failing to reproduce. And that's why we all can learn and speak language. The ancestors of us are those who could speak it. By making it difficult to reproduce for those who couldn't speak language, through the process of natural selection, we managed to build society where almost all of the members can speak it. Having autism in this era is analogous to being non-verbal in the early stage of humans.

With that said, endorsing diversity seems to be denial of evolution to me, denial of how we have come this far. It is by putting selection pressure on those who cannot adapt to society. And the sad reality is, you cannot stop it from happening. Autistic people will go extinct, even without the gene-editing technology, just like non-verbal people went extinct.

sugarfactory··on The Clockwise/Spiral Rule of C declarations
Once I tried to figure out how to parse complex C declarations just by reading the specification (http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf), that is, without consulting guides for layman like this. But I gave up. I looked at what seemed a BNF-like description of the C grammar but I had no idea what it tells about the parsing rules. So I ended up using this guide: http://ieng9.ucsd.edu/~cs30x/rt_lt.rule.html With this I managed to implement an imitation of cdecl.
sugarfactory··on Chelsea Manning's 14 days in solitary for suicide attempt is 'cruel and inhuman'
It might be the right thing to do to torture, to add more pain to, someone who already feels so much pain that she attempts suicide, by some standard that I cannot comprehend. We might have to accept such a standard as the cost of diversity.

However it seems obvious to me that it is impossible for any sound-thinking person to argue that it is justifiable to obstruct suicide attempts. One of the values upon which capitalism society is based is the notion of private property, which entails that we have exclusive control of things we own. If it is justifiable to obstruct suicide attempts, that would imply that we do not own our bodies. Well, there's a name for such people: slaves.

sugarfactory··on Genetic evidence for natural selection in humans in the contemporary USA
It's just funny that it is still called "natural selection" even when the environment that selects individuals is created by nothing but ourselves. I think it'd be much more accurate to call it "social selection" because for humans the environment is not nature, but society.

With that in your mind, those of you who are clever might wonder: what is the fundamental difference between "social selection" and eugenics, which many consider morally wrong? My answer is: they are essentially the same thing. It's because if we define eugenics as society deciding who to reproduce and who not to, that's exactly what is happening now.

sugarfactory··on Mozilla Fathom: Find meaning in the web
I meant HTTP but I have to admit it was not clear. What I had in my mind when I wrote that was there needs to be something that forces people to provide semantics of web pages. By which I mean HTTP is too liberal, allowing any kind of document including documents without semantic annotations to be transferred. Therefore I thought people would provide page semantics if HTTP required documents be annotated with semantics just like HTTP requires Content-Type be given.
sugarfactory··on Mozilla Fathom: Find meaning in the web
Extracting machine-understandable meaning from web pages is much analogous to extracting text from images.

Fortunately, we usually don't need to process web pages using fancy yet hardly accurate algorithms in order to extract machine-readable text from web pages. Why? It's because we agreed to use character codes to codify letters and most of the time text is encoded using some character code, which makes it unnecessary to OCR pictures of hand-written letters to programatically process text from web pages.

These kinds of program wouldn't be needed if only the same thing had happened for page structures, if HTTP included page semantics.

sugarfactory··on Traffic to Wikipedia terrorism entries plunged after Snowden revelations
You can read Wikipedia articles without letting them know which article you're reading by downloading the database dump of Wikipedia, which can be obtained at dumps.wikimedia.org.
sugarfactory··on The average size of Web pages is now the average size of a Doom install
Google developed SPDY, an efficient binary representation of HTTP messages. Maybe they will do the same thing but for HTML. It would be much more efficient if one could design a binary representation of HTML that can only express well-formed HTML.
sugarfactory··on Sci-Hub, spiritual successor to Aaron Swartz, angering publishers all over again
It'd be great if it were implemented as a peer-to-peer protocol as it'd make taking the service down much more difficult.

EDIT:

Although making the service completely peer-to-peer might be impossible, it is possible to distribute articles in a peer-to-peer way. I'm considering an architecture which consists of a peer-to-peer network to share articles, and servers to download articles and put them on the network. In this architecture, even if all the servers got taken down at least the articles which have been shared would be accessible provided that the peer-to-peer network is alive.

sugarfactory··on ECDSA smartphone key extraction using $2 magnetic probe
I suppose not. I presume the way would be vulnerabilities in code handling untrusted data streams such as USB, Wi-Fi, or BlueTooth. Although the amount of time it takes might be getting longer, every major iOS update eventually has had jailbreaks, which implies for an organization with larger budget than jailbreak hackers would likely be able to discover 0-day vulnerabilities in iOS.
sugarfactory··on Randomly-generated passwords still have to be legal strings
I quite agree. However I have seen a great many registration forms that only accept a short password. If passwords are handled properly there's no reason to limit password length because a password will get converted to a fixed-length string due to hashing before storing it to a database. So I suspect many people prefer storing passwords in plaintext.
sugarfactory··on Encryption, Privacy Are Larger Issues Than Fighting Terrorism
I think Apple and all other tech companies that support it move as the FBI (or whoever controls the FBI) expected or wanted.

What was revealed a few years ago was the fact that big tech companies betrayed people's trust. So quite naturally they should attempt to regain that trust. Because if majority of people stop trusting tech companies and start using end-to-end encryption, use of encryption stops working as a signifier that indicates a higher likelihood that the user's doing something wrong. Thus it's crucial to keep ordinary people away from using encryption. In order to achieve this, it's important to make people trust big tech companies again.

In my opinion, this is what the writer of the plot of the dispute between the FBI and Apple thinks.

sugarfactory··on Stop Using the Daylight Savings Time
I think Daylight Saving Time is a bad idea in the same sense that (abusing) global variables is a bad idea in programming.

In programming, changing a global state in order to achieve something is almost always a bad practice because it affects everywhere and sometimes in unpredictable ways. Instead of abusing global states, we invented object-oriented programming, which I consider as a way to keep states locally (inside objects).

So if someone wants to save daylight, that should be achieved locally for example by changing school schedules.

sugarfactory··on Most software already has a “golden key” backdoor: the system update
> A sufficiently paranoid individual can only run code they wrote themselves.

I'd say that is not sufficient because even in this case you trust someone: the manufacturer of the CPU on which the code would run.

It might surprise some people but you can examine code of a piece of software to check whether it has a backdoor even if it is closed-source by reading disassembly. Surely it requires some skills and is a bit time-consuming but it's doable for an ordinary individual. Reverse engineering software is not as difficult as many think. And as a matter of fact, a large number of people are reading disassembly of widely-used software to find vulnerabilities to sell in black markets. So I think it's unlikely for Windows or iOS to have maliciously planted backdoors.

On the other hand, it's tremendously difficult to reverse engineer hardware especially CPUs for an individual without a large budget. So if I were them I'd choose CPU as a place to put a backdoor because virtually nobody reverse engineers a modern CPU and thus it'd be very unlikely to be found.

By the way, contemporary CPUs can update itself through microcode updates.

sugarfactory··on Adblock via /etc/hosts
I had been doing this until some time ago to block ads and to prevent Google from collecting my web browsing history via Google Analytics. During the time I witnessed a strange phenomenon. Every time I added "127.0.0.1 www.google-analytics.com" to C:\Windows\System32\Drivers\etc\hosts. I saw the line removed from the file some hours later. Although I had added tens of lines I only saw the Google Analytics line removed. IIRC finally I decided to figure out whet caused the removal. I used Filemon to watch file changes, though the line got removed again while watching the file and nothing appeared on the log. I suspected Ring-0 processes were secretly running and causing the removal, but I knew nothing about the Windows kernel so I gave up here. I wonder what was the cause to this day.
sugarfactory··on Login Forms Over HTTPS, Please
What I don't understand about authentication over HTTPS is, though, why not making login a part of the protocol? Wouldn't it be much better to authenticate a user with a public key of the user like in SSH, instead of password authentication over the public key of the server? It'd be more resistant to attacks such as MITM or stealing the private key of the server. If a user can register a password on a website, why does it have to be a password rather than a public key? The only hindrance is the fact that the protocol doesn't support it.

I have no idea why this easy change hasn't been made in the protocol.

sugarfactory··on WebExtensions FAQ
The author of Tree Style Tab has commented (in Japanese) on the change to deprecate add-ons making use of XUL. [1]

Roughly what he said might be summarized as follows (sorry if I misunderstood his intention): Tree Style Tab is useful because the add-on changes the behaviors of the tab globally. That way, it can cooperate with other tab-related add-ons whose authors didn't intend to make the add-ons work with TST. Therefore providing the Sidebar API doesn't help because you can't expect add-on authors to write code just to make add-ons work better with TST.

[1]: https://twitter.com/piro_or/status/635078508981555202 https://twitter.com/piro_or/status/635079271032090624 https://twitter.com/piro_or/status/635079995371556864

sugarfactory··on Fix Windows 10
How naive it is to believe that Microsoft will obey these settings? It is very time-consuming to make sure if they fulfill the promise because that requires reading disassembly as Windows is closed-source. And, even if they were caught not following the settings they could use the word "bug" as an excuse.

Also, it should be emphasized that providing options to disable privacy-invasive features doesn't justify invading the privacy of the non-tech savvy people, who cannot disable privacy-invasive functionalities.

sugarfactory··on A Synonym-Substitution Based Algorithm for Text Steganography (2012) [pdf]
This might also be useful for combating attempts to reveal authors' identities using forensic linguistics.
sugarfactory··on DuckDuckGo on CNBC: We’ve grown 600% since NSA surveillance news broke
Why is it hard to track users when DuckDuckGo has access logs (tuples of date/times, ip addresses and queries) and ISPs have a pair of a date/time and an ip address -> a real identity mappings?
sugarfactory··on DuckDuckGo on CNBC: We’ve grown 600% since NSA surveillance news broke
That's why we need a truly decentralized search engine so that there's no one to trust and to have power therefore no way to pressure someone.
sugarfactory··on Getting a push message on your phone when your laptop battery is running low
I'm paranoid and it makes me sick the fact that there's no push platform that supports encryption. I don't want service providers to know what I push.
sugarfactory··on Notes on bookmarks from 1997
"Centralized" was not the word you were looking for. Decentralized systems can serve the searching functionality as proved by many (pure) P2P file-sharing protocols.
sugarfactory··on Notes on bookmarks from 1997
> Every URL saved in more than one place increases the likelihood that their content will survive as domains change owners.

Surely it's obvious that the more copies the better for the backup purpose. Then, why is he advocating cloud services including the Wayback Machine? There's no doubt that it's important for everyone to save web pages locally to create as many copies as possible on the earth to prevent the disaster of the Library of Alexandria from happening again.

sugarfactory··on 3% use IE9 and 14% have a disability. Why do we only cater for the former?
I use this bookmarklet (taken from Stack Exchange [0]) on webpages that disable pinch-to-zoom to re-enable it on iOS devices. Some pages crash Safari after using it and zooming for unknown reasons.

    javascript:document.querySelector('meta[name=viewport]').setAttribute('content','width=200,initial-scale=1.0,maximum-scale=10.0,user-scalable=1');
[0]: http://apple.stackexchange.com/questions/28391/how-can-i-for...
sugarfactory··on Google's Street View computer vision can beat reCAPTCHA with 99% accuracy
A few seconds of googling gave me this WordPress plugin that requres a proof-of-work when posting a comment: http://wordpress-plugins.feifei.us/hashcash/
sugarfactory··on Drop Dropbox
You shouldn't use any of the alternatives listed here either. Because none of those supports encryption. All the cloud storage services which do not provide encryption are unexceptionally evil. Because given the easiness of implementing an encryption feature, not to implement it means the administrators of a service are willing to see users' files.