β οΈ This post links to an external website. β οΈ
It seems that a pattern emerged in my recent months or years of Elixir, and it looks like I am now knee-deep in this pattern : leveraging other languages from Elixir.
This leverage takes, it seems, three forms :
- Writing Elixir code that generates and runs
code. - Embedding (Γ la Zigler) <language> code in Elixir and running it.
- Writing Elixir code that generates instructions for <language>.
And it all depends on managing
βs runtimes from Elixir, which takes two forms :
- Checking for <language>βs presence and adequation and providing instructions
- Managing the install itself from Elixir
Note that I wonβt talk of Rustler which is already covered a bit on the blog and now well-known. It is a fantastic tool but does not offer the βcode-in-codeβ approach described here. Nevertheless, a Rustler NIF in a monorepo still achieves the benefits Iβm talking about here.
continue reading on lucassifoni.info
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.