There was talk on one of the mailing lists about using something like SimpleBridge (<a href="https://github.com/nitrogen/simple_bridge">https://github.com/nitrogen/simple_bridge</a>) so that the use of a web server could be independent of Webmachine's logic, which IMO is the best solution.  I don't think anyone did anything about it, but for some reason, SimpleBridge has Webmachine support, which doesn't make sense logically to me since Webmachine is a toolkit and not a web server.  <div>

<br></div><div>I use Webmachine and love what it does for me, but the code seems overly complicated with a heavy reliance on Mochiweb and uses parameterized modules (an unsupported feature of Erlang), so I would actually be more inclined to start a new project which is influenced by Webmachine but corrects all the issues with it and makes it a bit more flexible and modern (would love for Webmachine to support PATCH for example and something like Socket.IO).  I'd be happy to help out with such a project if anyone is interested in starting one.</div>

<div><br></div><div>--Andrew<br><br><div class="gmail_quote">On Mon, Dec 19, 2011 at 12:24 PM, Tristan Sloughter <span dir="ltr"><<a href="mailto:tristan.sloughter@gmail.com">tristan.sloughter@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Interesting. Sucks that webmachine is so tied to mochi and mochi so tied to lists, haha. But I'll give this a look.<span class="HOEnZb"><font color="#888888"><div>

<br></div></font></span><div><span class="HOEnZb"><font color="#888888">Tristan</font></span><div><div class="h5"><br><br><div class="gmail_quote">On Mon, Dec 19, 2011 at 1:50 PM, Magnus Klaar <span dir="ltr"><<a href="mailto:magnus.klaar@gmail.com" target="_blank">magnus.klaar@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<div><br></div><div>Cowboy currently includes an experimental webmachine-like interface. The first commit of this module should explain some of the key differences from webmachine. If i remember the history of this module the intial estimate for the time needed to decouple webmachine from mochiweb _and_ refactor webmachine to support both binaries and lists everywhere was greater than the time needed to just add the difference between the two to cowboy.</div>




<div><br></div><div><a href="https://github.com/extend/cowboy/commit/aab1587a4b3d8f0c3d92a2083227527d51109980" target="_blank">https://github.com/extend/cowboy/commit/aab1587a4b3d8f0c3d92a2083227527d51109980</a></div><div>



<br></div><div>
If you're interested in a </div><div><br></div><div>MVH Magnus</div><div><br><div class="gmail_quote"><div><div>On Mon, Dec 19, 2011 at 6:40 PM, Tristan Sloughter <span dir="ltr"><<a href="mailto:tristan.sloughter@gmail.com" target="_blank">tristan.sloughter@gmail.com</a>></span> wrote:<br>




</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div>This may be better on a Webmachine questions list. But I thought I'd ask here first since it may be that someone working on one of the other Erlang web servers, besides Mochiweb, has worked on moving Webmachine to use that server.</div>





<div><br></div>The reason I say that is, Webmachine currently relies on Mochiweb which passes lists instead of binary strings for requests. While the req_body of a request is given as a binary the path_info and query string is dealt with as lists. While I would think there could be a performance hit due to this my main reason to ask for alternatives is that dealing with JSON representations on the backend require converting the lists to binaries for processing every time. <div>





<br></div><div>There has been <a href="https://github.com/mochi/mochiweb/pull/38" target="_blank">https://github.com/mochi/mochiweb/pull/38</a> but its clear at the end of the discussion its not a change that will be happening to mochiweb anytime soon.</div>





<div><br></div><div>So is there work on Webmachine backed by Cowboy or another Erlang web server?</div><div><br></div><div>Thanks,</div><div>Tristan</div>
<br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>