sketch of an approach

11 views
Skip to first unread message

Kurt

unread,
Oct 23, 2007, 5:29:03 AM10/23/07
to erls...@googlegroups.com
Hi all,

an attempt at breaking down the current theory into
a few practical steps, my thought is that we could
follow a *very* simple path like :

1. Simple TCP (echo?) Server

2. Simple TCP Server launching Erlstomp sessions

3a. Simple TCP Server with Subscriptions
3b. Replace Simple TCP Server with gen_server

Not sure whether 3a or 3b should come first, but that gets us to :

4. gen_server + subscriptions
= Erlstomp Session + Erlstomp Subscription + Erlstomp Server
= start of /actual/ erlstomp project

Its a pretty slow start, and presumably some people who've read Joe's
book, or are otherwise sufficiently advanced, would be starting at 4.
I haven't (hurry up, Amazon!), so I'm biased towards beginner-ness,
and if I'm being overly cautious jump up and down and wave or
something:)

Cheers, Kurt.

Kurt

unread,
Oct 30, 2007, 12:02:59 AM10/30/07
to erls...@googlegroups.com
Kurt wrote:
> Its a pretty slow start, and presumably some people who've read Joe's
> book, or are otherwise sufficiently advanced, would be starting at 4.
> I haven't (hurry up, Amazon!), so I'm biased towards beginner-ness,
> and if I'm being overly cautious jump up and down and wave or
> something:)

So, my PE arrived (yay, Amazon!).
But.
It completely blows the above approach out of the water.
If you've not read the book and are interested in Erlang you
really should read it.

The big things from the book that affect erlstomp are :
- *very* simple approach to gen_server
- example irc server
- example shoutcast server
- intro to ets/dets and Mnesia

(Shoutcast shows how to do sockets, haven't read IRC chapter yet,
but pretty sure its gen_server and its doing very similar things
to Stomp (clients-messages-servers, and irc channels are reasonably
similar to Stomp subscriptions).

I'm going to read a bit more, but with other things won't be coding
for a while yet.
From reading a few chapters, it looks as if it should be possible
to do the basics of an erlstomp server in a few hours or less.
Anyone keen? If not, I'll see if I can do something in week or so.

Cheers, Kurt.
ps : list is pretty quiet (think everyone has gotten busy, no?)
But I'm keen to do an erlstomp for myself anyway, so will keep
muddling along with it (and sending messages to the list) until
either someone writes it for me or Tomasz unsubscribes me :)
Under the assumption that anyone will jump in and push things
in a particular direction at the stage it gets interesting to them
or they're frustrated about moving too slowly.

Reply all
Reply to author
Forward
0 new messages