oscdispatch 0.1

Posted by Nikolaus Gradwohl Sat, 07 Mar 2009 07:51:00 GMT

I finished the first version of my OSCDispatch server in erlang.

The program defines a generic server and uses a callback function for the dispaching rules.

the oscdispatch.erl looks like this and uses a parameter in the module definition

-module(oscdispatch, [Dispatch]).
-export([start_server/0]).
-include("server_config.hrl").

start_server() ->
    spawn( fun() -> server(?server_port) end ).

server(Port) ->
    {ok, Socket} = gen_udp:open( Port, [binary] ),
    io:format( "socked opened ~p~n ", [Socket]),
    loop(Socket).

loop(Socket) ->
    receive
        {udp, Socket, Host, Port, Bin} ->
            Adr = binary_to_list(util:getadr(Bin)),
            io:format( "got: ~p~n", [{Host, Port, Adr}]),
            Dispatch:dispatch( Adr, Bin ),
            loop(Socket)
    end.
Read more...

Tags , ,  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

Disco

Posted by Nikolaus Gradwohl Mon, 22 Sep 2008 05:45:00 GMT

I recently read about disco a implementation of the map-reduce algorithm using erlang for the master node and the workload management and python for the map-reduce jobs. Its realy funny that the nokia research labs implemented an algorithm introduced by google using a language developed by erricsson :-)

its a bit complicated to install, but once running its realy fun to code with

Tags , ,  | no comments

Tweet This! submit to reddit Digg!

Erlang OSC Dispatcher

Posted by Nikolaus Gradwohl Mon, 14 Jul 2008 05:10:00 GMT

I have started a Project to write and osc message dispatcher in erlang. I want to use it to dispatch the data from my icontrol chuck script to other soundgenerating scripts or visualisation programms.

Tags ,  | no comments

Tweet This! submit to reddit Digg!