arjan_sch
Joined 14 years ago
Karma
65
Submissions
26
Member since
Jan 9
Joined 14 years ago
https://www.evanmiller.org/elixir-ram-and-the-template-of-do...
Having latency on such lowlevel interactions might make the UI feel sluggish as a whole.
Did not look at it in detail, but I'm wondering about portability, eg how this works with system libraries, like OpenSSL. Is the resulting binary portable to systems with different C libraries than the ones the OTP system was linked against originally?
This makes it easy to generate code on compile time, which is then executed in runtime without any performance penalty.
A large part of Elixir itself is actually implemented as macros. For instance, the "unless" construct:
defmacro unless(condition, do: do_clause, else: else_clause) do
quote do
if(unquote(condition), do: unquote(else_clause), else: unquote(do_clause))
end
end
(code simplified for clarity)