axelson

axelson

Scenic Core Team

ElixirConf 2019: Lighting Talk - IOLists are Awesome - Dennis Beatty

by @dnsbty

Quick summary:

Dennis shows how to use ANSI escape codes and explains how the iolist datastructure gives you increased performance.

His original blog post covering building IO.ANSI: https://dennisbeatty.com/cool-clis-in-elixir-part-2-with-io-ansi/
Linked article on IO lists: https://www.bignerdranch.com/blog/elixir-and-io-lists-part-1-building-output-efficiently/

View all threads tagged with iolist
View all elixirconf2019 talks

Most Liked

SZJX

SZJX

The ElixirConf 2016 talk that the Big Nerd Ranch article is based on is awesome: https://www.youtube.com/watch?v=zZxBL-lV9uA

brightball

brightball

I went hunting for the Big Nerd Ranch articles and they are down now. Luckily, both still up on Nathan Long’s blog though. Lots of good stuff in there.

axelson

axelson

Scenic Core Team

As a side-note I’d highly recommend both his IO.ANSI blog posts and the Big Nerd Ranch article on IO lists. @dnsbty will you be doing an updated post on switching your IO.ANSI code to use IO lists? I think that would be neat, also it would be good to cover that to get the best performance improvements you need to re-use bindings instead of creating new ones by generating a new string (even though the strings may be identical in content).

Where Next?

Popular in Talks Top

axelson
ElixirConf 2017 - HTTP 2 Plug to Phoenix Cowboy too - @Gazler In this talk, we will look at the changes in C...
New
axelson
ElixirConf 2017 - Day 2 Morning Keynote - @josevalim All talks are available in the Elixir Conf 2017 Talks Li...
New
axelson
Almost done with posting the Elixir Conf talks! ElixirConf 2017 - Realtime Vehicle Tracking with Elixir and Phoenix - @st23am ...
New
Lawrence_elixir
@voltone - Security advocate, BEAM enthusiast Learn you some ‘ssl’ for much security! Talk in three words: TLS, security, troubleshooti...
New
axelson
Posting a little bit late today but here you go: ElixirConf 2017 - Elixir + Neo4j - Regina Imhoff Neo4j is ...
New
axelson
Consistent, Distributed Elixir - @keathley Elixir and Erlang provide powerful mechanisms for building systems that are alw...
New
axelson
by @zacky1972 Finally, we’ve succeeded in the implementation of Hastega!!! (Maybe until ElixirConf US 2019 :slight_smile: Hastega (Hyp...
New
axelson
ElixirConf 2017 - Cajoling the Bird: How we squeezed more out of Phoenix PubSub- Simon Zelazny Grindr is a m...
New
blatyo
Looks like videos have started to go up for ElixirConf US 2018. Here’s the playlist of ones available so far. I expect it’ll get updated ...
New
ElixirConf
ElixirConf: ElixirConf 2023 - German Velasco - Using DDD concepts to create better Phoenix Contexts Comments welcome! View the <span cla...
New

Other popular topics Top

hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a &gt; b) do {:ok, "a"} end if (a &lt; b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement