News for hackers. Stuff that matters.
Re:Unix is not an acceptable Unix by vbezhenar on Sunday June 07, 2015 @08:12AM (#9674334)
JSON doesn't support behaviour (methods). They are very useful for composing programs IMO.
Re:Unix is not an acceptable Unix by masklinn on Sunday June 07, 2015 @08:26AM (#9674369)
Methods are useful to organise and abstract programs, they're really quite bad at composition. Many functions operating on the same primitives is much more composable than small sets of functions operating on their own custom primitives.
Re:Unix is not an acceptable Unix by wz1000 on Sunday June 07, 2015 @08:23AM (#9674360)
Behaviour could be implemented by shell commands. That way, if you wanted to implement a method for a particular object, you could just write a binary/shell script/whatever that reads the object from stdin and writes its result to stdout
Re:Unix is not an acceptable Unix by current_call on Sunday June 07, 2015 @01:58PM (#9675660)
Then you'd need a JavaScript interpreter. Which would be terrible.
Re:Unix is not an acceptable Unix by icebraining on Monday June 08, 2015 @04:40AM (#9677876)
Well, it doesn't have to be JS specifically. In theory, it could even be a piece of machine code.
Re:Unix is not an acceptable Unix by sudioStudio64 on Sunday June 07, 2015 @08:37AM (#9674397)
if the deserialization mapped to a system wide type system then the methods could be mapped in at that point.