Fast string management

:wave:

how to retrieve and split a socket recv string into list from delimiters ( : ; )

Check out GitHub - dashbitco/nimble_parsec: A simple and fast library for text-based parser combinators

This discussion might be interesting for you as well: How to properly parse a list of lines, with 'look-ahead' functionality?

how to build a similar string from pieces and put it to socket send (concat() or +?)

Read up on iolists in elixir and erlang:

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

5 Likes