Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tank-bohr/jruby_node
https://github.com/tank-bohr/jruby_node
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tank-bohr/jruby_node
- Owner: tank-bohr
- License: mit
- Created: 2015-02-23T10:50:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-23T10:52:41.000Z (almost 10 years ago)
- Last Synced: 2024-10-21T18:35:58.217Z (3 months ago)
- Language: Ruby
- Size: 219 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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>
```