clofresh / erl4j Goto Github PK
View Code? Open in Web Editor NEWa framework for creating Java daemons that can respond to Erlang RPC messages
License: BSD 3-Clause "New" or "Revised" License
a framework for creating Java daemons that can respond to Erlang RPC messages
License: BSD 3-Clause "New" or "Revised" License
Erl4j provides a framework for creating Java daemons that can respond to Erlang RPC messages. Dependencies: * Java 1.6 * jsvc 1.0.1 (http://commons.apache.org/daemon/jsvc.html) * Jinterface 1.5.1 (part of Erlang/OTP) * Rake 0.8.7 Erl4j may work with other versions of those dependencies, but those are just the ones I've tested it in. Before running Erl4j, make sure that epmd is running, otherwise it won't be able to publish its port to other Erlang nodes. To start epmd: /usr/local/lib/erlang/erts-$SOME_VERSION/bin/epmd -daemon To start a server with the samples, run: rake run To test it out, start an Erlang process with: erl -sname my_node For some reason, it won't work without the sname param. Then from the interpreter you can run: rpc:call('erl4j@my_host', my_module, my_function, [param1, param2]). And it should echo the call back to you: {call,my_module,my_function,[param1, param2],<0.31.0>} To create your own Erl4j server, you just have to implement the Erl4jHandler interface which is simply: public interface Erl4jHandler { public OtpErlangObject respond(Erl4jRequest request); } Then update bin/erl4jctl.conf to use your Erl4jHandler implementation class. OtpErlangObject is Jinterface's Java representation of an Erlang term. See http://www.erlang.org/doc/apps/jinterface/jinterface_users_guide.html. See erl4j-sample/com/syntacticbayleaves/erl4j/sample/ for examples.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.