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
That's the problem - you have two completely different installation methods, neither one of which is particularly UNIX-y, and neither of which is capable of talking to the other in a reliable manner.
> IMO is better than the usual package manager in a linux distro
It's incapable of handling binary installations, which is remarkable considering the hardware variation is far less than there is for Linux, it installs to /usr/local, it doesn't integrate well with language-specific package management tools, and it can't update system files.
> it doesn't litter the disk with init scripts or config files
I've never once had this problem with Linux; the man pages for any Linux package manager should provide a straightforward way of figuring out which package own which files.
> you always know where things are being installed to.
Because they're not installed to the right place.
I can't count the number of times an OS X package has told me that I need to add such-and-such folder to my $PATH. Hint: if you're requiring me to change my $PATH so that your installed file works, you're not installing it properly.
comment 14y ago · link · parent
There's also a marginal cost beyond the first unit, whereas for software, there is none.
> I cannot OCR a paper book I own, make modifications to it and then publish it on the web.
You'd be violating a copyright, which is a separate point of discussion, but I'm talking about the physical book itself. You've sold me a bunch of paper bound together, and I'm allowed to modify (or destroy) it, as well as resell it to someone else.
comment 14y ago · link · parent
I'm talking about the physical book, not the words contained within.
> When I buy a house, I can make modifications to it.
When I buy software, I should be able to make modifications to it.
> Microsoft probably wouldn't care if I somehow reverse engineered Windows and modified it for myself only.
That's explicitly prohibited by the license. Whether or not you think they'll enforce the license in your case has no bearing over the fact that it does violate it, and free software advocates argue that such licenses cannot be nonenforceable.
In any case, patents are a separate issue altogether. So is copyright, actually - free software licenses are a way of twisting current copyright law into doing the opposite of what it was meant to do: provide freedom.
comment 14y ago · link · parent
But outside of real estate, I can't think of any analogous practice outside the information market - you don't sell me a book on the condition that I not loan it to a friend, write notes in the margins, or even burn it.
comment 14y ago · link · parent
1. Installing everything from source (normally I don't mind compiling, but large packages can take an hour or two. Ironically, OS X doesn't need to support many different architectures, so there's no excuse for not having binary compatibility like Linux does).
2. It doesn't manage the entire system. The process for installing from a .dmg or from the app store is completely different from homebrew, and the two don't talk to each other well (or really at all). I want a single source to manage all of my executable files and their configurations, not a small handful that each manage part of it.
comment 14y ago · link · parent
Not to mention that you can't remap arbitrary keys in OS X without using third-party software, most of which you have to pay for.
Not that I mind paying for software, but I do mind paying for basic functionality that was present in the last version of the OS.
comment 14y ago · link · parent
The nice thing about Linux is that I can at least remap these keybindings. On OS X, it's literally impossible to do a perfect remapping of the keys (trust me. I've tried.)
Hopefully I've saved recently (or run the process inside GNU screen....).
comment 14y ago · link · parent
You're confusing the tradeoff. The tradeoff is not about money; libre software can be sold as well.
The point in question is whether you should have to (or even be able to) sacrifice your intrinsic rights, such as your right to modify your own property for your own purposes.
Whether or not you paid money for it is irrelevant to that aforementioned right.
comment 14y ago · link · parent
If you sell me something, you cannot tell me that I can't modify it for my own use, for example. You as the seller can't tell me that I'm not allowed to resell my textbooks, or to modify the frames on my eyeglasses, or to hire my friend to fix my vacuum cleaner.
Proprietary software licenses do do that - the main difference is that is a non-rivalrous good; I can redistribute software without losing access to it myself. Because of that, people think it's somehow 'wrong' to say that I should be allowed to purchase a program and then resell it to another person, but if you look at it the other way, that's no more 'wrong' than purchasing a physical good and then reselling it.
In the South, it used to be common to sell property on the condition that the purchaser never sell it to a black person (I think they still used the term Negro or 'colored' then). If I remember correctly, that was first deemed illegal in certain parts not because it's horribly racist, but because it violates the principles of first sale: you've sold me something, and now you can't tell me what I'm not allowed to do with it.
comment 14y ago · link · parent
TweetDeck was mostly a defensive acquisition to begin with (they had a huge market share, and deck.ly was a perceived threat).
comment 14y ago · link · parent
It's not a deficiency, but it emphasizes the fact that Scala is object-oriented, not functional. Scala supports first-class objects, and you get more functional features than Java because, unlike Java functions, Scala functions are objects.
In other words, Scala's support for certain functional features is a corollary of its support for first-class objects, not because of its support for first-class functions.
> the exact implementation of namespacing (module-level vs module/object-level) is irrelevant to me
Which probably means that most of this discussion may be irrelevant to your interests too. :-)
That's not meant to be rude - I'm being a bit facetious, but I'll readily admit that the OO 'vs.' FP is far too subtle for most people to care about... and that's fine. Beyond a certain point, it's a discussion with more academic value than practical value.
But if you really care, let me try and explain the following:
> If module-level functions are important to the question I would like to know why. :)
Lack of module-level functions is a hint (though not proof) that Scala is 'OO first, and FP by coincidence'. Objects are just classes that are automatically created and instantiated with a singleton. Scala permits nesting of objects (objects within objects). The nested objects may themselves be function objects or non-function objects. However, at the root, you must have a non-function object.
In other words, picture Scala code as a tree: functions may appear as inner nodes or leaf nodes, but they may not be the root node, which is reserved for a non-function object. Inner/leaf nodes are of type
psuedocode:
type Object
type ScalaFunction extends Object
type NonFunctionObject extends Object
We can have ChildNode[NoneFunctionObject] and ChildNode[ScalaFunction], but we can't have RootNode[ScalaFunction] - we must have RootNode[NonFunctionObject]Furthermore, if Scala functions are implemented as internal methods on variables (which are objects), that means that there is no way in Scala to write a function that is not eventually compiled to a method - ie, an object-bound function. If we can't break this binding, it's hard to make the case that functions are truly first-class. Objects are first-class, and because Scala provides first-class object support (unlike Java), many features of first-class functions can be simulated by using first-class objects, but that's subtly different from treating the function itself as the first-class citizen.
For contrast, the inverse would be a functional languages with first-class functions and no first-class objects. All objects are constructed from functions (ie, 'bound to functions' in some sense), and there's no way to create an 'unbound' object, whereas there is in Scala.
comment 14y ago · link · parent
Remember that LFS, despite the name, is not about learning Linux-the-kernel, it's about learning 'Linux-the-operating-system' (which is more precisely referred to as GNU - using 'Linux' to refer to the OS is technically incorrect, though very widespread).
Most of the time this is just a point of either pedantry or politics, but if you want to build your OS from scratch, you really need the entire toolchain[1] if you want to build a 'usable' system.
[1] You can sub parts of other toolchains, so I guess the more correct answer is that you need an entire toolchain, with the GNU tools being the de-facto default toolchain.
comment 14y ago · link · parent
That, or just use the oauth_secret from the official Twitter applications; those were cracked ages ago, and even if they changed them (thereby breaking all their old applications), they're super-easy to crack again.
comment 14y ago · link · parent
That said, the writing has been on the wall for quite some time, even if not quite four years.
I remember thinking that something like this was inevitable last year (circa July 2011), and I wasn't even a developer on Twitter's platform, so there were probably signs much earlier than that too.
comment 14y ago · link · parent
I don't really know much about how Silk is actually implemented, but it seems like all we know so far is that they're doing at least as much tracking as your ISP already is (and frankly, I find that much more concerning).
comment 14y ago · link · parent
Weak password: correcthorsebatterystaplefoobarbaz
Strong password: password1
The worst is when they do that and enforce a maximum password of 8 or 12 characters (I'm looking at you, every bank in the US ever).
comment 14y ago · link · parent
But function objects are not on equal footing with non-function objects. You can nest function objects or non-function objects inside other function/non-function objects, but at the root, you need an object that isn't a function.
At the end of the day, yes, you can do the same things, but my original point was that this doesn't make Scala functional: it makes Scala object-oriented (Java, by contrast, is not properly object-oriented, because it has four kinds that aren't objects).
comment 14y ago · link · parent
> "When you apply parentheses surrounding one or more values to a variable, Scala will transform the code into an invocation of a method named apply on that variable."
Now I've lost track of what you're quoting from, but that's by definition very OO. It's a modified form of the messaging pattern employed by Smalltalk.
Scala isn't a functional/object-oriented hybrid; it's purely object-oriented (even more so than Java) because it has one single kind[1]: the object (Java pretends to have one, but it really has five, if you really wanted to get pedantic).
So we shouldn't be celebrating Scala for being a functional hybrid - we should celebrate as being 'OO done right' (well, mostly right), which was the stated and failed intent of Java.
The distinction is subtle, but the important thing to remember is that I'm operating on the premise that proper OO is essentially a subset/extension of FP, not an alternative. So what I'm saying is that this doesn't show that Scala is 'more functional' (vs. 'less functional') - rather, it shows that Scala is good OO (vs. bad OO, ie Java). I agree that it's a bit like the 'white horse is not a horse' argument, but it becomes important when we start talking about non-white horses; ie, functional languages that aren't OO).
[1] I'm kind-of (no pun intended) abusing the term 'kind', but I can't think of a non-overloaded synonym as the moment, other than 'type' which would be worse.
comment 14y ago · link · parent
Agreed - that's my whole point. It's better to think of object-oriented programming as a construction within FP. Of course, some (badly-designed) OO languages like Java sandbox you and restrict your access to some of the more powerful, higher-order concepts, which is why they seem to be 'in conflict', when in reality, one is just a more abstractly implemented, whereas the other's more specifically implemented.
> Scala is a perfect example of a language which is both.
No, it's not - for example, functions have to exist within an instantiation of a class (a singleton object counts). By providing true first-class objects (unlike Java), you get many of the same benefits as first-class functions, but it's fundamentally not the same thing.
Really, an easy way to create a language which supports both is to start with a very basic language with true first-class functions and closures (like Lisp) and then define a few closures that encapsulate state (objects), and then add a couple of basic macros that turn generic functions into bound methods (ie, automatically provide the implicit parameter instead of calling it explicitly).
...which is why I agree that they're not in conflict - a well-designed OO system can be easily implemented within a well-designed functional system!
(The reverse doesn't work so well because you can easily add an implicit parameter to generic functions, but you can't completely remove an implicit parameter from a bound method, even if you pretend it doesn't exist - ie, treat all methods as static methods).
comment 14y ago · link · parent
EDIT: Okay, I see the confusion. That seems like a 'top-level' function in the sense that it's not acting on any parameter that's not explicitly passed to it, but it is still bound to the singleton object 'f'. That would be analogous to the following Python code:
class F(object): def __init__(self): pass
def x(self, s):
return s + 'hi'
>> Foo().x('hey')
'heyhi'Just because you ignore the implicit parameter doesn't mean it doesn't exist. Scala handles the implicit parameter differently, but the function still very much needs to exist inside the namespace of another object.
comment 14y ago · link · parent
Scala is not truly functional - like Java, it is object-oriented. It just so happens that, once you step outside the Java bastardization of that term and think about a more 'pure' OO, the result is fairly functional-looking. OO and FP aren't really competing paradigms; rather, OO is a more complex paradigm that can be constructed from a functional system. (The inverse is technically true too, but much uglier in practice).
(To give an example of what I mean, Scala supports first-class objects, and functions/methods are included in that statement. Scala does not support first-class, module-level functions (outside an object). That's not functional programming; it's object-oriented! But if you design your OO system well, you get something similar. Java does this badly, because methods aren't first-class objects - and unlike C, you can't really use pointers/references to fake the same behavior, so you get the worst of both worlds).
Of course, Scala has to deal with limitations of the JVM - that's their compromise to gain binary inter-compatibility - but the designs of the two languages are a night-and-day comparison.
comment 14y ago · link · parent
Sure, but when they're traveling in/through the US, they're subject to US law, and that can't change.
> These ridiculous practices spread to other countries too; it's a global issue.
Well, yes, if you want to talk about the US exporting its law and enforcing it outside its jurisdiction, infringing on other countries' sovereignty, there are plenty of examples of this practice - the TSA debacle is unfortunately barely a blip on that radar.
comment 14y ago · link · parent
What does this mean, then - will they just throw you out if you refuse? Or will they illegally detain you? My bet is on the latter.