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

Rust #4

Closed
stefnotch opened this issue Oct 19, 2022 · 7 comments
Closed

Rust #4

stefnotch opened this issue Oct 19, 2022 · 7 comments

Comments

@stefnotch
Copy link
Owner

stefnotch commented Oct 19, 2022

  1. Setup Rust WASM again
  2. Define MathLayout data structure in Rust
  3. Try out the 4 parsers (which can be compiled?)
  4. Simple parser (just joins numbers or something)
  5. JS integration (JS -> JSON -> MathLayout or maybe a custom serializer ... and then the other way around)

Regarding the bundlers:
Well Webpack is slow, so that's not fun.
Parcel doesn't support Rust yet, so that's also a no-go parcel-bundler/parcel#3365
Rollup might work? https://github.com/wasm-tool/rollup-plugin-rust#readme
Or Vite https://github.com/rwasm/vite-plugin-rsw
Or directly using it https://rustwasm.github.io/wasm-bindgen/examples/without-a-bundler.html (maybe I need https://github.com/Menci/vite-plugin-wasm as well? There's also vitejs/vite#7763 and vitejs/vite#4551 )
Or with Esbuild https://github.com/Tschrock/esbuild-plugin-wasm-pack

Remember to improve the performance by doing https://github.com/rictic/airlock.chat#improve-build-performance and also do https://www.reddit.com/r/rust/comments/z1rtcb/compiler_option_to_make_all_panics_be_undefined/

Future things

@stefnotch
Copy link
Owner Author

@stefnotch
Copy link
Owner Author

rustwasm/wasm-bindgen#2407 ouchie

@stefnotch stefnotch added the wontfix This will not be worked on label Oct 30, 2022
@stefnotch
Copy link
Owner Author

(Interesting Rust library https://github.com/rustwasm/gloo )

@stefnotch
Copy link
Owner Author

stefnotch commented Dec 18, 2022

How fast is https://trunkrs.dev/ in terms of hot reloading?
Answer: slow-ish

@stefnotch stefnotch reopened this Dec 18, 2022
@stefnotch stefnotch removed the wontfix This will not be worked on label Jan 27, 2023
@stefnotch
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant