21,186 karma · joined Oct 12, 2010 (16y ago) · 6,050 submissions
Personal site: http://www.adityamukerjee.net/
My email is pretty easy to guess from my username.
comment 14y ago · link · parent
Here's one, though I'm not sure if it's the correct version: http://www.lemote.com/en/products/Notebook/2010/0310/112.htm...
comment 14y ago · link · parent
comment 14y ago · link · parent
[1] AT&T was legally required to provide the source code of its OS 'for free', I'm not sure if the terms actually qualify as 'free-as-in-freedom', hence the impetus to create an alternative implementation.
comment 14y ago · link · parent
(Actually, the way usually explain it to non-techies: duct tape. Everyone understands what duct tape is meant for: it won't necessarily win any awards for style[1], but it's powerful, and it sure as heck gets the job done in a pinch, and quickly too! I find that analogy generally holds well enough, whether we're talking about black-hat hacking or 'real' hacking.)
[1] Most of the time, that is: http://www.google.com/search?hl=en&q=duct%20tape%20cloth...
comment 14y ago · link · parent
Prosecution can't appeal a jury's acquittal; in this case, Alsup's ruling is separated from the jury's decision (remember when he told them to 'assume APIs are copyrightable'), so I'm not sure what the possible courses of legal action are here. This is a subtle point, so I imagine one would have to be a lawyer to answer this one, though I have a suspicion that there may not be a precedent here (or, if there is, it's a weak enough precedent that it could still reasonably go either way).
comment 14y ago · link · parent
Return does influence the control flow in the sense that it signals the end of the monad - it's just that Haskell allows you to define and call a monad ('function') inline, which is not idiomatic in most procedural languages.
It's not too far removed from the following Python code:
> (lambda x: 5)(5)
Which, naturally, returns '5'. Lisp, of course, treats lambdas similarly; however, writing a series of statements in Lisp (like progn) is not considered idiomatic/'good' Lisp, whereas writing monads in Haskell is absolutely necessary.
comment 14y ago · link · parent
Yes it is - that's always a method call: http://docs.python.org/reference/datamodel.html#invoking-des...
The problem is that you're unclear whether it's a mutating method or not, as well as whether it's an expensive operation. But that can be solved a number of ways - immutability and lazy evaluation would be one approach, though unfortunately neither Python nor Ruby enforces immutability, and both use absurdly eager evaluation.
(Regarding that last point, try doing [x.y() for x in foo][0] and you'll see that y is called for every x!)
comment 14y ago · link · parent
Agreed - I was being mostly tongue-in-cheek, and playing on the fact that anything that is expressed as a 'right' implies some sense of entitlement... of course we're 'entitled to our rights'!
Though you're correct that the 'right' to freedom is also justified by the principles of trade as well.
comment 14y ago · link · parent
What organization are you talking about? The Electronic Frontier Foundation wrote this article.
On the off chance you're referring to the FSF, the Free Software Foundation wasn't even mentioned in the original article, only in an update about a tangential issue.
comment 14y ago · link · parent
And the trading volumes are so high that I imagine we should expect convergence by now either way.
comment 14y ago · link · parent
This sentiment both frustrates and amuses me.
On the one hand, complaining that a GPL-licensed project isn't BSD/MIT-licensed smacks of entitlement - nobody forced the original developer to use a free license, after all, so don't complain.
On the other hand, this sense of entitlement is exactly what the free software movement is all about - according to the FSF, users deserve freedom and nothing less[1].
(The important difference is that users should be entitled to free software as opposed to proprietary software, not one free license over another free license).
Still, anytime I hear people complaining that a project uses one of the GPL licenses instead of a BSD/MIT license, I'm always tempted to remind them that the real alternative was for the original developer to keep the code proprietary... and everyone loses in that situation.
http://www.gnu.org/philosophy/free-software-for-freedom.html
comment 14y ago · link · parent
If not, that's a problem, because the AGPL and GPL are incompatible, so that means that nobody can use the AGPL for new forks/patches on the product anymore.
(That's not quite true in that they can receive a copy of the product from someone who received it under the original AGPL license and therefore can and must redistribute it under the AGPL, but the point is that, when making licensing changes, you should always add a licensing option instead of changing it, because the latter isn't really possible, and the former is more explicit as to the outcome).
comment 14y ago · link · parent
The reason that a 'bump' occurs is that money is being left at the table - ideally, stocks should exhibit no bump, because that means that the company has priced their stock correctly. Any bump means that traders are reaping the profit of the increase in the stock's value, and that profit is what the company was seeking to gain by going public.
comment 14y ago · link · parent
The only way that a glitch on opening day would have a permanent affect on the stock price is if the stock price on Day n (for all n > 1) is conditionally independent of the price on Day -1 given the price on Day 0. In other words, the best predictor of tomorrow's price is today's price, and yesterday's price adds no new information.
This is a reasonable assumption, but if you believe that, it means you also believe that stock prices are essentially a random walk, in which case there is never any convergence to the true underlying value, even if the price starts at that true value (which it may not!)
Let's assume that stocks are not a random walk and are some reflection of the underlying value of the company (however you define that).
Even if there had been a glitch, on the first day, as soon as the real quotes start getting published and the information is symmetric all around, then the prices should start to approach the fundamental value, even if they don't converge.
If a week later, Facebook is still trading below the IPO price, we can assume either that the convergence process takes time (unlikely, given the volume of stock being traded) or that the underlying value of Facebook as a company has changed in the last week (unlikely, since there has been relatively little news about Facebook-the-company, as opposed to Facebook-the-stock).
comment 14y ago · link · parent
It all depends on what you value. I could live frugally in Wichita, KS, but I'd probably prefer living frugally in NYC instead.
Manhattan is weird in that even a six-figure income doesn't guarantee you a moderately nice apartment in the trendy neighborhoods, but when incomes are adjusted for cost-of-living, New York is actually relatively cheap compared to many US cities. Part of it is that New Yorkers are incredibly idiosyncratic in terms of what purchases we prioritize.
For example, New Yorkers value location and environment/surroundings over material possessions, like cars (which we rarely own) and even the size/quality of our living space. We spend far less time at home than our suburban counterparts, so we're willing to settle for spaces that might seem less desirable to non-New Yorkers. So if you try to buy the same basket of goods that you'd buy in Wichita, yes, you'll find it very expensive - but most New Yorkers allocate their disposable income very differently.
(Also remember that uptown and/or the outer boroughs are always an option - Harlem is cheap and surprisingly accessible, especially if you live near an express stop.)
> Living in Manhattan turned me into a horrible person.
Living anywhere that doesn't suit your lifestyle will make you miserable. I'm sorry that Manhattan wasn't for you, but I hope you don't hold it against my city, just the same way I wouldn't hold it against wherever you're currently living that I'd likely be unhappy there as well.
comment 14y ago · link · parent
Not sure what that translated to in the context of this project, but presumably they believe people want to be able to extend the library itself while keeping their modifications proprietary.
comment 14y ago · link · parent
However, I also have always disliked the phone contracting system in general, because it serves only to make it harder to switch networks, thus reducing competition in the market.
Given that the only reason I stay on Verizon is that I have an unlimited data plan with a 4G phone, if that goes away, I'll just switch to a GSM network off-contract, and get all the benefits of using a GSM phone, plus the flexibility of having no contract.
I'd prefer to hold on to the unlimited data, but I bet I'm not alone in saying that unlimited data is the very last thing keeping me tied to Verizon - I wonder if there are enough of us that this may actually hurt them.
5720.
Verizon to kill grandfathered unlimited data plans for 4G/LTE upgrades(theverge.com ↗)
2 points · by chimeracoder · 14y ago · 1 comment
comment 14y ago · link · parent
First, Columbia's School of General Studies has an unusual (and oft-misunderstood) history.
Contrary to popular belief, it did not originate with the GI bill, though that is when the school took its most recent name. It was once (partly) an extension school; the continuing education program has since been separated, so GS students are attending a undergraduate college working towards a bachelor's degree. GS is the only undergraduate college at Columbia that allows students to study part-time, because GS students are considered to be those with 'nontraditional' backgrounds. Officially, this means anybody who's taken more than a year off since completing high school (or who received a GED), so eligibility for GS and Columbia College (the largest undergraduate college) are mutually exclusive. Other than that, though, the requirements are nearly identical - GS students have a slightly more flexible version of the Core, though even that is being brought more in line with the Columbia College requirements[1]. They take the same classes and choose majors in the same departments, so the only difference between the degrees is that the GS degrees are not printed in Latin (which was actually a debate a few years back!)[2]
In theory, GS students are students who would be merged into the regular arts & science colleges at any other university, but the fact that we have a college dedicated to reaching out to these students and providing them with administrative support means that we end up with students from a very wide range of backgrounds. In GS, the typical icebreaker is 'What's your story?', because almost everyone has a story of how they ended up at GS. If you've taken two (and often more) years off between high school and college, you didn't end up going back for your degree by accident.
This story may be good news material, but it's not even the most touching GS story I've heard. We have veterans who were discharged under DADT, we have current and former performers and Olympic-level athletes - one of my classmates represented her country in Miss Universe 2008 and has been running her own business since then (she also graduated this afternoon). Another spent her teenage years in the foster care system and took classes at a community college to bring herself up to speed. I was the president of a student group that dealt with criminal justice reform and drug policy, and I can't count the number of students who've told me truly horrific stories of the criminal justice system and the war on drugs. Oftentimes these are stories of their family members, but a few have experienced it firsthand.
I wasn't even a GS student, but the single best part of my Columbia education was probably having the opportunity to meet people who come from such varied backgrounds and bring such a wide range of experiences to the table.
Second, some people seem to be curious about the free tuition: tuition benefits at Columbia are extensive, though controversial. Every employee, including the food servers and janitors, receive a living wage (not a market wage) and full health benefits. There's been talk of scaling the benefits back, though; this is not a matter of tuition specifically, but benefit cuts across the board.[3]. As it stands, I believe most employees are eligible for one free class per semester (three per year, including the summer). This is most commonly applied towards MA programs, as they're 1 or 2 years - doing the 124 credits required for a BA would take quite a while at this rate!
And unrelated, but possibly of interest: John Backus and Isaac Asimov were both GS alumni.
[1] http://www.columbiaspectator.com/2012/05/02/general-studies-...
[2] http://www.columbiaspectator.com/2010/03/09/gs-diplomas-rema...
[3] http://www.columbiaspectator.com/2011/04/19/report-recommend...
comment 14y ago · link · parent
Writing down goals is important, but they should be kept separately. The problem with writing down your goals in your to-do list is that you then see items like this:
* Plan fundraiser
and
* Fix bug that occasionally crashes server randomly
instead of
* Call restaurant to confirm date and rates * Select menu items for caterer * Write donation tax receipt for Mr. Smith's donation
and
* Find the bug (probably some problem with the new database sharding) * Write unit test for the fix * Fix bug * Write description of patch and submit to code review
The second one may be a bit overkill, but you get the idea. In my experience, 90% of to-do list problems can be solved by making the items actionable as opposed to simply reminders of one's goals.
comment 14y ago · link · parent
Python is an object-oriented language, and the fact that it is a more purely object oriented language than (for example) Java allows one to use functions as first-class objects in ways that appear to be consistent with a functional paradigm, but that doesn't mean that the language supports a functional approach. That would require support by the interpreter for some key
Put another way, what's the difference between the following?
> [f(x) for x in xrange(10)]
> map(f, range(10))
Without knowing the difference in the underlying implementation, you can't really be sure - it's possible that map() is just a syntactic alternative to a list comprehension, and you could write an implementation of Python that did just that. If we're talking about CPython, though (which we are), then we have to know that the latter is using a function object that is retrieved once and called multiple times, and the former is using a function object that is retrieved ten times. In the latter case, we have a function object that contains a bound method which receives the implicit parameter 'self' and an integer within the range specified, and this method call is what is, in idiomatic Python, producing the values that are then used to create the list. Also, xrange is using a generator, which requires several function calls in itself, whereas range creates a list (which is handled differently).
That isn't necessarily so inconsistent with a functional paradigm, but my point is that the implementation is more important than the function names - simply saying that map() and reduce() exist doesn't mean that Python is a multiparadigm language. Python is incredibly eager-evaluating and it does not optimize tail recursion, two things which make it hard to argue that Python supports a truly functional style.
As noted by another commenter, this is not an accident; while you can fake functional paradigms syntactically with Python's extensive implementation of first-class objects (including functions), the explicit goal is to discourage use of recursion, as well as other functional ways of thinking, in favor of iteration, and other imperative/OO ways of thinking.
comment 14y ago · link · parent
Anyone can write whatever Python libraries they want, but I doubt anything of the sort would be added to the standard library, and certainly nothing that would require an FP-aware interpreter to optimize in a useful way.
comment 14y ago · link · parent
It's not a matter of in-place mapping, but if I remember correctly, map() returns a generator in Python3, which has the effect of simulating single-traversal and lazy evaluation like Haskell does.
> mutability is a property of data-structures, not of functions
True, but in a (purely) functional language, if all data structures are immutable and functions are simply mappings of input values to output values with no side-effects, that's inconsequential. We're talking about simulating a functional paradigm within a non-functional language with mutable data structures, so writing functions without side-effects would be more idiomatic - hence the problems with trying to write Python in a functional style.
comment 14y ago · link · parent
In all seriousness, though, if I really wanted a functional implementation, I wouldn't be using Python. It's more just nice to know that I can create an object that's immutable and which functions more or less like a CLOS object, so that I can think in that mindset instead. Also, I believe it doesn't come with all of the hidden functions that it would otherwise.
In the end, if I really cared, I'd actually write a wrapper around the type() function.
comment 14y ago · link · parent
The rest still holds, though - not all functions have a mutable and immutable counterpart (like sort) and map() returning lists makes them rather unwieldy. I think they fixed this in Python 3, though I'm not sure if it was backported to 2.7.