Skip to content

Conversation

@Beanow
Copy link

@Beanow Beanow commented Dec 1, 2024

Some work in progress supporting #9
Depends on changes in the wasm compiler.

image

This isn't an opinion about which packages should be selected.
I picked some arbitrary examples to showcase being able to.

Testing

# Check out my fork, adding wasm compiler features
git clone --branch playground-packages https://github.com/Beanow/gleam.git

# Build that for the playground
GLEAM_DIR=gleam ./bin/build-forked-compiler

# Profit!
gleam run

The imports currently available are:

const available_packages = ["filepath", "gleam_stdlib", "globlin"]

@lpil
Copy link
Member

lpil commented Dec 1, 2024

Hello! Thank you but this work is premature and cannot be accepted. We have not agreed that we want to implement this feature and forking the compiler is not an option.

@Beanow
Copy link
Author

Beanow commented Dec 1, 2024

I agree on both.

It's some work to get the ball rolling on this.
Upstream issue gleam-lang/gleam#3928
And PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants