Better HN
topnewbestaskshowjobs
Log inSign up

codeflo

9,664 karma · joined Jun 14, 2010 (16y ago) · 1,504 submissions

Submissions

comment 12y ago · link · parent

Well, it's you who said that "IO action" is the best description, not me. I personally wouldn't consider 8 characters excessive for a type that's imported into your program's namespace by default. Especially considering that you would hardly ever have to explicitly write that in Haskell.

Then again, my code doesn't have to fit into 20-character research paper columns.

comment 12y ago · link · parent

I'm fine with Haskell using a different convention if there actually is one.

And your other explanation proves my point: If an "IO" instance is best described as an "IO Action", then why is the type not called "IOAction"?

comment 12y ago · link · parent

Great link, that's about what I'm getting at. MJD states it more clearly than I could.

comment 12y ago · link · parent

I also think that there's a clash of naming conventions going on. Programmers are used to name types for their values are, as in "4 is an Int", or even abstractly, "4 is Serializable". Haskell conforms to this convention with type and class names like "Int", "String", or "Num". But classes with names like Monoid don't conform to that, as 4 is not "a Monoid". The set of integers with + is a monoid, but that's a property of the type itself, not of its values. (Edit: And don't get me started about "IO". What's "an IO" even supposed to be?)

comment 12y ago · link · parent

So what if half of reCAPTCHA is not a captcha? You still need to break the other half.

comment 12y ago · link · parent

I think the beauty of reCAPTCHA is that if there's stronger OCR, those algorithms can be integrated into Google's book digitization system, resulting in a new version of reCAPTCHA that will only show words not recognized by this new algorithm. As a result, the captchas will get harder if there's better OCR.

Of course eventually, OCR systems will become as good as a significant fraction of the population, and then the idea breaks down.

comment 12y ago · link · parent

I have admire the careful wording: "We also categorically state that we have never entered into any contract or engaged in any project with the intention of weakening RSA's products, or introducing potential 'backdoors' into our products for anyone's use."

This leaves the door open for a lot of things, including them having weakened their products and added backdoors. They just deny having entered a contract with the intention of doing so.

Though one has to wonder how exactly that deal went down. You wouldn't have to pay RSA anything to implement a good crypto algorithm because they'd do that out of pure business interest. Did the NSA call and ask "Here's a new RNG algorithm, it's slower than others and mathematically dubious. Would you implement it for $10 million?"

comment 12y ago · link · parent

That's what yuhong meant, I think. If your stdout output is binary, it's clear that all user-readable messages should go to stderr.

comment 12y ago · link · parent

I know what 64-bit computing is. And I didn't say anything about phone chips, or ARM. It seems like you're posting this rant to every subthread, regardless of content?

comment 12y ago · link · parent

We already have 128-bit registers for vector computations (for example, the SSE registers in x86).

As for addressing 128 bits of memory: that's more than a century off even if memory continues to double every two years (which doesn't seem likely to begin with). It's actually plausible that the step to 64-bit addressing was the last one, ever.

comment 12y ago · link · parent

There's a huge difference between something that they might do, in theory, at some point, using vaguely magic machine learning technology, and what that they are currently doing, right now, to address the privacy concerns over a change that they already rolled out to millions of users.

comment 12y ago · link · parent

Easy: Make the "Dear <username>" part of the email an image. Boom, deduplication fooled.

(Also, they don't currently seem to do anything like you're suggesting.)

comment 12y ago · link · parent

Once they followed the links, the tracking has already happened. Any deduplication after that only helps to reduce Google's storage costs.

comment 12y ago · link · parent

... before making the requests. And then it's too late.

(Also, they might not actually point to the same image, it's very easy to make the images themselves unique if required.)

comment 12y ago · link · parent

> E-mail marketers will no longer be able to get any information from images—they will see a single request from Google, which will then be used to send the image out to all Gmail users. Unless you click on a link, marketers will have no idea the e-mail has been seen.

Absurdly wrong, marketers already use a unique image URL for each email recipient, and Google has no way to know that all of those point to the same image. So they won't see "a single request from Google", they'll see one request from Google per successful delivery to an inbox.

Now, an open question is if Google will make that request when the email is actually opened, which would allow marketers to determine if and when the email was read by the user, or if Google will make the request as soon as the email is received. The latter would enhance users' privacy at the cost of bandwidth for Google, but early tests indicate that they don't actually do that, waiting for the user to click the email to make the request.

I'd like to add that there's no possibility the Gmail team is stupid enough to not have considered this. They must know full well what they're doing, and marketing this as a privacy enhancement when it's actually detrimental to privacy is willfully dishonest.

comment 12y ago · link · parent

Vista also changed a lot with the service packs. People's impression of Vista was Vista SP0, which was slow (horrible file copy performance) and in my opinion barely usable (UAC prompts every five seconds). SP1/2 fixed a lot of those, so the jump from Vista SP2 to Windows 7 was a lot less dramatic.

comment 12y ago · link · parent

In medicine, patents are a government-granted benefit to inventors that sort of counteracts the government-imposed penalty of having to go through FDA approval. There's a nice symmetry here.

If we look at industries with less regulation, like software, the necessity for a patent system is a lot less clear.

comment 12y ago · link · parent

> What would prevent a modified immune system from being passed on

The fact that modifying your immune system doesn't automatically modify the part of your DNA that encodes how to create an immune system. Children don't inherit your experiences, they just inherit your DNA. (For the same reason, cutting your leg off doesn't cause your offspring to have a missing leg.)

comment 13y ago · link · parent

That introduces a new named type though, i.e., the "any" in your package is different from the "any" in mine, which is not what I want.

(Unless I'm mistaken here, which might very well be the case.)

comment 13y ago · link · parent

I wish there were a way to create custom data structures without casting to and from interface{} all the time. Heck, it would already help if there were a shorthand for interface{}, like "any" or something.

comment 13y ago · link · parent

Yes, there were some unstated assumptions in my argument, like the key being smaller than the plaintext. (For example, a typical symmetric key is 32 bytes long, and a typical plaintext at least several kilobytes.)

comment 13y ago · link · parent

In theory, any redundancy in the plaintext helps the attacker. I'll give a contrived example.

Say I encrypt a series of coin flips, tightly packed as bits "0" and "1". If you guess the wrong key (assuming certain encryption schemes), you'll decrypt something that looks very much like a series of random coin flips -- just not the ones I originally encrypted. So you can't "know" if you guessed the key correctly.

HOWEVER, if I encode the same series of coin flips as an UTF-16 string saying "HEADS TAILS HEADS HEADS ...", it's extremely unlikely that a wrong key will decrypt to a correct looking message. So if the decryption result looks good, you know that you've guessed the correct key.

comment 13y ago · link · parent

The image is not very random because it only uses a few possible patterns per 2x2 pixel block. If anything, that should give an attacker more information about the plaintext, not less.

comment 13y ago · link · parent

Don't get me wrong, the idea is cool, but I think there's enough plastic garbage on earth already without dropping more from space. Who cleans those things up if they land on private property?

comment 13y ago · link · parent

Just to clarify, I was addressing the general form of argument, not the concrete example of whether space research is a waste of time. Personally, I consider advancing science and the arts very worthwhile goals of public spending, but that's a different point.

comment 13y ago · link · parent

In the abstract, paying people to waste time is very similar to destroying windows: you're destroying the services that they could have provided.

comment 13y ago · link · parent

Or no number is interesting. The argument never proves the base case. ;)

comment 13y ago · link · parent

Maybe Oracle's "only once per quarter" patch day policy has something to do with it.

comment 13y ago · link · parent

To put that more bluntly, Linux battery life entirely depends on the quality(1) of the Linux kernel modules for your hardware, and those vary wildly.

Yes, what Linux does in software is a lot better tuned in many places than the equivalent parts of OS X or Windows (in case of filesystem performance, sometimes frighteningly so). None of that matters when some component in your system doesn't properly enter its sleep states, because that component will suck your battery empty.

On the flip side, if you research Linux hardware support before buying your laptop, you should get very good results.

(1) Edit: I don't mean poor quality of implementation, just incomplete functionality. There's little the module maintainers can do about poorly documented hardware.

1
4748495051