erlang_js - implement function in Erlang
Wed Nov 17 22:56:49 CET 2010
I am interested in using the erlang_js module, however I am having
problems understanding if it can do what I want to do with it.
is basically to create a scripting system for my application.
I would then like to implement MyFunction in Erlang somewhat like this:
MyFunction(Arg1, Arg2) ->
io:fwrite("MyFunction called args: ~p, ~p~n", [Arg1, Arg2]).
I am using RabbitMQ and for the moment I simply send an MQ message to
The way Java does it is very nice, I just hava a MyClass class with
The problem is keeping the code clean and the flow of things, I'd like
to integrate the scripting closer to the game logic.
Looking at the documentation
http://www.erlware.org/lib/5.7.5/erlang_js-0.1/index.html, the closest
thing I see is the very last example where ejsLog is called inside the
However, this is implemented in C in spidermonkey.c. Not sure if I'm
just missing something. Any help would be appreciated.
Android 2D MMORPG: http://developingthedream.blogspot.com/,
More information about the erlang-questions