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

> It's awesome that it's a post by someone who just attended the recourse center and they're a new programmer and already struggling with these interesting issues and trying to solve them

FYI, not everyone who attends the Recurse Center is a new programmer. In this particular case, Michelle (the author) has a decade and a half of experience developing in Javascript and writing Javascript frameworks (ie, writing the frameworks themselves).

comment 11y ago · link · parent

A combination of the following:

- Cross-compilation (trivial in Go, less so in C)

- A chance to learn about the really dark, thorny corners of Git

And for what it's worth, source control is Git's intended use case, but people do use it for other purposes as well (like managing personal media collections across multiple devices[0]). Git has become a protocol or a platform in addition to a VCS[1].

But there aren't very many FOSS clean-room implementations of Git, at least not this far down the chain (packfiles). One of the best ways to discover hidden implementation issues or oversights in a spec or existing documentation is to try and reimplement it, which has the effect of strengthening the platform itself in the long run.

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

[1] Bitcoin is a bit of a hot-button topic, but it's similar to bitcoin in this regard: the tool itself is intended for financial transactions, but people have already started to use it for all sorts of unrelated use cases.

comment 11y ago · link · parent

Thanks for the suggestion! I'll take a look at the contribution process for the Git project.

comment 11y ago · link · parent

Yes, I link to a different version of that same file in the article (my link points to the version hosted on kernel.org, rather than Github). It provides a bit of high-level context, but by itself it doesn't provide enough detail to actually reimplement the corresponding Git functions.

Aside from being more terse and (IMHO) more difficult to read than prose with examples and non-ASCII diagrams, that file doesn't explain the context and motivation for packfiles, and it doesn't cover the parsing and application of deltas at all.

comment 11y ago · link · parent

Author here. I discovered this while working on a clean-room implementation of Git in pure Go. While there are a lot of references to packfiles online, surprisingly, the actual format of packfiles was rather underdocumented. Most resources just mention that they exist, and describe how to use `git verify-pack` to inspect a packfile, without explaining how to parse packfiles and apply deltas.

I decided to write this up to save others the trouble of having to reverse-engineer it from scratch!

3696.

Unpacking Git packfiles(codewords.recurse.com ↗)

101 points · by chimeracoder · 11y ago · 21 comments

comment 11y ago · link · parent

> So they're raking in a nearly guaranteed $44k/yr from the Federal government for every vet they enroll.

Not exactly. The GI bill doesn't pay anywhere near $44k for New York State. The federal government is not picking up the tab.

I acknowledged the dearth of financial aid in my post, and that's something that they're desperately working on. GS is not as well endowed, which would be the solution to this. If you want to be cynical, fine, but the question of how much money GS has is different from how they're actually spending it.

This is the downside of being a separate school, yes, though with the aforementioned very notable exception of the endowment issue, GS students and faculty overwhelmingly favor this model.

In any case, the topic of this conversation was prisoners and convicts, not veterans. I merely mentioned them because they're a large part of GS and GS has a history of accepting disonorably discharged veterans, which is tantamount to convict status.

comment 11y ago · link · parent

> Interesting article, but the first graph is one of the most blatantly misleading charts I have seen in a long time. Showing two graphs overlapping on completely different scales is a really nasty trick.

They are the same in 2010 because that's where the graph starts. The rest of the graph should be interpreted as "cumulative growth as of $DATE, relative to 2010".

This is actually a common way of presenting two stocks. I believe Google Finance does it. Search for any ticker symbol (e.g. GOOG) and then type in another where it says "compare" (e.g. TWTR). No matter how far back you pull the graph, the leftmost points on each line will always overlap.

I agree that it's a bit weird if you're not used to it.

comment 11y ago · link · parent

In a way, Columbia already does!

Columbia's School of General Studies is targeted at students without a high school diploma, students with "nontraditional" backgrounds, and students who have taken more than a year off after high school before going to school. I went to Columbia, and while I wasn't in GS, a lot of my friends were.

A large number of GS students are veterans[0]. Of the rest, a surprising number are people with, well, backgrounds that typically disqualify a person from an Ivy League education.

I can't share their stories because they're not mine to share, but I had classmates who were caught (and incarcerated for) drug trafficking and other serious-but-nonviolent crimes[1]. I know this because they told me, and they felt comfortable enough in their academic environment sharing this knowledge. To me, that really says something about not only the admissions process, but also the community and support that they receive as students.

As a non-GS student, I really appreciated this setup. My education would not have been the same had I not been sitting next to these students in our discussion sections for class, or serving on the boards of student organizations with them. And at the same time, they were able to benefit from the structure of a school that was explicitly tailored to students with nontraditional backgrounds.

Columbia could do a lot more to support GS students[3], as well as support incarcerated prisoners who are not students, but this is something they've been doing for decades without any fanfare at all.

Columbia also has a very long history of accepting veterans who were discharged for being gay, even long before Don't Ask, Don't Tell (Stephen Donaldson was a Columbia student before joining the military[4]). IIRC, many of these discharges would have been dishonorable discharges, which in some states carries the same status as being a convicted felon.

[0] Partly because Columbia GS is so proactive about recruiting on military bases, and partly because their yellow ribbon matching is so generous.

[1] I mention nonviolent crimes because that's what (some of) my GS friends shared with me. I don't know of any who were convicted of violent crimes, and I don't know if this is simply selection bias or if there really weren't any.

[3] If anyone reading this has $100MM to spare, the General Studies school could benefit greatly from its own endowment to increase access to financial aid!

[4] https://en.wikipedia.org/wiki/Stephen_Donaldson_%28activist%...

comment 11y ago · link · parent

> Indeed, but [India and SE Asia] have a short history of wealth

Er, quite the opposite. In the grand scheme of things, India has a relatively short history of poverty, compared with a much longer history of wealth.

Modern nation-state boundaries make no sense more than a couple of centuries in the past, but the Economist did an extrapolation of what that would have looked like, and the result was that China was the richest "country" for most of recorded history, and India was second.

comment 11y ago · link · parent

> Does your community suffer from metabolic syndrome at the same rate?

While it's the second largest linguistic community in India, I don't know if there's ever been a study done on the metabolic syndrome in that level of detail, no. But I wouldn't be surprised if nobody has bothered to study it. Dietary habits are also tricky to classify because the boundaries are fluid.

Certainly the original article posted does not go into any level of detail on ethnic groups within India, given that it contrasts (without any sense of irony) rates between South Asians and "Caucasians".

comment 11y ago · link · parent

> If I had to spend a lot of time around hindu women I'd probably wind up with a coronary, but maybe they act that way for genetic reasons?

Please keep comments like this off of HN.

comment 11y ago · link · parent

> This seems to vary a lot. I don't see people having a categorical moral opposition to it the way they do meat,

In the US, vegetarianism tends to be for moral or environmental reasons, but in India, the motivation usually religious and/or cultural, not moral.

> but rather dislike it because it's an unfamiliar flavor and texture.

I have literally never heard this complaint. For us, eggs are a part of the traditional cuisine. As I said elsewhere, Indian cuisines vary heavily by region.

> Yes, but they aren't the primary calorie source. A meal isn't considered complete without the carbohydrates; not so the protein.

Maybe for you, but that experience is certainly not universal. For us, a meal isn't considered complete without lentils and fish.

comment 11y ago · link · parent

There are a lot of people here commenting on Indian dietary habits, and there's a lot of misinformation, leading to a lot of misconceptions. In no particular order, let's clear some up:

1. There's no such thing as an "Indian" diet. The cuisines throughout India, Bangladesh, Pakistan, Sri Lanka, and Nepal are incredibly varied, and bear little resemblance to each other.

2. Most Indian cuisines are all but unavailable outside India, particularly in the UK and US. Most Indian restaurants in the US bear little resemblance to the style of food that is eaten in the home. In other words, Indian food available in the UK and US does not reflect daily Indian diets within India.

3. Indian people living abroad may eat very differently, because many of the ingredients are too expensive or simply unavailable outside their home region.

4. Not all Indian cuisines are carbohydrate-heavy.

5. Not all Indian cuisines contain a lot of rice.

6. Not all Indian cuisines fry food.

7. Not all Indian cuisines are vegetarian. Vegetarianism does not dominate Indian cuisine, and it certainly does not dominate Bangladeshi and Pakistani cuisine.

8. What counts as "vegetarian" in India is very different from what people in the US think of as vegetarian. For example, eggs are considered non-vegetarian.

Finally, I should add that all of this, combined with the fact that this is so common both across South Asia and in the diaspora in the US suggests (to me) that genetics are a heavy factor.

comment 11y ago · link · parent

> The answer is likely that Indians eat an enormous amount of carbohydrates and very little protein. Every single meal is accompanied by as much bread or rice as all of the other foods combined.

This is quite heavily exaggerated. In the eastern parts of the state, you'll eat a lot of fish, a small dabbling of rice, and almost no bread. (I'm painting with a broad brush since there are a lot of other factors, but this is much more representative).

> Indians have a high level of lactose intolerance, and many dislike eggs as well.

Vegetarians don't eat eggs because it's not considered vegetarian food in India (unlike the US). Dairy isn't a great source of protein for most people anyway; very few people around the world have enough tolerance for lactose to consume enough dairy regularly for it to be a primary source.

> Nuts are considered a luxury item and aren't eaten regularly. This leaves few opportunities to compensate with other protein sources.

Lentils, legumes, and beans are typical fare for an Indian vegetarian diet.

comment 11y ago · link · parent

> The amount of oil consumption is quite high. Every thing is fried or deep fried. You could easily see this in the snacks that are consumed with tea/coffee.

This isn't really accurate. It's is the common conception of Indian food based on what is usually available in the States, but that's usually only Punjabi food, and even for Punjabi food it's the sort of cuisine that you'd cater for a wedding. It's not at all representative of what people eat on a daily basis. It's like going to P.F. Chang's or Tex-mex and assuming that that's what people typically eat in China and Mexico (respectively).

Indian and Bangladeshi cuisines vary quite significantly by region, and in at least some cuisines there's very little oil and/or fried food.

comment 11y ago · link · parent

> As a CK user I am not too worried. It's been clear to me that my information is shared with lenders/creditors

Are they sharing any information that creditors don't already have access to, or which banks and creditors are already allowed to share with others without your consent?[0]

[0] State and federal laws allow you to opt out of some forms of sharing, but not all.

comment 11y ago · link · parent

> As an aside, from what I know about rhabdomyolysis, it's a condition that can appear when people who are very much sedentary perform very rigorous exercise.

From what I understand, it can also occur when people who are active and fit perform certain workouts (those which emphasize isometric exercises)x in excess.

This is arguably more dangerous and problematic, because it's not as well-known, and companies like Crossfit[0] have been criticized for simultaneously promoting it and failing to provide adequate warning.

[0] https://encrypted.google.com/search?hl=en&q=rhabdo%20crossfi...

comment 11y ago · link · parent

> All the same, it's hard to escape the reputations each platform has, and it's usually not sensible for an individual business to go against the grain just to level the playing field.

Quite the opposite. If it's true that Android users' reputation for being less willing to pay is undeserved (or overstated), then that means that the market is probably undersaturated. That means it would be to their advantage to target Android users.

In general, business stand to make more money where they can identify the markets that are being overlooked by others, not by competing in the same markets that others are already targeting.

comment 11y ago · link · parent

> Most sources I find online show a big discrepancy between expected app revenue from the iOS and Android worlds, so developing a for-profit app on Android first seems a little iffy to me.

This is somewhat self-fulfilling. There are very few developers of paid apps that put equal time and effort into developing both on iOS and Android and release paid apps on both platforms (instead of freemium on one)[0].

Of those that do, many simply make one or the other (usually the Android one) either a simple web view shim, or a naive port of the app design from the opposite platform, which usually looks as bad as you'd expect it would.

So in the end, it's not surprising that some companies report dramatically better sales on iOS than on Android. It's not very straightforward to compare them, because they're essentially shipping two different products, one on each platform.

[0] I'm only talking about paid apps for which app revenue (including in-app purchases) is the primary business model. In other words, Facebook and Twitter would not count here, since they make their money off of advertising.

comment 11y ago · link · parent

> 1. Independent artists are empowered in the way that they can distribute music in so many places online - getting people to listen is another matter. Even if your music is good marketing it by yourself is very, very hard.

Yes... except that the RIAA has the legal authority to collect royalties on behalf of independent artists (that's right, on behalf of artists who haven't even signed to a major label).

These artists have to petition the RIAA[0] in order to collect their earnings. Success in this endeavor varies widely; many artists complain that after years of effort they have failed to receive any of their money from the RIAA.

This same entity, by the way, has spent exorbitant amounts of money lobbying to (effectively) shut down Internet radio[1].

> Artists need labels.

This is true. In fact, artists need major labels, not just labels. But the reason for this is a tautology: they need major labels because we have created (by fiat) a situation in which they cannot operate without the oversight of a major label, whether they want to or not, so they might as well try and enter into a formal relationship so they can actually have standing with them as a client.

[0] Technically a former subsidiary that's now "independent" in name only

[1] https://en.wikipedia.org/wiki/SoundExchange#Lobbying_controv...

comment 11y ago · link · parent

Not really. Spotify is partly owned by the labels[0], so you have to think of it like Hollywood accounting. It makes sense for them never to make a profit, because as long as they let the labels extract money from them in terms of licensing, they fulfill their purpose.

It's like how so many blockbuster movies make a "loss" on paper to avoid paying taxes on their revenues which they end up distributing to all the people who are involved with the movie.

[0] http://www.swedishwire.com/jobs/680-record-labels-part-owner...

comment 11y ago · link · parent

> Those are from 4 years ago. Something more recent would be useful.

The most recent one is from 55 days ago...

comment 11y ago · link · parent

> Apple has a precedent for open source technologies like this.

They also have a precedent for being less than friendly towards FOSS[0][1][2][3], despite the way they try to present themselves otherwise by listing their open source contributions prominently.

Note that the author of these comments, saurik, is Jay Freeman, the creator of Cydia. Key quotes include:

> Apple has simply never been in compliance with the LGPL [for WebCore].

> As for Oracle, I think Apple is much more harmful [to open source]

> I have gotten so used to Apple giving open source the finger, and thereby have backup plans involving disassembles for most of the things I care about at this point, I had forgotten to even follow up on them failing to release anything

[0] https://news.ycombinator.com/item?id=2083953

[1] https://news.ycombinator.com/item?id=2523784

[2] https://news.ycombinator.com/item?id=9377345

[3] http://www.saurik.com/id/4

comment 11y ago · link · parent

> It'll be really interesting to see if a video chat format ever becomes a standard, or if we're all forced to keep accounts with multiple vendors for interoperability (skype, hangouts, facetime, etc).

I have a feeling that's what Firefox Hello will eventually become (if it gains traction).

As it stands, I can already post a link in this thread and anyone who visits it from any WebRTC-enabled browser (including mobile devices!) can immediately start a video chat with me[0].

That's not federated (yet), but if it catches on I see no reason why it won't be.

[0] If I weren't in the "quiet room" in my coworking space right now I'd try it as an interesting experiment in the HN community. :)

comment 11y ago · link · parent

> Most contracts aren't meant to be read be you, but by a lawyer.

Then this pulls the rug out from under the oft-made claim, "It's in the ToS, so it's acceptable", doesn't it?[0]

In any case, in the US it's common in the medical field to be required to provide plain-English[1] summaries of any contract that are at a certain maximum reading level (oftentimes 4th grade). These summaries are not legally binding per se, but if they do not accurately reflect the contracts and policies they summarize, there can be serious consequences. The same is also often true for government programs or private contractors which receive local or federal government funds for providing services to the public.

I would love to see this catch on for privacy policies and terms of services, though it may take legal fiat for this to happen (as it did in the medical and public sectors). Hopefully we can address this problem as an industry before it comes to that.

[0] This claim is not valid for a number of reasons, one of which being that ToS may contain clauses that are not even legally enforceable, or which may violate other laws.

[1] And depending on where in the country you live, you may be required to provide these in more than one language.

comment 11y ago · link · parent

> I completely agree that colonialism didn't stop at 1947. I'm just saying that it seems like a cop-out to just use it as an excuse for all our problems.

I hardly, if ever, see people using it as a "cop out for all our problems", or people "shoveling all blame on colonialism". What I do see, though, is that this criticism is almost always made anytime someone makes mention of the actual continued effects of colonialism in the present day. It happens both on this thread and any other HN thread where the topic is brought up (though it's not limited to HN). In the aggregate, it becomes a way to dismiss these very real effects and ignore them altogether.

> Besides, I find it a bit disingenuous to put the full blame of a modern problem like pollution on colonialism, even when you account for continued influence way past 1947.

I don't (and neither would most postcolonial scholars), because the economic impact of 200+ years of outright exploitation takes more than 50 years to recover from. This aftermath of this economic destruction fundamentally changes the sorts of political and legal actions that are actually feasible (in practice). Even the US, the wealthiest country in the world[0], has outright refused to ratify the Kyoto protocol because of its effects on the economy[1]. In India, not only do you have to trade that off against the importance of economic growth in a developing economy, but also against the feasibility of actually implementing and enforcing policy changes[2].

> Do you see any Americans blaming slavery or legal discrimination for the current situation, or are they blaming the modern times?

Slavery and legal discrimination are responsible for the current state of the Black community in the US - that's the whole point. It's been 200 years and we still haven't been able to completely reverse its effects.

Incidentally, I do oftentimes see this same misguided criticism levied at the Black community, which essentially amounts to "you've had equal rights for 50 years now; it's up to you now to achieve success and end racial discrimination and inequality". While the situations are different (slavery vs. colonialism), this criticism is as misguided when applied to Black people in the US as it is when applied

[0] by raw GDP, and the wealthiest "large" country by GDP per capita

[1] ignore the political posturing in the rhetoric; this is very clearly the bottom-line reason

[2] Yes, inequality begets corruption and corruption begets inequality; it's a vicious cycle. This is why exploitative imperialism is so dangerous and exactly why fixing it is such a slow process.

comment 11y ago · link · parent

> Good! Should we just allow it to keep getting exponentially worse? Smaller correction now, or massive correction later?

You're painting my comment as rather black-and-white. All I'm saying is that encouraging mass defaults on private loans is probably the most disastrous way to correct. In fact, encouraging mass defaults is letting things get exponentially worse; it forces the government to pick up the burden of these increasing costs without simultaneously addressing the reason that these costs are rapidly increasing.

A correction will ultimately result in banks having to write off some of their loans, but forcing them to do so in a sudden and unpredictable way without addressing any of the other problems (inflated tuition costs, federal subsidies, etc.) simultaneously is putting the cart before the horse.

comment 11y ago · link · parent

> If you have federal student loans this is shitty advice. The loan payment programs are very generous.

The author appears to have private loans, which are much more burdensome than federal loans for the debtor[0].

This is why federal loans are said to be subsidized and are counted as financial aid, even though people sometimes complain that it's "not really" aid because you have to pay money back. It's aid because the rates are well below market rate, which means the government (acting as a bank) would expect to make a loss on all loans issued, as the number of people who default would outweigh the amount of interest collected on the remaining loans.

[0] Also, only undergraduate loans are subsidized - graduate loans are not usually (never?) subsidized.

comment 11y ago · link · parent

I'm highly critical of the current student loan situation. That said:

> If people groaning under the weight of student loans simply said, “Enough,” then all the pieties about debt that have become absorbed into all the pieties about higher education might be brought into alignment with reality.

This would absolutely happen, but the first step towards that would be a 2008-like situation all over again, because banks would suddenly have to absorb massive unexpected losses (as they did in 2008), and all of these would cascade.

And remember that, unlike mortgages and car loans, student loans aren't backed by any reclaimable asset - you can't repossess someone's degree! While foreclosures in 2008 were undeniably terrible for the people who lost their homes, the situation would have been even worse if the bank had no assets to repossess in any of the defaulted loans.

Since the government bailout money has to come from somewhere, it will simply add to the national debt and (at some point) come out of future taxes. That's not really solving the issue. It's tantamount to replacing all private loans with the existing tax-subsidized federal loans, which doesn't solve the problem; it just kicks the can further down the road.

1
123124125
202