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

node dist (thanks to webassembly) #303

Closed
abernier opened this issue Oct 23, 2021 · 4 comments
Closed

node dist (thanks to webassembly) #303

abernier opened this issue Oct 23, 2021 · 4 comments

Comments

@abernier
Copy link

abernier commented Oct 23, 2021

Node.js is supporting webassembly: https://nodejs.dev/learn/nodejs-with-webassembly

What about compiling a .wasm build in order to execute it from Node.js? What about:

$ npm i glow

I have currently no experience with go, but could help about Node/npm.

Found that quick tutorial https://egghead.io/lessons/go-compile-and-execute-a-go-webassembly-program-with-node for now

@wperron
Copy link

wperron commented Dec 9, 2021

Hey 👋 not a maintainer or even a contributor, but what would be the use case for this?

@muesli
Copy link
Contributor

muesli commented Oct 12, 2022

In all theory this is possible with GOOS=js GOARCH=wasm go build. In reality however, there are still a few dependencies that aren't prepared for wasm builds, termenv, viper, console, and clipboard among them.

@caarlos0
Copy link
Member

not in the scope of the project for now.
sorry for the delay, closing!

@caarlos0 caarlos0 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
@meowgorithm
Copy link
Member

Side note that if we ever do move forward with this, the place to watch would be Bubble Tea:

charmbracelet/bubbletea#887
charmbracelet/bubbletea#748

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

No branches or pull requests

5 participants