[erlang-questions] [ANN] Cowboy 0.6.0

43 views
Skip to first unread message

Loïc Hoguin

unread,
May 23, 2012, 9:15:20 AM5/23/12
to Erlang Users' List
Hello,

Long awaited Cowboy 0.6.0 is finally available.

Cowboy is a small, fast, modular HTTP server and socket acceptor pool.
The 0.6.0 version is the last to include the socket acceptor pool
directly in the project. Future versions will simply depend on the ranch
project which is the socket acceptor pool code split from Cowboy.

Many additions have been made, along with a few bugfixes. The test suite
has been completely reworked. There is still no user guides. Read more here:
* https://github.com/extend/cowboy/blob/master/CHANGELOG.md

Effort is ongoing to add user guides to both Ranch and Cowboy projects,
starting with Ranch. Examples will be added to both projects this summer.
* https://gist.github.com/2397647
* https://gist.github.com/2600398

Cowboy can be found at https://github.com/extend/cowboy

Next version will switch the acceptor code to Ranch. The dependence on
the erlang:decode_packet/3 BIF will be removed. Methods and header names
will be uniformized as binaries, there won't be a mix of atoms and
binary names anymore. Various changes will be made to REST to improve
its semantics with regards to full and partial updates. A new API to
generate dispatch tables easily will be added.

This version includes an experimental and entirely undocumented HTTP
client in cowboy_client. It uses binaries. We do not recommend using it
at this point. We hope to add transfer encodings and websocket support
in the next version and finally document it for 0.8.0.

As always I'm interested in any feedback you may have, good or bad. Feel
free to drop me a mail about the project!

If you need features added, please open a ticket and describe *what you
want to do with it*, chances are that you can already do it and you just
don't know it.

Thanks.

--
Loïc Hoguin
Erlang Cowboy
Nine Nines
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Jesse Gumm

unread,
May 23, 2012, 10:40:51 AM5/23/12
to Loïc Hoguin, Erlang Users' List

Congrats Loic!

--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

André Graf

unread,
May 23, 2012, 10:48:57 AM5/23/12
to Loïc Hoguin, Erlang Users' List
Congratz! just upgraded from 0.5.*, worked like a charm!

Cheers
André

John-Paul Bader

unread,
May 23, 2012, 11:16:53 AM5/23/12
to Erlang Users' List
Quick question:

why do you move away from decode_packet and what will you use instead of it?

I saw it is being used in a number of projects and I'm curious what your
motivation / goal is.

~ John

Loïc Hoguin

unread,
May 23, 2012, 12:54:12 PM5/23/12
to John-Paul Bader, Erlang Users' List
To get rid of the atom+binaries mixed together, a limitation on case
sensitivity of header names for header names > 22 characters, get a more
straightforward HTTP protocol code, maybe others I forgot. Most of the
current inconsistencies in request data happens because of decode_packet.

decode_packet can do a lot of things, and we use so few of them it's not
giving us much for our money anymore.

I'm also interested in seeing the performance differences of a full
Erlang HTTP parsing stack vs one that uses decode_packet. This will be
investigated this summer by my students.
--
Loïc Hoguin
Erlang Cowboy
Nine Nines

Zabrane Mikael

unread,
May 23, 2012, 2:50:02 PM5/23/12
to Loïc Hoguin, Erlang Users' List
Hi Loïc,

Congrat from the new Cowboy release.

> I'm also interested in seeing the performance differences of a full Erlang
> HTTP parsing stack vs one that uses decode_packet. This will be investigated
> this summer by my students.

What are you expecting from such a comparison?
a. Speed? "decode_packet" is coded in C.
b. ...

--
Regards
Zabrane

Loïc Hoguin

unread,
May 23, 2012, 6:23:50 PM5/23/12
to erlang-q...@erlang.org
Sorry to pollute a little but I forgot to mention it.

There will be a 3 hours Cowboy tutorial at the Erlang User Conference in
Stockholm next week. We will investigate how to build a web chat
application step by step. Should be a good first experience if you are
new to Cowboy. Hope to see you there!

Thanks and sorry again for the noise.

Boris Mühmer

unread,
May 24, 2012, 12:20:06 AM5/24/12
to Loïc Hoguin, erlang-q...@erlang.org
2012/5/24 Loïc Hoguin <es...@ninenines.eu>:

> There will be a 3 hours Cowboy tutorial at the Erlang User Conference in
> Stockholm next week. We will investigate how to build a web chat application
> step by step. Should be a good first experience if you are new to Cowboy.
> Hope to see you there!

Will there be a recording of this (and maybe other) talk(s)?

It would be great for those who can't attend the Erlang User
Conference to watch it (and maybe others).


- boris

Francesco Cesarini

unread,
May 24, 2012, 1:12:00 AM5/24/12
to Boris Mühmer, Loïc Hoguin, erlang-q...@erlang.org
We are recording the talks, but not the tutorials.

Regards,
Francesco

"Boris Mühmer" <boris....@googlemail.com> wrote:
2012/5/24 Loïc Hoguin <es...@ninenines.eu>:
> There will be a 3 hours Cowboy tutorial at the Erlang User Conference in
> Stockholm next week. We will investigate how to build a web chat application
> step by step. Should be a good first experience if you are new to Cowboy.
> Hope to see you there!

Will there be a recording of this (and maybe other) talk(s)?

It would be great for those who can't attend the Erlang User
Conference to watch it (and maybe others).


- boris


Reply all
Reply to author
Forward
0 new messages