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 11y ago · link · parent
There are so many new TLDs out there that I couldn't even pick out the real ones from fake ones if you gave me a list. And most of them require no verification whatsoever, so They're completely open to legitimate users and spammers alike.
comment 11y ago · link · parent
> Patents are essential to the current business model of pharmaceutical companies -- they are necessary to guarantee a return on investment, but the portion of the investment devoted to R&D and clinical trials is dwarfed by the marketing.
Your comment contradicts itself.
If, as you say, patents are "necessary to guarantee a return on investment", then it doesn't matter if the R&D is the largest cost or not, because the company won't produce a profit (and therefore won't produce new drugs) without the patent.
In fact, it's quite reasonable to think that both massive marketing and time-limited protection from competition are necessary to ensure enough of a return to guarantee continued investment into the industry. It doesn't have to be one or the other.
comment 11y ago · link · parent
> Same in Rust. Thanks to the module system, the Rust compiler never rereads a file more than once.
As I said right at the beginning of my post, I'm not trying to compare Rust and Go directly, because I don't think that's meaningful. I'm explaining why these particular features would be difficult to incorporate into Go. Note that I never said that Rust reads a file more than once, or that Rust's grammar is not context-free. In fact, the word "Rust" doesn't appear anywhere in my comment at all except in that very first paragraph.
I love talking about PLT and would otherwise be interested in having a discussion about static analysis and hearing why you think it would not solve the problem, but I have to say, it's both frustrating and discouraging to post an in-depth response and then get downvoted twice, with the only reply being one which very clearly ignores the very first line of my entire response.
comment 11y ago · link · parent
> Go code often passes references over channels, which results in shared memory between two threads with no locking
Having a complex type system would cut into compile times (an explicit primary design goal, to the point where the Go compiler must be written to read each file exactly once[0], no more).
As for the code you're referring to, Go is not designed to be a language which prevents you from shooting yourself in the foot with provable code. It's designed to be a language which makes it reasonably easy to be sure you haven't, as long as you follow the general idioms and best practices. What you're describing here is definitely not one - I can think of a few instances in which pointers might be reasonably passed over a channel, but they're few and far between.
Also, I would think it's pretty obvious that once you've sent something over a channel you shouldn't try and write to it anymore[1]. Do you have an example of the code you're referring to?
[0] well, technically "at most once", since some files can be skipped entirely.
[1] I'd need to think about this, but I don't think it'd be difficult to detect this statically[2] at compile-time and enforce that stack-allocated rvalues into channels are never used again in the same scope. It's definitely possible to extend `go vet` to handle this, and it may even be possible to write this in as a compiler error in a future version of Go.
[2] Incidentally, one of the reasons that it's so easy to do reliable static analysis on Go code (compared to other languages) is that the grammar is incredibly simple - it's almost entirely context-free, which is very rare among non-Lisps. Having a more complex type system usually requires at least some additional syntax to along with this, which means you'd have to start sacrificing this design goal as well in order to create a more elaborate type system.
comment 11y ago · link · parent
This isn't about this particular instance (Github's LFS), but in general, a "reference implementation" isn't the same thing as having an open protocol.
Having a reference implementation without a proper specification means that any other implementations have to re-implement the existing reference implementation, including any bugs. The purpose of a specification is to outline undefined behavior as much as it is to outline defined behavior. That is, the specification says, "these are the portions of the program which you may not rely on".
We've seen this happen in some languages in which a particular implementation is either the de facto or de jure standard. Other compilers or interpreters end up having to mimic their bugs when it comes to things like arithmetic overflow/precision errors, because developers have come to rely on the language behaving one way, in the absence of any clear rules telling them otherwise[0].
[0] Not that developers may not rely on things that a specification explicitly tells them not to - there are plenty of examples of this too - but at least then it's possible to say determine either that a particular program will run on any standards-compliant implementation, or that it is implementation-specific.
comment 11y ago · link · parent
Having used Chef, Puppet, and Ansible, this is exactly why I prefer Ansible for all my projects now.
If you can write a shell script, you can write an Ansible playbook. It won't be a great playbook, and you get benefits from using their modules instead of shell commands (like idempotency). But you don't have to worry about learning a new DSL just to do write a basic playbook or tweak an existing one.
As a functional programmer, I understand the benefits and appeal of declarative syntax. Unfortunately, systems programming is the one place where it's really hard to be 100% declarative, because systems are inherently all about state[0].
[0] At least in 2015 - perhaps things will change as we move toward better containerization models
comment 11y ago · link · parent
It's not about not wanting to support independent bloggers. It's about making sure that unsuspecting users don't accidentally download malware when they're doing something mundane like downloading their web browser.
In the age of the web, Adblock is the new anti-virus.
comment 11y ago · link · parent
GopherJS works surprisingly well; the biggest issue for most people will be the unminified file size. But based on my initial profiling, between minifiers, caching, and the fact that many websites are serving large assets (images) already, it's less of an issue than I had anticipated it would be.
The second biggest issue is the fact that almost nobody writes raw Javascript anymore these days in the browser. Most people use not only JQuery (or a similar tool), but something to structure client-side code, like React.js or Angular.js.
GopherJS has an implementation of JQuery[1], which works about as well as JQuery itself does - that is, it does the job, but can get unmaintainable when there is a lot of client-side code. There is a GopherJS implementation of Angular.js, though I haven't used it.
Until a month ago, there was a lingering quirk with the way GopherJS handled asynchronous code (calls to blocking functions had to be specially marked with comments, which meant that parts of the standard library couldn't be used be used without modification). They just fixed this a month ago[2], which is a huge milestone for the project.
React is a bit trickier, given the way that React applications are structured, and the way that React interacts with Javascript-specific features (namely the "this" keyword). It's currently usable, but with insane filesize[3]. I think this could be slimmed down, since almost no work has been done optimizing this so far, but React-on-GopherJS is certainly not production-ready yet.
That said, that's only looking at compiling existing Javascript code to Go. My hope is that the next client-side MVC/MVVC/etc. framework will be written in Go from the start. Go is a great language for structuring client-side code; the only bottleneck (until now) was that there was no way of actually running the code! But now that GopherJS is in a working state, it's a completely green field - very exciting time.
[0] https://chimeracoder.github.io/full-stack-go-client-slides/#...
[1] https://github.com/gopherjs/jquery
comment 11y ago · link · parent
I really dislike that browsers seem to treat self-signed certificates as worse than plain HTTP (in that self-signed certificates cause a big scary yellow warning that looks similar to the big scary red warning for invalid certs).
Self-signed certs are bad insofar as you can't prove that someone else isn't MITMing the connection and serving you an encrypted, but untrustworthy, proxy page. But with plain HTTP, you already have no guarantees that that isn't happening![0]
If I understand it correctly, this seems to combine the best of both: encouraging the use of self-signed certificates over plain HTTP, while still rewarding verified certs (ie, signed by a trusted third party) over self-signed.
[0] If you really care, you should use a CA-signed cert. But every attack that possible when using self-signed certs is not only possible when using plain HTTP, but much easier to execute, and also much easier to execute silently.
comment 11y ago · link · parent
All Internet traffic has more download than upload (for the end-consumer). This is literally why ISPs offer faster download speeds in end-consumer packages than upload speeds - they know that consumers will need to download more than they upload.
In vector calculus, this is known as divergence. Traffic on the highway has divergence of 0, meaning that if you draw a closed loop of any shape, over the course of a day/week, the number of cars crossing that loop in both directions (in/out) will be the same.[0][1] Internet traffic does not have zero divergence, because bits are interchangeable and easy to create, destroy, and copy (whereas cars and humans are not).
Comcast isn't dumb. They know this is the way the Internet works. They just also know that it's more profitable to pretend they don't and extort money based on a false definition of "equality".
[0] https://www.physicsforums.com/threads/just-what-does-it-mean...
[1] It's not exactly the same, due to births, deaths, and migration, but you get the idea.
comment 11y ago · link · parent
Oddly, I can't remember anyone ever asking me for my ID on the train - just the ticket. And if you purchase the ticket online, you can print it out either at home or at a kiosk with just the credit card or confirmation number.
> what they were asking was illegal.
Are you sure it is? They're a private company - on what basis is it illegal?
comment 11y ago · link · parent
Screenshot for anyone looking at this after 8:30 EDT today: https://i.imgur.com/XvZHDXA.png
comment 11y ago · link · parent
Methadone really isn't analogous to the patch, though. It really is, at its core, replacing a socially unacceptable drug (heroin) for a socially acceptable variant (methadone).
The patch is used to help taper off the craving for nicotine by administering the same drug, but in a regulated dose which gradually decreases, and using time-release (skin absorption is much slower)[0]. Methadone doesn't use this model.
Interestingly, when heroin is administered in the same controlled setting that methadone is, it has better success rates and less recidivism than methadone does. These are known as "diacetylmorphine maintenance" programs.
[0] In other words, think of the patch or gum as "extended release" versions of cigarettes.
comment 11y ago · link · parent
It's bad enough that you're publicly asking sama for petty gossip on an AMA like this, but ending it by making this about Pao's character, not Yishan's character, the changing of the guard at Reddit in general, or even the KP lawsuit, is really low.
comment 11y ago · link · parent
How do you conceptualize investments on that sort of timescale?
20 years ago was 1995, and 30 years ago was 1985. So much has changed between then and now. I understand that broader market trends can sometimes be predicted, but when you invest, you're betting not only on a market trend but on a specific instantiation of that trend.
How do you conceptualize an investment in a specific team and company on that sort of a timescale, when there's already so much uncertainty around what markets will even exist in 2045?
comment 11y ago · link · parent
This is a very good reminder, and everything he says is both important and true. Unfortunately, it's sadly much easier said than done.
I know my rights. Both nationally, as well as the specific nuances of New York[0] (both city and state). I have even conducted multiple "Know Your Rights" training events educating people (generally students) about the rights that they do and don't have when speaking with LEOs, and how to exercise them. But even then, when push came to shove and I was in this position, I found myself hesitating and second guessing my knowledge, despite all the practice I had and the trainings I'd helped conduct myself.[1]
LEOs - especially Feds - will do everything they can to intimidate you, make you uncomfortable, lower your confidence, etc. It's literally their job to make people like you make mistakes. It sucks, but that's what you're up against.
[0] PSA: Did you know that possession of < 27g (not a full ounce) of marijuana is only a criminal offence in NY if "burning or open to public view"? Did you also know that this means that you should never, ever turn out your pockets if a cop asks you, because then you've exposed said contraband to "public view"? Wait for him/her to frisk you, and at least then your lawyer will have a slight chance at getting the charge dismissed.
[1] It didn't help that most of my knowledge (as is often the case) centred around local police, whereas the situation regarding border crossings and the TSA is more thorny.
comment 11y ago · link · parent
No, the ultimate decision makers of Unicode are the voting members of the Unicode Consortium (and its committees).
> For living, natural languages, you don't get characters into Unicode by buying a seat on the committee and voting for them. You do it by getting those characters into a national standard created by the native-speaking authorities
As referenced elsewhere in the comments, there are plenty of decisions that the Unicode Consortium (and its committees) take themselves. Some of these (though not all) take "native-speaking authorities" as an input, but the final decision is ultimately theirs.
There's a very important difference between being made an adviser (having "input") and being a decision-maker, and however much the decision-makers may value the advisers, we can't pretend that those are the same thing.
comment 11y ago · link · parent
This is factually incorrect. It seems you missed both the factual point about the Klingon script in the article as well as the broader point which that detail was meant to illustrate.
> although you prefer to follow the orthodox pattern of blaming white racism for your grievance du jour, the policy of the Unicode Technical Committee for years has been to use the national standards created by the national standards bodies where these scripts are most used as their most important input.
There's a huge difference between piggybacking off of a decades-old proposed scheme which was never widely adopted even in its country of origin, and which was created under a very different set of constraints than Unicode, and which was created to address a very different set of goals than Unicode, versus making native speakers an active and equal part of the actual decision-making process.
Rather than trying to shoehorn the article into a familiar pattern which doesn't actually fit ("orthodox pattern of blaming white racism for your grievance du jour"), please take note that the argument in the article is more nuanced than you're giving it credit for.
comment 11y ago · link · parent
I might be sympathetic to this, except that keyboard layouts and input (esp. on mobile devices) is an even bigger mess and even more fragmented than character encoding. Furthermore, while keys are not a 1:1 mapping with Unicode codepoints, they are very strongly influenced by the defined codepoints.
It'd be nice to separate those two components cleanly, but since language is defined by how it's used, this abstraction is always going to be very porous.
> Just out of curiosity - I would be interested to know more about your learning experience that you feel is not well aligned with the representation of jophola as it is currently.
I have literally never once heard the jophola referred to as a viram and a য, except in contexts such as this one. Especially since the jophola creates a vowel sound (instead of the consonant য), and especially since the jophola isn't even pronounced like "y". (I understand why the jophola is pronounced the way it does, but arguing on the basis of phonetic Sanskrit is a poor representation of Bengali today - by that point, we might as well be arguing that the thorn[0] is equivalent to "th" today, or that æ should be a separate letter and not a dipthong[1])
I'm not going to claim that it's completely without pre-digital precedent, but it certainly is not universal, and it's inconsistent in one of the above ways no matter how one slices it, especially when looking at some incredibly obscure and/or antiquated modifiers that are given their own characters, despite being undeniably joined of other characters that are already Unicode codepoints[2].
(Out of curiosity, where in Bengal are you from?)
[0] https://en.wikipedia.org/wiki/Thorn_%28letter%29
[1] As it was in Old English.
[2] Such as the ash (æ)!
comment 11y ago · link · parent
While one can make the case that ত্য is simply "'to' - 'o' + 'ya' = 'to'"[0][1], it's rather confusing mental acrobatics, and it doesn't reflect either how the writing system is taught, or how native speakers use it and think of it on a day-to-day basis.
If anything, your comment makes a stronger argument for consolidating ই and ি (they are literally the same letter and phoneme, but written differently in different contexts) than for combining the viram and য into the jophola.
[0] To non-Bengali speakers reading this, yes, this is how that construction would work, and yes, I am aware that the arithmetic doesn't appear to add up (which I guess is part of the point).
[1] Also, now that I think about it, the য is a consonant, not a vowel, so using it in place of a vowel is doubly awkward. This is particularly an issue in Bengali, where sounds that might be consonants in English (like "r" and "l") can be either consonants or vowels in Bengali, depending on the word.
comment 11y ago · link · parent
But it doesn't, for example say that a lowercase "b" is simply "a lowercase 'l' followed by an 'o' followed by an invisible joiner", because no native English speaker thinks of the character "b" as even remotely related to "lo" when reading and writing.
> It seems like you're trying to single out combining pairs as "less legitimate" when they're extensively used in the standard.
I'm saying that Unicode only does it in English where it makes semantic sense to a native English speaker. It does it in Bengali even where it makes little or no semantic sense to a native Bengali speaker.
comment 11y ago · link · parent
Author here.
Well, yes and no. The jophola at the end is not actually given its own codepoint[0]. The best analogy I can give is to a ligature in English[1]. The Bengali fonts that you have installed happen to render it as a jophola, the way some fonts happen to render "ff" as "ff" but that's not the same thing as saying that it actually is a jophola (according to the Unicode standard).
The difference between the jophola and an English ligature, though, is English ligatures are purely aesthetic. Typing two "f" characters in a row has the same obvious semantic meaning as the ff ligature, whereas the characters that are required to type a jophola have no obvious semantic, phonetic, or orthographic connection to the jophola.
[0] http://unicode.org/charts/PDF/U0980.pdf
[1] Some fonts will render (e.g.) two "f"s in a row as if they were a ligature, even though it's not a true ff(U+FB00).
comment 11y ago · link · parent
Nintendo games have long had ancillary hardware devices that are essentially meant to be "more mobile than the console", in that the console is intended for longer periods of interaction, whereas ancillary devices are meant for shorter use. An example is the PokeWalker[0], which itself had many predecessors as far back as the second generation of Pokemon games (late 90s).
Now that kids already have smartphones, they don't need to be carrying around a cheap piece of plastic clipped to their belt in order to get this sort of experience. If Nintendo integrates the console games with smartphone apps that supplement (but do not replace) the main games, this could be a real boost for them.
Also, look at existing game mechanics such as StreetPass[1]. It's almost laughable that people are still using devices that aren't smartphones to measure steps or handle near-field communication. This is long overdue, but better late than never!
I use Pokemon as an example because it's the most successful game franchise they have, so they tend to take advantage of Nintendo's full range of game mechanics much more than other series. It's also about 20 years old at this point, so it's possible to use the series to track how the Nintendo platforms have evolved over the years.
Interestingly, one of the Pokemon creators mentioned recently (last year or two) in an interview that they've consciously made the most recent generation of games much easier, because kids are interacting with games for much shorter periods of time, and they have to compete with games like Angry Birds for kids' attention.
[0] http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9walker
[1] http://www.ign.com/wikis/pokemon-omega-ruby-alpha-sapphire/S...
comment 11y ago · link · parent
Back In Time is basically just a GUI wrapper around rsync that manages snapshots for you. I used to have an rsync script that did the same thing manually, but it's great to have a tool that manages the snapshots for you so you don't have to remember to update the symlinks individually.
Unlike rsync[1], Back In time does incremental backups, so you save on storage space if your files don't change often.
[0]https://wiki.archlinux.org/index.php/Back_In_Time
[1] by default, that is - you can use rsync to achieve incremental backups, which is what BIT does