[erlang-questions] Two beautiful programs - or web programming made easy

Marc Worrell marc@REDACTED
Sat Feb 12 15:34:40 CET 2011

The funny thing is that zotonic and nitrogen already use this way of pushing dynamically generated JavaScript to the user agent. It works great. 

Zotonic switches between a long polling comet connection and websockets depending on the capabilities of the browser.

By the way, websockets is not broken. Some proxies are broken.

- Marc

On 12 feb 2011, at 14:03, Joe Armstrong wrote:

> As I see it the web is predominantly built with one concurrency pattern.
> A client (web browser) can do an RPC to a server
> We can't (easily)
> do an RPC from the server to the client
> send an asynchronous message from server to client
> send an asynchronous message from the client to the server
> Of these four concurrency patterns three are crippled.
> Instant messageing, for example,is trivial if you can push messages to a
> client.
> Turning web sockets off for security reasons is stupid.
> The solution is to sandbox the thing that receives the messages
> or if unsandboxed strongly authenticate the messages.
> /Joe

More information about the erlang-questions mailing list