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

How does AssemblyScript compares to Walt? #83

Closed
emil14 opened this issue Apr 25, 2018 · 3 comments
Closed

How does AssemblyScript compares to Walt? #83

emil14 opened this issue Apr 25, 2018 · 3 comments
Labels

Comments

@emil14
Copy link

emil14 commented Apr 25, 2018

Hello! And thank you for this great project. I'm asking you about https://github.com/ballercat/walt

Don't sure which one should I take, could you please explain the core difference?

@MaxGraey
Copy link
Member

MaxGraey commented Apr 25, 2018

Hello @emil14,
walt it seems just high level syntax sugar over wat which has main goal translate to wasm as close as possible if I right understood owner: ballercat/walt#11

Main differences:

  1. AssemblyScript born earlier. Just see first prototype.
  2. AS support wide range of 'small' integers - i8, u8, i16, u16 and i32/u32, i64/u64 of course. walt can manage just i32 and i64, without unsigned types.
  3. AS is a typescript superset and easily transpiled to javascript via tsc. walt has syntax similar to flow but it seems not fully compatible and I'm not sure has possibility translation to pure js.
  4. AS has runtime: Array, ArrayBuffer, typed arrays, String, Map/Set, Symbol, native Math, operator instanceof and etc. walt has very basic stuffs for strings and arrays.
  5. AS support Generics.
  6. AS has memory management. Actually three types for heap allocations: arena, tlsf and buddy. Also there is working on Garbage Collector. walt hasn't provide any memory management.
  7. AS have got many examples and benchmark. Also one huge and successful project called wasmBoy.
  8. AS supported by several playgrounds: WebAssembly Studio and Assembleash.
  9. AS seamlessly build over binaryen which provide fast code generation and very smart optimization with many passes from author of emscripten. walt hasn't provide accurate build-in optimizations even dead code elimination.

@torch2424
Copy link
Contributor

Oh hey, thanks for mentioning wasmBoy @MaxGraey 😄

@emil14
Copy link
Author

emil14 commented Apr 27, 2018

Thank you. It seems like the AssemblyScript is better for building complex applications

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

No branches or pull requests

4 participants