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

I understand - that wasn't meant as a challenge; rather, a request for a recommendation! I was on the verge of placing an order for a Raspberry Pi today.

I took a look at the Arch Linux ARM devices (http://archlinuxarm.org/), but if you (or anybody else) has any experience with a particular one, let me know.

comment 13y ago · link · parent

> Life expectancy for a healthy American man of my age is about 90. (That’s not to be confused with American male life expectancy at birth, only about 78.)

It's interesting that Diamond literally describes the survival function[0], which is usually thought of as E[X|x>=a], but then conflates this with the expected value in the next breath.

I'm confident he understands the difference, but the notion of the survival function is so easy to understand without the underlying statistics (as he explains in two sentences), and provides a much more useful way of conceptualizing statistics. (Expected values of binomial distributions, on the other hand, are highly useful mathematically but difficult to conceptualize without the underlying statistics).

[0]http://en.wikipedia.org/wiki/Survival_function

comment 13y ago · link · parent

Could you point to anything within a comparable price range to the Raspberry Pi? I have some decent use cases for a ~$40 computer, and I'd gladly purchase an open version if one is available, but the Beagleboards seem to be three or four times as expensive.

comment 13y ago · link · parent

> Is the era of graceful Javascript degradation completely over?

Yes. I've noticed more and more websites using Javascript in the same way that Flash would have been used 5-10 years ago.

comment 13y ago · link · parent

I agree with your point, but I should point out that an increasing number of developers (those in their early-mid twenties and younger) literally never experienced the first browser wars.

comment 13y ago · link · parent

I know it was a different vulnerability - I was asking more whether the same developer(s) was/were responsible, since this seems to be a comment pattern that I'm hearing with regards to the initial response to the vulnerabilities.

comment 13y ago · link · parent

> Would that mean I'll not notice cocaine either?

Not necessarily, because the two drugs are metabolized through completely different channels and, other than the fact that both are stimulants, have very different effects (ie, the mechanisms by which they take their effect is very different).

You may just have an abnormally high tolerance to caffeine, but there's no reason to suspect that that would carry over to cocaine, as cocaine targets both the D1 and D2 receptors, and caffeine provides cross-tolerance only to drugs which target one XOR (exclusive or) the other[0].

[0] http://examine.com/supplements/Caffeine/#summary14-3

comment 13y ago · link · parent

> The bug in the YAML parser was reported and the author of the YAML library genuinely couldn't figure out why this mattered or how it could be bad.

Is that seriously what happened? It sounds oddly similar to the Rails issue from about a year ago (the one in which the reporter was able to commit to master on Github), even though I believe that was a separate set of developers altogether.

If so, then that might suggest a larger community/cultural issue, which makes me wonder what other exploits exist but haven't been reported (publicly) yet...

comment 13y ago · link · parent

Not as crazy as the drama currently unfolding in Afghanistan with the opium trade (spoiler: the US has an incentive to condone growth of opiates, since it reduces local economic dependence on terrorist forces like the Taliban).

It's almost fun to watch a government battling two bogeymen against each other, like a child playing with toy action figures.

comment 13y ago · link · parent

Cocaine can indeed be ingested with some notable effects - in parts of South America, they drink coca tea with effects similar to caffeinated tea. In fact, there's evidence to suggest that cocaine is safer as as stimulant than caffeine is - the main difference as we perceive it is the means of ingestion (we're used to thinking of caffeine as something you drink - very few people snort caffeine pills, which is very dangerous).

Also, chewing on cocaine leaves is used as a symptomatic treatment for altitude sickness in South America.

As for the actual bioavailability, take a look at this Bluelight thread: http://www.bluelight.ru/vb/threads/394593-Bioavailability-of...

comment 13y ago · link · parent

Well, yes, though by definition that's what Common Lisp-style macros will lead to.

By 'closest', I simply meant that these deviations are easy to analyze or account for in an informal sense - for example, by forbidding/exempting user-defined macros. (Naturally, they cannot be precisely accounted for without executing the program or solving the halting problem, since the definition of the macro may itself require executing arbitrary code).

The deviations of languages like C++ and Java, for example, are hairier to try and enumerate, even informally (imprecisely) - I remember doing this as an exercise for my compilers class in school.

comment 13y ago · link · parent

I find this to be an incredible annoyance on iOS, particularly iOS 5 and earlier, but I have to say that Android really nails this experience with the 'intent' model - I don't think twice before opening Google Maps directly from a Google Calendar event that was itself created directly from an email that I read in my inbox.

comment 13y ago · link · parent

I don't think any commonly used language has a truly context-free grammar (including Lisp, actually, though Lisp's deviations are both minor and straightforward). That said, Lisp and Go are the two that come the closest, in my recollection.

We actually had this discussion on #go-nuts a few weeks ago - part of the confusion stems from the fact that most language compilers enforce requirements that aren't covered by the parser. In other words, a parser oftentimes accepts (fails to reject) invalid strings.

Easy examples of requirements that violate context-freedom are the requirement that variables be declared before use, or the inability to divide an integer literal by 0. (The latter is a compiler error in Go[0] - I'm not sure about C++, but I know the former is a requirement in both languages).

Finally, we should make a distinction - even if the set of valid programs could be described perfectly by a context-free grammar (and therefore implemented by a pushdown automaton), chances are the actual parser for the language's compiler doesn't implement the full set of rules, which again reinforces the point that most parsers are biased in their outcome (biased in favor of accepting potentially invalid strings).

> If you look up the definition of context-free languages, it will basically tell you that all grammar rules must have left-hand sides that consist of exactly one non-terminal symbol

That's not exactly true - one can rewrite (normalize) a context-free grammar into this form, but CFGs are often written in an "unnormalized" form which has multiple nonterminal symbols, because it tends to be clearer to read in many cases.

[0] As demonstrated here, the compiler will actually reject the division-by-zero at compile-time: http://play.golang.org/p/3gwDeaoiM2

comment 13y ago · link · parent

> It might become more difficult, but mostly because most of us don't care enough about being hard to track down

I would argue that's already not possible anymore, with today's Internet.

Being completely anonymous, including to Google/Facebook/your ISP is much more difficult than you think. You essentially have to write off large parts of the web as unviewable, which to me only confirms that anonymity on the Internet is all but a thing of the past.

comment 13y ago · link · parent

> Now people can use this "open source software" and can modify the where the endpoints are.

I'm a bit confused by what you see as the point of concern here. Are you concerned that the actual deployed application doesn't reflect the source code provided? That's a concern regardless of the license used; it's an example of where security is based largely on trust.

comment 13y ago · link · parent

> While the Internet is no longer as anonymous

> You don't know who I am from this comment (unless you stalk my bio and find me on Twitter). If you like it you'll upvote it. That's exactly (one of the many reasons) why I love the Internet.

That's the one sad thing, though: as you yourself point out, the Internet is moving in a direction where this concept of an anonymous meritocracy is already becoming more and more difficult - and, eventually, likely impossible.

comment 13y ago · link · parent

>

Where are you getting that from? To my ear, I find it to be excessively 'flat' (e.g: http://www.youtube.com/watch?v=FxtBqN48TMc).

I don't think any geographic area can authentically boast an 'accentless' accent to a plurality of the country[0].

[0] Well, except for the most populous region, of course - but that would be a bit tautological.

comment 13y ago · link · parent

How long ago did this start? I wonder if it has anything to do with some of the issues with Github I (and others) were noticing on Friday[0]

[0] https://twitter.com/davidbalbert/status/294941563673522176

comment 13y ago · link · parent

Who wouldn't think it's a waste of time to sign a "normal" petition, given the previous response[0]?

[0]https://petitions.whitehouse.gov/response/what-we-have-say-a...

comment 13y ago · link · parent

It's fine to say that Javascript is functional, but:

>I've heard it described as "lisp in C's clothing"

I hear this line all the time, and it always irritates me. Saying that Javascript is Lisp-like just because it's somewhat functional is like saying that it's like Java because it's "object-oriented", even though there are a number of key differences (the use of "this", the prototypical inheritance model, runtime checks vs. static checks with late binding, etc.) It's worse, because it's rather trivial to force Javascript to behave somewhat like Java, but there's no way to force Javascript to exemplify the defining characteristics of a Lisp[0].

The nature of Lisp has nothing to do with lambdas and closures, mapcars and reduces - the phrase 'Lisp in C's clothing' doesn't even make sense, because the nature of Lisp cannot exist without an s-expression-based grammar[1]. Even though Lisp is known as a functional language, the defining characteristics of Lisp have nothing to do with it being functional.

[0] Perhaps a better analogy would be comparing it to JVM languages on the basis of the grammar, even though the two are completely orthogonal - Javascript isn't intended to run on the JVM, and while you can cross-translate code between Javascript and JVM languages and fake compatibility this way, that ability has very little do do with the defining characteristics of Javascript as a language.

[1] That doesn't mean you need to have parentheses; the grammar simply needs to be homomorphic with s-expressions, which leaves a great deal of flexibility. Javascript, however, does not make the cut.

comment 13y ago · link · parent

Yes, but we can also say that functional language != Lisp-like language, and Javascript may be functional, but it is not Lisp-like.

comment 13y ago · link · parent

> But it can do things the other maps can't easily, like create an array of differences between elements, or a running total, and so on. Other languages have other solutions to those problems.

Lisp has some rather elegant solutions to both of those use cases. It's misleading to say that Javascript's 'map' is more powerful just because it tries to cram two or three distinct use cases into one.

It's not like Javascript even uses the Lisp definition of 'map' (which is not what most languages use for map - they use Lisp's 'mapcar').

comment 13y ago · link · parent

Well, it's not Facebook who's doing the asking, but Facebook's closer than you might think to having genetic information: https://www.facebook.com/23andMe

comment 13y ago · link · parent

I don't think that gets photos of you that other people have taken, though.

If anybody knows a way to get that, let me know.

comment 13y ago · link · parent

That's actually quite a nice harmony.

Of course, the reason for the harmony is because the vocals align so (almost) perfectly, creating an effect familiar to most musicians, who rely on it for ensuring that their instruments are in tune.

That's how perfectly the two align. Damn.

comment 13y ago · link · parent

Seconding git-annex.

I haven't used git-annex assistant, but git-annex alone has revolutionized the way that I think about and interact with my filesystem(s).

comment 13y ago · link · parent

I agree with your entire post except for this one clause

> cruelty and anonymity go hand in hand

Anonymity and cruelty are orthogonal concepts - there is nothing about anonymity that implies or requires cruelty, and the connection runs the other way just as often, but as human beings, we find it easier to focus on and remember the negative more so than the positive.

comment 13y ago · link · parent

It's not gratuitous. One jug + one dozen = 13 jugs.
1
169170171
202