Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Run Reia module on top of YAWS

#1

Since we need to have support for web applications, it's a good idea to use a mature web servers, one of which is YAWS. So it would be nice to be able to run such a module in YAWS: module A def out(a)

(~html, "Hello, World!")

with minimal Reia changes and YAWS configuration

Reported by Philipp Pirozhkov · November 6th, 2008 @ 01:20 AM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Philipp Pirozhkov
    Philipp Pirozhkov

    I've tried to do so, but ran into two issues: 1. Erlang doesn't want to load modules with Capitalized module name (not file name!). 2. Reia outputs data with type declaration attached, so instead of: {html, "Hello, World"} we are getting {tuple, {html, {string, "Hello,World"}}}

    I've changed parser so that all module names are compiled to be lower-case in .beam files. But that breaks dispatcher and tests (and even ire itself), so that all that stuff should be changed to use lower-case module names. secondly i've patched reia_string (moved its functionality to reia_list), Tuple, reia_dispatcher to remove type declarations. both are bad ideas, uh?

    Tony suggested to use a simple shim between Reia appmod and YAWS: -module(my_shim). -export([out/1])

    out(Arg) -> reia_erl:r2e('A':out(reia_erl:e2r(Arg)).

    This seems to solve both issues.

    November 6th, 2008 @ 01:34 AM

  2. Philipp Pirozhkov
  3. Philipp Pirozhkov
    Philipp Pirozhkov

    This one can be closed i suggest

    November 20th, 2008 @ 02:56 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.