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

The GPLv3 served two main purposes:

1) Prevent Tivoization[0]. As noted below, it could be argued that the GPLv2 already forbade this, but that is left up to legal interpretation (which did not always agree in practice). So they made this explicit in the GPLv3.

2) Allow interoperability between the different "flavors" of the GPL. The GPL comes in three "flavors" - regular, lesser, and Affero. Under v2, projects using the regular GPL could not be combined with projects using the Affero GPL. Under v3, all three of these can be safely mixed.

(Essentially, for v3, each of the "flavors" includes an explicit exception for the other two, if I remember correctly).

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

comment 12y ago · link · parent

> He provides a reference implementation. That means this and many other details are defined by code.

I dream of a day when we stop thinking of "reference implementations" as proper specifications. The whole concept of a "reference implementation" leads to an entire class of nightmarish problems.

What happens if there is an unintentional bug in the reference implementation that causes valid (but incorrect) output for certain inputs? What if feeding it certain input reliably produces a segfault? Does that mean that other implementations should mimic that behavior? What if a patch is issued to the reference implementation that changes the behavior of certain inputs? Is this the same as issuing an amendment to the specification? Does this mean that other implementations now need to change their behavior as well?

Or, worse, what if there is certain behavior that should be explicitly left undefined in a proper specification? A reference implementation cannot express this concept - by definition, everything is defined based on the output that the reference implementation provides.

Finally, there's the fact that it takes time and effort to produce a proper specification, and this process usually reveals (to the author) complexities about the problem and edge cases that may not become apparent simply by providing a reference implementation.

comment 12y ago · link · parent

To clarify, they are basic floating-point errors from C that happen to be errors for integers as well in Javascript, because Javascript does not support fixed-precision integers.

comment 12y ago · link · parent

I completely agree.

I like to think of it like the ED at a hospital. Anyone can walk in the front door (send you an email), but you need a triage nurse to organize patients, figure out what each one actually needs, and prioritize them appropriately. Otherwise, you'd just be picking the patient that looks the worst (most urgent) to treat at any given moment, which is not the most effective way to treat patients (the most efficient way to conduct business).

Email is a LIFO stack (perhaps a FIFO queue for some clients), but neither of these is inherently a reasonable way to prioritize the patients who need care, or tasks you actually want to do today.

comment 12y ago · link · parent

> For more information about the formats and the definition of the reference time, see the documentation for ANSIC and the other constants defined by this package.

I find the information at http://golang.org/pkg/time/#pkg-constants very explanatory.

What do you think is unclear about the documentation?

comment 12y ago · link · parent

Explicitly and manually creating a (mutable!) array of strings for this purpose is rather ridiculous. Contrast with the equivalent code in Go: http://play.golang.org/p/lpYeBYGEv5

It's especially ridiculous in Javascript because the internal functions make use of it (try calling (new Date()).toString()), but they don't give direct access to it.

A well-designed stdlib should handle all of these basic things without requiring the programmer to do any extra work. It's especially important when talking about time, because there are so many wacky edge cases that no programmer is ever going to be able to predict all of them if they have to roll it themselves.

comment 12y ago · link · parent

Dealing with time on Go, whether simply unmarshalling string representations of time or handling timezone/locale converstions, is so incredibly convenient. Gone are the days when I'd have to remember the difference between "%MM", "%mm", and "%m".

I have gotten incredibly spoiled in this regard, and it's incredibly painful now to deal with time in Python or (even worse) Javascript[0].

This isn't even getting at the synchronization/timing features, which Go provides amazing support for as well.

[0] My jaw hit the floor when I saw how difficult it is to get the name of a month from a Date object in Javascript: https://stackoverflow.com/questions/1643320/get-month-name-f...

comment 12y ago · link · parent

I can't tell if you're being sarcastic, but it's about as original and convincing as saying that "liberalism is a 'coherent political philosophy' only if you are a poor inner-city black kid whose parents are on welfare".

They make for witty-sounding quips, but both are ad-hominems[0] that do little to actually address and argue against the tenets of either philosophy.

[0] (In before someone points out that this is not a true ad-hominem because it attacks a stereotype (and a straw man at that) rather than a specific individual).

comment 12y ago · link · parent

Whenever Congress wants political cover to pass a law, they focus on how it affects kids ("think of the children!") - child pornography is often a convenient excuse, as it was during SOPA/PIPA.

In technology, the excuse is usually either "security" or "better user experience".

Like preventing child pornography, these are both worthwhile goals, but they are often used to cover up goals far less noble, as you note.

comment 12y ago · link · parent

This sounds nice, but I'm not holding my breath for hope that the "new" SAT will be any better.

I took both the "old" SAT (the one that they discontinued around 2004) and the "new" SAT (the one that they're now discontinuing). I actually thought that the structure old one was better in many ways - for example, the analogies were often terribly written, but the idea of testing analogies as a reasoning tool is very powerful, and much more so than just doing passage after passage of reading comprehension.

Furthermore, this is the exact same language that they used to justify the decision to change the SAT 10 years ago. Coleman isn't saying anything new when he's criticizing the SAT today; he's just recycling the same PR language that they used a decade ago.

Of course, perhaps they really are genuine. I'd love to be pleasantly surprised. But reading this gives me total deja vu from the news stories I remember reading in 2002.

comment 12y ago · link · parent

As I mention in a reply to the sibling comment, I don't fault the developer for choosing a free software license that suits their purposes. I just don't think it's fair to blame the GPL for the incompatibility that happens when a developer chooses a 4-clause BSD license.

(Also, remember that the developer could always dual-license - ie, "GPL or 4-clause BSD - if you want to use my software in proprietary code, then you have to advertise me").

comment 12y ago · link · parent

> Complaining about this seems a bit strange,

For the record, I'm not complaining. I'm just saying that it's unfair to blame the incompatibility solely on the GPL (as OP seemed to be), when the developer is the one who chooses the license for their software. (And I presume the OpenSSL authors are experienced enough to be familiar with the compatibility differences between the 3-clause vs. 4-clause BSD license).

> OpenSSL's license, although kooky, is freer than the GPL in terms of who can use the stuff covered by it.

No, both are equally free. Both of them respect the four freedoms, so they are both free licenses.

(The 4-clause BSD is arguably more permissive, but on the other hand, the GPL permits one to advertise the software without any restrictions, so it really depends on which of those two one values more. Generally the copyleft clause is what people care about more than advertising, but it's important to note both).

comment 12y ago · link · parent

> The problem is that the GPL willingly refuses to permit advertizing clauses. Is there a congent argument about why an advertizing clause is a limitation of freedom

The advertising clause is not a limitation on freedom. The 4-clause BSD license is a free software license; it just happens not to be compatible with the GPL (not all free software licenses are).

The reasons for this are very practical: not only does it place additional restrictions on the software (which is not permitted by the GPL), but if multiple 4-clause BSD projects are used, each project requires its own separate advertising statement (the 4-clause license does not permit combining these into a single sentence): https://www.gnu.org/philosophy/bsd.html

> The reason the GPL is annoying is that free license with an advertizing clause have existed for a very long time and are actually widely used.

Most modern projects using permissive licenses use 3-clause BSD, MIT/X11, or Apache, all of which are compatible with the GPL. In this day and age, choosing a 4-clause BSD license is a fairly conscious decision to make the project incompatible with the GPL.

comment 12y ago · link · parent

> The irony of what's happening here, that dogmatism about a belief is causing an inferior solution to be used, is infuriating and one of the reasons people have such a problem with dogmatic personalities like rms. It's technically illegal to use a better solution because of something as relatively unimportant as a license.

Why do you jump to blame the GPL and rms, when one could just as easily fault the OpenSSL authors for using the 4-clause BSD instead of the far more common 3-clause?

> It's technically illegal to use a better solution because of something as relatively unimportant as a license.

No, it is technically illegal to distribute compiled binaries that use OpenSSL, because the OpenSSL authors wanted to retain the advertising privileges. But it is not illegal to use the software as long as it is distributed in source and compiled by the end user.

I would not call licensing unimportant. As long as software is copyrightable, licensing terms are highly important.

comment 12y ago · link · parent

I really dislike the new standard of making location tracking opt-out, not opt-in.

There's a startup that tracks the location of customers across stores using the MAC addresses of their cell phones, without their knowledge. In order to opt-out, you have to register your MAC address with them: http://nomi.com/privacy/

The key to both Nomi and (to a lesser extent) Google is that users don't even know when they are being tracked. Opt-out only makes sense when there is a reasonable expectation that the user knows that the tracking exists.

comment 12y ago · link · parent

That's not really correct. Even if we assume that this is no longer a hypothetical/counterfactual case, then the correct grammar is to use the present tense ("This is the moon as one pixel"). But, in this case, it still is counterfactual. This is really short for "If the moon were only [the size of] a single pixel", a statement which we know is not correct.

You're probably confusing this with the rule surrounding verifiable facts (ie, "I asked John if he was happy").

comment 12y ago · link · parent

Tried it out from the console using Chromium on Linux. It's a segfault of some form, though it unfortunately doesn't log anything else to the terminal before segfaulting.

comment 12y ago · link · parent

There's another way that "AirPNP" could be misinterpreted, to humorous effect: https://en.wikipedia.org/wiki/Party_and_play

(It's especially amusing when you take into account the stories (whether exaggerated/apocryphal or not) of people using AirBNB as a means to identify places to hold such "parties").

comment 12y ago · link · parent

At least on the razor front, I wouldn't say that the game is over. Bevel[0] sells double-edge safety razors and (as far as I can tell), their only competitive advantage is their marketing and customer service. I'm pretty sure that the razors they sell work with any blades.

(By the way, I totally agree with you on the rest of your point - I'm just curious to see if it's possible for a better product to win over an inferior one with lock-in in this case. I certainly hope so)

[0] https://getbevel.com/

comment 12y ago · link · parent

Pretty awesome to see this. When I used a Mac for work, I used Arq and set it up on my coworkers' computers (they were completely non-technical). It was very easy to use.

I'm curious what backup tools people use on Linux if they want to back up files on Glacier. I use git-annex[0] for certain files (it works well for pictures and media). The rest of my backup process is a fairly rudimentary (though effective) rsync script, but it doesn't use Glacier.

My current setup works fine for me, but I imagine there are better tools out there.

[0] https://git-annex.branchable.com/

comment 12y ago · link · parent

Shouldn't it be easy though to configure the servers/load balancers to reject any request except for CloudFlare's?

Then again, if the attacker spoofs their IP address, I'm not sure how this would work (and I'm not sure how Cloudflare prevents against this as it is).

comment 12y ago · link · parent

At first I almost laughed when I saw the sum - they're asking $300? For a company that's been around for almost 15 years?

That said, Meetup's reasons for not paying it are very solid. I'm glad they're spending far more than $300 of their own resources[0] to fight this attack, because other websites would be the ones paying the price if they decided to start this precedent.

Also, somewhat relevant: https://en.wikipedia.org/wiki/Danegeld

[0] I wonder how much this downtime actually represents to them (plus the engineering time)

comment 12y ago · link · parent

That doesn't really seem to paint Joyent in a very favorable light.

IMHO, it wasn't a good idea for TextDrive to sell lifetime subscriptions, but if Joyent knew that when they purchased TextDrive, they should have continued to honor them.

comment 12y ago · link · parent

Aside from talking about Go at Cloudflare, some topics that may be interesting to me (someone who has used Go for personal and work projects, but works at a much smaller company):

* Deployment/sysops practices at Cloudflare, especially since (IIRC) a plurality but not majority of Cloudflare's internal services are written in Go

* Challenges maintaining your own DNS server (which is written in Go), and how you address them

* Maintaining a healthy relationship with the FOSS + language community (Cloudflare seems to place more importance on this than the average company[0][1])

(These are a mixture of things about Cloudflare and about Go, but depending on the format of the conference, people may be interested in some stuff that's more indirectly related Go as well)

[0] http://blog.cloudflare.com/open-source-two-way-street

[1] http://blog.cloudflare.com/keeping-our-open-source-promise

comment 12y ago · link · parent

Dammit, now I need to think of an excuse to be in Paris in October (and to get someone else to pay for that). ;)

In all seriousness, I'm glad this is happening. I'm going to GopherCon in April, and I'm glad that the Go community outside the US also seems to be strong.

comment 12y ago · link · parent

I was referring more to what led up to that - how they accosted him, etc.

(Also, what was going through their heads when they said this - not that we'll ever know, of course).

comment 12y ago · link · parent

> “Is that a Muslim or Hipster beard?” by a crew of three NYPD officers in Times Square.

I'm very curious to hear the full story behind this one.

On a separate note - I used to work in Chelsea[0]. Two or three days of the week, as I was leaving the subway, I would see NYPD questioning and/or frisking a young, black man or women. I saw this happen for months, and never once was the person being questioned/frisked white, east Asian, or any other race.

Oh, and by the way:

> The main I didn’t file any kind of report or move forward at all was that I don’t have badge numbers.

NEVER ask a police officer for his/her badge number. Look for it and try to memorize if you want, but don't let them know you're trying to learn it. I know someone who ended up doing ~18 months in prison for doing exactly this. (The official charge was "obstruction of justice" and/or "resisting arrest", but that's basically all he actually did. Once it's clear to the cops that you're looking to report them, they'll do everything in their power[2] to punish and discredit you).

[0] Affluent, primarily white, gentrified (former) gayborhood, for those unfamiliar with NYC.

[1] This is not the same as the NYPD standing by the tables asking people to let them look through their bags (which you can refuse, by the way!)

[2] And possibly even things not in their power

comment 12y ago · link · parent

Hm, didn't think about that. Do you have an idea of how to get in contact with him? The form link he tweeted doesn't seem to apply 100% to this case[0], but digging around it seems you may be right; there's precedent for this kind of action elsewhere.

[0] I took a second at the Gawker "article"; they combined content with my blog post with some quotations from an interview with a (non-Gawker) publication, so it's recycling content from primary + secondary source, not just primary.

comment 12y ago · link · parent

> What do all these earlier mistakes have in common, apart from the obvious: being exemplars of “catastrophic loss of structural integrity”? They all date from before 2013. That’s how we know the NSA wasn’t involved.

I get that this is trying to make fun of the response to Apple's "goto fail;", but this logic ("These similar errors predate 2013 → Apple's similar error was not an NSA backdoor") seems rather faulty. There are a number of flaws with this line of reasoning. To name a few:

* The NSA could have been involved with backdoors before 2013 (unlikely in Debian, but mentioning 2013 is a bit of a red herring)

* Apple could have been encouraged to insert a backdoor and did so in a way that gave them plausible deniability (either because the NSA specified that, or because they wanted to cover their behinds)

Whether or not this incident was the result of the NSA's prompting is something we'll probably never know[0], but this article doesn't do much to argue one way or the other.

[0] The only way we could know is if someone literally came out and admitted it (or someone like Snowden were to leak it). It's possible to prove the existence of something (ie, a backdoor attempt), but impossible to prove the absence of something.

comment 12y ago · link · parent

> I'm not sure about that, DOM access is a bit of a mess and the js stdlib is not great either, it wouldn't be hard to improve on it

You'll get no disagreement from me about the JS stdlib. I was shocked when I found the "correct" way to extract the day of the week from a Date object in Javascript (without third-party libraries): https://stackoverflow.com/questions/4822852/javascript-how-t... [0]

It would be a great feat if/when someone does it. But saying that "Browser makers like Mozilla have had the option, at any time, to enable the use of Lisp (or any other language) in the place of Javascript" sort of ignores the amount of work required to actually do this (properly).

[0] Of course, this code does already exist internally, as evidenced by (new Date).toString(); you just can't access it.

1
147148149
202