Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support additional precompiled dependencies #11

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

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