Skip to content

Elixir is harder than you think #215

Open
@ndrean

Description

@ndrean

An open discussion: Elixir maybe harder than you think to get it speedy. It is VERY easy to write "inefficient" code.

Some examples:

  • this video is a good example on how to write beautiful but inefficient Elixir code.
    The todo:
    Screenshot 2024-07-15 at 15 41 57

The first "poor" first "natural" version:
Screenshot 2024-07-15 at 15 39 52

  • a very instructive video. A comparison of using tuples vs lists vs maps. In particular, :erlang_disasm.file and the add-on beamdasm if you are very curious.

Screenshot 2024-07-15 at 15 36 04

  • Another video. The repo with the Go and Elixir 1 & 2 versions.
    The todo: repeatedly pick a random element from a large list of words

He "solved" the issue of constant time access by using the AJA library
Screenshot 2024-07-15 at 17 52 28

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions