https://github.com/dineshba/otp-elixir
OTP Elixir
https://github.com/dineshba/otp-elixir
elixir erlang otp
Last synced: 2 months ago
JSON representation
OTP Elixir
- Host: GitHub
- URL: https://github.com/dineshba/otp-elixir
- Owner: dineshba
- Created: 2017-03-09T15:16:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-11T17:31:12.000Z (almost 9 years ago)
- Last Synced: 2025-01-16T18:36:48.283Z (over 1 year ago)
- Topics: elixir, erlang, otp
- Language: Elixir
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# otp-elixir
* Presentation used for
[Why Erlang/Elixir + Getting started with Elixir](https://docs.google.com/presentation/d/1HM_eGs-3_mAHytGVXcGnwZ1pf1AHe2X690mkXshgkrE/edit#slide=id.g1c2b4f0ab4_0_34)
### Some commands which i used during session:
* `iex` for interactive terminal
* `c("filename.exs")` for loading/re-compiling in repl
* `elixir -r filename.exs -e "Module.func(args)"` for executing function directly from terminal
* `iex --sname shortName` and `iex --name dineshb@my_ip_address` to name the nodes
* `iex --cookie your_cookie` to set the cookie for your erlang node
* `Node.self` to display current node name
* `Node.list` to list all the connected nodes
* `Node.connect :node_name` to connect
### Session 1 agenta
* How to send message between two processes that are running in
1. `iex` to `module`
2. `one module` to `another module`
* How much time it takes to create 1 lakh processes and send message between them to complete a task
### Session 2 agenta
* How to create a server/master in one node and multiple agent/slave in mutliple nodes and communicate between them