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

Anecdotally, I feel like it isn't, though I don't live in the Bay Area. San Francisco has the highest GLBT population (by percentage) in the nation. Even if we even it out and use 10%, a number that GLBT organizations sometimes use when referring to the general population, that would imply that most startups with a 10-person engineering team would have a gay engineer.

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'm always surprised that the LGBT community doesn't intersect more with the engineering community, given that both San Francisco and New York are major hubs for both.

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

I wish that they'd do this for books. The biggest thing keeping me from buying more ebooks is that they're usually the same price as the physical book - and, in some cases, more expensive than the physical book.

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

> In Lisp, you don't just write your program down toward the language, you also build the language up toward your program. As you're writing a program you may think "I wish Lisp had such-and-such an operator." So you go and write it. Afterward you realize that using the new operator would simplify the design of another part of the program, and so on.

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

I love Bitbucket - it's a great no-frills, straight-to-the-point Git hosting solution.

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

While I'd agree, I think the very fact that he's asking this question is proof enough that at least one of the three parties is not fine with the relationship.

comment 13y ago · link · parent

> Could you show me how I could possibly create such a hole in a language like ocaml or haskell?

First you'd have to write the equivalent of Rails in Haskell (I'm not talking about an MVC framework, but something as large, complex, and featureful.)

comment 13y ago · link · parent

I've had frustrations with certain "ruby" libraries requiring methods like "blank?" (IIRC) that are provided only via Rails, not Ruby. It made developing on a machine that Ruby but not rails rather annoying.

comment 13y ago · link · parent

It's not quite the same, but I've grown very fond of git-annex[1], which is also free software under the same license (GPL 3).

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.

[1] http://git-annex.branchable.com/

comment 13y ago · link · parent

You can have metaprogramming, but it's not the same level by any means.

Take Perl, for example. You can't have robust metaprogramming on a language with an undecidable grammar. Read through the above link and you'll see the difference.

comment 13y ago · link · parent

> The two are linked by decrepit transport systems

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

Symmetry may not have been the correct word, since it does provide referential transparency but it certainly does add an extra layer of complexity to the parsing, even if it's only one extra step. Furthermore, I would argue that the additional syntax isn't necessary, which is my biggest beef with it - since you can convey the semantics of a vector or a map without altering the syntax at all, there's no reason to complicate the syntax any more than needed.

> 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

> support for tail recursion

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

I disagree. Homoiconicity and the metaprogramming it allows you[0] can never be present in a non-Lisp.

[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

> faster compiled languages

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

> Non-functional programs read like plain English.

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

Land of Lisp was how I first got into Lisp - I was hooked already before finishing even a third of it.

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

> I found the syntax very obtuse and it was not obvious why Lisp would be more powerful than Haskell.

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 adds syntax, which breaks some of the inherent symmetry of Lisp slightly[0]. This isn't something you're likely to notice unless you do a lot of heavy metaprogramming.

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

Unfortunately I'm in NYC, though I'd love to hear your thoughts on ACH! Let me know if you happen to make your way out here at some point - my email is nqvgln@nqvglnzhxrewrr.arg (ROT13).

comment 13y ago · link · parent

> if I write a check, anyone who sees it can trivially withdraw whatever they want from my account using the above API, no

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

> Sounds dangerous - I don't think my employer would be okay with me exposing how frequently I contribute to our repositories,

Easy fix: the owner of the repository (ie, the organization) can {en,dis}able the feature per-repo.

comment 13y ago · link · parent

> I dread to use this word, but it's gamification.

Which is the problem. I already enjoy writing code, and I don't need it to be gamified in order to give me an incentive to do so.

Worse, gamifying it skews the incentives, reducing overall code quality in the process.

comment 13y ago · link · parent

> Indeed, some implementations have already forked with an explicit intention of going on their own paths (Racket).

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

> See, for example, the British aristocrat who was truthfully outed as a Nazi sex fetishist...but won a judgement against the tabloid that published the pictures.

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!

comment 13y ago · link · parent

> Do 'conscious' cognitive biases exist?

Yes, and apparently studies have shown that, counterintuitively, being aware of a cognitive bias only strengthens it.

comment 13y ago · link · parent

I wonder what tokenadult would have to say about this, but I don't think that that's a good environment for homeschooling.

comment 13y ago · link · parent

> You would say that someone that does that is 'acting like Steve Jobs' though, no?

Right, metonymy is a rhetorical device that can be used for figures such as _why, but that doesn't mean that the figure is [just] a metonymic structure and not a person.

comment 13y ago · link · parent

I read the article and then came to the comments looking to make this exact point.

Gofmt is my favorite example of why coding conventions can, and should be part of the language.

1
171172173
202