GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Elixir + Wasm · Issue #454 · elixirscript/elixirscript

Elixir + Wasm #454

New issue
Copy link
New issue
Copy link
Closed
Closed
Elixir + Wasm#454
Copy link

Description

@jamen
jamen
opened on Aug 12, 2018
Issue body actions

Hey @bryanjos! I've been interested in your work here. What are your thoughts on WebAssembly? I began elixir-wasm to start this, and I've thought about using ElixirScript for creating JavaScript host bindings. I have some thoughts to share:

  • WebAssembly compilers typically create JavaScript "host bindings", because the user would have to write their own to execute the WebAssembly program meaningfully. For example, see Emscripten's preamble.js and Rust's wasm-bindgen. This means the JS code generation is still useful for WebAssembly. Its also useful for an asm.js fallback.

  • Standalone WebAssembly (without host bindings) is still important for environments that aren't JavaScript. People asked me about Elixir WASM with distributed platforms more than regular web apps (for example ewasm).

  • I think an option for HTML output would be good to have 0 extra steps for running the code (whether its WebAssembly or JavaScript)

Reacted by niulai6, Mikael Sand, Carina, Damien Bezborodov, pannous and Lars Gyrup Brink Nielsen

Activity

  1. bryanjos commented on Aug 12, 2018

    @bryanjos
    bryanjos
    on Aug 12, 2018
    Collaborator
    More actions

    Hey @jamen, I can agree with mostly all of what you have said. I've peeked at your project a couple of times this year. I think one of the bigger issues is the lack of garbage collection in wasm currently. Any plans around that?

    I'm down to help in any way I can towards the goal.

  2. jamen commented on Aug 13, 2018

    @jamen
    jamen
    on Aug 13, 2018
    Author
    More actions

    WebAssembly has a garbage collection proposal, but in the meantime it would need its own garbage collection. I dont know what the odds and ends of the WebAssembly output will be yet, but for now I was seeing if its okay to start that here. I'll return with more technical discussion and pull requests. This might take a while for me to wrap my head around.

    Reacted by Bryan Joseph and niulai6
  3. fazibear commented on Dec 31, 2018

    @fazibear
    fazibear
    on Dec 31, 2018
    Contributor
    More actions

    Maybe this is the way you can go? https://github.com/bettio/AtomVM

    Reacted by Lars Gyrup Brink Nielsen
  4. bryanjos commented on Dec 31, 2018

    @bryanjos
    bryanjos
    on Dec 31, 2018
    Collaborator
    More actions

    Definitely something to do some research on

  5. lahwran commented on Jul 5, 2019

    @lahwran
    lahwran
    on Jul 5, 2019
    More actions

    Have any of yall learned anything new about this project since then?

  6. jamen commented on Jul 6, 2019

    @jamen
    jamen
    on Jul 6, 2019
    Author
    More actions

    @lahwran I haven't been able to put much time into this. I played with ElixirScript's code a bit, but nothing worth showing yet. My focus has shifted away from WebAssembly lately, but I'm still interested in this, and any help is appreciated. 😄

  7. lahwran commented on Jul 6, 2019

    @lahwran
    lahwran
    on Jul 6, 2019
    More actions

    Oh man! I misunderstood from the readme at https://github.com/jamen/elixir-wasm that this whole github project was under initial development with this issue tracking it. I didn't realize that this would be a v2! My bad. I'd still love to have a webassembly upgrade, but knowing that it already compiles to JS clarifies a few things.

    I'm new to elixir, but now that I've figured out what's going on, I think I actually don't need wasm support since the performance sensitive code will be in rust, which separately can compile to wasm. It'd definitely be cool to see elixir produce nice fast wasm code though :D

    Reacted by Jamen Marz
  8. foucist commented on Sep 18, 2019

    @foucist
    foucist
    on Sep 18, 2019
    More actions

    Leaving this link here for others to see: https://github.com/lumen/lumen

    Reacted by ionas
    Reacted by ionas
  9. bryanjos commented on Sep 30, 2019

    @bryanjos
    bryanjos
    on Sep 30, 2019
    Collaborator
    More actions

    Since Lumen exists now, I think this can be closed

  10. bryanjos
    closed this as completedon Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.