News for hackers. Stuff that matters.
Re:The S stands for Simple by 10ren on Tuesday December 15, 2009 @12:54AM (#996003)
Interoperability is a vitally important but hard problem. CORBA and then SOAP have been thoroughly adopted, then widely condemned.

What's next?

Re:The S stands for Simple by kabdib on Tuesday December 15, 2009 @01:41AM (#996066)
Frankly I think there's some kind of Godwin's Law going on here, where something is insufficiently Enterprisey until an 'S' is attached to it, whereupon IT folks and professional donut-stuffing standards committee complexifiers wade in, and three linear bookshelf feet later you've got a Standard. And it's Simple. And all the devs who use it, who have a clue, just want to commit Suicide.

But maybe it's just me.

Re:The S stands for Simple by JulianMorrison on Tuesday December 15, 2009 @02:01AM (#996081)
JSON in HTTP GET/POST. It's more of a nuisance, but it forces you to face the network issues head-on, and code that reads JSON can't afford to make assumptions, so it ends up less brittle.
Re:The S stands for Simple by InclinedPlane on Tuesday December 15, 2009 @03:00AM (#996133)
Not just JSON and HTTP but specifically REST w/ JSON. There's a lot to be said for such a model.
Re:The S stands for Simple by garnet7 on Tuesday December 15, 2009 @12:43PM (#996953)
What's the difference between "JSON in GET/POST" and "REST with JSON"?
Re:The S stands for Simple by JulianMorrison on Tuesday December 15, 2009 @04:54PM (#997538)
In one, you are essentially doing RPC: here's the input, do the operation and give me an output. In the other, you are remotely manipulating "documents". Even a command to act consists of emplacing a "request" and being redirected to a "response". You navigate between "documents" by following URLs in links.

To be honest, I like REST for CRUD of things that are natural resources, but I think it's wasted extra work for operations that are natural RPCs.

Re:The S stands for Simple by garnet7 on Wednesday December 16, 2009 @12:53PM (#999283)
Ah thanks. Just plain JSON RPC sounds simplest to me.
Re:The S stands for Simple by carey on Tuesday December 15, 2009 @02:36PM (#997195)
"REST with JSON" should send the (relative) URL for the next request, not just an ID. Although there's more to it than just that.
Re:The S stands for Simple by 10ren on Thursday December 17, 2009 @07:16PM (#1002250)
Thanks! So, the XML/SOAP/WS stack tried to simplify/abstract too much or wrongly, when problems leak through, it is too impermeable to let you solve them...

The "nuisance" of JSON+HTTP is a backward step in a way, but it lets you solve those problems. Sounds like an ideal solution would be an abstraction with less nuisance, that solves the network issues that it can and gives you access for the others - which may or may not be possible; it's an ideal.

(1) By "network issues" do you mean along the lines of Peter Deutsch's "8 Fallacies of Distributed Computing"? http://en.wikipedia.org/wiki/Fallacies_of_Distributed_Comput...

(2) Regarding "assumptions" and "less brittle", do you mean issues of reading the format correctly, in the face of evolution of the internal structure and/or wire format?

Re:The S stands for Simple by iamaleksey on Tuesday December 15, 2009 @01:06AM (#996022)
REST, Thrift, AMQP + protobuffs.
Re:The S stands for Simple by 10ren on Tuesday December 15, 2009 @09:01AM (#996456)
http://incubator.apache.org/thrift/ http://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protoc... http://code.google.com/p/protobuf/

Sounds intriguing - can you elaborate on why this combination is favoured in particular? Or point to an article that discusses it? It's hard to get widespread adoption if it's not accessible...

incidentally, google protocol buffers seems similar to http://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One (ASN.1), which predates XML, but didn't take off.

Re:The S stands for Simple by iamaleksey on Tuesday December 15, 2009 @10:42AM (#996659)
ASN.1 actually did take off, somewhat, at least in telco. And after comparing thrift to protobuffs to ASN.1 for our internal protocol I ended up chosing ASN.1, mostly because of the great ASN.1 support in the OTP (I'm using Erlang). Erlang protobuffs library, on the other hand, is somewhat lacking and is terrible at encoding/decoding huge messages with big lists.

And AMQP was chosen for the transport layer because it handles persistent messages, transactions, all the routing, buffers messages, etc., etc. I'd have to implement all of these myself, had I chosen thrift.

This is how I ended up with RabbitMQ and ASN.1.

Re:The S stands for Simple by 10ren on Wednesday December 16, 2009 @08:03PM (#1000153)
Thanks. The long-term trajectory of programming tools seem to favour developer ease over raw efficiency, as computers get faster but programmers don't (though possibly this might change as Moore's Law diverts from speed increases to multi-core).

Therefore, XML became more popular than ASN.1. I think the successor to XML (and SOAP etc) will be more human-friendly than XML, rather than more efficient.

That's not to say that extremely efficient techniques don't have a place (they do) or they're not cool (they are).

Re:The S stands for Simple by dabent on Tuesday December 15, 2009 @02:26PM (#997159)
I actually coded one of Facebook's coding puzzles (Battleship) using Thrift and was pleasantly surprised. It provides support for many languages and getting up and running was a snap. I hope it catches on.
Re:The S stands for Simple by bsaunder on Tuesday December 15, 2009 @08:32AM (#996406)
I like the MQ stacks (particularly ActiveMQ). I've used a proprietary message bus in the past and it was really nice to just send and receive message at the application level. Of course migrating to an asynchronous model of development can be challenging for some.
Re:The S stands for Simple by joss82 on Tuesday December 15, 2009 @10:39AM (#996651)
XMLRPC. Very easy to use. There is a solid xmlrpc client in python > 2.2

http://www.python.org/doc/2.6/library/xmlrpclib.html

A small criticism : some network overhead (it's XML's fault).

Re:The S stands for Simple by jcapote on Tuesday December 15, 2009 @01:09AM (#996028)
bert-rpc.org
Re:The S stands for Simple by antonovka2 on Tuesday December 15, 2009 @01:42AM (#996067)
I hope not. Between Protobuf and Thrift, I don't see the point of adopting a less efficient, even more niche NIH serialization format and RPC protocol.
Re:The S stands for Simple by houseabsolute on Tuesday December 15, 2009 @02:26AM (#996109)
Might be different if there were already numerous libraries that supported it but honestly if the extent of it is support in four languages (plus a few more that support the serializer) it's probably not worth wasting the effort unless it differentiates itself substantially from the existing solutions.
Re:The S stands for Simple by blasdel on Tuesday December 15, 2009 @07:14AM (#996319)
Both protobuf and Thrift are designed exclusively around simple static type-checking with type-erasure. Neither support heterogeneous collections, much less discriminated unions or GADTs.

There are plenty of untaken vertices in the serialization-format hypercube.

Re:The S stands for Simple by antonovka2 on Tuesday December 15, 2009 @12:45PM (#996958)
Heterogeneous collections, discriminated unions, and GADTs can be implemented easily in either thrift or protobuf by leveraging inclusion of custom type-tagged messages/data.

However, while the encodings are absolutely sufficient to represent these data structures -- if you so choose -- my experience dictates that keeping serialized messages typed and as simple as possible is advantageous from the perspective of long-term maintenance and interoperability.

Re:The S stands for Simple by blasdel on Tuesday December 15, 2009 @04:38PM (#997501)
Of course you can implement custom type-tagged blobs, but that's not using thrift or protobufs -- it's your own nebulous SOAP-style bullshit.
Re:The S stands for Simple by antonovka2 on Tuesday December 15, 2009 @09:17PM (#997952)
They're not "blobs" if they are also protobuf/thrift messages themselves.
Re:The S stands for Simple by blasdel on Wednesday December 16, 2009 @01:36AM (#998246)
That's certainly cleverer, but it's still a nested user-implemented unsound type-system.