Popcorn: Run Elixir in WASM

  • Hey, Kuba from team working on Popcorn here. I wasn't expecting it to be posted on hn but here we are. Feel free to ask me any question.

  • Congratulations on the project! It works great, until we need to handle the best part of Elixir, that's creating multiple actors.

    This Task code, for example doesn't work.

      Enum.map(0..10, fn(_) ->
        Task.async(fn -> IO.puts("new process") end)
      end) |> Task.await_many()

  • I'm honestly surprised at how slow WASM is moving. As a very experienced web dev, when I first learned about WASM I was sure people would be building production UIs in Python and Golang and other traditionally server-side languages.

  • For anyone else wondering the GitHub repo is here:

    https://github.com/software-mansion/popcorn

    Couldn’t find any link to it on the article

  • AtomVM is something like 1m when compiled, isn't it?

  • Very promising. But still not stable. One to watch.

  • [dead]