Better HN
topnewbestaskshowjobs
Log inSign up

chimeracoder

21,186 karma · joined Oct 12, 2010 (16y ago) · 6,050 submissions

Inveterate builder.

Personal site: http://www.adityamukerjee.net/

My email is pretty easy to guess from my username.

Submissions

comment 13y ago · link · parent

They acknowledge the irony in their own post - the only way that they can promote freedom of speech is by forming a partnership with the least free country in the world, not by forming an alliance with the supposedly 'free' countries in Western Europe/North America.

In other words, the Western countries' belief in 'freedom of speech' is starting to seem as shallow as the word 'Democratic' in the 'Democratic People's Republic of Korea'.

comment 13y ago · link · parent

Is it possible that people in the DPRK refer to themselves as the 'Republic of Korea' in an attempt to deny/disqualify the existence of any other 'Republic of Korea'? (ie, 'The one true Republic of Korea' or something like that).

comment 13y ago · link · parent

I don't have the source for this, but I'm almost positive you are correct. I believe I remember an inductive proof that demonstrated this.

comment 13y ago · link · parent

HIV and cancer are particularly tricky.

HIV mutates incredibly quickly, which makes it incredibly hard to find a "vaccine", because something that works against one strain probably won't work against the others. The same goes for treatments - most HIV patients have to take a various combinations of drugs (the slang term is their "cocktail") which vary in effectiveness both per-patient and over time.

Cancer is difficult for a different reason altogether: it's the body's own cells. To oversimplify, it's (relatively) easy to find a medicine that can target foreign cells, but it's hard to find a medicine that will target cancerous cells and not be equally deadly (or more deadly) to healthy cells, because cancerous cells so closely resemble healthy ones.

Progress is being made - just look at Bill Gates and his campaign for eradicating polio.

comment 13y ago · link · parent

> De-federalizing

Interesting that you should choose this word, since 'federalism' is associated with the Federalist Papers, which actually promote the kind of limited federal government over the states that GP is referring to. Hamilton, who authored the Federalist Papers, is also responsible for the kind of centralized economy that you describe, by creating a federal bank to assume the states' debt after the war. (The other half of this compromise was that the nation's capital was moved from New York City to what was (at the time) a mostly uninhabitable swamp in Maryland).

Even more ironically, the Federalist Papers were written primarily to convince the then-conservative New York (and a few other states) that they would be permitted their own 'states' rights' under the new constitution.

comment 13y ago · link · parent

FWIW, Reed Hastings (the CEO of Netflix) was on the board of Microsoft until November.

comment 13y ago · link · parent

I believe you're correct - Python lists should be O(1) for appending[0].

[0] http://wiki.python.org/moin/TimeComplexity

comment 13y ago · link · parent

Specifically, it's a Microsoft problem, since Microsoft refuses to license Silverlight's DRM to Linux.

Also, Netflix CAN now run on Linux, as of ~4 months ago: http://www.techrepublic.com/blog/opensource/how-to-get-netfl...

comment 13y ago · link · parent

Zooming in and clicking on the arrows:

> IP: Location: Netblock: AS Name: ISP: Reverse DNS: 50.16.161.238 Ashburn, United States 50.16.0.0/16 AMAZON-AES AMAZON.COM INC. ec2-50-16-161-238.compute-1.amazonaws.com

So, not a coincidence, but also not suspicious - it's just Amazon's data center.

comment 13y ago · link · parent

> He didn't make any argument,

He's making the argument that there exist certain documents that are "better left confidential", and that those documents "eventually make it out". Both statements are highly contestable, and I've offered a fairly extensive source by a Pulitzer prize winner to contradict those points.

His final statement is ironic. We're talking about a man (Manning) who risked his life to uncover information that the government tried to conceal by spreading misinformation. The existence of misinformation about Manning's own story is nothing if not ironic. It's not an insult - to Obama, perhaps, but not OP - and my apologies if anybody took that way. However, taking the time to look me up on Twitter just to call me a 'prick' certainly doesn't offer anything valuable to the discussion and does nothing to keep the level of discourse on HN high.

comment 13y ago · link · parent

So they spin up a new one. Shell companies are like EC2 instances - cheap and disposable.

comment 13y ago · link · parent

This is really easy for patent trolls to get around - patent trolls (NPEs) are typically shell companies that have no assets that can be seized (aside from the patent itself).

comment 13y ago · link · parent

I assume you test for nicotine and alcohol use then, correct? If you aren't 'responsible' enough to quit smoking - since you know it's bad for your health - why should I hire you?

Drug tests are counterproductive, because not only do they not dissuade drug use (empirically), but they push drug users towards drugs like cocaine, which are detectable in drug tests for only two days, instead of drugs like marijuana, which are detectable for several weeks.

The only drug you can really test for effectively is marijuana, and I frankly couldn't care less whether an employee uses marijuana - medicinal or recreational - in his free time, just the same way I don't care whether he drinks alcohol or smokes cigarettes.

Finally, it's nobody's business what an employee of mine chooses to do after work so long as it doesn't impact his work performance. If it does, that's reason enough to fire him right then and there, without any need for a drug test.

comment 13y ago · link · parent

> "For instance, maybe the hotel will find out the guest is an advocate for LGBT rights, in which case the staff can personalize the welcome amenity by including a magazine they would identify with. Something unique and personal that says, 'This is just for you.'"

Aside from finding this trend creepy, I find it incredibly annoying as well.

Time Warner Cable insists on sending me two (mailed) ads a month advertising Hindi-language television. It's easy for any reasonably attentive person to guess my ethnic background; my last name is very identifiable - sort of the Indian equivalent of something like 'Schwartzbaumstein'. Though, in the case of Time Warner, they probably just bought that information from someone else. Either way, I never opted to give them that information, and that's for a reason - I have no interest in identifying myself in terms of my ethnicity when it comes to my cable company.

I don't have cable (just Internet), so I'm not interested. I wouldn't be interested even if I did, because I'm from a part of the country that doesn't speak Hindi. And lastly, just because you (correctly) discerned my country of origin (or in this case, someone's sexual orientation), who are you to use that information to solicit me?

I don't find this kind of "personalization" appealing or endearing. I find it incredibly degrading and objectifying.

comment 13y ago · link · parent

For power users, the word 'intuitive' doesn't even make sense. There's nothing 'intuitive' about hjkl, but when I tried switching from wmii to i3, the very first thing I did was switch their navigation keybindings back from jkl; to hjkl. Yes, the reasons for hjkl are historic and arbitrary, but I don't care - I don't want to relearn yet another set of muscle memories when I don't have to.

Even vim on the whole is completely 'unintuitive'. That's the whole reason vimtutor exists. But, the couple of hours I've spent (combined) over the last few years learning how to use it has paid off in full and with dividends in terms of my productivity - and I hopefully have many more decades of life to recoup that investment many more times over.

> I'm often surprised when I see professional programmers turning on some fancy 3D destop effects. Sure, these look nice, but they are only distracting and counter productive when you are using an environment several hours a day.

I couldn't find these more annoying. Web interfaces tend to be the worst (because they're highly uncustomizeable). I don't want a slick, 3 second animation where the tab wiggles and slides every time I want to change the page (I'm looking at you, AmEx). I know where I want to go, and I just want to get there immediately. Every second that I'm delayed by flashy animations in something that I need to use several times a day just makes me despise the product a little bit more each time.

Outside of very specific applications/domains (gaming, simulations, etc.), I don't want anything to replace my keyboard. As GP said, nothing (including the mouse) can beat the keyboard for allowing maximum control and precision with minimal movement.

comment 13y ago · link · parent

"any sufficiently complex project contains a half-assed implementation of Lisp"

This actually predates PG - it's known as Greenspun's Tenth Rule[0]

[0] http://en.wikipedia.org/wiki/Greenspuns_tenth_rule

comment 13y ago · link · parent

> citizenship has never been a barrier to military action outside of the U.S. in war time

These assassination are occurring in countries that we're not at war with (and in some cases, never have been).

Furthermore, many the citizens being assassinated have never even been accused of a crime (like shooting a rocket), let alone convicted of one.

comment 13y ago · link · parent

The same thing that happened to executing only people convicted of crimes - something we abandoned long ago as well.

Once any government has seized powers like these (whether rightfully or not), it's very loath to give them up. This is an empirical observation, not a statement about the ideal.

comment 13y ago · link · parent

> If they can't find anything harder than a set of odds, then judges have no place betting on them.

But this is how our entire legal system is set up. For criminal proceedings, we have to find the defendant 'guilty beyond reasonable doubt'. What is 'reasonable doubt' if not a (theoretically) quantifiable or parameterizeable representation of our belief that the defendant committed the criminal act?

We don't explicitly quantify this threshold as, eg. a 95% chance, but that's still the exact same process we require a jury to undergo, even if we don't attach quantifiable numbers to the results.

The jury can never return a probability of 1 (in statistical terms, 'almost certain'), or else the entire appeal system wouldn't exist.

comment 13y ago · link · parent

It's a joke - Great Neck has an extremely large population of Iranian Jews.

comment 13y ago · link · parent

Are you from Great Neck[0]? That would be doubly confusing....!

[0] http://en.wikipedia.org/wiki/Great_Neck,_New_York

comment 13y ago · link · parent

> Parametric polymorphism is very simple, and has been a completely solved issue for a very long time. There is simply no excuse for a brand new language to be decades behind on something so easy to do right.

Go has addressed this; their approach is Go's interfaces, which combines the best of all worlds: duck typing with static type checks and type inference.

> Go is harder to prototype in, and it is easy to add bugs when refactoring because the type system is so poor.

This is where we'll have to agree to disagree. It's definitely not harder to prototype in - and I say this as a functional programmer - and if you find the type system to be inadequate when refactoring, it sounds to me like you're trying to write idiomatic Haskell in Go. Go's type system, by design, stays out of the way - if you're writing Go idiomatically, you really shouldn't be thinking very much about the types as you write them.

As for generics, this gets beaten to death on every single Go post on HackerNews. Yes, Go would ideally have generics. Yes, there are tradeoffs involved. Yes, those tradeoffs have been explained by the Go developers at length. Yes, they would be open to including them in the future, if somebody addressed the existing concerns. No, nobody seems to mind that they're missing from the language as-is, given those tradeoffs.

comment 13y ago · link · parent

Unlike C++, Go enforces that its dependency graph be a DAG. This drastically reduces compilation time, but it also reduces the headache that comes with decoupling highly coupled code, because it restricts the extent to which your code can be messy to begin with.

The package system also enforces (at compile-time) that every imported package be used (and also that every named identifier be defined, which most dynamic/interpreted languages can't do). This applies not just to imported packages, mind you, but to any lvalue - if you declare/assign to an lvalue that's never used as an rvalue later, you can't compile the program.

That's really helpful when refactoring, because it makes it easy just to move a bunch of code between files, then follow the breadcrumb trail of compiler errors (not warnings!) to figure out what still needs to be fixed. The compiler won't tell you everything you need to do, but it's sort of like having a Roomba helping pick up after you while you clean your house manually.

Yes, for those genius programmers who never makes any mistakes, this may not be much of an improvement. But for those of us who don't trust our human brains as much and want to be absolutely sure that these silly errors don't slip through, it takes a huge load off the mind.

comment 13y ago · link · parent

I should probably write a blog post about this, because it's a combination of a number of things. Primarily, the compiler is incredibly strict and opinionated, so it's impossible to make certain small errors like assigning to lvalues that are never used, importing packages that are never used, etc.

Secondarily, gofmt makes code very standardized and easy to skim. It takes Python's 'only one (obvious) way to do it' one or two steps further, by forcing everyone to to write their code the same way. This makes refactoring a lot easier because you don't need to read as much code each time in order to understand what's going on (or at least, you can mentally parse it much faster).

Finally, the context-free grammar combined with a strong, static type system means that migrating code from an old (incompatible) version of Go to the most recent one can be done painlessly with the 'go fix' tool. This isn't your py2to3 tool - this accepts valid (old) Go code as input and reliably produces valid (up-to-date) Go code as the output.

That last bit isn't actually used in refactoring manually, but I make note of it because very few languages give you anything close to this level of reliability with code modification, which speaks volumes about the design of the language's grammar.

comment 13y ago · link · parent

Go is going to look hideous to you because you're probably expecting functional things like list comprehensions (which Go doesn't have) and a very intricate type system allowing for things like generics (which Go doesn't have either).

Go code will look a little less DRY to you as a result, which is a fair criticism, but it makes up for that by being incredibly opinionated (that's a good thing), being incredibly easy to prototype in, and being incredibly easy to refactor painlessly.

comment 13y ago · link · parent

> Shouldn't that be "Go-lang" because we all agreed to call it Golang? I might be missing something.

I'm the one missing something, because I'm not sure who 'we' are, or when 'we' all supposedly agreed to this.

In any case, you should probably inform the authors of the spec, because they apparently missed this memo too[0]!

[0] http://golang.org/ref/spec

comment 13y ago · link · parent

I've been using Go a lot recently as well, and it's rapidly become my go-to language (no pun intended) for a lot of problems, even when concurrency is not involved.

The biggest thing Go gives me is that it's really easy to manage code bases that grow organically - refactoring a project that grows from 50 LOC to 5000 LOC is almost painless in Go - no other language that I've seen has dealt with this aspect of code development so well.

1
167168169
202