mit-mit / sandbox

9 stars 0 forks source link

dart wasm showcase fibonacci example #2

Open flutter-painter opened 1 month ago

flutter-painter commented 1 month ago

Hi @mit-mit,

Thank you for providing this web assembly demo and the effort put into making this tool available for Dart. While the way to build a wasm Dart website / Flutter web-app is well-documented, it was unclear to me how to wrap simple Dart logic into wasm to then reuse it in javascript .

After a lot of researches I stumbled across this issue : https://github.com/dart-lang/sdk/issues/56327 It shows how to run the fibonacci in dart in a very simple fashion and works just fine ! Wouldn't it be possible to showcase this example in your repo and in the dart website doc for wasm ?

mit-mit commented 1 month ago

cc @kevmoo who is planning documentation updates for Dart & Wasm