The document discusses Samuel Lampa's first encounter with the programming language Elixir. It covers calculating GC ratios in DNA sequences, provides a DNA sequence example file, and compares Elixir processes to Go channels, noting that Elixir processes are named mailboxes tied to a process while Go channels are anonymous and separate from routines. The document is authored by Samuel Lampa from Uppsala University.
1 of 10
Download to read offline
More Related Content
First encounter with Elixir - Some random things
1. First encounter with Elixir
A few impressions and thoughts
Samuel Lampa
Uppsala University
@smllmp
bionics.it
2. GC ratio calculation
DNA has four letters (bases): A, C, G, T
GC ratio is the:
ratio of Gs and Cs, compared to As and Ts.
Sequences are stored in ASCII text files, with
around 80 characters per line.
Header lines in the file start with > and should
be skipped.
Unknown bases are denoted with N.
8. Elixir processes vs Go channels
Elixir processes:
Named mailboxes
Mailbox and process tied together
Go channels
Anonymous, no name
Channels are separate from go routines (can be
sent around, sent to functions etc).
More?