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 13y ago · link · parent
In my experience, that's certainly not been the case, at least in NYC (though it seems to be true about SF as well). It's even more bizarre because Silicon Alley overlaps with most of the gayborhoods in NYC. At a startup I used to work at, our local dive bar happened to be a gay bar, even though only one member of the team was openly gay[0]!
[0] Backstory: the old dive bar got bought and turned into a gay bar, so people just kept going to the same place anyway.
comment 13y ago · link · parent
I know several gay men (and a few lesbian women or transgendered people) who work in the startup world, but even then they tend to be non-engineering positions. A former co-worker of mine and I started an NYC meetup for this exact purpose - we're actually having a game night tonight if any engineers are interested: http://www.meetup.com/Identity-Hackers/ [0]
Speaking only for myself, I've never felt any kind of discrimination, though I imagine if I were female or transgender, that experience may be different. I was also pretty lucky, though - my first experience working as a startup was at an incredibly gay-friendly dating website, so when your job is to work on posts like these[1], it's pretty easy to feel comfortable.
That doesn't really solve the problem of getting people in the door, though, and I've often wondered why more LGBT people go into engineering in the first place. I went to a very gay-friendly school, and even there the LGBT crowd seemed underrepresented in the engineering classes. I imagine this is related to the question of why we don't have more female engineers (whether straight/cis or not), but that's a much larger discussion.
[0] I hope the timeliness and relevance is enough to forgive this shameless plug! [1] http://blog.okcupid.com/index.php/gay-sex-vs-straight-sex/
comment 13y ago · link · parent
At that price, I'd just as soon buy the physical copy.
On the other hand, it would be nice to know that, when I buy a physical copy, I also have access to a digital version if needed. In the case of technical books, which I reference only occasionally (but need very immediately when I do reference them), it would be perfect.
comment 13y ago · link · parent
That's close, but not quite the wording I remember, so I must have seen it somewhere else as well. That's a pretty good description of what I was referring to, though.
comment 13y ago · link · parent
My only problem with them is that they still don't support elliptic curve encryption for ssh keys, despite the fact that this has been the OpenSSH default for quite some time now. Worse, they seem not to be interested in supporting them: https://bitbucket.org/site/master/issue/4222/no-support-for-...
comment 13y ago · link · parent
With git-annex, it's very simple to create your own self-hosted Dropbox. Unlike Dropbox, though, git-annex allows you to make your filesystem completely decentralized.
A rather rudimentary analogy: Dropbox:gitannex :: SVN:git.
comment 13y ago · link · parent
As a New Yorker, the one thing that kills me every time is the fact that the CalTrain shuts down so early. I was staying in Palo Alto some months back, and I needed to get to the station by 11:59 on a Friday night, because the alternative was an incredibly expensive cab ride back. It really cut into my Friday night plans.
comment 13y ago · link · parent
> In Common Lisp and Scheme, that structure is either an atom (an integer, a string, a symbol, etc.), or a list consisting of cons cells.
Let me fix that for you: in other Lisps, an item is either an atom or a cons cell. There's "no such thing" as a list in Lisp.
There's a huge difference between having an option with two outcomes (S -> atom | cons) and an option with three outcomes. In computer science, we count "zero, one, many" - booleans are an example of this. By adding a third option, we've stepped out of the realm of the binary into the "many", and that's a much messier world to deal with.
comment 13y ago · link · parent
Let's be clear - it "supports" tail recursion; it just uses more than a constant amount of space on the stack to handle the calls - in other words, it doesn't transform the recursive call to a loop.
Eliminating tail calls is by no means a hard problem in the general case - it's on the order of something you might be expected to do in an introductory compilers class.
The problem is particular to the JVM. As I understand it, is due to the fact that the JVM was architected in a way that doesn't allow it to guarantee that a tail call can be transformed into a loop. These techniques certainly existed in the early 90s (they've existed since, what, the 60s?), but at the time, I guess people didn't think it was a priority.
I have no further knowledge of the JVM, so I can't really comment on whether or not they'll be able (or willing) to add the support, but the problem is dealing with legacy designs/systems, not a difficult problem of CS theory.
comment 13y ago · link · parent
[0] Deterministically, I mean - heteroiconic languages do provide for metaprogramming, but it is inherently less robust than metaprogramming in a homoiconic language: http://lists.warhead.org.uk/pipermail/iwe/2005-July/000130.h...
comment 13y ago · link · parent
Lisp is a compiled language.
For that matter, it's a damn fast one, too. The Lisp implementation of PCREs are actually faster than Perl's, by some benchmarks.
I don't want to start a tangent about benchmarks and their relevance, but it's clear that Lisp performance isn't a limiting factor.
comment 13y ago · link · parent
It depends partly on what you're used to. You're used to programs specifying instructions (since that's what we think of as an algorithm), so yes, Lisp won't look like "plain English" instructions.
However, functional programs don't define instructions - just relationships. For the most part, they wash their hands off of specifying the details of the execution, in favor of looking only at the high-level, mathematical relationships.
In that sense, Lisp programs like
(define x (map (lambda (x) (* 2 x)) (sort '(2 3 2 1 4))))
is defining a relationship between x and the list '(2 3 2 1 4), the same way that
x = 2y + 3
is defining a relationship between x and y. The latter doesn't tell you how to get the value of x (for a given y value), but defining that relationship is sufficient to understand the concepts.
So, you could say that non-functional programs read like plain English instructions of actions, whereas functional programs read like plain English mathematical relationships.
comment 13y ago · link · parent
For production code, I ended up abandoning Common Lisp for the most part in favor of Racket, simply because of its library support and compatible, scoped dialects, but the principles are the same in either case. I'd actually recommend starting with something less 'batteries included' if you have the patience, because it makes it easier to see the fundamental beauty of the language, without getting distracted by something as "irrelevant" as library support.
Some people say that Land of Lisp makes it hard to develop 'useful' applications afterwards, but for that, I think Practical Common Lisp is a good secondary resource, and it's easy to skim once you've completed Land of Lisp. Land of Lisp is much better as "Lisp Propaganda" - ie, for someone who's interested in giving it a shot, it does a good job of selling the Lisp paradigm as a whole philosophy, even if it doesn't have space to cover all of its practical uses[0].
[0] I won't sell it short, though - it does a good job for that too... several of the games it implements are non-trivial.
comment 13y ago · link · parent
The easiest answer to that is, there's no syntax, which makes reimplementing your own Lisp parser trivial (one single function call, in fact). This in turn makes reimplementing your own Lisp, inline in Lisp, similarly trivial.
That sounds like something out of an SICP exercise - and it is - but the same properties make it easier to reason about your code in a way that's far more abstract than other languages let you. Once you start treating your code as data that other parts of your code can manipulate, you can start refactoring in ways that simply aren't possible in other languages. This explanation by a well-known Perl programmer explains it very well: http://lists.warhead.org.uk/pipermail/iwe/2005-July/000130.h...
Another way I've heard it (this may have been pg, but I can't remember), is that, when writing idiomatic Lisp, you first think, "What language would make solving this problem really easy?" and then proceed to implement that language.
comment 13y ago · link · parent
Clojure cannot guarantee elimination of tail calls, because of the limitations of the underlying JVM. This also means that it can't properly handle corecursion in the same way that pretty much every single other Lisp can.
(Both of these have been discussed before many times before on HN, so I can pre-empt the next comment in this thread, which will be someone pointing out that Clojure provides "loop" and the "recur" macro - to which I'd respond, yes, they're logically equivalent in the end, but having to force the transformation to a loop explicitly breaks the paradigm, which for me is the whole point of using a Lisp. This is one of those topics that can be discussed ad nauseum with no "conclusion", so it's not worth spending too much time on it.)
Lastly, anytime you're dealing with binary compatibility between various JVM languages, the abstraction is inherently a bit leaky. I haven't used Clojure myself, so I can't comment specifically there, but from my experience with using Java libraries in Scala, I can testify that some of the warts of Java end up leaking into Scala code. Nothing debilitating, just a bit frustrating[1].
[0] Racket does too, but the "syntax" added (square brackets) has the same semantics, so it's really just an equivalent token - an alias, if you will.
[1] One particular example I remember has to do with how Foo.class in Java works, and how a library dependent on this particular pattern has to be used in Scala - it just gets a bit messy.
comment 13y ago · link · parent
You always were able to do that - even before this post - using traditional online banking. I won't go into the details here, but trust me, it's frighteningly easy[1].
> What sort of fraud protection is there?
This isn't up to Balanced to solve. It's a banking system problem at its core.
[1] The problem is actually much worse, because it allows anyone to compromise your entire banking account (not just your checking account) trivially, but I'll leave that as an exercise to the reader!
comment 13y ago · link · parent
Racket takes an interesting approach with its scoped dialects. This allows the semblance (and some of the semantics) of separate implementations, while still preserving the interoperability[1].
[1] I have one project which uses libraries written in the base, typed, and lazy dialects all together, without any issue.
comment 13y ago · link · parent
I know of a similar, somewhat high-profile case in the US[0]. The point is not even whether or not the plaintiff can win; the issue is whether they have enough of a case to make your legal fees + opportunity cost of time wasted in court sufficiently high.
[0] I'd try and find it, but I'm hesitant to Google the keywords at work!