Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tank-bohr/jruby_node


https://github.com/tank-bohr/jruby_node

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Run

`jruby -S bundle install`

`jruby -Ilib -Ivendor ./bin/run.rb`

# Usage

```
erl -name [email protected]
Erlang/OTP 17 [erts-6.3] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Eshell V6.3 (abort with ^G)
([email protected])1> net:ping('[email protected]').
pong
([email protected])2> {server, '[email protected]'} ! { self(), say_your_pid }.
{<0.38.0>,say_your_pid}
([email protected])3> flush().
Shell got <6210.1.0>
ok
([email protected])4> {server, '[email protected]'} ! { self(), pid }.
{<0.38.0>,pid}
([email protected])5> flush().
Shell got <6210.1.0>
ok
([email protected])6> {server, '[email protected]'} ! { self(), plus, 1, 2, 3 }.
{<0.38.0>,plus,1,2,3}
([email protected])7> flush().
Shell got {ok,6}
ok
([email protected])8> {server, '[email protected]'} ! { self(), mult, 4, 5, 6, 7 }.
{<0.38.0>,mult,4,5,6,7}
([email protected])9> flush().
Shell got {ok,840}
ok
([email protected])10> {server, '[email protected]'} ! { self(), poo }.
{<0.38.0>,poo}
([email protected])11> flush().
Shell got {error,"Don't know how to poo"}
ok
([email protected])12> {server, '[email protected]'} ! stop.
stop
([email protected])13>
```