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

COBOL is like bedbugs. Nobody likes COBOL; the reason it sticks around is because it's damn near impossible to get rid of.

COBOL is very hard to migrate out of production because it's incredibly difficult to translate COBOL code to other languages. Everyone writes their own version of their COBOL, and even translating one COBOL program to another COBOL programmer's "dialect" is non-trivial. COBOL provides all the power of LISP macros, except with none of the elegance - it's very hideous once you peel back the layers.

On the other hand, it's very easy to translate Go to/from other C-family languages. Indeed, there was a blog post recently on here about a company that translated their entire Python codebase line-for-line into Go. The Go team is even working on an automatic translator to translate the current gc compiler codebase (written in C) into Go.

I've used Go as my primary language for almost two years now. I wouldn't say I "love" Go - I love the things it lets me do. If Go is going to achieve the same level of dominance that Java has, and the same level of persistence that COBOL has, it's not going to be because it's got the ultimate form of lock-in (legacy code) - it's going to be because it continues to let people do powerful things very simply.

comment 12y ago · link · parent

Agreed - at first, this seems frustrating, but don't let it be discouraging.

gorhill, there are very few people who are both interested in and qualified for building software of this sort. You've essentially just proven to the EFF that you're the exact person whose help they should want with this, so you have an opportunity to join forces with them and build not just an amazing product, but an amazing product that does exactly what you originally set out to do!

This is the same principle behind so-called talent acquisitions ("acquihires"); the difference here is that we're talking about a non-profit organization and two open-source projects, so there's even less friction in joining forces. And more importantly, you can always change your mind if you ever decide to. Nothing holding you back!

comment 12y ago · link · parent

I was shocked to click on this article and realize that they were talking about someone other than Michael Moschen.

I believe Moschen is the only juggler to have won a MacArthur "genius grant"[0]

(He has also worked with David Bowie[1], which makes him not just a genius but a badass in my books, but I digress....)

[0] https://en.wikipedia.org/wiki/Michael_Moschen

[1] https://en.wikipedia.org/wiki/Labyrinth_%28film%29

comment 12y ago · link · parent

I'm not surprised to read this. Any statistics about rape have to be taken with a huge helping of salt, because of all the issues surrounding data collection and self-reporting. However, I have read at least some reasonably reputable sources citing that in over half of all rapes that occur in the US, the victim is male[0].

Even if this is an overstatement, it's clear that the classic "man physically overpowers woman" narrative of rape is false - both because of the gender assumptions and because rape does not always involve physical dominance.

It's kind of sad that sexual assault and rape are oftentimes viewed through the lens of gender-based crimes. In reality, sexual assault and rape have nothing to do with gender, and should be treated as serious problems regardless of the sex and/or gender of both the victim and perpetrator.

By perpetuating a false image of rape/assault, we end up with a broken matched filter[1] for what constitutes rape. As a result, people tell themselves that what they experienced "wasn't really rape" - because the victim is male, or because they were under the influence, or because they were married to the perpetrator, or any other number of reasons. And this is how we end up with victims who stay silent.

[0] This is not the same thing as saying that over half of all rape victims are male!

[1] https://en.wikipedia.org/wiki/Matched_filter

comment 12y ago · link · parent

Do you do this on your laptop, or on your phone?

I know that (older versions of) Cyanogenmod would set the TTL of packets to be (2^n + 1) for this exact reason, but it happened on the phone.

Also, FWIW, I have T-mobile and haven't experienced issues tethering on my stock Nexus 5. I'm curious why some customers are experiencing these and not others.

comment 12y ago · link · parent

Yes, my point is that Go intentionally makes it hard for users to extend the language, while simultaneously learning from the successes and failures of other languages, and Yes, my point is that Go intentionally makes it hard for users to extend the language, while simultaneously learning from the successes and failures of other languages, and incorporating the results of that into Go.

The fact that users are able to create core language features has its drawbacks when it comes to cohesion in the language community. Lisp itself is a perfect example of this - codebases are immensely fragmented in terms of which libraries they end up using (Quicklisp is, in part, an effort to solve this).

Lisp was "designed" (if you can call it that) around the principle that extending a language should be as easy as writing a program in that language. Go was designed around the principle that there should be only one dialect of the programming language, for the sake of cohesiveness.

Both are legitimate philosophies for different use cases, but that's why it's kind of silly (IMHO) to compare Go to Lisp - the goals are not only different, but diametrically opposed in most ways.

comment 12y ago · link · parent

As someone who writes both Lisp and Go (and enjoys both), I find it odd that this article uses Lisp and Haskell as points of comparison.

> programming in Go isn’t “fun” in the same way that Python, Haskell, or Lisp is.

Yes, writing Lisp is much more "fun" than writing Go for me. But writing Go is much more productive and maintainable (both for solo projects and for larger groups).

In fact, this is almost an intentional "feature" of Go: http://aerokode.com/blog/go-is-boring

> The idea is that there’s simply no way that any group of designers could imagine how people will want to use their language so making it easy to extend solves the problem wonderfully.

On the other hand, there's no way of making a language so easily extensible while also maintaining relatively uniform idiomatic, design, and style conventions across a language community. Go very heavily favors the latter.

> In Lisp, CLOS (Common Lisp Object System) was originally a library. It was a user defined abstraction that was so popular it was ported into the standard.

CLOS is actually very similar in some ways to Go's structs. Both emphasize encapsulating data inside an "entity" (object/struct), and separating the notion of behavior from that entity. To quote one of the language authors from GopherCon[0]: "Interfaces separate data from behavior. Classes conflate them."

Lisp was "designed" (if you can call it that) around the principle that extending a language should be as easy as writing a program in that language. Go was designed around the principle that there should be only one dialect of the programming language, for the sake of cohesiveness. It's a stronger assertion of the Pythonic motto, "There should be one, and preferably only one, obvious way to do it".

[0] https://twitter.com/chimeracoder/status/459827405386162176

comment 12y ago · link · parent

I have the ZTE phone to play around with - I got it this past fall just for kicks. It's a great phone for the price, but that's also a very low price point.

FirefoxOS is 'ready' for prime time use if and only if you have relatively low requirements of your phone. It can do most basic tasks by virtue of the fact that it uses mobile websites as if they were native apps, but the experience is not yet comparable to Android.

I think it will get there soon, but right now I would only get one if you are very comfortable being an incredibly early adopter, and understand what kind of adjustment that requires on your part.

comment 12y ago · link · parent

> This is a nice take on the reality of the middle to upper middle class drug economy. It's not all episodes of the Wire.

It may still be there, just slightly beyond the frame of this picture. The article doesn't go into how the drugs actually get across the Canadian border, for example.

The show Weeds was unrealistic in some ways, but one thing that the first couple of seasons did reasonably well was to depict Nancy's descent into progressively more dangerous situations and the beginning of her relationship with organized crime.

At any appreciable scale, the drug trade[0] gets messy very quickly - not always to the end user, but certainly one or two degrees removed. If it looks clean, either it's because it's a very small scale and vertically integrated (eg, the marijuana equivalent of "microbrew"), or you're just not looking far enough down the supply chain.

[0] Of course, this is not a comment on the inherent nature of the drug trade, but on the inherent nature of any illicit trade; legal (or "less illegal") supply and distribution channels will have far less crime associated with them.

comment 12y ago · link · parent

> And even in the areas where people are creating safer alternatives (e-cigarettes), there are politicians nearby ready to use their banhammers.

I don't think this ("banhammers") is a fair comparison.

To my knowledge, most if not all of the major regulation regarding e-cigarettes is around restricting the sale to minors or restricting the areas in which they can be used, as opposed to a blanket ban on the sale or possession of e-cigarettes.

All of that is analogous to existing regulation regarding cigarettes, alcohol, and marijuana[0]. The only difference from marijuana is that we're starting from the other end of the spectrum (zero regulation) instead of starting from a blanket ban, but the theoretical convergence point is the same: use of marijuana and e-cigarettes are permitted, but regulated in some way around the age of purchaser and location (setting) of use.

You can make the argument that restricting the use of e-cigarettes indoors (or by minors) is incorrect, but people have been arguing that 18-year-olds should be able to drink (like in the rest of the world)[1] or use marijuana, so the details of the regulation regarding those aren't necessarily perfect or justified either.

A better example of "banhammers" would be Salvia divinorum, which was legal in every (or almost every) state ten years ago, and is now prohibited in 8 states (and there were attempts to prohibit it outright, like marijuana, in several more)[2].

[0] in (e.g.) Colorado, where recreational sale and use is permitted.

[1] https://en.wikipedia.org/wiki/Legal_drinking_age

[2] https://en.wikipedia.org/wiki/Salvia_divinorum#US_legality

comment 12y ago · link · parent

Sure - I actually gave a talk last year on this exact topic. There's an audio recording somewhere, but here's the repository for the slides (which contains a link to the PDF): https://github.com/ChimeraCoder/go-for-pythonists

comment 12y ago · link · parent

I predict that this is going to lead to an increase in the number of applicants who have already raised some money (though not a full round).

> Most people don’t do YC for the financial investment—they do it because they want the advice, the help of the network, the benefits of the program, etc. But still, more money for less equity is definitely better.

This is good news for people who've issued convertible notes before YC, since the implicit valuation is now $1.7MM instead of ~$300K. This is great for PR purposes (read: bragging rights), but can also have concrete implications:

I know at least one company that had a sticky situation[0] when they were accepted into an accelerator after already raising money from an angel investor - the investor ended up owning a huge chunk (the majority?) of the company on paper, because the note converted[1]. They didn't even need the money (it was just a standard part of the accelerator).

[0] it was resolved in the end - but it caused extra headache and legal costs

[1] A well-written conversion clause in original note can also avoid this problem (e.g. by including a threshold), but hindsight is 20/20 - I know a number of companies that would have been impacted in a similar way.

comment 12y ago · link · parent

This article doesn't address one of the biggest benefits I've noticed in switching from Python to Go.

I've been using Go for almost two years now. Like OP, I am/was primarily a Python developer. Like OP, my first Go project was a time-sensitive rewrite[0] of a project from Python (tornado) to Go.

Even though I was an experienced Python developer, the Go rewrite was marginally (~20%) faster[1]. But the real benefit came from the subsequent development - refactoring, rearchitecting, and maintaining the project on an ongoing basis. Go was designed to make it easy to scale the maintenance[2] of software, and on this one axis, it absolutely blows every other language and environment I've used out of the water.

For a fresh project, I'd say Go is about 10% slower to write than the equivalent Python[3] for the average case. But the time/cost savings are very quick to come thereafter.

[0] I would absolutely not recommend doing time-sensitive rewrites in general, but that decision was a separate matter.

[1] Some of this is due to the nature of rewrites in general, but the fact that it wasn't slower to use a language I'd never used before says something about the language.

[2] Scaling software development as teams grow is very different from scaling software as users grow.

[3] Assuming comparable familiarity with both languages, which is rarely the case, of course

comment 12y ago · link · parent

> This was tried before with the "rent a DVD and player" streaming service (Zediva).

A huge difference between Zediva and Aereo is that Aereo only rebroadcasts network television. All the content that Aereo rebroadcasts is already required by law to be publicly accessible and unencrypted(!)[0]. This is why they only serve over-the-air content - the same law does not apply to DVDs rented, or even to cable television.

Also, to my knowledge, Aereo does not deduplicate content stored, whereas Zediva essentially does. You and I know that there's no difference between "my" digital copy and "your" digital copy, but Aereo does store a separate copy per-user and only distributes each copy to the correct user.

The reason that Aereo separates those copies is because we already have case law that establishes my right to record an over-the-air broadcast and replay it for myself[1]. Aereo maintains that it is acting on behalf of the customers to exercise the customers' right to create personal recordings. If they de-duplicated the data (as Zediva did), they'd certainly save a lot on storage and hardware costs, but they'd no longer be protected by this legal precedent.

Aereo has a very well-funded legal team that is certainly aware of Zediva and other landmark legal precedents[2] - they specifically crafted their entire business around the Cablevision ruling and other case law.

[0] In 2012, the FCC decided to allow cable operators to encrypt these signals, but even this only applies to the retransmission: "The FCC wants to ensure that consumers can still access basic cable services without specifically renting a box from the cable companies. And so the FCC is requiring that the cable operators make the unencrypted TV signals available to third-party device makers and Internet TV service providers." (http://www.cnet.com/news/fcc-allows-cable-operators-to-encry...)

[1] https://en.wikipedia.org/wiki/Sony_Corp._of_America_v._Unive....

[2] Aereo's raised $100MM in 4 rounds. Three of those rounds included IAC, which is run by Barry Diller, who has plenty of relevant industry experience, to say the least: https://en.wikipedia.org/wiki/Barry_Diller

comment 12y ago · link · parent

> It would seem like what they are doing is capturing the signal from a better source, and then maintaining a batch of crappy antennas just to claim a 1:1 ratio of antennas to customers.

I'm not an expert, but to some extent, isn't that the same thing? Because of the way radio transmission works, any receiver is also a (re-)transmitter.

It might be that maintaining several small antennae actually improves the signal.

comment 12y ago · link · parent

> 17 hours ago

> Klout notified users of its Cinch question-and-answer app in an email today that it will discontinue the service on April 18th at 12pm PST.

So.... less than 24 hours' notice? Unless there are immediate security or legal reasons (doubtful) that's rather appalling.

comment 12y ago · link · parent

If this is an open-air reservoir, chances are all sorts of animals have done all sorts of nasty things in it already - the only difference is that this kid got caught.

With an open-air water reservoir, I'd be much more concerned about things like Dracunculiasis (Guinea worm)[0] than urine. Thankfully, the Guinea worm poses a low risk to the US due to how easy it is to prevent[1], but it's a problem elsewhere in the world.

Dracunculiasis only occurs in four countries (and the US is not one), but the reason it spreads/persists there is due to improper practices regarding drinking water.

[0] https://en.wikipedia.org/wiki/Dracunculiasis

[1] https://en.wikipedia.org/wiki/Dracunculiasis#Cause - each generation of worms needs a human host, so even if a single water supply were contaminated, it would not be able to reproduce again unless the water supply were re-contaminated.

comment 12y ago · link · parent

Out of curiosity, do you (personally) downvote either comments that you disagree with (e.g. "We should all be using DNSSEC for better security"), or comments that are factually incorrect (e.g. "Heartbleed was caused by incorrect use of null-terminated strings in C")?

(I assume neither of these are inherently flag-worthy assuming they're made in earnest and not egregious).

comment 12y ago · link · parent

> The majority of HN users are thoughtful and nice. It's clear from the data that they reliably downvote jerks and trolls

I have to say, I'm a bit confused now. Aren't "trolls" the sorts of comments that are supposed to be flagged[0]? (I understand that spam is meant to be flagged, but HN gets very few true spam comments[1]).

What is the difference between downvoting and flagging for comments specifically - and more importantly, what comments should be downvoted?

I've read conflicting arguments (both sides quoting pg, incidentally) that disagree on whether or not downvotes should be used to signify disagreement, or whether one should downvote comments that are on-topic but have little substance (ie, most one-liners).

[0] I guess this depends on your definition of "troll", but I think a well-executed troll is similar to Poe's law: the reader can't tell whether the commenter is being flippant/rude or sincere. In other words, it's just enough to bait someone into responding, without realizing immediately that it's a worthless comment.

[1] eg, ads for substances one ingests to change the size of a particular masculine organ, or (less blatantly) direct promotions for off-topic products.

comment 12y ago · link · parent

I read six of Garcia Márquez's stories in school - my favorite was "The Handsomest Drowned Man in the World"[0] ("El Ahogado más Hermoso del Mundo"). If you're looking to get a taste of his writing but don't have time to read an entire book, this short story captures his style very well.

In a similar vein is "An Old Man with Very Enormous Wings" [1] ("Un señor muy viejo con unas alas enormes"), which was referenced in R.E.M's music video for "Losing My Religion[2]

[0] https://hutchinson-page.wikispaces.com/file/view/The_Most_Ha...

[1] http://www.ndsu.edu/pubweb/~cinichol/CreativeWriting/323/Mar...

[2] https://www.youtube.com/watch?v=if-UzXIQ5vw

comment 12y ago · link · parent

> Browsers themselves were not vulnerable to heartbleed,

Clients could have been vulnerable to Heartbleed. Feel free to correct me on this, but I believe the only reason they weren't is that Chrome uses OpenSSL compiled without the heartbeat feature, and Firefox uses NSS.

comment 12y ago · link · parent

> NYTimes.com: All the code that's fit to printf()

This gave me a chuckle. I was at a hackathon that the NYTimes sponsored a few years ago, and my group used almost this exact joke for our project, an ncurses reader for browsing the New York Times in the terminal[0].

I don't know who thought to put this in the source code, but I'd find it very amusing if they got the inspiration from hidden slogan from a hackathon project. Kind of like the old competitions in the 50s/60s to create company jingles.

[0] https://github.com/ChimeraCoder/ncnyt

comment 12y ago · link · parent

> I'm unhappy that Levison's overbearance on email caused Pamela Jones to quit Groklaw.

Can you explain?

I may be wrong, but my misunderstanding is that Groklaw shut down because there is no way of knowing whether or not the privacy has been compromised.

In other words, this incident revealed information that was already true; Groklaw shut down in the light of the new knowledge, but not because the previously-private communication was suddenly vulnerable.

comment 12y ago · link · parent

> But in your example Medicare is just a really big insurance company

I agree that there are better examples of government regulation directly impacting medical practice, but this example illustrates the power of a monopsony[0].

To overgeneralize, the same way that monopolists (single suppliers) can exercise power over purchasers in ways that we might deem unfair, monopsonists (single consumers) can exercise power over suppliers in ways that we may also deem unfair or harmful.

These effects are not limited to Medicare patients or providers, by the way. It's not hard to make the case that customers who can choose between Comcast and Verizon FiOS are harmed by the fact that cable companies are regional monopolies in most other markets.

Similarly, even if you have a private insurance plan, there are a number of ways that you are affected by Medicare's policies indirectly, in ways that you would not if they weren't such a big player.

[0] https://en.wikipedia.org/wiki/Monopsony

comment 12y ago · link · parent

I support the conclusion of this XKCD comic, but the math always seemed off to me.

Lets say your dictionary has 100,000 words[0], and your attacker has access to the same list. If the attacker knows that you have chosen four words off of that list, he still only has a 1/4,166,416,671,249,975,000 chance of guessing the right permutation (not combination!). That's less than 2^61, which is certainly very secure.

However, the entropy calculation in the XKCD comic assumes that the characters are uncorrelated with each other, the way they would be if you used a random sequence of characters as your password.

(Of course, this assumes that you choose the words truly (pseudo-)randomly, and not "cherry-picking" permutations that are easy to remember.)

[0] Not unreasonable - /usr/share/dict/words on Ubuntu has over twice as many.

1
143144145
202