go-app icon indicating copy to clipboard operation
go-app copied to clipboard

possible to do a tinygo version only?

Open kolinfluence opened this issue 2 years ago • 4 comments

possible to do a tinygo version only?

kolinfluence avatar Nov 26 '22 12:11 kolinfluence

See: #682 and related issues. Basically, it did not create so much smaller WASM and needs a very long time to compile, the last time we tried. I have some experimental code that uses tinygo to create modules that can be loaded in addition to the main program.

oderwat avatar Nov 26 '22 13:11 oderwat

  1. 40% or 50% or even 30% smaller wasm is a lot. worth the time to compile. no point having pwa when it loads so long and bloated.
  2. do u know of any direction towards having tinygo compatibility or support? or anything other than go-app?
  3. do u think future version of golang will help with minimizing the size?

kolinfluence avatar Nov 29 '22 15:11 kolinfluence

  1. I doubt it will be much better after gzip (I actually think I did a comparison with a version I got to compile).
  2. I honestly think that TinyGo is for "something else" (IOT). But a full compiler for WASM (+WASI) may come out at some day. I do not know about any other project that works like go-app. Most focus on connecting java-script libraries or even have their own front-end code which then needs a constant connection with a server.
  3. It would be strange if Go would not continue to get better with WASM, as WASM is a quite active field. I believe WASM may replace (docker like) containers in the future. However: I am not sure about code size reduction (after GZip). There is a lot in such executables which seems redundant. But that is kind of a "trademark" of Go (as well as its binaries). But every time somebody wants to strip stuff, it is missing later. I hope they continue on adding debugger support. The file size becomes less important every day with those blazing fast internet the world relies on already.

no point having pwa when it loads so long and bloated.

Actually, that is the point of having a PWA. You download and install it once (and on updates). If you think about loading it again and again, you maybe just do not need a PWA in the first place. This does not mean that I would be happy about lower sizes.

oderwat avatar Nov 29 '22 16:11 oderwat

it almost works on v10

see https://github.com/mlctrez/mlctrez.github.io/issues/1#issuecomment-2091952764

gedw99 avatar May 03 '24 07:05 gedw99