News for hackers. Stuff that matters.
Re:How EEx Turns Your Template into HTML by sph on Thursday April 14, 2022 @04:24AM (#31024497)
iolist are great: https://nathanmlong.com/2021/05/what-is-an-iolist/

This is how an high level language such as erlang can be very efficient at printing out strings: native language support for strings embedded in lists. That way a template engine doesn't have to allocate memory and copy every time it needs to prepend or append to strings together. Just wrap them in another list.

IO.puts([[ "this", [ "is", [ "an" ]]] | "iolist" ])

Re:How EEx Turns Your Template into HTML by arjan_sch on Thursday April 14, 2022 @06:21AM (#31025045)
Related to this, this is old but still a great blogpost:

https://www.evanmiller.org/elixir-ram-and-the-template-of-do...