Contrary to the number of blogposts, Rye development wasn't sleeping last week.
I experimented with Rye compiled to Web Assembly. Regular Go can cross-compile to WASM without a problem, but the .wasm file is not so small. It was around 5MB in my test case. The bigger size is supposed to be the result of not so small Go runtime, that isn't made to be used in a browser for example.
But there is a very interesting project out there: TinyGo, that made an alternative compiler. They are using llvm and a lot of it's features to reduce the size. So go becomes good option for very small devices like micro-controllers and also WASM!
Compilation right now takes a lot more time, but if it would produce considerably smaller .wasm file, it would be more than worth it and really awesome also for Rye.
The problem right now is, that compiling Rye with TinyGo doesn't produce smaller binary, so we are trying to figure out why is that.
Komentarji
Objavite komentar