Thanks, all who rocked out at our first meetup of 2017! Member David Jones recorded tonight’s talk: look for it soon on our Youtube channel, youtube.com/indyelixirorg.
Thanks as always to our awesome sponsors who made tonight possible. And congrats to Dave and Meining, winners of Manning’s Elixir In Action and The Little Elixir and OTP Guidebook, respectively.
Steve Grossi walked through some experiments with making music in Elixir: github.com/stevegrossi/sweet_beats. We covered:
- Communicating with the SoX audio library from Elixir
- Using supervised processes to play audio simultaneously
- Relying on Elixir 1.4’s upcoming
Registrymodule as a metronome to send messages to groups of processes
- Building a self-correcting timing mechanism when process messages arrive later than expected
Look for a recording of the talk to be posted here once it’s ready.
Then we ended the evening with an hour of musical hacking and discussion. Some highlights:
- Ben Falk pointed out that appending items to the end of a linked list is relatively slow on the BEAM, and suggested using a queue instead, for which he’d written a library. Check out the pull request!
- I learned the difference between performing
start_linkhappens in the originating process, while
inithappens in the
GenServerprocess. So perform any memory-intensive setup in
start_linkto keep the
GenServer’s own memory footprint small.
- Lucas Falk suggested using guard clauses to ensure we actually get lists when we’re expecting them. Always a good practice!