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

Can this be replaced by webassembly version? #148

Open
lygstate opened this issue Nov 23, 2022 · 8 comments
Open

Can this be replaced by webassembly version? #148

lygstate opened this issue Nov 23, 2022 · 8 comments

Comments

@lygstate
Copy link

No description provided.

@lpinca
Copy link
Member

lpinca commented Nov 24, 2022

Yes, probably, but it must be faster otherwise it does not make sense.

@lygstate
Copy link
Author

lygstate commented Nov 24, 2022

Yes, probably, but it must be faster otherwise it does not make sense.

It's make sense when I wanna webpack ws, does not needs to be faster, equal performance is enough

@lpinca
Copy link
Member

lpinca commented Nov 24, 2022

You can connect native modules with webpack.

@lygstate
Copy link
Author

lygstate commented Nov 24, 2022

You can connect native modules with webpack.

The webpack result are not portable, for example, it's can not running under both windows/linux/osx

@lpinca
Copy link
Member

lpinca commented Nov 24, 2022

The webpack result are not portable, for example, it's can not running under both windows/linux/osx

I think you can produce different bundles picking the correct prebuilt binary and use the correct bundle at runtime. I see your point but I'm not sure if it is a common use case.

@lygstate
Copy link
Author

The webpack result are not portable, for example, it's can not running under both windows/linux/osx

I think you can produce different bundles picking the correct prebuilt binary and use the correct bundle at runtime. I see your point but I'm not sure if it is a common use case.

cross-compiling is a nightmare, for example for windows, we have MSVC,GNU,Electron,
for Linux we have MUSL,GLIBC and different architecture

@lpinca
Copy link
Member

lpinca commented Nov 25, 2022

There are already prebuilt binaries for Windows, macOS, and Linux (glibc) that cover 99% of use cases. Anyway feel free to open a PR.

@jerch
Copy link

jerch commented Apr 21, 2023

To me this seems to be a perfect wasm-simd candidate.

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

3 participants