Erlang Factory Lite Rome 2017 #0
Week ago I went to Rome to take part in Erlang Factory Lite, and, as promised, here is blogpost about it (the first part)
Starting with venue - it was near the centre of the city, easy to get with decent views. While inside was quite small (not a lot of people were there as well), the outside…
Sadly, there were no recordings, but from what I saw speakers had the same talks as in some future (and maybe past?) events, so not all is lost.
Pilgrim's Progress to the Promised Land by Robert Virding
Opening talk by Erlang co-creator. It was a nice opening, showing learning Elixir as a pilgrimage. And it’s quite good analogy. You begin your journey influenced by some prophets. It’s important to validate their words - to decide if Elixir is the right tool for your job. Also the way of learning it is a bit like arriving to different interesting places.
Because of it’s similarity to Ruby you quickly arrive to “Village of Confusion” as things don’t seem to work they should. It’s not an OO language (Joe had different opinion here ;) Erlang is the only OO language ).
Robert told us that people doing Erlang/Elixir are not scared of crashing things. And there are 3 ways of crashing things:
- Just crash
- Crash and clean - for example process holding database connection won't close it if it dies
- Crash and restart - if process is critical to the system
Because of all this talking about crashing, you do a lot of upfront error handling - so you have it localized and easy.
"You have to accept that things go wrong it you want to build fault-tolerant systems" - Robert
Stepping into a new era: injecting Elixir in a Ruby app by Andrea Leopardi
This was the talk about replacing some parts of the existing Ruby + Python system with Elixir (and adding new ones with Elixir). This was quite full of examples (like issues going down significantly and performance going up), but I think that the most important thing is:
Prepare your system: Split it into services first, or at least one monolith service and one small (it's a good start).
It's the Type Theory Baby! by Michele Finelli
This was talk full with nice theory. Michele defined a formula something that is always true or false. If you depend on external (I/O, DB, etc) logical formulas are no longer eternal - so this describes functional programming.
Nice thingies:
- One thing to remember? Read this paper
- Basically wiki article around this talk
- Duck typing? No! It's untyped and it's fine!
Cook your distributed in memory KV store by Gianluca Padovani
Basically a explanation how Riak Core works with concrete idea to implement. It was with some demos how to make a distributed KV store. And it worked like charm ;) I guess reading throu the code of this masterless cluster (nice idea btw) will be better than me describing it, but there one important quote
Always timeout!
I've covered 5 out of 9 talks, so there's still material for next part, stay tuned!